public class MemoryArchivedExecutionGraphStore extends Object implements ArchivedExecutionGraphStore
ArchivedExecutionGraphStore implementation which stores the ArchivedExecutionGraph
in memory.| Constructor and Description |
|---|
MemoryArchivedExecutionGraphStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
ArchivedExecutionGraph |
get(org.apache.flink.api.common.JobID jobId)
Get the
ArchivedExecutionGraph for the given job id. |
Collection<JobDetails> |
getAvailableJobDetails()
Return the collection of
JobDetails of all currently stored jobs. |
JobDetails |
getAvailableJobDetails(org.apache.flink.api.common.JobID jobId)
Return the
JobDetails} for the given job. |
JobsOverview |
getStoredJobsOverview()
Return the
JobsOverview for all stored/past jobs. |
void |
put(ArchivedExecutionGraph serializableExecutionGraph)
Store the given
ArchivedExecutionGraph in the store. |
int |
size()
Returns the current number of stored
ArchivedExecutionGraph. |
public int size()
ArchivedExecutionGraphStoreArchivedExecutionGraph.size in interface ArchivedExecutionGraphStoreArchivedExecutionGraph@Nullable public ArchivedExecutionGraph get(org.apache.flink.api.common.JobID jobId)
ArchivedExecutionGraphStoreArchivedExecutionGraph for the given job id. Null if it isn't stored.get in interface ArchivedExecutionGraphStorejobId - identifying the serializable execution graph to retrievepublic void put(ArchivedExecutionGraph serializableExecutionGraph) throws IOException
ArchivedExecutionGraphStoreArchivedExecutionGraph in the store.put in interface ArchivedExecutionGraphStoreserializableExecutionGraph - to storeIOException - if the serializable execution graph could not be stored in the storepublic JobsOverview getStoredJobsOverview()
ArchivedExecutionGraphStoreJobsOverview for all stored/past jobs.getStoredJobsOverview in interface ArchivedExecutionGraphStorepublic Collection<JobDetails> getAvailableJobDetails()
ArchivedExecutionGraphStoreJobDetails of all currently stored jobs.getAvailableJobDetails in interface ArchivedExecutionGraphStore@Nullable public JobDetails getAvailableJobDetails(org.apache.flink.api.common.JobID jobId)
ArchivedExecutionGraphStoreJobDetails} for the given job.getAvailableJobDetails in interface ArchivedExecutionGraphStorejobId - identifying the job for which to retrieve the JobDetailsJobDetails of the requested job or null if the job is not availablepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.