Class StandaloneJobGraphStore
- java.lang.Object
-
- org.apache.flink.runtime.jobmanager.StandaloneJobGraphStore
-
- All Implemented Interfaces:
GloballyCleanableResource,LocallyCleanableResource,JobGraphStore,JobGraphWriter
public class StandaloneJobGraphStore extends Object implements JobGraphStore
JobGraphinstances for JobManagers running inHighAvailabilityMode.NONE.All operations are NoOps, because
JobGraphinstances cannot be recovered in this recovery mode.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.flink.runtime.jobmanager.JobGraphStore
JobGraphStore.JobGraphListener
-
-
Constructor Summary
Constructors Constructor Description StandaloneJobGraphStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<org.apache.flink.api.common.JobID>getJobIds()Get all job ids of submitted job graphs to the submitted job graph store.voidputJobGraph(JobGraph jobGraph)Adds theJobGraphinstance.voidputJobResourceRequirements(org.apache.flink.api.common.JobID jobId, JobResourceRequirements jobResourceRequirements)Persistjob resource requirementsfor the given job.JobGraphrecoverJobGraph(org.apache.flink.api.common.JobID jobId)voidstart(JobGraphStore.JobGraphListener jobGraphListener)Starts theJobGraphStoreservice.voidstop()Stops theJobGraphStoreservice.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.runtime.jobmanager.JobGraphWriter
globalCleanupAsync, localCleanupAsync
-
-
-
-
Method Detail
-
start
public void start(JobGraphStore.JobGraphListener jobGraphListener) throws Exception
Description copied from interface:JobGraphStoreStarts theJobGraphStoreservice.- Specified by:
startin interfaceJobGraphStore- Throws:
Exception
-
stop
public void stop()
Description copied from interface:JobGraphStoreStops theJobGraphStoreservice.- Specified by:
stopin interfaceJobGraphStore
-
putJobGraph
public void putJobGraph(JobGraph jobGraph)
Description copied from interface:JobGraphWriterAdds theJobGraphinstance.If a job graph with the same
JobIDexists, it is replaced.- Specified by:
putJobGraphin interfaceJobGraphWriter
-
putJobResourceRequirements
public void putJobResourceRequirements(org.apache.flink.api.common.JobID jobId, JobResourceRequirements jobResourceRequirements)Description copied from interface:JobGraphWriterPersistjob resource requirementsfor the given job.- Specified by:
putJobResourceRequirementsin interfaceJobGraphWriter- Parameters:
jobId- job the given requirements belong tojobResourceRequirements- requirements to persist
-
getJobIds
public Collection<org.apache.flink.api.common.JobID> getJobIds()
Description copied from interface:JobGraphStoreGet all job ids of submitted job graphs to the submitted job graph store.- Specified by:
getJobIdsin interfaceJobGraphStore- Returns:
- Collection of submitted job ids
-
recoverJobGraph
public JobGraph recoverJobGraph(org.apache.flink.api.common.JobID jobId)
Description copied from interface:JobGraphStore- Specified by:
recoverJobGraphin interfaceJobGraphStore
-
-