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 forExecutionGraphInfo
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
Constructors Constructor Description FileExecutionGraphInfoStore(File rootDir, Duration expirationTime, int maximumCapacity, long maximumCacheSizeBytes, ScheduledExecutor scheduledExecutor, org.apache.flink.shaded.guava32.com.google.common.base.Ticker ticker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
ExecutionGraphInfo
get(JobID jobId)
Get theExecutionGraphInfo
for the given job id.Collection<JobDetails>
getAvailableJobDetails()
Return the collection ofJobDetails
of all currently stored jobs.JobDetails
getAvailableJobDetails(JobID jobId)
Return theJobDetails
} for the given job.JobsOverview
getStoredJobsOverview()
Return theJobsOverview
for all stored/past jobs.void
put(ExecutionGraphInfo executionGraphInfo)
Store the givenExecutionGraphInfo
in the store.int
size()
Returns the current number of storedExecutionGraphInfo
instances.
-
-
-
Constructor Detail
-
FileExecutionGraphInfoStore
public FileExecutionGraphInfoStore(File rootDir, Duration expirationTime, int maximumCapacity, long maximumCacheSizeBytes, ScheduledExecutor scheduledExecutor, org.apache.flink.shaded.guava32.com.google.common.base.Ticker ticker) throws IOException
- Throws:
IOException
-
-
Method Detail
-
size
public int size()
Description copied from interface:ExecutionGraphInfoStore
Returns the current number of storedExecutionGraphInfo
instances.- Specified by:
size
in interfaceExecutionGraphInfoStore
- Returns:
- Current number of stored
ExecutionGraphInfo
instances
-
get
@Nullable public ExecutionGraphInfo get(JobID jobId)
Description copied from interface:ExecutionGraphInfoStore
Get theExecutionGraphInfo
for the given job id. Null if it isn't stored.- Specified by:
get
in 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:ExecutionGraphInfoStore
Store the givenExecutionGraphInfo
in the store.- Specified by:
put
in 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:ExecutionGraphInfoStore
Return theJobsOverview
for all stored/past jobs.- Specified by:
getStoredJobsOverview
in interfaceExecutionGraphInfoStore
- Returns:
- Jobs overview for all stored/past jobs
-
getAvailableJobDetails
public Collection<JobDetails> getAvailableJobDetails()
Description copied from interface:ExecutionGraphInfoStore
Return the collection ofJobDetails
of all currently stored jobs.- Specified by:
getAvailableJobDetails
in interfaceExecutionGraphInfoStore
- Returns:
- Collection of job details of all currently stored jobs
-
getAvailableJobDetails
@Nullable public JobDetails getAvailableJobDetails(JobID jobId)
Description copied from interface:ExecutionGraphInfoStore
Return theJobDetails
} for the given job.- Specified by:
getAvailableJobDetails
in interfaceExecutionGraphInfoStore
- Parameters:
jobId
- identifying the job for which to retrieve theJobDetails
- Returns:
JobDetails
of the requested job or null if the job is not available
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-