@Contract
public interface JobManager
| Modifier and Type | Method and Description |
|---|---|
Job |
get(String id)
This method is used to get a job by its id
|
Object |
getCompletedJobForId(String id)
This is a convenience method to get a completed job with an id
|
JobInfos |
getCompletedJobs(File jobs)
This will get the list of jobs from the job registry which have completed
|
Iterator<Job> |
getJobs()
This method will return the list of jobs in the job registry
|
File |
getJobsFile()
This is used to get the jobs file for a job
|
String |
getNewId()
This method is used to generate a unique id for a managed job
|
Object |
purgeCompletedJobForId(String id)
This is used to purge a completed job whose id is provided
|
void |
purgeJob(String id)
This will purge the job associated with the id from the registry
|
void |
registerJob(Job instance)
This method will register the job in the job registry
|
String getNewId()
void registerJob(Job instance) throws IllegalArgumentException
instance - job to be registeredIllegalArgumentExceptionIterator<Job> getJobs()
Job get(String id)
id - The id to look up the job in the job registryvoid purgeJob(String id)
id - the id of the Job which needs to be purgedJobInfos getCompletedJobs(File jobs)
Object getCompletedJobForId(String id)
id - the completed Job whose id needs to be looked upObject purgeCompletedJobForId(String id)
id - the id of the Job which needs to be purgedFile getJobsFile()
Copyright © 2013. All Rights Reserved.