public class FileExecutionGraphInfoStore extends Object implements ExecutionGraphInfoStore
ExecutionGraphInfo instances. The store writes the archived execution graph
information 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.| 构造器和说明 |
|---|
FileExecutionGraphInfoStore(File rootDir,
org.apache.flink.api.common.time.Time expirationTime,
int maximumCapacity,
long maximumCacheSizeBytes,
org.apache.flink.util.concurrent.ScheduledExecutor scheduledExecutor,
org.apache.flink.shaded.guava30.com.google.common.base.Ticker ticker) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
ExecutionGraphInfo |
get(org.apache.flink.api.common.JobID jobId)
Get the
ExecutionGraphInfo 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(ExecutionGraphInfo executionGraphInfo)
Store the given
ExecutionGraphInfo in the store. |
int |
size()
Returns the current number of stored
ExecutionGraphInfo instances. |
public FileExecutionGraphInfoStore(File rootDir, org.apache.flink.api.common.time.Time expirationTime, int maximumCapacity, long maximumCacheSizeBytes, org.apache.flink.util.concurrent.ScheduledExecutor scheduledExecutor, org.apache.flink.shaded.guava30.com.google.common.base.Ticker ticker) throws IOException
IOExceptionpublic int size()
ExecutionGraphInfoStoreExecutionGraphInfo instances.size 在接口中 ExecutionGraphInfoStoreExecutionGraphInfo instances@Nullable public ExecutionGraphInfo get(org.apache.flink.api.common.JobID jobId)
ExecutionGraphInfoStoreExecutionGraphInfo for the given job id. Null if it isn't stored.get 在接口中 ExecutionGraphInfoStorejobId - identifying the serializable execution graph to retrievepublic void put(ExecutionGraphInfo executionGraphInfo) throws IOException
ExecutionGraphInfoStoreExecutionGraphInfo in the store.put 在接口中 ExecutionGraphInfoStoreexecutionGraphInfo - to storeIOException - if the serializable execution graph could not be stored in the storepublic JobsOverview getStoredJobsOverview()
ExecutionGraphInfoStoreJobsOverview for all stored/past jobs.getStoredJobsOverview 在接口中 ExecutionGraphInfoStorepublic Collection<JobDetails> getAvailableJobDetails()
ExecutionGraphInfoStoreJobDetails of all currently stored jobs.getAvailableJobDetails 在接口中 ExecutionGraphInfoStore@Nullable public JobDetails getAvailableJobDetails(org.apache.flink.api.common.JobID jobId)
ExecutionGraphInfoStoreJobDetails} for the given job.getAvailableJobDetails 在接口中 ExecutionGraphInfoStorejobId - 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 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.