public interface SubmittedJobGraphStore
SubmittedJobGraph instances for recovery.| Modifier and Type | Interface and Description |
|---|---|
static interface |
SubmittedJobGraphStore.SubmittedJobGraphListener
A listener for
SubmittedJobGraph instances. |
| Modifier and Type | Method and Description |
|---|---|
Collection<org.apache.flink.api.common.JobID> |
getJobIds()
Get all job ids of submitted job graphs to the submitted job graph store.
|
void |
putJobGraph(SubmittedJobGraph jobGraph)
Adds the
SubmittedJobGraph instance. |
SubmittedJobGraph |
recoverJobGraph(org.apache.flink.api.common.JobID jobId)
|
void |
releaseJobGraph(org.apache.flink.api.common.JobID jobId)
Releases the locks on the specified
JobGraph. |
void |
removeJobGraph(org.apache.flink.api.common.JobID jobId)
Removes the
SubmittedJobGraph with the given JobID if it exists. |
void |
start(SubmittedJobGraphStore.SubmittedJobGraphListener jobGraphListener)
Starts the
SubmittedJobGraphStore service. |
void |
stop()
Stops the
SubmittedJobGraphStore service. |
void start(SubmittedJobGraphStore.SubmittedJobGraphListener jobGraphListener) throws Exception
SubmittedJobGraphStore service.Exceptionvoid stop() throws Exception
SubmittedJobGraphStore service.Exception@Nullable SubmittedJobGraph recoverJobGraph(org.apache.flink.api.common.JobID jobId) throws Exception
Exceptionvoid putJobGraph(SubmittedJobGraph jobGraph) throws Exception
SubmittedJobGraph instance.
If a job graph with the same JobID exists, it is replaced.
Exceptionvoid removeJobGraph(org.apache.flink.api.common.JobID jobId)
throws Exception
SubmittedJobGraph with the given JobID if it exists.Exceptionvoid releaseJobGraph(org.apache.flink.api.common.JobID jobId)
throws Exception
JobGraph.
Releasing the locks allows that another instance can delete the job from
the SubmittedJobGraphStore.jobId - specifying the job to release the locks forException - if the locks cannot be releasedCollection<org.apache.flink.api.common.JobID> getJobIds() throws Exception
Exception - if the operation failsCopyright © 2014–2019 The Apache Software Foundation. All rights reserved.