@Contract
public interface JobManager
| Modifier and Type | Interface and Description |
|---|---|
static class |
JobManager.Checkpoint
Container for checkpoint related objects
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkpoint(AdminCommand command,
AdminCommandContext context)
Stores current command state.
|
void |
checkpoint(AdminCommandContext context,
Serializable data)
Stores current command state.
|
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
|
<T extends Serializable> |
loadCheckpointData(String jobId)
Load checkpoint related data.
|
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()
void checkpoint(AdminCommand command, AdminCommandContext context) throws IOException
IOExceptionvoid checkpoint(AdminCommandContext context, Serializable data) throws IOException
IOException<T extends Serializable> T loadCheckpointData(String jobId) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionCopyright © 2017–2020 Eclipse Foundation. All rights reserved.