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
ExecutionPlan
instances for JobManagers running inHighAvailabilityMode.NONE
.All operations are NoOps, because
ExecutionPlan
instances 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.void
putExecutionPlan(ExecutionPlan jobGraph)
Adds theExecutionPlan
instance.void
putJobResourceRequirements(org.apache.flink.api.common.JobID jobId, JobResourceRequirements jobResourceRequirements)
Persistjob resource requirements
for the given job.ExecutionPlan
recoverExecutionPlan(org.apache.flink.api.common.JobID jobId)
void
start(ExecutionPlanStore.ExecutionPlanListener executionPlanListener)
Starts theExecutionPlanStore
service.void
stop()
Stops theExecutionPlanStore
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.ExecutionPlanWriter
globalCleanupAsync, localCleanupAsync
-
-
-
-
Method Detail
-
start
public void start(ExecutionPlanStore.ExecutionPlanListener executionPlanListener) throws Exception
Description copied from interface:ExecutionPlanStore
Starts theExecutionPlanStore
service.- Specified by:
start
in interfaceExecutionPlanStore
- Throws:
Exception
-
stop
public void stop()
Description copied from interface:ExecutionPlanStore
Stops theExecutionPlanStore
service.- Specified by:
stop
in interfaceExecutionPlanStore
-
putExecutionPlan
public void putExecutionPlan(ExecutionPlan jobGraph)
Description copied from interface:ExecutionPlanWriter
Adds theExecutionPlan
instance.If a execution plan with the same
JobID
exists, it is replaced.- Specified by:
putExecutionPlan
in interfaceExecutionPlanWriter
-
putJobResourceRequirements
public void putJobResourceRequirements(org.apache.flink.api.common.JobID jobId, JobResourceRequirements jobResourceRequirements)
Description copied from interface:ExecutionPlanWriter
Persistjob resource requirements
for the given job.- Specified by:
putJobResourceRequirements
in 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:ExecutionPlanStore
Get all job ids of submitted job graphs to the submitted execution plan store.- Specified by:
getJobIds
in 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:
recoverExecutionPlan
in interfaceExecutionPlanStore
-
-