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<Acknowledge> |
cancelJob(org.apache.flink.api.common.JobID jobId,
org.apache.flink.api.common.time.Time timeout)
Cancel the given job.
|
default CompletableFuture<Acknowledge> |
disposeSavepoint(String savepointPath,
org.apache.flink.api.common.time.Time timeout)
Dispose the given savepoint.
|
CompletableFuture<ClusterOverview> |
requestClusterOverview(org.apache.flink.api.common.time.Time timeout)
Requests the cluster status overview.
|
CompletableFuture<? extends AccessExecutionGraph> |
requestJob(org.apache.flink.api.common.JobID jobId,
org.apache.flink.api.common.time.Time timeout)
Requests the
AccessExecutionGraph for the given jobId. |
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. |
default CompletableFuture<JobStatus> |
requestJobStatus(org.apache.flink.api.common.JobID jobId,
org.apache.flink.api.common.time.Time timeout)
Request the
JobStatus of the given job. |
CompletableFuture<Collection<String>> |
requestMetricQueryServicePaths(org.apache.flink.api.common.time.Time timeout)
Requests the paths for 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.
|
default CompletableFuture<OperatorBackPressureStatsResponse> |
requestOperatorBackPressureStats(org.apache.flink.api.common.JobID jobId,
JobVertexID jobVertexId)
Requests the statistics on operator back pressure.
|
CompletableFuture<String> |
requestRestAddress(org.apache.flink.api.common.time.Time timeout)
Requests the REST address of this
RpcEndpoint. |
CompletableFuture<Collection<org.apache.flink.api.java.tuple.Tuple2<ResourceID,String>>> |
requestTaskManagerMetricQueryServicePaths(org.apache.flink.api.common.time.Time timeout)
Requests the paths for the TaskManager's
MetricQueryService to query. |
default CompletableFuture<Acknowledge> |
rescaleJob(org.apache.flink.api.common.JobID jobId,
int newParallelism,
RescalingBehaviour rescalingBehaviour,
org.apache.flink.api.common.time.Time timeout)
Trigger rescaling of the given job.
|
default CompletableFuture<Acknowledge> |
shutDownCluster() |
CompletableFuture<Acknowledge> |
stopJob(org.apache.flink.api.common.JobID jobId,
org.apache.flink.api.common.time.Time timeout)
Stop the given job.
|
default CompletableFuture<String> |
triggerSavepoint(org.apache.flink.api.common.JobID jobId,
String targetDirectory,
boolean cancelJob,
org.apache.flink.api.common.time.Time timeout)
Triggers a savepoint with the given savepoint directory as a target.
|
getAddress, getHostnameCompletableFuture<Acknowledge> cancelJob(org.apache.flink.api.common.JobID jobId, org.apache.flink.api.common.time.Time timeout)
jobId - identifying the job to canceltimeout - of the operationCompletableFuture<Acknowledge> stopJob(org.apache.flink.api.common.JobID jobId, org.apache.flink.api.common.time.Time timeout)
jobId - identifying the job to stoptimeout - of the operationCompletableFuture<String> requestRestAddress(org.apache.flink.api.common.time.Time timeout)
RpcEndpoint.timeout - for this operationCompletableFuture<? extends AccessExecutionGraph> requestJob(org.apache.flink.api.common.JobID jobId, org.apache.flink.api.common.time.Time timeout)
AccessExecutionGraph for the given jobId. If there is no such graph, then
the future is completed with a FlinkJobNotFoundException.jobId - identifying the job whose AccessExecutionGraph is requestedtimeout - for the asynchronous operationFlinkJobNotFoundExceptionCompletableFuture<JobResult> requestJobResult(org.apache.flink.api.common.JobID jobId, org.apache.flink.api.common.time.Time timeout)
JobResult of a job specified by the given jobId.CompletableFuture<MultipleJobsDetails> requestMultipleJobDetails(org.apache.flink.api.common.time.Time timeout)
timeout - for the asynchronous operationCompletableFuture<ClusterOverview> requestClusterOverview(org.apache.flink.api.common.time.Time timeout)
timeout - for the asynchronous operationCompletableFuture<Collection<String>> requestMetricQueryServicePaths(org.apache.flink.api.common.time.Time timeout)
MetricQueryService to query.timeout - for the asynchronous operationCompletableFuture<Collection<org.apache.flink.api.java.tuple.Tuple2<ResourceID,String>>> requestTaskManagerMetricQueryServicePaths(org.apache.flink.api.common.time.Time timeout)
MetricQueryService to query.timeout - for the asynchronous operationdefault CompletableFuture<String> triggerSavepoint(org.apache.flink.api.common.JobID jobId, String targetDirectory, boolean cancelJob, org.apache.flink.api.common.time.Time timeout)
jobId - ID of the job for which the savepoint should be triggered.targetDirectory - Target directory for the savepoint.timeout - Timeout for the asynchronous operationexternal pointer of
the savepoint.default CompletableFuture<Acknowledge> disposeSavepoint(String savepointPath, org.apache.flink.api.common.time.Time timeout)
savepointPath - identifying the savepoint to disposetimeout - RPC timeoutdefault CompletableFuture<JobStatus> requestJobStatus(org.apache.flink.api.common.JobID jobId, org.apache.flink.api.common.time.Time timeout)
JobStatus of the given job.jobId - identifying the job for which to retrieve the JobStatustimeout - for the asynchronous operationJobStatus of the given jobdefault CompletableFuture<OperatorBackPressureStatsResponse> requestOperatorBackPressureStats(org.apache.flink.api.common.JobID jobId, JobVertexID jobVertexId)
jobId - Job for which the stats are requested.jobVertexId - JobVertex for which the stats are requested.OperatorBackPressureStatsResponse or null if the stats are
not available (yet).default CompletableFuture<Acknowledge> rescaleJob(org.apache.flink.api.common.JobID jobId, int newParallelism, RescalingBehaviour rescalingBehaviour, org.apache.flink.api.common.time.Time timeout)
jobId - specifying the job to rescalenewParallelism - new parallelism of the jobrescalingBehaviour - defining how strict the rescaling has to be executedtimeout - of this operationAcknowledge once the rescaling was successfuldefault CompletableFuture<Acknowledge> shutDownCluster()
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.