|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
things.thinger.kernel.ThingsProcess
things.thinger.kernel.basic.KernelBasicBase
public abstract class KernelBasicBase
Implements underlying Kernel functionality.
- Bootstrap a property set for global properties.
- Start a list of services.
There are a set of required properties during bootstrap.
USER_FILESYSTEM_ROOT SYSTEM_FILESYSTEM_ROOT LOGGING_LEVEUser property prunes are separated by their processId.toTag() in their paths.
It does not implement the System Interfaces.
Version History
EPG - Initial - 12 JUN 05 EPG - Split base and main - 6 FEB 06
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Fields inherited from class things.thinger.kernel.ThingsProcess |
---|
DEFAULT_NAME, internalResult, myPostLogger, ssi |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Fields inherited from interface things.thinger.SystemInterface |
---|
DEFAULT_REPORTING_THRESHOLD |
Constructor Summary | |
---|---|
KernelBasicBase()
|
Method Summary | |
---|---|
void |
bootstrap(boolean verboseMode,
StringPoster bootstrapLoggerPoster,
ThingsPropertyTree globalPropertiesTree)
BOOTSTRAP. |
void |
constructThingsProcess()
Complete construction. |
void |
destructThingsProcess()
Destroy. |
void |
executeThingsProcess()
This is the entry point for the actual processing |
protected ResourceManager |
forgeLogger(WhoAmI owner,
AFileSystem fileSystem,
java.lang.String path)
Create a file logger from the current factory and put it in a resource manager. |
WhoAmI |
getListenerId()
Get the ID of the listener. |
java.lang.String |
getProcessName()
Get process name. |
void |
resourceRevocation(WhoAmI resourceID)
The identified resource is in the process of being revoked. |
void |
resourceRevoked(WhoAmI resourceID)
The identified resource bas been revoked. |
Methods inherited from class things.thinger.kernel.ThingsProcess |
---|
acceptHalt, acceptPause, finalize, fix, forceFinalize, forceHalt, getCurrentState, getCurrentStateNumeric, getProcessId, getResult, getStartTime, getThingsState, init, isVerbose, release, releasePause, requestHalt, requestPause, run, screech, verboseOff, verboseOn |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface things.thinger.SystemSuperInterface |
---|
deathNotice, flingException, getConfigPropertiesWritable, getGlobalProperties, getLocalProperties, getSystemConduits, getUserGlobalProperties, registerProcess, requestQuit, startProcess, startProcess |
Methods inherited from interface things.thinger.SystemInterface |
---|
getCallingProcessId, getConfigProperties, getLocalProperties, getLocalPropertiesImplementation, getLogLocal, getNamedExpressor, getNamedLogger, getProcessInterface, getProcessList, getProcessState, getSharedProperties, getSystemLogger, getUniverse, loadModule, loadThing, requestSuperSystemInterface, runThing, runThing, runThing, waitProcessDone |
Field Detail |
---|
protected ThingsPropertyTree myGlobalPropertiesTree
protected ThingsPropertyView myGlobalPropertiesViewRoot
protected ThingsPropertyReaderToolkit myGlobalPropertiesKit
protected ThingsPropertyView userGlobalPropertiesView
protected ThingsPropertyView userGlobalConfigView
protected ThingsPropertyView sharedGlobalPropertiesView
protected java.util.HashMap<java.lang.String,Service> loadedServiceList
protected ProcessCoordinator processes
protected java.util.concurrent.atomic.AtomicInteger pcbNumber
protected boolean verbose
protected java.util.List<WhoAmI> deathList
protected java.util.HashMap<WhoAmI,java.lang.String> cullPropsOnDeathMap
protected StringPoster bootstrapLogger
protected KernelBasic_WriterLogger kernelLogger
protected WhoAmI kernelSpaceID
protected WhoAmI userSpaceID
protected DeadDropRendezvous<java.lang.Throwable> startupRendezvous
protected StoplightMonitor kernelStoplight
protected Loader loader
protected java.lang.String config_USER_FILESYSTEM_ROOT
protected java.lang.String config_SYSTEM_FILESYSTEM_ROOT
protected Logger.LEVEL config_LOGGING_LEVEL
protected KernelBasic_WriterLogger_Factory config_LOGGING_FACTORY_IMPLEMENTATION
protected ResourceCoordinator resources
protected BasicConduitController systemConduits
protected java.lang.Object deathWatchMonitor
protected AFileSystem userFilesystem
protected AFileSystem systemFilesystem
protected UniverseRegistry universeRegistry
protected Universe systemUniverse
protected Universe userUniverse
protected java.util.HashMap<java.lang.String,Logger> loggerCache
protected java.util.HashMap<java.lang.String,FileSystemLocator> loggerFileMap
protected java.util.HashMap<WhoAmI,Logger> localPropertyCache
protected static final int START_PROCESSED_ID
Constructor Detail |
---|
public KernelBasicBase() throws SystemException
SystemException
Method Detail |
---|
public void bootstrap(boolean verboseMode, StringPoster bootstrapLoggerPoster, ThingsPropertyTree globalPropertiesTree) throws SystemException
verboseMode
- the verbosity mode for system internal messages. The default is false.bootstrapLoggerPoster
- String poster for low-level system logging.globalPropertiesTree
- A view to global properties.
SystemException
public void executeThingsProcess() throws SystemException
executeThingsProcess
in class ThingsProcess
SystemException
public void constructThingsProcess() throws SystemException
constructThingsProcess
in class ThingsProcess
SystemException
public void destructThingsProcess() throws SystemException
destructThingsProcess
in class ThingsProcess
SystemException
public java.lang.String getProcessName()
getProcessName
in interface ProcessInterface
getProcessName
in class ThingsProcess
public void resourceRevocation(WhoAmI resourceID) throws SystemException, java.lang.InterruptedException
ResourceListener
resourceRevocation
in interface ResourceListener
resourceID
- the ID of the resource that is being revoked.
SystemException
java.lang.InterruptedException
WhoAmI
public void resourceRevoked(WhoAmI resourceID) throws SystemException, java.lang.InterruptedException
ResourceListener
resourceRevoked
in interface ResourceListener
resourceID
- the ID of the resource that has been revoked.
SystemException
java.lang.InterruptedException
WhoAmI
public WhoAmI getListenerId()
ResourceListener
getListenerId
in interface ResourceListener
WhoAmI
protected ResourceManager forgeLogger(WhoAmI owner, AFileSystem fileSystem, java.lang.String path) throws SystemException
SystemException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |