public class MemoryExecutionGraphInfoStore extends Object implements ExecutionGraphInfoStore
ExecutionGraphInfoStore
implementation which stores the ArchivedExecutionGraph
in
memory. The memory store support to keep maximum job graphs and remove the timeout ones.Constructor and Description |
---|
MemoryExecutionGraphInfoStore() |
MemoryExecutionGraphInfoStore(Time expirationTime,
int maximumCapacity,
ScheduledExecutor scheduledExecutor,
org.apache.flink.shaded.guava31.com.google.common.base.Ticker ticker) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
ExecutionGraphInfo |
get(JobID jobId)
Get the
ExecutionGraphInfo for the given job id. |
Collection<JobDetails> |
getAvailableJobDetails()
Return the collection of
JobDetails of all currently stored jobs. |
JobDetails |
getAvailableJobDetails(JobID jobId)
Return the
JobDetails } for the given job. |
JobsOverview |
getStoredJobsOverview()
Return the
JobsOverview for all stored/past jobs. |
void |
put(ExecutionGraphInfo serializableExecutionGraphInfo)
Store the given
ExecutionGraphInfo in the store. |
int |
size()
Returns the current number of stored
ExecutionGraphInfo instances. |
public MemoryExecutionGraphInfoStore()
public MemoryExecutionGraphInfoStore(Time expirationTime, int maximumCapacity, @Nullable ScheduledExecutor scheduledExecutor, @Nullable org.apache.flink.shaded.guava31.com.google.common.base.Ticker ticker)
public int size()
ExecutionGraphInfoStore
ExecutionGraphInfo
instances.size
in interface ExecutionGraphInfoStore
ExecutionGraphInfo
instances@Nullable public ExecutionGraphInfo get(JobID jobId)
ExecutionGraphInfoStore
ExecutionGraphInfo
for the given job id. Null if it isn't stored.get
in interface ExecutionGraphInfoStore
jobId
- identifying the serializable execution graph to retrievepublic void put(ExecutionGraphInfo serializableExecutionGraphInfo) throws IOException
ExecutionGraphInfoStore
ExecutionGraphInfo
in the store.put
in interface ExecutionGraphInfoStore
serializableExecutionGraphInfo
- to storeIOException
- if the serializable execution graph could not be stored in the storepublic JobsOverview getStoredJobsOverview()
ExecutionGraphInfoStore
JobsOverview
for all stored/past jobs.getStoredJobsOverview
in interface ExecutionGraphInfoStore
public Collection<JobDetails> getAvailableJobDetails()
ExecutionGraphInfoStore
JobDetails
of all currently stored jobs.getAvailableJobDetails
in interface ExecutionGraphInfoStore
@Nullable public JobDetails getAvailableJobDetails(JobID jobId)
ExecutionGraphInfoStore
JobDetails
} for the given job.getAvailableJobDetails
in interface ExecutionGraphInfoStore
jobId
- identifying the job for which to retrieve the JobDetails
JobDetails
of the requested job or null if the job is not availablepublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.