public class DefaultExecutionGraphCache extends Object implements ExecutionGraphCache
ExecutionGraphCache.| Constructor and Description |
|---|
DefaultExecutionGraphCache(org.apache.flink.api.common.time.Time timeout,
org.apache.flink.api.common.time.Time timeToLive) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
Perform the cleanup of out dated cache entries.
|
void |
close()
Closes the execution graph cache.
|
CompletableFuture<ExecutionGraphInfo> |
getExecutionGraphInfo(org.apache.flink.api.common.JobID jobId,
RestfulGateway restfulGateway)
Gets the
ExecutionGraphInfo for the given JobID and caches it. |
int |
size()
Gets the number of cache entries.
|
public DefaultExecutionGraphCache(org.apache.flink.api.common.time.Time timeout,
org.apache.flink.api.common.time.Time timeToLive)
public void close()
ExecutionGraphCacheclose in interface Closeableclose in interface AutoCloseableclose in interface ExecutionGraphCachepublic int size()
ExecutionGraphCachesize in interface ExecutionGraphCachepublic CompletableFuture<ExecutionGraphInfo> getExecutionGraphInfo(org.apache.flink.api.common.JobID jobId, RestfulGateway restfulGateway)
ExecutionGraphCacheExecutionGraphInfo for the given JobID and caches it. The ExecutionGraphInfo will be requested again after the refresh interval has passed or if the
graph could not be retrieved from the given gateway.getExecutionGraphInfo in interface ExecutionGraphCachejobId - identifying the ExecutionGraphInfo to getrestfulGateway - to request the ExecutionGraphInfo fromExecutionGraphInfopublic void cleanup()
ExecutionGraphCachecleanup in interface ExecutionGraphCacheCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.