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.构造器和说明 |
---|
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) |
限定符和类型 | 方法和说明 |
---|---|
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
IOException
public int size()
ArchivedExecutionGraphStore
ArchivedExecutionGraph
.size
在接口中 ArchivedExecutionGraphStore
ArchivedExecutionGraph
@Nullable public ArchivedExecutionGraph get(org.apache.flink.api.common.JobID jobId)
ArchivedExecutionGraphStore
ArchivedExecutionGraph
for the given job id. Null if it isn't stored.get
在接口中 ArchivedExecutionGraphStore
jobId
- identifying the serializable execution graph to retrievepublic void put(ArchivedExecutionGraph archivedExecutionGraph) throws IOException
ArchivedExecutionGraphStore
ArchivedExecutionGraph
in the store.put
在接口中 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
在接口中 ArchivedExecutionGraphStore
public Collection<JobDetails> getAvailableJobDetails()
ArchivedExecutionGraphStore
JobDetails
of all currently stored jobs.getAvailableJobDetails
在接口中 ArchivedExecutionGraphStore
@Nullable public JobDetails getAvailableJobDetails(org.apache.flink.api.common.JobID jobId)
ArchivedExecutionGraphStore
JobDetails
} for the given job.getAvailableJobDetails
在接口中 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
在接口中 Closeable
close
在接口中 AutoCloseable
IOException
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.