Class StandaloneExecutionPlanStore
- java.lang.Object
-
- org.apache.flink.runtime.jobmanager.StandaloneExecutionPlanStore
-
- All Implemented Interfaces:
GloballyCleanableResource,LocallyCleanableResource,ExecutionPlanStore,ExecutionPlanWriter
public class StandaloneExecutionPlanStore extends Object implements ExecutionPlanStore
ExecutionPlaninstances for JobManagers running inHighAvailabilityMode.NONE.All operations are NoOps, because
ExecutionPlaninstances cannot be recovered in this recovery mode.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.flink.runtime.jobmanager.ExecutionPlanStore
ExecutionPlanStore.ExecutionPlanListener
-
-
Constructor Summary
Constructors Constructor Description StandaloneExecutionPlanStore()
-
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 execution plan store.voidputExecutionPlan(ExecutionPlan jobGraph)Adds theExecutionPlaninstance.voidputJobResourceRequirements(org.apache.flink.api.common.JobID jobId, JobResourceRequirements jobResourceRequirements)Persistjob resource requirementsfor the given job.ExecutionPlanrecoverExecutionPlan(org.apache.flink.api.common.JobID jobId)voidstart(ExecutionPlanStore.ExecutionPlanListener executionPlanListener)Starts theExecutionPlanStoreservice.voidstop()Stops theExecutionPlanStoreservice.-
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.ExecutionPlanWriter
globalCleanupAsync, localCleanupAsync
-
-
-
-
Method Detail
-
start
public void start(ExecutionPlanStore.ExecutionPlanListener executionPlanListener) throws Exception
Description copied from interface:ExecutionPlanStoreStarts theExecutionPlanStoreservice.- Specified by:
startin interfaceExecutionPlanStore- Throws:
Exception
-
stop
public void stop()
Description copied from interface:ExecutionPlanStoreStops theExecutionPlanStoreservice.- Specified by:
stopin interfaceExecutionPlanStore
-
putExecutionPlan
public void putExecutionPlan(ExecutionPlan jobGraph)
Description copied from interface:ExecutionPlanWriterAdds theExecutionPlaninstance.If a execution plan with the same
JobIDexists, it is replaced.- Specified by:
putExecutionPlanin interfaceExecutionPlanWriter
-
putJobResourceRequirements
public void putJobResourceRequirements(org.apache.flink.api.common.JobID jobId, JobResourceRequirements jobResourceRequirements)Description copied from interface:ExecutionPlanWriterPersistjob resource requirementsfor the given job.- Specified by:
putJobResourceRequirementsin interfaceExecutionPlanWriter- 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:ExecutionPlanStoreGet all job ids of submitted job graphs to the submitted execution plan store.- Specified by:
getJobIdsin interfaceExecutionPlanStore- Returns:
- Collection of submitted job ids
-
recoverExecutionPlan
public ExecutionPlan recoverExecutionPlan(org.apache.flink.api.common.JobID jobId)
Description copied from interface:ExecutionPlanStore- Specified by:
recoverExecutionPlanin interfaceExecutionPlanStore
-
-