Interface ExecutionGraphInfoStore
-
- All Superinterfaces:
AutoCloseable
,Closeable
- All Known Implementing Classes:
FileExecutionGraphInfoStore
,MemoryExecutionGraphInfoStore
public interface ExecutionGraphInfoStore extends Closeable
Interface for aExecutionGraphInfo
store.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExecutionGraphInfo
get(JobID jobId)
Get theExecutionGraphInfo
for the given job id.Collection<JobDetails>
getAvailableJobDetails()
Return the collection ofJobDetails
of all currently stored jobs.JobDetails
getAvailableJobDetails(JobID jobId)
Return theJobDetails
} for the given job.JobsOverview
getStoredJobsOverview()
Return theJobsOverview
for all stored/past jobs.void
put(ExecutionGraphInfo executionGraphInfo)
Store the givenExecutionGraphInfo
in the store.int
size()
Returns the current number of storedExecutionGraphInfo
instances.
-
-
-
Method Detail
-
size
int size()
Returns the current number of storedExecutionGraphInfo
instances.- Returns:
- Current number of stored
ExecutionGraphInfo
instances
-
get
@Nullable ExecutionGraphInfo get(JobID jobId)
Get theExecutionGraphInfo
for the given job id. Null if it isn't stored.- Parameters:
jobId
- identifying the serializable execution graph to retrieve- Returns:
- The stored serializable execution graph or null
-
put
void put(ExecutionGraphInfo executionGraphInfo) throws IOException
Store the givenExecutionGraphInfo
in the store.- Parameters:
executionGraphInfo
- to store- Throws:
IOException
- if the serializable execution graph could not be stored in the store
-
getStoredJobsOverview
JobsOverview getStoredJobsOverview()
Return theJobsOverview
for all stored/past jobs.- Returns:
- Jobs overview for all stored/past jobs
-
getAvailableJobDetails
Collection<JobDetails> getAvailableJobDetails()
Return the collection ofJobDetails
of all currently stored jobs.- Returns:
- Collection of job details of all currently stored jobs
-
getAvailableJobDetails
@Nullable JobDetails getAvailableJobDetails(JobID jobId)
Return theJobDetails
} for the given job.- Parameters:
jobId
- identifying the job for which to retrieve theJobDetails
- Returns:
JobDetails
of the requested job or null if the job is not available
-
-