| org.cougaar.core.thread.ThreadListener
All known Subclasses: org.cougaar.core.thread.SchedulerWatcher, org.cougaar.mts.std.DestinationThreadConstrictor, org.cougaar.core.plugin.freeze.FreezeServlet, org.cougaar.core.thread.PercentageLoadSelector, org.cougaar.core.plugin.freeze.FreezeTargetPlugin, org.cougaar.mts.std.PrioritizedThreadsAspect, org.cougaar.core.thread.AgentLoadSensorPlugin,
ThreadListener | public interface ThreadListener (Code) | | Objects which wish to subscribe to the ThreadListenerService should
implement this interface. The methods in the API are all callback
from the corresponding ThreadService.
|
Method Summary | |
void | rightGiven(String scheduler) Indicates that the given scheduler has been allocated a run-
right, which it will use to run one of its Schedulables. | void | rightReturned(String consumer) Indicates that some running Schedulable managed by the given
Scheduler has given up its run-right. | void | threadDequeued(Schedulable schedulable, Object consumer) Indicates that the given Schedulable, which was previously
queued, has now been dequeued and is about to run. | void | threadQueued(Schedulable schedulable, Object consumer) Indicates that the given Schedulable has been queued because it
was unable to to run. | void | threadStarted(Schedulable schedulable, Object consumer) Indicates that the given Schedulable is about to start
running. | void | threadStopped(Schedulable schedulable, Object consumer) Indicates that the given Schedulable has just stopped
running. |
rightGiven | void rightGiven(String scheduler)(Code) | | Indicates that the given scheduler has been allocated a run-
right, which it will use to run one of its Schedulables. That
Schedulable might be a queued one or might be a new one asking
to start.
|
rightReturned | void rightReturned(String consumer)(Code) | | Indicates that some running Schedulable managed by the given
Scheduler has given up its run-right.
|
threadDequeued | void threadDequeued(Schedulable schedulable, Object consumer)(Code) | | Indicates that the given Schedulable, which was previously
queued, has now been dequeued and is about to run.
|
threadQueued | void threadQueued(Schedulable schedulable, Object consumer)(Code) | | Indicates that the given Schedulable has been queued because it
was unable to to run.
|
threadStarted | void threadStarted(Schedulable schedulable, Object consumer)(Code) | | Indicates that the given Schedulable is about to start
running. This will be called from within the Schedulable's own
thread.
|
threadStopped | void threadStopped(Schedulable schedulable, Object consumer)(Code) | | Indicates that the given Schedulable has just stopped
running. This will be called from within the Schedulable's own
thread.
|
|
|