Class MemoryExecutionGraphInfoStore
- java.lang.Object
-
- org.apache.flink.runtime.dispatcher.MemoryExecutionGraphInfoStore
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,ExecutionGraphInfoStore
public class MemoryExecutionGraphInfoStore extends Object implements ExecutionGraphInfoStore
ExecutionGraphInfoStore
implementation which stores theArchivedExecutionGraph
in memory. The memory store support to keep maximum job graphs and remove the timeout ones.
-
-
Constructor Summary
Constructors Constructor Description MemoryExecutionGraphInfoStore()
MemoryExecutionGraphInfoStore(Duration expirationTime, int maximumCapacity, 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 serializableExecutionGraphInfo)
Store the givenExecutionGraphInfo
in the store.int
size()
Returns the current number of storedExecutionGraphInfo
instances.
-
-
-
Constructor Detail
-
MemoryExecutionGraphInfoStore
public MemoryExecutionGraphInfoStore()
-
MemoryExecutionGraphInfoStore
public MemoryExecutionGraphInfoStore(Duration expirationTime, int maximumCapacity, @Nullable ScheduledExecutor scheduledExecutor, @Nullable org.apache.flink.shaded.guava32.com.google.common.base.Ticker ticker)
-
-
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 serializableExecutionGraphInfo) throws IOException
Description copied from interface:ExecutionGraphInfoStore
Store the givenExecutionGraphInfo
in the store.- Specified by:
put
in interfaceExecutionGraphInfoStore
- Parameters:
serializableExecutionGraphInfo
- 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
-
-