Class FileExecutionGraphInfoStore
- java.lang.Object
-
- org.apache.flink.runtime.dispatcher.FileExecutionGraphInfoStore
-
- All Implemented Interfaces:
Closeable,AutoCloseable,ExecutionGraphInfoStore
public class FileExecutionGraphInfoStore extends Object implements ExecutionGraphInfoStore
Store forExecutionGraphInfoinstances. 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.
-
-
Constructor Summary
Constructors Constructor Description FileExecutionGraphInfoStore(File rootDir, Duration expirationTime, int maximumCapacity, long maximumCacheSizeBytes, org.apache.flink.util.concurrent.ScheduledExecutor scheduledExecutor, org.apache.flink.shaded.guava33.com.google.common.base.Ticker ticker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()ExecutionGraphInfoget(org.apache.flink.api.common.JobID jobId)Get theExecutionGraphInfofor the given job id.Collection<JobDetails>getAvailableJobDetails()Return the collection ofJobDetailsof all currently stored jobs.JobDetailsgetAvailableJobDetails(org.apache.flink.api.common.JobID jobId)Return theJobDetails} for the given job.JobsOverviewgetStoredJobsOverview()Return theJobsOverviewfor all stored/past jobs.voidput(ExecutionGraphInfo executionGraphInfo)Store the givenExecutionGraphInfoin the store.intsize()Returns the current number of storedExecutionGraphInfoinstances.
-
-
-
Constructor Detail
-
FileExecutionGraphInfoStore
public FileExecutionGraphInfoStore(File rootDir, Duration expirationTime, int maximumCapacity, long maximumCacheSizeBytes, org.apache.flink.util.concurrent.ScheduledExecutor scheduledExecutor, org.apache.flink.shaded.guava33.com.google.common.base.Ticker ticker) throws IOException
- Throws:
IOException
-
-
Method Detail
-
size
public int size()
Description copied from interface:ExecutionGraphInfoStoreReturns the current number of storedExecutionGraphInfoinstances.- Specified by:
sizein interfaceExecutionGraphInfoStore- Returns:
- Current number of stored
ExecutionGraphInfoinstances
-
get
@Nullable public ExecutionGraphInfo get(org.apache.flink.api.common.JobID jobId)
Description copied from interface:ExecutionGraphInfoStoreGet theExecutionGraphInfofor the given job id. Null if it isn't stored.- Specified by:
getin interfaceExecutionGraphInfoStore- Parameters:
jobId- identifying the serializable execution graph to retrieve- Returns:
- The stored serializable execution graph or null
-
put
public void put(ExecutionGraphInfo executionGraphInfo) throws IOException
Description copied from interface:ExecutionGraphInfoStoreStore the givenExecutionGraphInfoin the store.- Specified by:
putin interfaceExecutionGraphInfoStore- Parameters:
executionGraphInfo- to store- Throws:
IOException- if the serializable execution graph could not be stored in the store
-
getStoredJobsOverview
public JobsOverview getStoredJobsOverview()
Description copied from interface:ExecutionGraphInfoStoreReturn theJobsOverviewfor all stored/past jobs.- Specified by:
getStoredJobsOverviewin interfaceExecutionGraphInfoStore- Returns:
- Jobs overview for all stored/past jobs
-
getAvailableJobDetails
public Collection<JobDetails> getAvailableJobDetails()
Description copied from interface:ExecutionGraphInfoStoreReturn the collection ofJobDetailsof all currently stored jobs.- Specified by:
getAvailableJobDetailsin interfaceExecutionGraphInfoStore- Returns:
- Collection of job details of all currently stored jobs
-
getAvailableJobDetails
@Nullable public JobDetails getAvailableJobDetails(org.apache.flink.api.common.JobID jobId)
Description copied from interface:ExecutionGraphInfoStoreReturn theJobDetails} for the given job.- Specified by:
getAvailableJobDetailsin interfaceExecutionGraphInfoStore- Parameters:
jobId- identifying the job for which to retrieve theJobDetails- Returns:
JobDetailsof the requested job or null if the job is not available
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-