|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SystemInterface
System Interface.
Version History
EPG - Initial - 7 OCT 03
Field Summary | |
---|---|
static int |
DEFAULT_REPORTING_THRESHOLD
General constants |
Method Summary | |
---|---|
WhoAmI |
getCallingProcessId()
Get process ID for the calling prosess. |
ThingsPropertyViewReader |
getConfigProperties()
Get the read only properties for this for the caller only. |
ThingsPropertyView |
getLocalProperties()
Get local property view for the caller only. |
ThingsPropertyTree |
getLocalPropertiesImplementation()
Get an empty tree using the preferred, non-persistent implementation for the local host. |
FileSystemLocator |
getLogLocal(java.lang.String id)
Get a local reference to the log if possible. |
ExpressionInterface |
getNamedExpressor(java.lang.String name)
Forge a new named expressor. |
Logger |
getNamedLogger(java.lang.String name)
Forge a new named logger. |
ProcessInterface |
getProcessInterface(java.lang.String id)
Get a process interface. |
Table<java.lang.String> |
getProcessList()
Get the process list. |
ThingsState |
getProcessState(java.lang.String id)
Get the state of a specific process. |
ThingsPropertyView |
getSharedProperties()
Get shared property view for this server. |
Logger |
getSystemLogger()
Get a system logger for the process. |
Universe |
getUniverse(java.lang.String name)
Get a universe by the local name. |
MODULE |
loadModule(java.lang.String name)
Load a module but don't do anything with it. |
THING |
loadThing(java.lang.String name)
Load a thing but don't run it. |
SystemSuperInterface |
requestSuperSystemInterface()
Ask the kernel for a SuperSystemInterface. |
java.lang.String |
runThing(java.lang.String name)
|
java.lang.String |
runThing(java.lang.String name,
ExpressionInterface parentExpressor)
Load and run a thing in a new process, giving an expression parent. |
java.lang.String |
runThing(java.lang.String name,
ExpressionInterface parentExpressor,
ThingsPropertyView properties)
Load and run a thing in a new process, giving an expression parent. |
void |
waitProcessDone(java.lang.String id)
Wait until the named process if done (meaning any state that satisfies ProcessInterface.ThingsState.isDeadOrDying()==true). |
Field Detail |
---|
static final int DEFAULT_REPORTING_THRESHOLD
Method Detail |
---|
Logger getSystemLogger() throws SystemException
SystemException
Logger
Logger getNamedLogger(java.lang.String name) throws ThingsException
name
- the name. It will be unique. It's up to kernel on how the name is resolved.
things.thinger.ThingsException
ThingsException
Logger
ExpressionInterface getNamedExpressor(java.lang.String name) throws ThingsException
name
- the name. Generally, it should be unique. It's up to kernel on how the name is resolved and if name reuse is allowed.
things.thinger.ThingsException
ThingsException
ExpressionInterface
ThingsPropertyView getLocalProperties() throws SystemException
SystemException
ThingsPropertyView getSharedProperties() throws ThingsException
things.thinger.ThingsException
ThingsException
ThingsPropertyViewReader getConfigProperties() throws SystemException
SystemException
Table<java.lang.String> getProcessList() throws SystemException
The process list will be a Table.
SystemException
Table
ThingsState getProcessState(java.lang.String id) throws SystemException
If the process is not found, the state is ProcessInterface.ThingsState.STATE_INVALID.
NO CLEARANCE REQUIRED.
id
- String id of the process.
SystemException
ProcessInterface
ProcessInterface getProcessInterface(java.lang.String id) throws SystemException
id
- String id of the process.
SystemException
ProcessInterface
void waitProcessDone(java.lang.String id) throws SystemException, java.lang.InterruptedException
If the process is not found, it will quietly return.
NO CLEARANCE REQUIRED.
id
- String id of the process.
SystemException
- for general errors or InterruptedException for thread control. Always let the InterruptedException out.
java.lang.InterruptedException
ProcessInterface
FileSystemLocator getLogLocal(java.lang.String id) throws ThingsException, java.lang.InterruptedException
NO CLEARANCE REQUIRED.
id
- String id of the process.
things.thinger.ThingsException
- for general errors or InterruptedException for thread control. Always let the InterruptedException out.
ThingsException
java.lang.InterruptedException
ProcessInterface
,
FileSystemLocator
THING loadThing(java.lang.String name) throws SystemException
name
- the name that the loader can use to find it. Typically, the full class name.
SystemException
MODULE loadModule(java.lang.String name) throws SystemException
name
- the name that the loader can use to find it. Typically, the full class name.
SystemException
java.lang.String runThing(java.lang.String name) throws SystemException
name
- the resolvable name of the thing.oad and run a thing in a new process.
SystemException
java.lang.String runThing(java.lang.String name, ExpressionInterface parentExpressor) throws ThingsException
name
- the resolvable name of the thing.parentExpressor
- the parent expressor.
things.thinger.ThingsException
ThingsException
java.lang.String runThing(java.lang.String name, ExpressionInterface parentExpressor, ThingsPropertyView properties) throws ThingsException
name
- the resolvable name of the thing.parentExpressor
- the parent expressor. Set to null if there is no parent.properties
- properties to add to the THING processes specific view.
things.thinger.ThingsException
ThingsException
SystemSuperInterface requestSuperSystemInterface() throws SystemException
SystemException
SystemSuperInterface
Universe getUniverse(java.lang.String name) throws SystemException
name
- the local name for the universe
SystemException
Universe
WhoAmI getCallingProcessId() throws SystemException
SystemException
ThingsPropertyTree getLocalPropertiesImplementation() throws ThingsException
ThingsException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |