public interface ExecutionGraphCache extends Closeable
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.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(JobID jobId,
RestfulGateway restfulGateway)
Gets the
ExecutionGraphInfo for the given JobID and caches it. |
int |
size()
Gets the number of cache entries.
|
int size()
CompletableFuture<ExecutionGraphInfo> getExecutionGraphInfo(JobID jobId, RestfulGateway restfulGateway)
ExecutionGraphInfo
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.jobId
- identifying the ExecutionGraphInfo
to getrestfulGateway
- to request the ExecutionGraphInfo
fromExecutionGraphInfo
void cleanup()
void close()
close
in interface AutoCloseable
close
in interface Closeable
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.