public class StandaloneSubmittedJobGraphStore extends Object implements SubmittedJobGraphStore
SubmittedJobGraph instances for JobManagers running in HighAvailabilityMode.NONE.
All operations are NoOps, because JobGraph instances cannot be recovered in this
recovery mode.
SubmittedJobGraphStore.SubmittedJobGraphListener| Constructor and Description |
|---|
StandaloneSubmittedJobGraphStore() |
| 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(SubmittedJobGraph jobGraph)
Adds the
SubmittedJobGraph instance. |
SubmittedJobGraph |
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
SubmittedJobGraph with the given JobID if it exists. |
void |
start(SubmittedJobGraphStore.SubmittedJobGraphListener jobGraphListener)
Starts the
SubmittedJobGraphStore service. |
void |
stop()
Stops the
SubmittedJobGraphStore service. |
public void start(SubmittedJobGraphStore.SubmittedJobGraphListener jobGraphListener) throws Exception
SubmittedJobGraphStoreSubmittedJobGraphStore service.start in interface SubmittedJobGraphStoreExceptionpublic void stop()
SubmittedJobGraphStoreSubmittedJobGraphStore service.stop in interface SubmittedJobGraphStorepublic void putJobGraph(SubmittedJobGraph jobGraph)
SubmittedJobGraphStoreSubmittedJobGraph instance.
If a job graph with the same JobID exists, it is replaced.
putJobGraph in interface SubmittedJobGraphStorepublic void removeJobGraph(org.apache.flink.api.common.JobID jobId)
SubmittedJobGraphStoreSubmittedJobGraph with the given JobID if it exists.removeJobGraph in interface SubmittedJobGraphStorepublic void releaseJobGraph(org.apache.flink.api.common.JobID jobId)
SubmittedJobGraphStoreJobGraph.
Releasing the locks allows that another instance can delete the job from
the SubmittedJobGraphStore.releaseJobGraph in interface SubmittedJobGraphStorejobId - specifying the job to release the locks forpublic Collection<org.apache.flink.api.common.JobID> getJobIds()
SubmittedJobGraphStoregetJobIds in interface SubmittedJobGraphStorepublic SubmittedJobGraph recoverJobGraph(org.apache.flink.api.common.JobID jobId)
SubmittedJobGraphStorerecoverJobGraph in interface SubmittedJobGraphStoreCopyright © 2014–2019 The Apache Software Foundation. All rights reserved.