Class MemoryExecutionGraphInfoStore
java.lang.Object
org.apache.flink.runtime.dispatcher.MemoryExecutionGraphInfoStore
- All Implemented Interfaces:
Closeable,AutoCloseable,ExecutionGraphInfoStore
ExecutionGraphInfoStore implementation which stores the ArchivedExecutionGraph in
memory. The memory store support to keep maximum job graphs and remove the timeout ones.-
Constructor Summary
ConstructorsConstructorDescriptionMemoryExecutionGraphInfoStore(Duration expirationTime, int maximumCapacity, 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 serializableExecutionGraphInfo) Store the givenExecutionGraphInfoin the store.intsize()Returns the current number of storedExecutionGraphInfoinstances.
-
Constructor Details
-
MemoryExecutionGraphInfoStore
public MemoryExecutionGraphInfoStore() -
MemoryExecutionGraphInfoStore
public MemoryExecutionGraphInfoStore(Duration expirationTime, int maximumCapacity, @Nullable org.apache.flink.util.concurrent.ScheduledExecutor scheduledExecutor, @Nullable org.apache.flink.shaded.guava32.com.google.common.base.Ticker ticker)
-
-
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:
serializableExecutionGraphInfo- 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
-