public class NonLeaderRetrievalRestfulGateway extends Object implements RestfulGateway
Gateways which implement this method run a REST endpoint which is reachable under the returned
address, and can be used in AbstractHandler without
leader retrieval logic.
| 限定符和类型 | 字段和说明 |
|---|---|
static NonLeaderRetrievalRestfulGateway |
INSTANCE |
| 限定符和类型 | 方法和说明 |
|---|---|
CompletableFuture<Acknowledge> |
cancelJob(org.apache.flink.api.common.JobID jobId,
org.apache.flink.api.common.time.Time timeout)
Cancel the given job.
|
String |
getAddress() |
String |
getHostname() |
CompletableFuture<ClusterOverview> |
requestClusterOverview(org.apache.flink.api.common.time.Time timeout)
Requests the cluster status overview.
|
CompletableFuture<ExecutionGraphInfo> |
requestExecutionGraphInfo(org.apache.flink.api.common.JobID jobId,
org.apache.flink.api.common.time.Time timeout)
Requests the
ExecutionGraphInfo containing additional information besides the ArchivedExecutionGraph. |
CompletableFuture<JobResult> |
requestJobResult(org.apache.flink.api.common.JobID jobId,
org.apache.flink.api.common.time.Time timeout)
Requests the
JobResult of a job specified by the given jobId. |
CompletableFuture<Collection<String>> |
requestMetricQueryServiceAddresses(org.apache.flink.api.common.time.Time timeout)
Requests the addresses of the
MetricQueryService to query. |
CompletableFuture<MultipleJobsDetails> |
requestMultipleJobDetails(org.apache.flink.api.common.time.Time timeout)
Requests job details currently being executed on the Flink cluster.
|
CompletableFuture<Collection<org.apache.flink.api.java.tuple.Tuple2<ResourceID,String>>> |
requestTaskManagerMetricQueryServiceAddresses(org.apache.flink.api.common.time.Time timeout)
Requests the addresses for the TaskManagers'
MetricQueryService to query. |
CompletableFuture<ThreadDumpInfo> |
requestThreadDump(org.apache.flink.api.common.time.Time timeout)
Requests the thread dump from the JobManager.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeliverCoordinationRequestToCoordinator, disposeSavepoint, getTriggeredSavepointStatus, requestJob, requestJobStatus, shutDownCluster, stopWithSavepoint, triggerSavepointpublic static final NonLeaderRetrievalRestfulGateway INSTANCE
public String getAddress()
getAddress 在接口中 org.apache.flink.runtime.rpc.RpcGatewaypublic String getHostname()
getHostname 在接口中 org.apache.flink.runtime.rpc.RpcGatewaypublic CompletableFuture<Acknowledge> cancelJob(org.apache.flink.api.common.JobID jobId, org.apache.flink.api.common.time.Time timeout)
RestfulGatewaycancelJob 在接口中 RestfulGatewayjobId - identifying the job to canceltimeout - of the operationpublic CompletableFuture<ExecutionGraphInfo> requestExecutionGraphInfo(org.apache.flink.api.common.JobID jobId, org.apache.flink.api.common.time.Time timeout)
RestfulGatewayExecutionGraphInfo containing additional information besides the ArchivedExecutionGraph. If there is no such graph, then the future is completed with a
FlinkJobNotFoundException.requestExecutionGraphInfo 在接口中 RestfulGatewayjobId - identifying the job whose ExecutionGraphInfo is requestedtimeout - for the asynchronous operationExecutionGraphInfo for the given jobId, otherwise
FlinkJobNotFoundExceptionpublic CompletableFuture<JobResult> requestJobResult(org.apache.flink.api.common.JobID jobId, org.apache.flink.api.common.time.Time timeout)
RestfulGatewayJobResult of a job specified by the given jobId.requestJobResult 在接口中 RestfulGatewayjobId - identifying the job for which to retrieve the JobResult.timeout - for the asynchronous operationJobResult once the job has finishedpublic CompletableFuture<MultipleJobsDetails> requestMultipleJobDetails(org.apache.flink.api.common.time.Time timeout)
RestfulGatewayrequestMultipleJobDetails 在接口中 RestfulGatewaytimeout - for the asynchronous operationpublic CompletableFuture<ClusterOverview> requestClusterOverview(org.apache.flink.api.common.time.Time timeout)
RestfulGatewayrequestClusterOverview 在接口中 RestfulGatewaytimeout - for the asynchronous operationpublic CompletableFuture<Collection<String>> requestMetricQueryServiceAddresses(org.apache.flink.api.common.time.Time timeout)
RestfulGatewayMetricQueryService to query.requestMetricQueryServiceAddresses 在接口中 RestfulGatewaytimeout - for the asynchronous operationpublic CompletableFuture<Collection<org.apache.flink.api.java.tuple.Tuple2<ResourceID,String>>> requestTaskManagerMetricQueryServiceAddresses(org.apache.flink.api.common.time.Time timeout)
RestfulGatewayMetricQueryService to query.requestTaskManagerMetricQueryServiceAddresses 在接口中 RestfulGatewaytimeout - for the asynchronous operationpublic CompletableFuture<ThreadDumpInfo> requestThreadDump(org.apache.flink.api.common.time.Time timeout)
RestfulGatewayrequestThreadDump 在接口中 RestfulGatewaytimeout - timeout of the asynchronous operationCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.