public class RpcTaskManagerGateway extends Object implements TaskManagerGateway
TaskManagerGateway for Flink's RPC system| Constructor and Description |
|---|
RpcTaskManagerGateway(TaskExecutorGateway taskExecutorGateway,
UUID leaderId) |
| Modifier and Type | Method and Description |
|---|---|
Future<Acknowledge> |
cancelTask(ExecutionAttemptID executionAttemptID,
Time timeout)
Cancel the given task.
|
void |
disconnectFromJobManager(InstanceID instanceId,
Exception cause)
Disconnect the task manager from the job manager.
|
void |
failPartition(ExecutionAttemptID executionAttemptID)
Fail all intermediate result partitions of the given task.
|
String |
getAddress()
Return the address of the task manager with which the gateway is associated.
|
void |
notifyCheckpointComplete(ExecutionAttemptID executionAttemptID,
JobID jobId,
long checkpointId,
long timestamp)
Notify the given task about a completed checkpoint.
|
Future<StackTrace> |
requestStackTrace(Time timeout)
Request the stack trace from the task manager.
|
Future<StackTraceSampleResponse> |
requestStackTraceSample(ExecutionAttemptID executionAttemptID,
int sampleId,
int numSamples,
Time delayBetweenSamples,
int maxStackTraceDepth,
Time timeout)
Request a stack trace sample from the given task.
|
Future<BlobKey> |
requestTaskManagerLog(Time timeout)
Request the task manager log from the task manager.
|
Future<BlobKey> |
requestTaskManagerStdout(Time timeout)
Request the task manager stdout from the task manager.
|
void |
stopCluster(ApplicationStatus applicationStatus,
String message)
Stop the cluster.
|
Future<Acknowledge> |
stopTask(ExecutionAttemptID executionAttemptID,
Time timeout)
Stop the given task.
|
Future<Acknowledge> |
submitTask(TaskDeploymentDescriptor tdd,
Time timeout)
Submit a task to the task manager.
|
void |
triggerCheckpoint(ExecutionAttemptID executionAttemptID,
JobID jobId,
long checkpointId,
long timestamp,
CheckpointOptions checkpointOptions)
Trigger for the given task a checkpoint.
|
Future<Acknowledge> |
updatePartitions(ExecutionAttemptID executionAttemptID,
Iterable<PartitionInfo> partitionInfos,
Time timeout)
Update the task where the given partitions can be found.
|
public RpcTaskManagerGateway(TaskExecutorGateway taskExecutorGateway, UUID leaderId)
public String getAddress()
TaskManagerGatewaygetAddress in interface TaskManagerGatewaypublic void disconnectFromJobManager(InstanceID instanceId, Exception cause)
TaskManagerGatewaydisconnectFromJobManager in interface TaskManagerGatewayinstanceId - identifying the task managercause - of the disconnectionpublic void stopCluster(ApplicationStatus applicationStatus, String message)
TaskManagerGatewaystopCluster in interface TaskManagerGatewayapplicationStatus - to stop the cluster withmessage - to deliverpublic Future<StackTrace> requestStackTrace(Time timeout)
TaskManagerGatewayrequestStackTrace in interface TaskManagerGatewaytimeout - for the stack trace requestpublic Future<StackTraceSampleResponse> requestStackTraceSample(ExecutionAttemptID executionAttemptID, int sampleId, int numSamples, Time delayBetweenSamples, int maxStackTraceDepth, Time timeout)
TaskManagerGatewayrequestStackTraceSample in interface TaskManagerGatewayexecutionAttemptID - identifying the task to samplesampleId - of the samplenumSamples - to take from the given taskdelayBetweenSamples - to wait formaxStackTraceDepth - of the returned sampletimeout - of the requestpublic Future<Acknowledge> submitTask(TaskDeploymentDescriptor tdd, Time timeout)
TaskManagerGatewaysubmitTask in interface TaskManagerGatewaytdd - describing the task to submittimeout - of the submit operationpublic Future<Acknowledge> stopTask(ExecutionAttemptID executionAttemptID, Time timeout)
TaskManagerGatewaystopTask in interface TaskManagerGatewayexecutionAttemptID - identifying the tasktimeout - of the submit operationpublic Future<Acknowledge> cancelTask(ExecutionAttemptID executionAttemptID, Time timeout)
TaskManagerGatewaycancelTask in interface TaskManagerGatewayexecutionAttemptID - identifying the tasktimeout - of the submit operationpublic Future<Acknowledge> updatePartitions(ExecutionAttemptID executionAttemptID, Iterable<PartitionInfo> partitionInfos, Time timeout)
TaskManagerGatewayupdatePartitions in interface TaskManagerGatewayexecutionAttemptID - identifying the taskpartitionInfos - telling where the partition can be retrieved fromtimeout - of the submit operationpublic void failPartition(ExecutionAttemptID executionAttemptID)
TaskManagerGatewayfailPartition in interface TaskManagerGatewayexecutionAttemptID - identifying the taskpublic void notifyCheckpointComplete(ExecutionAttemptID executionAttemptID, JobID jobId, long checkpointId, long timestamp)
TaskManagerGatewaynotifyCheckpointComplete in interface TaskManagerGatewayexecutionAttemptID - identifying the taskjobId - identifying the job to which the task belongscheckpointId - of the completed checkpointtimestamp - of the completed checkpointpublic void triggerCheckpoint(ExecutionAttemptID executionAttemptID, JobID jobId, long checkpointId, long timestamp, CheckpointOptions checkpointOptions)
TaskManagerGatewaytriggerCheckpoint in interface TaskManagerGatewayexecutionAttemptID - identifying the taskjobId - identifying the job to which the task belongscheckpointId - of the checkpoint to triggertimestamp - of the checkpoint to triggercheckpointOptions - of the checkpoint to triggerpublic Future<BlobKey> requestTaskManagerLog(Time timeout)
TaskManagerGatewayrequestTaskManagerLog in interface TaskManagerGatewaytimeout - for the requestpublic Future<BlobKey> requestTaskManagerStdout(Time timeout)
TaskManagerGatewayrequestTaskManagerStdout in interface TaskManagerGatewaytimeout - for the requestCopyright © 2014–2017 The Apache Software Foundation. All rights reserved.