|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrendsite.tools.SystemInterfaceStubBase
rendsite.tools.SystemInterfaceStub
public class SystemInterfaceStub
Stub out the system interface (like the test.things does). This is for stand-alone rendering tools.
10NOV09 - EPG - First package release.
| Field Summary | |
|---|---|
things.data.ThingsPropertyView |
configProperties
Config properties. |
RendsiteConfiguration |
configuration
|
things.common.WhoAmI |
myId
|
java.util.HashMap<java.lang.String,RendsiteLogger> |
namedLoggers
|
things.data.ThingsPropertyView |
properties
Given as shared and local properties. |
java.lang.String |
root
|
RendsiteLogger |
rootLogger
System stuff. |
RendsiteLogger |
systemLogger
|
| Fields inherited from interface things.thinger.SystemInterface |
|---|
DEFAULT_REPORTING_THRESHOLD |
| Constructor Summary | |
|---|---|
SystemInterfaceStub(java.lang.String root,
things.data.ThingsPropertyView properties,
things.data.ThingsPropertyView configProperties,
RendsiteConfiguration configuration,
things.common.WhoAmI systemId)
Create the stub using a real properties file. |
|
| Method Summary | |
|---|---|
things.common.WhoAmI |
getCallingProcessId()
Get process ID for the calling prosess. |
things.data.ThingsPropertyViewReader |
getConfigProperties()
Get the read only properties for this for the caller only. |
things.data.ThingsPropertyView |
getLocalProperties()
Get local property view for the caller only. |
things.data.ThingsPropertyTree |
getLocalPropertiesImplementation()
Get an empty tree using the preferred, non-persistent implementation for the local host. |
things.thinger.io.FileSystemLocator |
getLogLocal(java.lang.String id)
Get a local reference to the log if possible. |
things.thinger.ExpressionInterface |
getNamedExpressor(java.lang.String name)
Forge a new named expressor. |
things.thinger.io.Logger |
getNamedLogger(java.lang.String name)
Forge a new named logger. |
things.thinger.kernel.ProcessInterface |
getProcessInterface(java.lang.String id)
Get a process interface. |
things.data.tables.Table<java.lang.String> |
getProcessList()
Get the process list. |
things.thinger.kernel.ThingsState |
getProcessState(java.lang.String id)
Get the state of a specific process. |
things.data.ThingsPropertyView |
getSharedProperties()
Get shared property view for this server. |
static SystemInterfaceStub |
getStub()
Get the global stub. |
static SystemInterfaceStub |
getStub(java.lang.String root,
things.data.ThingsPropertyView properties,
things.data.ThingsPropertyView configProperties,
RendsiteConfiguration configuration,
things.common.WhoAmI systemId)
Get the global stub. |
things.thinger.io.conduits.ConduitController |
getSystemConduits()
Get the system conduit controller. |
things.thinger.io.Logger |
getSystemLogger()
Get a system logger for the process. This is implemented with the numbered call GET_SYSTEM_LOGGER. |
things.universe.Universe |
getUniverse(java.lang.String name)
Get a universe by the local name. |
things.thing.MODULE |
loadModule(java.lang.String name)
Load a module but don't do anything with it. |
things.thing.THING |
loadThing(java.lang.String name)
Load a thing but don't run it. |
things.thinger.SystemSuperInterface |
requestSuperSystemInterface()
Ask the kernel for a SuperSystemInterface. |
java.lang.String |
runThing(java.lang.String name)
Load and run a thing in a new process. |
java.lang.String |
runThing(java.lang.String name,
things.thinger.ExpressionInterface parentExpressor)
Load and run a thing in a new process, giving an expression parent. |
java.lang.String |
runThing(java.lang.String name,
things.thinger.ExpressionInterface parentExpressor,
things.data.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). |
| Methods inherited from class rendsite.tools.SystemInterfaceStubBase |
|---|
deathNotice, flingException, getConfigPropertiesWritable, getGlobalProperties, getLocalProperties, getUserGlobalProperties, registerProcess, requestQuit, startProcess, startProcess |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public things.data.ThingsPropertyView properties
public things.data.ThingsPropertyView configProperties
public RendsiteLogger rootLogger
public RendsiteLogger systemLogger
public java.util.HashMap<java.lang.String,RendsiteLogger> namedLoggers
public things.common.WhoAmI myId
public java.lang.String root
public RendsiteConfiguration configuration
| Constructor Detail |
|---|
public SystemInterfaceStub(java.lang.String root,
things.data.ThingsPropertyView properties,
things.data.ThingsPropertyView configProperties,
RendsiteConfiguration configuration,
things.common.WhoAmI systemId)
throws java.lang.Throwable
root - the root of all the action.properties - used as local and global properties.configProperties - used as config properties, normally rooted at user.config. for the main server.configuration - the configuration. It must have the root logger set!systemId - the system id.
java.lang.Throwable| Method Detail |
|---|
public static SystemInterfaceStub getStub(java.lang.String root,
things.data.ThingsPropertyView properties,
things.data.ThingsPropertyView configProperties,
RendsiteConfiguration configuration,
things.common.WhoAmI systemId)
throws java.lang.Throwable
root - the root of all the action.properties - used as local and global properties.configProperties - used as config properties, normally rooted at user.config. for the main server.configuration - The RendSite configuration.systemId - the imposed system id.
java.lang.Throwable
public static SystemInterfaceStub getStub()
throws java.lang.Throwable
java.lang.Throwable
public things.thinger.io.conduits.ConduitController getSystemConduits()
throws things.thinger.SystemException
things.thinger.SystemExceptionConduitController
public things.thinger.io.Logger getSystemLogger()
throws things.thinger.SystemException
things.thinger.SystemExceptionLogger
public things.thinger.io.Logger getNamedLogger(java.lang.String name)
throws things.thinger.SystemException
name - the name. It will be unique. It's up to kernel on how the name is resolved.
things.thinger.SystemExceptionLogger
public things.thinger.ExpressionInterface getNamedExpressor(java.lang.String name)
throws things.common.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.common.ThingsExceptionExpressionInterface
public things.data.ThingsPropertyView getLocalProperties()
throws things.thinger.SystemException
things.thinger.SystemException
public things.data.ThingsPropertyViewReader getConfigProperties()
throws things.thinger.SystemException
things.thinger.SystemException
public things.data.ThingsPropertyView getSharedProperties()
throws things.thinger.SystemException
things.thinger.SystemException
public things.data.tables.Table<java.lang.String> getProcessList()
throws things.thinger.SystemException
The process list will be a Table.
things.thinger.SystemExceptionTable
public things.thinger.kernel.ThingsState getProcessState(java.lang.String id)
throws things.thinger.SystemException
If the process is not found, the state is ProcessInterface.ThingsState.STATE_INVALID.
NO CLEARANCE REQUIRED.
getProcessState in interface things.thinger.SystemInterfacegetProcessState in class SystemInterfaceStubBaseid - String id of the process.
things.thinger.SystemExceptionProcessInterface
public things.thinger.kernel.ProcessInterface getProcessInterface(java.lang.String id)
throws things.thinger.SystemException
getProcessInterface in interface things.thinger.SystemInterfacegetProcessInterface in class SystemInterfaceStubBaseid - String id of the process.
things.thinger.SystemExceptionProcessInterface
public void waitProcessDone(java.lang.String id)
throws things.thinger.SystemException,
java.lang.InterruptedException
If the process is not found, it will quietly return.
NO CLEARANCE REQUIRED.
waitProcessDone in interface things.thinger.SystemInterfacewaitProcessDone in class SystemInterfaceStubBaseid - String id of the process.
things.thinger.SystemException - for general errors or InterruptedException for thread control. Always let the InterruptedException out.
java.lang.InterruptedExceptionProcessInterface
public things.thinger.io.FileSystemLocator getLogLocal(java.lang.String id)
throws things.thinger.SystemException,
java.lang.InterruptedException
NO CLEARANCE REQUIRED.
getLogLocal in interface things.thinger.SystemInterfacegetLogLocal in class SystemInterfaceStubBaseid - String id of the process.
things.thinger.SystemException - for general errors or InterruptedException for thread control. Always let the InterruptedException out.
java.lang.InterruptedExceptionProcessInterface,
FileSystemLocator
public things.thing.THING loadThing(java.lang.String name)
throws things.thinger.SystemException
loadThing in interface things.thinger.SystemInterfaceloadThing in class SystemInterfaceStubBasethings.thinger.SystemException
public things.thing.MODULE loadModule(java.lang.String name)
throws things.thinger.SystemException
loadModule in interface things.thinger.SystemInterfaceloadModule in class SystemInterfaceStubBasename - the name that the loader can use to find it. Typically, the full class name.
things.thinger.SystemException
public java.lang.String runThing(java.lang.String name)
throws things.thinger.SystemException
runThing in interface things.thinger.SystemInterfacerunThing in class SystemInterfaceStubBasethings.thinger.SystemException
public java.lang.String runThing(java.lang.String name,
things.thinger.ExpressionInterface parentExpressor)
throws things.thinger.SystemException
runThing in interface things.thinger.SystemInterfacerunThing in class SystemInterfaceStubBasename - the resolvable name of the thing.parentExpressor - the parent expressor.
things.thinger.SystemException
public java.lang.String runThing(java.lang.String name,
things.thinger.ExpressionInterface parentExpressor,
things.data.ThingsPropertyView properties)
throws things.thinger.SystemException
runThing in interface things.thinger.SystemInterfacerunThing in class SystemInterfaceStubBasename - 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.SystemException
public things.thinger.SystemSuperInterface requestSuperSystemInterface()
throws things.thinger.SystemException
requestSuperSystemInterface in interface things.thinger.SystemInterfacerequestSuperSystemInterface in class SystemInterfaceStubBasethings.thinger.SystemException
public things.universe.Universe getUniverse(java.lang.String name)
throws things.thinger.SystemException
The stub version will only yield universe_testing. ever.
getUniverse in interface things.thinger.SystemInterfacegetUniverse in class SystemInterfaceStubBasename - the local name for the universe
things.thinger.SystemExceptionUniverse
public things.common.WhoAmI getCallingProcessId()
throws things.thinger.SystemException
things.thinger.SystemException
public things.data.ThingsPropertyTree getLocalPropertiesImplementation()
throws things.common.ThingsException
things.common.ThingsException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||