public class FileArchivedExecutionGraphStore extends Object implements ArchivedExecutionGraphStore
ArchivedExecutionGraph. The store writes the archived execution graph to disk
and keeps the most recently used execution graphs in a memory cache for faster serving. Moreover,
the stored execution graphs are periodically cleaned up.| Constructor and Description |
|---|
FileArchivedExecutionGraphStore(File rootDir,
org.apache.flink.api.common.time.Time expirationTime,
int maximumCapacity,
long maximumCacheSizeBytes,
ScheduledExecutor scheduledExecutor,
org.apache.flink.shaded.guava18.com.google.common.base.Ticker ticker) |
| 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 archivedExecutionGraph)
Store the given
ArchivedExecutionGraph in the store. |
int |
size()
Returns the current number of stored
ArchivedExecutionGraph. |
public FileArchivedExecutionGraphStore(File rootDir, org.apache.flink.api.common.time.Time expirationTime, int maximumCapacity, long maximumCacheSizeBytes, ScheduledExecutor scheduledExecutor, org.apache.flink.shaded.guava18.com.google.common.base.Ticker ticker) throws IOException
IOExceptionpublic 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 archivedExecutionGraph) throws IOException
ArchivedExecutionGraphStoreArchivedExecutionGraph in the store.put in interface ArchivedExecutionGraphStorearchivedExecutionGraph - 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.