public class SingleJobJobGraphStore extends Object implements JobGraphStore
JobGraphStore implementation for a single job.JobGraphStore.JobGraphListener| Constructor and Description |
|---|
SingleJobJobGraphStore(JobGraph jobGraph) |
| Modifier and Type | Method and Description |
|---|---|
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 SingleJobJobGraphStore(JobGraph jobGraph)
public void start(JobGraphStore.JobGraphListener jobGraphListener) throws Exception
JobGraphStoreJobGraphStore service.start in interface JobGraphStoreExceptionpublic void stop()
throws Exception
JobGraphStoreJobGraphStore service.stop in interface JobGraphStoreExceptionpublic JobGraph recoverJobGraph(org.apache.flink.api.common.JobID jobId) throws Exception
JobGraphStorerecoverJobGraph in interface JobGraphStoreExceptionpublic void putJobGraph(JobGraph jobGraph) throws Exception
JobGraphWriterJobGraph instance.
If a job graph with the same JobID exists, it is replaced.
putJobGraph in interface JobGraphWriterExceptionpublic void removeJobGraph(org.apache.flink.api.common.JobID jobId)
JobGraphWriterJobGraph with the given JobID if it exists.removeJobGraph in interface 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 in interface JobGraphWriterjobId - specifying the job to release the locks forpublic Collection<org.apache.flink.api.common.JobID> getJobIds()
JobGraphStoregetJobIds in interface JobGraphStoreCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.