public class ZooKeeperRunningJobsRegistry extends Object implements RunningJobsRegistry
RunningJobsRegistry.JobSchedulingStatus| 构造器和说明 |
|---|
ZooKeeperRunningJobsRegistry(org.apache.flink.shaded.curator4.org.apache.curator.framework.CuratorFramework client,
org.apache.flink.configuration.Configuration configuration) |
| 限定符和类型 | 方法和说明 |
|---|---|
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.flink.shaded.curator4.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 在接口中 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 在接口中 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 在接口中 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 在接口中 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–2022 The Apache Software Foundation. All rights reserved.