|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.server.job.JPPFJobManager
public class JPPFJobManager
Instances of this class manage and monitor the jobs throughout their processing within the JPPF driver.
| Field Summary | |
|---|---|
protected List<JobListener> |
eventListeners
The list of registered listeners. |
| Constructor Summary | |
|---|---|
JPPFJobManager()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
addJobListener(JobListener listener)
Add a listener to the list of listeners. |
void |
close()
Close this job manager and release its resources. |
Set<String> |
getAllJobIds()
Get the set of ids for all the jobs currently queued or executing. |
BundleWrapper |
getBundleForJob(String jobUuid)
Get the queued bundle wrapper for the specified job. |
List<JobListener> |
getJobListeners()
return a list of all the registered listee ners. |
List<ChannelBundlePair> |
getNodesForJob(String jobUuid)
Get all the nodes to which a all or part of a job is dispatched. |
void |
jobDispatched(BundleWrapper bundleWrapper,
ChannelWrapper channel)
Called when all or part of a job is dispatched to a node. |
void |
jobEnded(BundleWrapper bundleWrapper)
Called when a job is complete and returned to the client. |
void |
jobQueued(BundleWrapper bundleWrapper)
Called when a job is added to the server queue. |
void |
jobReturned(BundleWrapper bundleWrapper,
ChannelWrapper channel)
Called when all or part of a job has returned from a node. |
void |
jobUpdated(BundleWrapper bundleWrapper)
Called when a job is added to the server queue. |
void |
newBundle(QueueEvent event)
Called when a queue event occurrs. |
void |
removeJobListener(JobListener listener)
Remove a listener from the list of listeners. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected List<JobListener> eventListeners
| Constructor Detail |
|---|
public JPPFJobManager()
| Method Detail |
|---|
public List<ChannelBundlePair> getNodesForJob(String jobUuid)
jobUuid - the id of the job.
SelectableChannel instances.public Set<String> getAllJobIds()
public BundleWrapper getBundleForJob(String jobUuid)
jobUuid - the id of the job to look for.
BundleWrapper instance, or null if the job is not queued anymore.
public void jobDispatched(BundleWrapper bundleWrapper,
ChannelWrapper channel)
bundleWrapper - the dispatched job.channel - the node to which the job is dispatched.
public void jobReturned(BundleWrapper bundleWrapper,
ChannelWrapper channel)
bundleWrapper - the returned job.channel - the node to which the job is dispatched.public void jobQueued(BundleWrapper bundleWrapper)
bundleWrapper - the queued job.public void jobEnded(BundleWrapper bundleWrapper)
bundleWrapper - the completed job.public void jobUpdated(BundleWrapper bundleWrapper)
bundleWrapper - the queued job.public void newBundle(QueueEvent event)
newBundle in interface QueueListenerevent - a queue event.QueueListener.newBundle(org.jppf.server.queue.QueueEvent)public void close()
public void addJobListener(JobListener listener)
listener - the listener to add to the list.public void removeJobListener(JobListener listener)
listener - the listener to rmeove from the list.public List<JobListener> getJobListeners()
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||