Interface OfficeMetaData
-
- All Known Implementing Classes:
OfficeMetaDataImpl
public interface OfficeMetaData
Meta-data for theOffice
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
-
-
-
Method Detail
-
getOfficeName
java.lang.String getOfficeName()
Obtains the name of theOffice
.- Returns:
- Name of the
Office
.
-
setupDefaultOfficeManager
OfficeManager setupDefaultOfficeManager()
Sets up the defaultOfficeManager
.- Returns:
- Default
OfficeManager
.
-
createProcessIdentifier
ProcessIdentifier createProcessIdentifier(ProcessState processState)
Creates aProcessIdentifier
for a newProcessState
.- Parameters:
processState
- NewProcessState
.- Returns:
- New
ProcessIdentifier
.
-
getOfficeManager
OfficeManager getOfficeManager(ProcessIdentifier processIdentifier)
Obtains theOfficeManager
for theProcessState
.- Parameters:
processIdentifier
-ProcessIdentifier
of theProcessState
.- Returns:
OfficeManager
of theOffice
.
-
getExecutor
java.util.concurrent.Executor getExecutor(ProcessIdentifier processIdentifier)
Obtains theExecutor
for theProcessState
.- Parameters:
processIdentifier
-ProcessIdentifier
of theProcessState
.- Returns:
Executor
for theProcessState
.
-
getMonitorClock
MonitorClock getMonitorClock()
Obtains theMonitorClock
for theOffice
.- Returns:
MonitorClock
for theOffice
.
-
getProcessMetaData
ProcessMetaData getProcessMetaData()
Obtains theProcessMetaData
for processes within thisOffice
.- Returns:
ProcessMetaData
for processes within thisOffice
.
-
getFunctionLoop
FunctionLoop getFunctionLoop()
Obtains theFunctionLoop
for theOffice
.- Returns:
FunctionLoop
for theOffice
.
-
getManagedFunctionMetaData
ManagedFunctionMetaData<?,?>[] getManagedFunctionMetaData()
- Returns:
ManagedFunctionMetaData
instances of thisOffice
.
-
getManagedFunctionLocator
ManagedFunctionLocator getManagedFunctionLocator()
Obtains theManagedFunctionLocator
.- Returns:
ManagedFunctionLocator
.
-
getStartupFunctions
OfficeStartupFunction[] getStartupFunctions()
Obtains theOfficeStartupFunction
instances for thisOffice
.- Returns:
OfficeStartupFunction
instances for thisOffice
.
-
getManagedExecutionFactory
ManagedExecutionFactory getManagedExecutionFactory()
Obtains theManagedExecutionFactory
for thisOffice
.- Returns:
ManagedExecutionFactory
for thisOffice
.
-
createProcess
FunctionState createProcess(FlowMetaData flowMetaData, java.lang.Object parameter, FlowCallback callback, ThreadState callbackThreadState)
Creates a newProcessState
.- Parameters:
flowMetaData
-FlowMetaData
of the startingFunctionState
for theProcessState
.parameter
- Parameter to the startingFunctionState
.callback
- OptionalFlowCallback
of theProcessState
. May benull
.callbackThreadState
- OptionalThreadState
for theFlowCallback
. May benull
.- Returns:
FunctionState
to start processing theProcessState
.
-
invokeProcess
ProcessManager invokeProcess(FlowMetaData flowMetaData, java.lang.Object parameter, long delay, FlowCallback callback, ThreadState callbackThreadState, ManagedObject inputManagedObject, ManagedObjectMetaData<?> inputManagedObjectMetaData, int processBoundIndexForInputManagedObject) throws InvalidParameterTypeException
Invokes aProcessState
.- Parameters:
flowMetaData
-FlowMetaData
of the startingFunctionState
for theProcessState
.parameter
- Parameter to the startingFunctionState
.delay
- Millisecond delay in invoking theProcessState
. 0 (or negative value) will invoke immediately on the currentThread
.callback
- OptionalFlowCallback
of theProcessState
. May benull
.callbackThreadState
- OptionalThreadState
for theFlowCallback
. May benull
.inputManagedObject
-ManagedObject
that possibly invoked the newProcessState
. This may benull
and if so the remaining parameters will be ignored.inputManagedObjectMetaData
-ManagedObjectMetaData
for theManagedObject
that invoked the newProcessState
. Should theManagedObject
be provided this must then also be provided.processBoundIndexForInputManagedObject
- Index of theManagedObject
within theProcessState
. Ignored ifManagedObject
passed in isnull
.- Returns:
ProcessManager
for the invokedProcessState
.- Throws:
InvalidParameterTypeException
- Should the type of parameter be invalid for the initialManagedFunction
.
-
createStateManager
StateManager createStateManager()
Creates aStateManager
.- Returns:
Statement
.
-
-