Interface ExecutionGraphCache
-
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
DefaultExecutionGraphCache
public interface ExecutionGraphCache extends Closeable
Cache forExecutionGraphInfowhich 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 theExecutionGraphInfofrom the cluster.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcleanup()Perform the cleanup of out dated cache entries.voidclose()Closes the execution graph cache.CompletableFuture<ExecutionGraphInfo>getExecutionGraphInfo(org.apache.flink.api.common.JobID jobId, RestfulGateway restfulGateway)Gets theExecutionGraphInfofor the givenJobIDand caches it.intsize()Gets the number of cache entries.
-
-
-
Method Detail
-
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
-
-