| java.lang.Object org.cougaar.lib.callback.UTILFilterCallbackAdapter org.cougaar.lib.callback.UTILBufferingCallback org.cougaar.lib.callback.UTILWorkflowCallback
All known Subclasses: org.cougaar.lib.callback.UTILMPWorkflowCallback,
UTILWorkflowCallback | public class UTILWorkflowCallback extends UTILBufferingCallback implements UTILRehydrateReactor(Code) | |
Filters for tasks with workflows, where the tasks
meet the test of isInteresting.
The reaction to a new workflow is simpler than
UTILSingleTaskWorkflowCallback. This is better
for threaded allocators, where we can't make assumptions
about how the tasks will be handled, like we can with
a one-at-a-time model.
|
Method Summary | |
protected void | debugInfo(Task subtask, boolean hasBeenAllocated) | protected UnaryPredicate | getPredicate()
Filters for tasks that have workflows.
They are then tested
against the plugin-specific interestingTask test.
set logger.isDebugEnabled() to true if you want to see logger.info on every
handled task. | protected boolean | isWellFormed(Task task) Examines an incoming task to see if it is well formed.
Looks at timing information, and asks listener to examine
task as well. | public void | reactToRehydrate() |
debugInfo | protected void debugInfo(Task subtask, boolean hasBeenAllocated)(Code) | | |
getPredicate | protected UnaryPredicate getPredicate()(Code) | |
Filters for tasks that have workflows.
They are then tested
against the plugin-specific interestingTask test.
set logger.isDebugEnabled() to true if you want to see logger.info on every
handled task. That is, which tasks have been
allocated and which failed to allocate.
(Previously handled tasks will not be given to the listener.)
anonymous UnaryPredicate inner class |
isWellFormed | protected boolean isWellFormed(Task task)(Code) | | Examines an incoming task to see if it is well formed.
Looks at timing information, and asks listener to examine
task as well. If task is ill formed, asks listener to handle
it (probably publish as a failed plan element).
|
reactToRehydrate | public void reactToRehydrate()(Code) | | place where you can react to rehydration event
|
Fields inherited from org.cougaar.lib.callback.UTILBufferingCallback | boolean listenerIsBuffering(Code)(Java Doc)
|
|
|