|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.officefloor.frame.impl.execute.office.WorkManagerImpl
public class WorkManagerImpl
Implementation of the WorkManager.
| Constructor Summary | |
|---|---|
WorkManagerImpl(WorkMetaData<?> workMetaData,
OfficeMetaData officeMetaData,
ProcessTicker processTicker)
Initiate. |
|
| Method Summary | |
|---|---|
TaskManager |
getTaskManager(String taskName)
Obtains the TaskManager for the named Task. |
String[] |
getTaskNames()
Obtains the names of the TaskManager instances managed by this
WorkManager. |
Class<?> |
getWorkParameterType()
Obtains the parameter type for invoking the Work. |
ProcessFuture |
invokeWork(Object parameter)
Invokes a new instance of Work which is done within the
Office. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WorkManagerImpl(WorkMetaData<?> workMetaData,
OfficeMetaData officeMetaData,
ProcessTicker processTicker)
workMetaData - WorkMetaData.officeMetaData - OfficeMetaData.processTicker - ProcessTicker.| Method Detail |
|---|
public Class<?> getWorkParameterType()
throws NoInitialTaskException
WorkManagerWork.
getWorkParameterType in interface WorkManagerWork. Will be
null if no parameter to the Work.
NoInitialTaskException - If Work does not have an initial Task.
public ProcessFuture invokeWork(Object parameter)
throws NoInitialTaskException,
InvalidParameterTypeException
WorkManagerWork which is done within the
Office.
invokeWork in interface WorkManagerparameter - Parameter for the first Task of the Work.
ProcessFuture to indicate when the ProcessState
executing the Work has completed.
NoInitialTaskException - If Work does not have an initial Task.
InvalidParameterTypeException - Should the parameter be of incorrect type for the initial
Task.public String[] getTaskNames()
WorkManager
Obtains the names of the TaskManager instances managed by this
WorkManager.
This allows to dynamically manage this WorkManager.
getTaskNames in interface WorkManagerTaskManager instances managed by this
WorkManager.
public TaskManager getTaskManager(String taskName)
throws UnknownTaskException
WorkManagerTaskManager for the named Task.
getTaskManager in interface WorkManagerTaskManager for the named Task.
UnknownTaskException - If unknown Task name.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||