public class StandaloneJobGraphStore extends Object implements JobGraphStore
JobGraph instances for JobManagers running in HighAvailabilityMode.NONE.
All operations are NoOps, because JobGraph instances cannot be recovered in this
recovery mode.
JobGraphStore.JobGraphListener| 构造器和说明 |
|---|
StandaloneJobGraphStore() |
| 限定符和类型 | 方法和说明 |
|---|---|
Collection<org.apache.flink.api.common.JobID> |
getJobIds()
Get all job ids of submitted job graphs to the submitted job graph store.
|
void |
putJobGraph(JobGraph jobGraph)
Adds the
JobGraph instance. |
JobGraph |
recoverJobGraph(org.apache.flink.api.common.JobID jobId)
|
void |
releaseJobGraph(org.apache.flink.api.common.JobID jobId)
Releases the locks on the specified
JobGraph. |
void |
removeJobGraph(org.apache.flink.api.common.JobID jobId)
Removes the
JobGraph with the given JobID if it exists. |
void |
start(JobGraphStore.JobGraphListener jobGraphListener)
Starts the
JobGraphStore service. |
void |
stop()
Stops the
JobGraphStore service. |
public void start(JobGraphStore.JobGraphListener jobGraphListener) throws Exception
JobGraphStoreJobGraphStore service.start 在接口中 JobGraphStoreExceptionpublic void stop()
JobGraphStoreJobGraphStore service.stop 在接口中 JobGraphStorepublic void putJobGraph(JobGraph jobGraph)
JobGraphWriterJobGraph instance.
If a job graph with the same JobID exists, it is replaced.
putJobGraph 在接口中 JobGraphWriterpublic void removeJobGraph(org.apache.flink.api.common.JobID jobId)
JobGraphWriterJobGraph with the given JobID if it exists.removeJobGraph 在接口中 JobGraphWriterpublic void releaseJobGraph(org.apache.flink.api.common.JobID jobId)
JobGraphWriterJobGraph.
Releasing the locks allows that another instance can delete the job from the JobGraphStore.
releaseJobGraph 在接口中 JobGraphWriterjobId - specifying the job to release the locks forpublic Collection<org.apache.flink.api.common.JobID> getJobIds()
JobGraphStoregetJobIds 在接口中 JobGraphStorepublic JobGraph recoverJobGraph(org.apache.flink.api.common.JobID jobId)
JobGraphStorerecoverJobGraph 在接口中 JobGraphStoreCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.