public class StandaloneSubmittedJobGraphStore extends Object implements SubmittedJobGraphStore
SubmittedJobGraph
instances for JobManagers running in HighAvailabilityMode.NONE
.
All operations are NoOps, because JobGraph
instances cannot be recovered in this
recovery mode.
SubmittedJobGraphStore.SubmittedJobGraphListener
Constructor and Description |
---|
StandaloneSubmittedJobGraphStore() |
Modifier and Type | Method and Description |
---|---|
Collection<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(JobID jobId)
Returns the
SubmittedJobGraph with the given JobID . |
void |
releaseJobGraph(JobID jobId)
Releases the locks on the specified
JobGraph . |
void |
removeJobGraph(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. |
public void start(SubmittedJobGraphStore.SubmittedJobGraphListener jobGraphListener) throws Exception
SubmittedJobGraphStore
SubmittedJobGraphStore
service.start
in interface SubmittedJobGraphStore
Exception
public void stop()
SubmittedJobGraphStore
SubmittedJobGraphStore
service.stop
in interface SubmittedJobGraphStore
public void putJobGraph(SubmittedJobGraph jobGraph)
SubmittedJobGraphStore
SubmittedJobGraph
instance.
If a job graph with the same JobID
exists, it is replaced.
putJobGraph
in interface SubmittedJobGraphStore
public void removeJobGraph(JobID jobId)
SubmittedJobGraphStore
SubmittedJobGraph
with the given JobID
if it exists.removeJobGraph
in interface SubmittedJobGraphStore
public void releaseJobGraph(JobID jobId)
SubmittedJobGraphStore
JobGraph
.
Releasing the locks allows that another instance can delete the job from
the SubmittedJobGraphStore
.releaseJobGraph
in interface SubmittedJobGraphStore
jobId
- specifying the job to release the locks forpublic Collection<JobID> getJobIds()
SubmittedJobGraphStore
getJobIds
in interface SubmittedJobGraphStore
public SubmittedJobGraph recoverJobGraph(JobID jobId)
SubmittedJobGraphStore
SubmittedJobGraph
with the given JobID
.
An Exception is thrown, if no job graph with the given ID exists.
recoverJobGraph
in interface SubmittedJobGraphStore
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.