Interface ExecutionGraphCache
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
DefaultExecutionGraphCache
Cache for
ExecutionGraphInfo which are obtained from the Flink cluster. Every cache entry
has an associated time to live after which a new request will trigger the reloading of the ExecutionGraphInfo from the cluster.-
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()Perform the cleanup of out dated cache entries.voidclose()Closes the execution graph cache.getExecutionGraphInfo(org.apache.flink.api.common.JobID jobId, RestfulGateway restfulGateway) Gets theExecutionGraphInfofor the givenJobIDand caches it.intsize()Gets the number of cache entries.
-
Method Details
-
size
int size()Gets the number of cache entries. -
getExecutionGraphInfo
CompletableFuture<ExecutionGraphInfo> getExecutionGraphInfo(org.apache.flink.api.common.JobID jobId, RestfulGateway restfulGateway) Gets theExecutionGraphInfofor the givenJobIDand caches it. TheExecutionGraphInfowill be requested again after the refresh interval has passed or if the graph could not be retrieved from the given gateway.- Parameters:
jobId- identifying theExecutionGraphInfoto getrestfulGateway- to request theExecutionGraphInfofrom- Returns:
- Future containing the requested
ExecutionGraphInfo
-
cleanup
void cleanup()Perform the cleanup of out dated cache entries. -
close
void close()Closes the execution graph cache.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-