public class AkkaJobManagerGateway extends Object implements JobManagerGateway
JobManagerGateway for old JobManager code based
on Akka actors and the ActorGateway.| Constructor and Description |
|---|
AkkaJobManagerGateway(ActorGateway jobManagerGateway) |
| 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.
|
String |
getAddress()
Returns the fully qualified address under which the associated rpc endpoint is reachable.
|
String |
getHostname()
Returns the fully qualified hostname under which the associated rpc endpoint is reachable.
|
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<ClusterOverview> |
requestClusterOverview(org.apache.flink.api.common.time.Time timeout)
Requests the cluster status overview.
|
CompletableFuture<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. |
CompletableFuture<JobIdsWithStatusOverview> |
requestJobsOverview(org.apache.flink.api.common.time.Time timeout)
Requests the job overview from the JobManager.
|
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.
|
CompletableFuture<String> |
requestRestAddress(org.apache.flink.api.common.time.Time timeout)
Requests the REST address of this
RpcEndpoint. |
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<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. |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdisposeSavepoint, requestJobStatus, requestOperatorBackPressureStats, rescaleJob, shutDownCluster, triggerSavepointpublic AkkaJobManagerGateway(ActorGateway jobManagerGateway)
public String getAddress()
RpcGatewaygetAddress in interface RpcGatewaypublic String getHostname()
RpcGatewaygetHostname in interface RpcGatewaypublic CompletableFuture<Integer> requestBlobServerPort(org.apache.flink.api.common.time.Time timeout)
JobManagerGatewayrequestBlobServerPort in interface JobManagerGatewaytimeout - for this operationpublic CompletableFuture<Acknowledge> submitJob(JobGraph jobGraph, ListeningBehaviour listeningBehaviour, org.apache.flink.api.common.time.Time timeout)
JobManagerGatewaysubmitJob in interface JobManagerGatewayjobGraph - to submitlisteningBehaviour - of the clienttimeout - for this operationpublic CompletableFuture<String> cancelJobWithSavepoint(org.apache.flink.api.common.JobID jobId, String savepointPath, org.apache.flink.api.common.time.Time timeout)
JobManagerGatewaycancelJobWithSavepoint in interface JobManagerGatewayjobId - 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 operationpublic CompletableFuture<Acknowledge> cancelJob(org.apache.flink.api.common.JobID jobId, org.apache.flink.api.common.time.Time timeout)
JobManagerGatewaycancelJob in interface JobManagerGatewaycancelJob in interface RestfulGatewayjobId - identifying the job to canceltimeout - for the asynchronous operationpublic CompletableFuture<Acknowledge> stopJob(org.apache.flink.api.common.JobID jobId, org.apache.flink.api.common.time.Time timeout)
JobManagerGatewaystopJob in interface JobManagerGatewaystopJob in interface RestfulGatewayjobId - identifying the job to canceltimeout - for the asynchronous operationpublic CompletableFuture<Optional<Instance>> requestTaskManagerInstance(ResourceID resourceId, org.apache.flink.api.common.time.Time timeout)
JobManagerGatewayOptional.empty() is returned.requestTaskManagerInstance in interface JobManagerGatewayresourceId - identifying the TaskManager which shall be retrievedtimeout - for the asynchronous operationOptional.empty()public CompletableFuture<Collection<Instance>> requestTaskManagerInstances(org.apache.flink.api.common.time.Time timeout)
JobManagerGatewayrequestTaskManagerInstances in interface JobManagerGatewaytimeout - for the asynchronous operationpublic 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)
JobManagerGatewayrequestClassloadingProps in interface JobManagerGatewayjobId - for which the class loading properties are requestedtimeout - for this operationpublic CompletableFuture<MultipleJobsDetails> requestMultipleJobDetails(org.apache.flink.api.common.time.Time timeout)
RestfulGatewayrequestMultipleJobDetails in interface RestfulGatewaytimeout - for the asynchronous operationpublic CompletableFuture<AccessExecutionGraph> requestJob(org.apache.flink.api.common.JobID jobId, org.apache.flink.api.common.time.Time timeout)
RestfulGatewayAccessExecutionGraph for the given jobId. If there is no such graph, then
the future is completed with a FlinkJobNotFoundException.requestJob in interface RestfulGatewayjobId - identifying the job whose AccessExecutionGraph is requestedtimeout - for the asynchronous operationFlinkJobNotFoundExceptionpublic 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 in interface RestfulGatewayjobId - identifying the job for which to retrieve the JobResult.timeout - for the asynchronous operationJobResult once the job has finishedpublic CompletableFuture<ClusterOverview> requestClusterOverview(org.apache.flink.api.common.time.Time timeout)
RestfulGatewayrequestClusterOverview in interface RestfulGatewaytimeout - for the asynchronous operationpublic CompletableFuture<Collection<String>> requestMetricQueryServicePaths(org.apache.flink.api.common.time.Time timeout)
RestfulGatewayMetricQueryService to query.requestMetricQueryServicePaths in interface RestfulGatewaytimeout - for the asynchronous operationpublic CompletableFuture<Collection<org.apache.flink.api.java.tuple.Tuple2<ResourceID,String>>> requestTaskManagerMetricQueryServicePaths(org.apache.flink.api.common.time.Time timeout)
RestfulGatewayMetricQueryService to query.requestTaskManagerMetricQueryServicePaths in interface RestfulGatewaytimeout - for the asynchronous operationpublic CompletableFuture<JobIdsWithStatusOverview> requestJobsOverview(org.apache.flink.api.common.time.Time timeout)
JobManagerGatewayrequestJobsOverview in interface JobManagerGatewaytimeout - for the asynchronous operationpublic CompletableFuture<String> requestRestAddress(org.apache.flink.api.common.time.Time timeout)
RestfulGatewayRpcEndpoint.requestRestAddress in interface RestfulGatewaytimeout - for this operationCopyright © 2014–2019 The Apache Software Foundation. All rights reserved.