public class SingleJobJobGraphStore extends Object implements JobGraphStore
JobGraphStore
implementation for a single job.JobGraphStore.JobGraphListener
Constructor and Description |
---|
SingleJobJobGraphStore(JobGraph jobGraph) |
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 SingleJobJobGraphStore(JobGraph jobGraph)
public void start(JobGraphStore.JobGraphListener jobGraphListener) throws Exception
JobGraphStore
JobGraphStore
service.start
in interface JobGraphStore
Exception
public void stop() throws Exception
JobGraphStore
JobGraphStore
service.stop
in interface JobGraphStore
Exception
public JobGraph recoverJobGraph(JobID jobId) throws Exception
JobGraphStore
recoverJobGraph
in interface JobGraphStore
Exception
public void putJobGraph(JobGraph jobGraph) throws Exception
JobGraphWriter
putJobGraph
in interface JobGraphWriter
Exception
public void putJobResourceRequirements(JobID jobId, JobResourceRequirements jobResourceRequirements) throws Exception
JobGraphWriter
job resource requirements
for the given job.putJobResourceRequirements
in interface JobGraphWriter
jobId
- job the given requirements belong tojobResourceRequirements
- requirements to persistException
- in case we're not able to persist the requirements for some reasonpublic Collection<JobID> getJobIds()
JobGraphStore
getJobIds
in interface JobGraphStore
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.