public class StandaloneJobGraphStore extends Object implements JobGraphStore
JobGraph
instances for JobManagers running in HighAvailabilityMode.NONE
.
All operations are NoOps, because JobGraph
instances cannot be recovered in this
recovery mode.
JobGraphStore.JobGraphListener
Constructor and Description |
---|
StandaloneJobGraphStore() |
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(JobGraph jobGraph)
Adds the
JobGraph instance. |
JobGraph |
recoverJobGraph(JobID jobId)
|
void |
releaseJobGraph(JobID jobId)
Releases the locks on the specified
JobGraph . |
void |
removeJobGraph(JobID jobId)
|
void |
start(JobGraphStore.JobGraphListener jobGraphListener)
Starts the
JobGraphStore service. |
void |
stop()
Stops the
JobGraphStore service. |
public void start(JobGraphStore.JobGraphListener jobGraphListener) throws Exception
JobGraphStore
JobGraphStore
service.start
in interface JobGraphStore
Exception
public void stop()
JobGraphStore
JobGraphStore
service.stop
in interface JobGraphStore
public void putJobGraph(JobGraph jobGraph)
JobGraphWriter
putJobGraph
in interface JobGraphWriter
public void removeJobGraph(JobID jobId)
JobGraphWriter
removeJobGraph
in interface JobGraphWriter
public void releaseJobGraph(JobID jobId)
JobGraphWriter
JobGraph
.
Releasing the locks allows that another instance can delete the job from the JobGraphStore
.
releaseJobGraph
in interface JobGraphWriter
jobId
- specifying the job to release the locks forpublic Collection<JobID> getJobIds()
JobGraphStore
getJobIds
in interface JobGraphStore
public JobGraph recoverJobGraph(JobID jobId)
JobGraphStore
recoverJobGraph
in interface JobGraphStore
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.