public class ZooKeeperRunningJobsRegistry extends Object implements RunningJobsRegistry
RunningJobsRegistry.JobSchedulingStatus| Constructor and Description |
|---|
ZooKeeperRunningJobsRegistry(org.apache.curator.framework.CuratorFramework client,
org.apache.flink.configuration.Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearJob(org.apache.flink.api.common.JobID jobID)
Clear job state form the registry, usually called after job finish.
|
RunningJobsRegistry.JobSchedulingStatus |
getJobSchedulingStatus(org.apache.flink.api.common.JobID jobID)
Gets the scheduling status of a job.
|
void |
setJobFinished(org.apache.flink.api.common.JobID jobID)
Marks a job as completed.
|
void |
setJobRunning(org.apache.flink.api.common.JobID jobID)
Marks a job as running.
|
public ZooKeeperRunningJobsRegistry(org.apache.curator.framework.CuratorFramework client,
org.apache.flink.configuration.Configuration configuration)
public void setJobRunning(org.apache.flink.api.common.JobID jobID)
throws IOException
RunningJobsRegistryRunningJobsRegistry.getJobSchedulingStatus(JobID)
method will return RunningJobsRegistry.JobSchedulingStatus.RUNNING.setJobRunning in interface RunningJobsRegistryjobID - The id of the job.IOException - Thrown when the communication with the highly-available storage or registry
failed and could not be retried.public void setJobFinished(org.apache.flink.api.common.JobID jobID)
throws IOException
RunningJobsRegistryRunningJobsRegistry.getJobSchedulingStatus(JobID)
method will return RunningJobsRegistry.JobSchedulingStatus.DONE.setJobFinished in interface RunningJobsRegistryjobID - The id of the job.IOException - Thrown when the communication with the highly-available storage or registry
failed and could not be retried.public RunningJobsRegistry.JobSchedulingStatus getJobSchedulingStatus(org.apache.flink.api.common.JobID jobID) throws IOException
RunningJobsRegistrygetJobSchedulingStatus in interface RunningJobsRegistryjobID - The id of the job to check.IOException - Thrown when the communication with the highly-available storage or registry
failed and could not be retried.public void clearJob(org.apache.flink.api.common.JobID jobID)
throws IOException
RunningJobsRegistryclearJob in interface RunningJobsRegistryjobID - The id of the job to check.IOException - Thrown when the communication with the highly-available storage or registry
failed and could not be retried.Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.