Class SingleJobJobGraphStore
- java.lang.Object
-
- org.apache.flink.runtime.dispatcher.SingleJobJobGraphStore
-
- All Implemented Interfaces:
GloballyCleanableResource,LocallyCleanableResource,JobGraphStore,JobGraphWriter
public class SingleJobJobGraphStore extends Object implements JobGraphStore
JobGraphStoreimplementation for a single job.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.flink.runtime.jobmanager.JobGraphStore
JobGraphStore.JobGraphListener
-
-
Constructor Summary
Constructors Constructor Description SingleJobJobGraphStore(JobGraph jobGraph)
-
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
-
-
-
-
Constructor Detail
-
SingleJobJobGraphStore
public SingleJobJobGraphStore(JobGraph jobGraph)
-
-
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() throws ExceptionDescription copied from interface:JobGraphStoreStops theJobGraphStoreservice.- Specified by:
stopin interfaceJobGraphStore- Throws:
Exception
-
recoverJobGraph
public JobGraph recoverJobGraph(org.apache.flink.api.common.JobID jobId) throws Exception
Description copied from interface:JobGraphStore- Specified by:
recoverJobGraphin interfaceJobGraphStore- Throws:
Exception
-
putJobGraph
public void putJobGraph(JobGraph jobGraph) throws Exception
Description copied from interface:JobGraphWriterAdds theJobGraphinstance.If a job graph with the same
JobIDexists, it is replaced.- Specified by:
putJobGraphin interfaceJobGraphWriter- Throws:
Exception
-
putJobResourceRequirements
public void putJobResourceRequirements(org.apache.flink.api.common.JobID jobId, JobResourceRequirements jobResourceRequirements) throws ExceptionDescription copied from interface:JobGraphWriterPersistjob resource requirementsfor the given job.- Specified by:
putJobResourceRequirementsin interfaceJobGraphWriter- Parameters:
jobId- job the given requirements belong tojobResourceRequirements- requirements to persist- Throws:
Exception- in case we're not able to persist the requirements for some reason
-
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
-
-