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