|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This interface extends the job manager interface. A work manager is in fact a job manager that also manages a tool manager instance. This interface is also the base of the work service.
| Method Summary | |
void |
addJob(IJob job,
int priority)
Add a new job. |
IJob |
addJob(java.lang.String toolName,
int userID,
java.lang.String ref,
Parameter[] data,
long maxRuntime)
Add a new job. |
boolean |
anonymousJobsAllowed()
A flag id anonymous jobs are allowed or an exception will be raised when traing to register such a job. |
void |
cancelJob(IJob job,
boolean forceStop)
Removes the job with the given id from the manager. |
IJob |
getJob(int job)
Return a job's execution status |
java.lang.String |
getName()
Return the manager's name (in case there are several managers running). |
IToolManager |
getToolManager()
Get the underlying tool manager. |
java.util.Iterator |
searchJobs(int jobID,
java.lang.String toolName,
int userID,
java.lang.String ref,
short status)
This is the main acecess metho for searching within the manager's job db. |
void |
stop()
Stops the internal thread pol immedeately |
| Methods inherited from interface org.jwarp.service.configuration.IConfigurable |
configure |
| Method Detail |
public java.util.Iterator searchJobs(int jobID,
java.lang.String toolName,
int userID,
java.lang.String ref,
short status)
throws java.lang.SecurityException
jobID - The job's id or -1toolName - The job's tool nameThe - userID or -1The - jobs status or IJob.STATUS_ANYowner - The owning objectuser - The user who triggers the request
public IJob addJob(java.lang.String toolName,
int userID,
java.lang.String ref,
Parameter[] data,
long maxRuntime)
throws NotFoundException,
NotAvailableException,
ConfigurationException
toolName - The name of the tool to be executedactivity - The activity whos triggering the jobuserID - The user who's triggering the jobdata - The parameters to be passed to the executing tool.NotAvailableException - if the requested tool is temporarely not available
public void addJob(IJob job,
int priority)
throws ThreadPoolStoppedException
toolName - The name of the tool to be executedactivity - The activity whos triggering the jobuserID - The user who's triggering the jobdata - The parameters to be passed to the executing tool.NotAvailableException - if the requested tool is temporarely not available
public IJob getJob(int job)
throws NotFoundException
public void cancelJob(IJob job,
boolean forceStop)
throws NotFoundException
id - The job's id.forecStop - Should a yet running job stopped immedeatelypublic boolean anonymousJobsAllowed()
public IToolManager getToolManager()
public void stop()
public java.lang.String getName()
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||