public class JobManager
extends java.lang.Object
Constructor and Description |
---|
JobManager(Tool tool)
Constructs a job manager for a specified tool.
|
Modifier and Type | Method and Description |
---|---|
void |
associate(Job job,
java.lang.Object obj)
Associates a job with the specified object.
|
Job[] |
getJobs(java.lang.Object obj)
Gets the jobs associated with the specified object.
|
java.lang.Object[] |
getObjects(Job job)
Gets the objects associated with the specified job.
|
void |
log(Job job,
Tool tool)
Logs a job and tool into the manager.
|
void |
sendReplies(Job job)
Replies to tools interested in the specified job.
|
void |
sendReplies(java.lang.Object obj)
Replies to tools interested in the specified object.
|
public JobManager(Tool tool)
tool
- the toolpublic void log(Job job, Tool tool)
job
- the jobtool
- a tool interested in the jobpublic void associate(Job job, java.lang.Object obj)
job
- the jobobj
- the objectpublic Job[] getJobs(java.lang.Object obj)
obj
- the objectpublic java.lang.Object[] getObjects(Job job)
job
- the jobpublic void sendReplies(java.lang.Object obj)
obj
- the objectpublic void sendReplies(Job job)
job
- the job