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,
Time expirationTime,
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(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(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, Time expirationTime, long maximumCacheSizeBytes, ScheduledExecutor scheduledExecutor, org.apache.flink.shaded.guava18.com.google.common.base.Ticker ticker) throws IOException
IOException
public int size()
ArchivedExecutionGraphStore
ArchivedExecutionGraph
.size
in interface ArchivedExecutionGraphStore
ArchivedExecutionGraph
@Nullable public ArchivedExecutionGraph get(JobID jobId)
ArchivedExecutionGraphStore
ArchivedExecutionGraph
for the given job id. Null if it isn't stored.get
in interface ArchivedExecutionGraphStore
jobId
- identifying the serializable execution graph to retrievepublic void put(ArchivedExecutionGraph archivedExecutionGraph) throws IOException
ArchivedExecutionGraphStore
ArchivedExecutionGraph
in the store.put
in interface ArchivedExecutionGraphStore
archivedExecutionGraph
- to storeIOException
- if the serializable execution graph could not be stored in the storepublic JobsOverview getStoredJobsOverview()
ArchivedExecutionGraphStore
JobsOverview
for all stored/past jobs.getStoredJobsOverview
in interface ArchivedExecutionGraphStore
public Collection<JobDetails> getAvailableJobDetails()
ArchivedExecutionGraphStore
JobDetails
of all currently stored jobs.getAvailableJobDetails
in interface ArchivedExecutionGraphStore
@Nullable public JobDetails getAvailableJobDetails(JobID jobId)
ArchivedExecutionGraphStore
JobDetails
} for the given job.getAvailableJobDetails
in interface ArchivedExecutionGraphStore
jobId
- identifying the job for which to retrieve the JobDetails
JobDetails
of the requested job or null if the job is not availablepublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.