Class FileExecutionGraphInfoStore
java.lang.Object
org.apache.flink.runtime.dispatcher.FileExecutionGraphInfoStore
- All Implemented Interfaces:
Closeable,AutoCloseable,ExecutionGraphInfoStore
Store for
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.-
Constructor Summary
ConstructorsConstructorDescriptionFileExecutionGraphInfoStore(File rootDir, Duration expirationTime, int maximumCapacity, long maximumCacheSizeBytes, org.apache.flink.util.concurrent.ScheduledExecutor scheduledExecutor, org.apache.flink.shaded.guava32.com.google.common.base.Ticker ticker) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()get(org.apache.flink.api.common.JobID jobId) Get theExecutionGraphInfofor the given job id.Return the collection ofJobDetailsof all currently stored jobs.getAvailableJobDetails(org.apache.flink.api.common.JobID jobId) Return theJobDetails} for the given job.Return theJobsOverviewfor all stored/past jobs.voidput(ExecutionGraphInfo executionGraphInfo) Store the givenExecutionGraphInfoin the store.intsize()Returns the current number of storedExecutionGraphInfoinstances.
-
Constructor Details
-
FileExecutionGraphInfoStore
public FileExecutionGraphInfoStore(File rootDir, Duration expirationTime, int maximumCapacity, long maximumCacheSizeBytes, org.apache.flink.util.concurrent.ScheduledExecutor scheduledExecutor, org.apache.flink.shaded.guava32.com.google.common.base.Ticker ticker) throws IOException - Throws:
IOException
-
-
Method Details
-
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
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
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
Description copied from interface:ExecutionGraphInfoStoreReturn theJobsOverviewfor all stored/past jobs.- Specified by:
getStoredJobsOverviewin interfaceExecutionGraphInfoStore- Returns:
- Jobs overview for all stored/past jobs
-
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
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
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-