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| Constructor and Description |
|---|
StandaloneJobGraphStore() |
| 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. |
void |
putJobResourceRequirements(org.apache.flink.api.common.JobID jobId,
JobResourceRequirements jobResourceRequirements)
Persist
job resource requirements for the given job. |
JobGraph |
recoverJobGraph(org.apache.flink.api.common.JobID jobId)
|
void |
start(JobGraphStore.JobGraphListener jobGraphListener)
Starts the
JobGraphStore service. |
void |
stop()
Stops the
JobGraphStore service. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitglobalCleanupAsync, localCleanupAsyncpublic void start(JobGraphStore.JobGraphListener jobGraphListener) throws Exception
JobGraphStoreJobGraphStore service.start in interface JobGraphStoreExceptionpublic void stop()
JobGraphStoreJobGraphStore service.stop in interface JobGraphStorepublic void putJobGraph(JobGraph jobGraph)
JobGraphWriterJobGraph instance.
If a job graph with the same JobID exists, it is replaced.
putJobGraph in interface JobGraphWriterpublic void putJobResourceRequirements(org.apache.flink.api.common.JobID jobId,
JobResourceRequirements jobResourceRequirements)
JobGraphWriterjob resource requirements for the given job.putJobResourceRequirements in interface JobGraphWriterjobId - job the given requirements belong tojobResourceRequirements - requirements to persistpublic Collection<org.apache.flink.api.common.JobID> getJobIds()
JobGraphStoregetJobIds in interface JobGraphStorepublic JobGraph recoverJobGraph(org.apache.flink.api.common.JobID jobId)
JobGraphStorerecoverJobGraph in interface JobGraphStoreCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.