public class StandaloneRunningJobsRegistry extends Object implements RunningJobsRegistry
RunningJobsRegistry.JobSchedulingStatus
Constructor and Description |
---|
StandaloneRunningJobsRegistry() |
Modifier and Type | Method and Description |
---|---|
void |
clearJob(JobID jobID)
Clear job state form the registry, usually called after job finish.
|
RunningJobsRegistry.JobSchedulingStatus |
getJobSchedulingStatus(JobID jobID)
Gets the scheduling status of a job.
|
void |
setJobFinished(JobID jobID)
Marks a job as completed.
|
void |
setJobRunning(JobID jobID)
Marks a job as running.
|
public void setJobRunning(JobID jobID)
RunningJobsRegistry
RunningJobsRegistry.getJobSchedulingStatus(JobID)
method will return RunningJobsRegistry.JobSchedulingStatus.RUNNING
.setJobRunning
in interface RunningJobsRegistry
jobID
- The id of the job.public void setJobFinished(JobID jobID)
RunningJobsRegistry
RunningJobsRegistry.getJobSchedulingStatus(JobID)
method will return RunningJobsRegistry.JobSchedulingStatus.DONE
.setJobFinished
in interface RunningJobsRegistry
jobID
- The id of the job.public RunningJobsRegistry.JobSchedulingStatus getJobSchedulingStatus(JobID jobID)
RunningJobsRegistry
getJobSchedulingStatus
in interface RunningJobsRegistry
jobID
- The id of the job to check.public void clearJob(JobID jobID)
RunningJobsRegistry
clearJob
in interface RunningJobsRegistry
jobID
- The id of the job to check.Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.