public final class TaskDeploymentDescriptor extends Object implements Serializable
| Constructor and Description |
|---|
TaskDeploymentDescriptor(JobID jobID,
JobVertexID vertexID,
ExecutionAttemptID executionId,
String taskName,
int indexInSubtaskGroup,
int numberOfSubtasks,
Configuration jobConfiguration,
Configuration taskConfiguration,
String invokableClassName,
List<ResultPartitionDeploymentDescriptor> producedPartitions,
List<InputGateDeploymentDescriptor> inputGates,
List<BlobKey> requiredJarFiles,
int targetSlotNumber)
Constructs a task deployment descriptor.
|
TaskDeploymentDescriptor(JobID jobID,
JobVertexID vertexID,
ExecutionAttemptID executionId,
String taskName,
int indexInSubtaskGroup,
int numberOfSubtasks,
Configuration jobConfiguration,
Configuration taskConfiguration,
String invokableClassName,
List<ResultPartitionDeploymentDescriptor> producedPartitions,
List<InputGateDeploymentDescriptor> inputGates,
List<BlobKey> requiredJarFiles,
int targetSlotNumber,
StateHandle operatorStates) |
| Modifier and Type | Method and Description |
|---|---|
ExecutionAttemptID |
getExecutionId() |
int |
getIndexInSubtaskGroup()
Returns the task's index in the subtask group.
|
List<InputGateDeploymentDescriptor> |
getInputGates() |
String |
getInvokableClassName()
Returns the name of the class containing the task code to be executed.
|
Configuration |
getJobConfiguration()
Returns the configuration of the job the task belongs to.
|
JobID |
getJobID()
Returns the ID of the job the tasks belongs to.
|
int |
getNumberOfSubtasks()
Returns the current number of subtasks.
|
StateHandle |
getOperatorStates() |
List<ResultPartitionDeploymentDescriptor> |
getProducedPartitions() |
List<BlobKey> |
getRequiredJarFiles() |
int |
getTargetSlotNumber()
Gets the number of the slot into which the task is to be deployed.
|
Configuration |
getTaskConfiguration()
Returns the task's configuration object.
|
String |
getTaskName()
Returns the task's name.
|
JobVertexID |
getVertexID()
Returns the task's execution vertex ID.
|
void |
setOperatorState(StateHandle operatorStates) |
String |
toString() |
public TaskDeploymentDescriptor(JobID jobID, JobVertexID vertexID, ExecutionAttemptID executionId, String taskName, int indexInSubtaskGroup, int numberOfSubtasks, Configuration jobConfiguration, Configuration taskConfiguration, String invokableClassName, List<ResultPartitionDeploymentDescriptor> producedPartitions, List<InputGateDeploymentDescriptor> inputGates, List<BlobKey> requiredJarFiles, int targetSlotNumber)
public TaskDeploymentDescriptor(JobID jobID, JobVertexID vertexID, ExecutionAttemptID executionId, String taskName, int indexInSubtaskGroup, int numberOfSubtasks, Configuration jobConfiguration, Configuration taskConfiguration, String invokableClassName, List<ResultPartitionDeploymentDescriptor> producedPartitions, List<InputGateDeploymentDescriptor> inputGates, List<BlobKey> requiredJarFiles, int targetSlotNumber, StateHandle operatorStates)
public JobID getJobID()
public JobVertexID getVertexID()
public ExecutionAttemptID getExecutionId()
public String getTaskName()
public int getIndexInSubtaskGroup()
public int getNumberOfSubtasks()
public int getTargetSlotNumber()
public Configuration getJobConfiguration()
public Configuration getTaskConfiguration()
public String getInvokableClassName()
public List<ResultPartitionDeploymentDescriptor> getProducedPartitions()
public List<InputGateDeploymentDescriptor> getInputGates()
public void setOperatorState(StateHandle operatorStates)
public StateHandle getOperatorStates()
Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.