Interface OfficeMetaData
- All Known Implementing Classes:
OfficeMetaDataImpl
public interface OfficeMetaData
Meta-data for the
Office.- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptioncreateProcess(FlowMetaData flowMetaData, Object parameter, FlowCallback callback, ThreadState callbackThreadState) Creates a newProcessState.createProcessIdentifier(ProcessState processState) Creates aProcessIdentifierfor a newProcessState.Creates aStateManager.getExecutor(ProcessIdentifier processIdentifier) Obtains theExecutorfor theProcessState.Obtains theFunctionLoopfor theOffice.Obtains theManagedExecutionFactoryfor thisOffice.Obtains theManagedFunctionLocator.ManagedFunctionMetaData<?,?>[] Obtains theMonitorClockfor theOffice.getOfficeManager(ProcessIdentifier processIdentifier) Obtains theOfficeManagerfor theProcessState.Obtains the name of theOffice.Obtains theProcessMetaDatafor processes within thisOffice.Obtains theOfficeStartupFunctioninstances for thisOffice.invokeProcess(FlowMetaData flowMetaData, Object parameter, long delay, FlowCallback callback, ThreadState callbackThreadState, ManagedObject inputManagedObject, ManagedObjectMetaData<?> inputManagedObjectMetaData, int processBoundIndexForInputManagedObject) Invokes aProcessState.Sets up the defaultOfficeManager.
-
Method Details
-
getOfficeName
String getOfficeName()Obtains the name of theOffice.- Returns:
- Name of the
Office.
-
setupDefaultOfficeManager
OfficeManager setupDefaultOfficeManager()Sets up the defaultOfficeManager.- Returns:
- Default
OfficeManager.
-
createProcessIdentifier
Creates aProcessIdentifierfor a newProcessState.- Parameters:
processState- NewProcessState.- Returns:
- New
ProcessIdentifier.
-
getOfficeManager
Obtains theOfficeManagerfor theProcessState.- Parameters:
processIdentifier-ProcessIdentifierof theProcessState.- Returns:
OfficeManagerof theOffice.
-
getExecutor
Obtains theExecutorfor theProcessState.- Parameters:
processIdentifier-ProcessIdentifierof theProcessState.- Returns:
Executorfor theProcessState.
-
getMonitorClock
MonitorClock getMonitorClock()Obtains theMonitorClockfor theOffice.- Returns:
MonitorClockfor theOffice.
-
getProcessMetaData
ProcessMetaData getProcessMetaData()Obtains theProcessMetaDatafor processes within thisOffice.- Returns:
ProcessMetaDatafor processes within thisOffice.
-
getFunctionLoop
FunctionLoop getFunctionLoop()Obtains theFunctionLoopfor theOffice.- Returns:
FunctionLoopfor theOffice.
-
getManagedFunctionMetaData
ManagedFunctionMetaData<?,?>[] getManagedFunctionMetaData()- Returns:
ManagedFunctionMetaDatainstances of thisOffice.
-
getManagedFunctionLocator
ManagedFunctionLocator getManagedFunctionLocator()Obtains theManagedFunctionLocator.- Returns:
ManagedFunctionLocator.
-
getStartupFunctions
OfficeStartupFunction[] getStartupFunctions()Obtains theOfficeStartupFunctioninstances for thisOffice.- Returns:
OfficeStartupFunctioninstances for thisOffice.
-
getExecutive
Executive getExecutive() -
getManagedExecutionFactory
ManagedExecutionFactory getManagedExecutionFactory()Obtains theManagedExecutionFactoryfor thisOffice.- Returns:
ManagedExecutionFactoryfor thisOffice.
-
createProcess
FunctionState createProcess(FlowMetaData flowMetaData, Object parameter, FlowCallback callback, ThreadState callbackThreadState) Creates a newProcessState.- Parameters:
flowMetaData-FlowMetaDataof the startingFunctionStatefor theProcessState.parameter- Parameter to the startingFunctionState.callback- OptionalFlowCallbackof theProcessState. May benull.callbackThreadState- OptionalThreadStatefor theFlowCallback. May benull.- Returns:
FunctionStateto start processing theProcessState.
-
invokeProcess
ProcessManager invokeProcess(FlowMetaData flowMetaData, Object parameter, long delay, FlowCallback callback, ThreadState callbackThreadState, ManagedObject inputManagedObject, ManagedObjectMetaData<?> inputManagedObjectMetaData, int processBoundIndexForInputManagedObject) throws InvalidParameterTypeException Invokes aProcessState.- Parameters:
flowMetaData-FlowMetaDataof the startingFunctionStatefor theProcessState.parameter- Parameter to the startingFunctionState.delay- Millisecond delay in invoking theProcessState. 0 (or negative value) will invoke immediately on the currentThread.callback- OptionalFlowCallbackof theProcessState. May benull.callbackThreadState- OptionalThreadStatefor theFlowCallback. May benull.inputManagedObject-ManagedObjectthat possibly invoked the newProcessState. This may benulland if so the remaining parameters will be ignored.inputManagedObjectMetaData-ManagedObjectMetaDatafor theManagedObjectthat invoked the newProcessState. Should theManagedObjectbe provided this must then also be provided.processBoundIndexForInputManagedObject- Index of theManagedObjectwithin theProcessState. Ignored ifManagedObjectpassed in isnull.- Returns:
ProcessManagerfor the invokedProcessState.- Throws:
InvalidParameterTypeException- Should the type of parameter be invalid for the initialManagedFunction.
-
createStateManager
StateManager createStateManager()Creates aStateManager.- Returns:
Statement.
-