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. |
void |
putJobResourceRequirements(JobID jobId,
JobResourceRequirements jobResourceRequirements)
Persist
job resource requirements for the given job. |
JobGraph |
recoverJobGraph(JobID jobId)
|
void |
start(JobGraphStore.JobGraphListener jobGraphListener)
Starts the
JobGraphStore service. |
void |
stop()
Stops the
JobGraphStore service. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
globalCleanupAsync, localCleanupAsync
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 putJobResourceRequirements(JobID jobId, JobResourceRequirements jobResourceRequirements)
JobGraphWriter
job resource requirements
for the given job.putJobResourceRequirements
in interface JobGraphWriter
jobId
- job the given requirements belong tojobResourceRequirements
- requirements to persistpublic Collection<JobID> getJobIds()
JobGraphStore
getJobIds
in interface JobGraphStore
public JobGraph recoverJobGraph(JobID jobId)
JobGraphStore
recoverJobGraph
in interface JobGraphStore
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.