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
JobGraph
instances for JobManagers running inHighAvailabilityMode.NONE
.All operations are NoOps, because
JobGraph
instances 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<JobID>
getJobIds()
Get all job ids of submitted job graphs to the submitted job graph store.void
putJobGraph(JobGraph jobGraph)
Adds theJobGraph
instance.void
putJobResourceRequirements(JobID jobId, JobResourceRequirements jobResourceRequirements)
Persistjob resource requirements
for the given job.JobGraph
recoverJobGraph(JobID jobId)
void
start(JobGraphStore.JobGraphListener jobGraphListener)
Starts theJobGraphStore
service.void
stop()
Stops theJobGraphStore
service.-
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:JobGraphStore
Starts theJobGraphStore
service.- Specified by:
start
in interfaceJobGraphStore
- Throws:
Exception
-
stop
public void stop()
Description copied from interface:JobGraphStore
Stops theJobGraphStore
service.- Specified by:
stop
in interfaceJobGraphStore
-
putJobGraph
public void putJobGraph(JobGraph jobGraph)
Description copied from interface:JobGraphWriter
- Specified by:
putJobGraph
in interfaceJobGraphWriter
-
putJobResourceRequirements
public void putJobResourceRequirements(JobID jobId, JobResourceRequirements jobResourceRequirements)
Description copied from interface:JobGraphWriter
Persistjob resource requirements
for the given job.- Specified by:
putJobResourceRequirements
in interfaceJobGraphWriter
- Parameters:
jobId
- job the given requirements belong tojobResourceRequirements
- requirements to persist
-
getJobIds
public Collection<JobID> getJobIds()
Description copied from interface:JobGraphStore
Get all job ids of submitted job graphs to the submitted job graph store.- Specified by:
getJobIds
in interfaceJobGraphStore
- Returns:
- Collection of submitted job ids
-
recoverJobGraph
public JobGraph recoverJobGraph(JobID jobId)
Description copied from interface:JobGraphStore
- Specified by:
recoverJobGraph
in interfaceJobGraphStore
-
-