public interface JobManagerGateway extends RestfulGateway
This interface constitutes the operations an external component can trigger on the JobManager.
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Acknowledge> |
cancelJob(org.apache.flink.api.common.JobID jobId,
org.apache.flink.api.common.time.Time timeout)
Cancels the given job.
|
CompletableFuture<String> |
cancelJobWithSavepoint(org.apache.flink.api.common.JobID jobId,
String savepointPath,
org.apache.flink.api.common.time.Time timeout)
Cancels the given job after taking a savepoint and returning its path.
|
CompletableFuture<Integer> |
requestBlobServerPort(org.apache.flink.api.common.time.Time timeout)
Requests the BlobServer port.
|
CompletableFuture<Optional<org.apache.flink.runtime.messages.JobManagerMessages.ClassloadingProps>> |
requestClassloadingProps(org.apache.flink.api.common.JobID jobId,
org.apache.flink.api.common.time.Time timeout)
Requests the class loading properties for the given JobID.
|
CompletableFuture<JobIdsWithStatusOverview> |
requestJobsOverview(org.apache.flink.api.common.time.Time timeout)
Requests the job overview from the JobManager.
|
CompletableFuture<Optional<Instance>> |
requestTaskManagerInstance(ResourceID resourceId,
org.apache.flink.api.common.time.Time timeout)
Requests the TaskManager instance registered under the given instanceId from the JobManager.
|
CompletableFuture<Collection<Instance>> |
requestTaskManagerInstances(org.apache.flink.api.common.time.Time timeout)
Requests all currently registered TaskManager instances from the JobManager.
|
CompletableFuture<Acknowledge> |
stopJob(org.apache.flink.api.common.JobID jobId,
org.apache.flink.api.common.time.Time timeout)
Stops the given job.
|
CompletableFuture<Acknowledge> |
submitJob(JobGraph jobGraph,
ListeningBehaviour listeningBehaviour,
org.apache.flink.api.common.time.Time timeout)
Submits a job to the JobManager.
|
disposeSavepoint, requestClusterOverview, requestJob, requestJobResult, requestJobStatus, requestMetricQueryServicePaths, requestMultipleJobDetails, requestOperatorBackPressureStats, requestRestAddress, requestTaskManagerMetricQueryServicePaths, rescaleJob, shutDownCluster, triggerSavepointgetAddress, getHostnameCompletableFuture<Integer> requestBlobServerPort(org.apache.flink.api.common.time.Time timeout)
timeout - for this operationCompletableFuture<Acknowledge> submitJob(JobGraph jobGraph, ListeningBehaviour listeningBehaviour, org.apache.flink.api.common.time.Time timeout)
jobGraph - to submitlisteningBehaviour - of the clienttimeout - for this operationCompletableFuture<String> cancelJobWithSavepoint(org.apache.flink.api.common.JobID jobId, @Nullable String savepointPath, org.apache.flink.api.common.time.Time timeout)
jobId - identifying the job to cancelsavepointPath - Optional path for the savepoint to be stored under; if null, then the default path is
takentimeout - for the asynchronous operationCompletableFuture<Acknowledge> cancelJob(org.apache.flink.api.common.JobID jobId, org.apache.flink.api.common.time.Time timeout)
cancelJob in interface RestfulGatewayjobId - identifying the job to canceltimeout - for the asynchronous operationCompletableFuture<Acknowledge> stopJob(org.apache.flink.api.common.JobID jobId, org.apache.flink.api.common.time.Time timeout)
stopJob in interface RestfulGatewayjobId - identifying the job to canceltimeout - for the asynchronous operationCompletableFuture<Optional<org.apache.flink.runtime.messages.JobManagerMessages.ClassloadingProps>> requestClassloadingProps(org.apache.flink.api.common.JobID jobId, org.apache.flink.api.common.time.Time timeout)
jobId - for which the class loading properties are requestedtimeout - for this operationCompletableFuture<Optional<Instance>> requestTaskManagerInstance(ResourceID resourceId, org.apache.flink.api.common.time.Time timeout)
Optional.empty() is returned.resourceId - identifying the TaskManager which shall be retrievedtimeout - for the asynchronous operationOptional.empty()CompletableFuture<Collection<Instance>> requestTaskManagerInstances(org.apache.flink.api.common.time.Time timeout)
timeout - for the asynchronous operationCompletableFuture<JobIdsWithStatusOverview> requestJobsOverview(org.apache.flink.api.common.time.Time timeout)
timeout - for the asynchronous operationCopyright © 2014–2019 The Apache Software Foundation. All rights reserved.