public final class TaskDeploymentDescriptor extends Object implements IOReadableWritable
| Constructor and Description |
|---|
TaskDeploymentDescriptor()
Default constructor for serialization/deserialization.
|
TaskDeploymentDescriptor(JobID jobID,
JobVertexID vertexID,
ExecutionAttemptID execuionId,
String taskName,
int indexInSubtaskGroup,
int currentNumberOfSubtasks,
Configuration jobConfiguration,
Configuration taskConfiguration,
String invokableClassName,
List<GateDeploymentDescriptor> outputGates,
List<GateDeploymentDescriptor> inputGates,
List<BlobKey> requiredJarFiles,
int targetSlotNumber)
Constructs a task deployment descriptor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCurrentNumberOfSubtasks()
Returns the current number of subtasks.
|
ExecutionAttemptID |
getExecutionId() |
int |
getIndexInSubtaskGroup()
Returns the task's index in the subtask group.
|
List<GateDeploymentDescriptor> |
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.
|
List<GateDeploymentDescriptor> |
getOutputGates() |
List<BlobKey> |
getRequiredJarFiles() |
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 |
read(DataInputView in) |
void |
write(DataOutputView out) |
public TaskDeploymentDescriptor(JobID jobID, JobVertexID vertexID, ExecutionAttemptID execuionId, String taskName, int indexInSubtaskGroup, int currentNumberOfSubtasks, Configuration jobConfiguration, Configuration taskConfiguration, String invokableClassName, List<GateDeploymentDescriptor> outputGates, List<GateDeploymentDescriptor> inputGates, List<BlobKey> requiredJarFiles, int targetSlotNumber)
jobID - the ID of the job the tasks belongs tovertexID - the task's execution vertex IDtaskName - the task's name the task's index in the subtask groupindexInSubtaskGroup - he task's index in the subtask groupcurrentNumberOfSubtasks - the current number of subtasksjobConfiguration - the configuration of the job the task belongs totaskConfiguration - the task's configuration objectinvokableClassName - the class containing the task code to be executedoutputGates - list of output gate deployment descriptorsrequiredJarFiles - list of JAR files required to run this taskpublic TaskDeploymentDescriptor()
public JobID getJobID()
public JobVertexID getVertexID()
public ExecutionAttemptID getExecutionId()
public String getTaskName()
public int getIndexInSubtaskGroup()
public int getCurrentNumberOfSubtasks()
public Configuration getJobConfiguration()
public Configuration getTaskConfiguration()
public String getInvokableClassName()
public List<GateDeploymentDescriptor> getOutputGates()
public List<GateDeploymentDescriptor> getInputGates()
public void write(DataOutputView out) throws IOException
write in interface IOReadableWritableIOExceptionpublic void read(DataInputView in) throws IOException
read in interface IOReadableWritableIOExceptionCopyright © 2015 The Apache Software Foundation. All rights reserved.