public class JobManager
extends java.lang.Object
| Constructor | Description |
|---|---|
JobManager(Tool tool) |
Constructs a job manager for a specified tool.
|
| Modifier and Type | Method | 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.
|
java.util.Collection<Tool> |
getTools(java.lang.Object obj) |
Gets the tools interested in the specified object.
|
void |
log(Job job,
Tool tool) |
Logs a job and tool into the manager.
|
void |
sendReplies(java.lang.Object obj) |
Replies to tools interested in the specified object.
|
void |
sendReplies(Job job) |
Replies to tools interested in the specified job.
|
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 java.util.Collection<Tool> getTools(java.lang.Object obj)
obj - the objectpublic void sendReplies(java.lang.Object obj)
obj - the objectpublic void sendReplies(Job job)
job - the job