public interface RestfulGateway extends RpcGateway
Gateways which implement this method run a REST endpoint which is reachable under the returned address.
Modifier and Type | Method and Description |
---|---|
CompletableFuture<ClusterOverview> |
requestClusterOverview(Time timeout)
Requests the cluster status overview.
|
CompletableFuture<AccessExecutionGraph> |
requestJob(JobID jobId,
Time timeout)
Requests the AccessExecutionGraph for the given jobId.
|
CompletableFuture<MultipleJobsDetails> |
requestJobDetails(boolean includeRunning,
boolean includeFinished,
Time timeout)
Requests job details currently being executed on the Flink cluster.
|
CompletableFuture<Collection<String>> |
requestMetricQueryServicePaths(Time timeout)
Requests the paths for the
MetricQueryService to query. |
CompletableFuture<String> |
requestRestAddress(Time timeout)
Requests the REST address of this
RpcEndpoint . |
CompletableFuture<Collection<Tuple2<ResourceID,String>>> |
requestTaskManagerMetricQueryServicePaths(Time timeout)
Requests the paths for the TaskManager's
MetricQueryService to query. |
getAddress, getHostname
CompletableFuture<String> requestRestAddress(Time timeout)
RpcEndpoint
.timeout
- for this operationCompletableFuture<AccessExecutionGraph> requestJob(JobID jobId, Time timeout)
FlinkJobNotFoundException
.jobId
- identifying the job whose AccessExecutionGraph is requestedtimeout
- for the asynchronous operationFlinkJobNotFoundException
CompletableFuture<MultipleJobsDetails> requestJobDetails(boolean includeRunning, boolean includeFinished, Time timeout)
includeRunning
- true if running jobs shall be included, otherwise falseincludeFinished
- true if finished jobs shall be included, otherwise falsetimeout
- for the asynchronous operationCompletableFuture<ClusterOverview> requestClusterOverview(Time timeout)
timeout
- for the asynchronous operationCompletableFuture<Collection<String>> requestMetricQueryServicePaths(Time timeout)
MetricQueryService
to query.timeout
- for the asynchronous operationCompletableFuture<Collection<Tuple2<ResourceID,String>>> requestTaskManagerMetricQueryServicePaths(Time timeout)
MetricQueryService
to query.timeout
- for the asynchronous operationCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.