public final class TaskDeploymentDescriptor extends Object implements IOReadableWritable
This class is not thread-safe in general.
| Constructor and Description |
|---|
TaskDeploymentDescriptor()
Default constructor for serialization/deserialization.
|
TaskDeploymentDescriptor(JobID jobID,
ExecutionVertexID vertexID,
String taskName,
int indexInSubtaskGroup,
int currentNumberOfSubtasks,
Configuration jobConfiguration,
Configuration taskConfiguration,
Class<? extends AbstractInvokable> invokableClass,
SerializableArrayList<GateDeploymentDescriptor> outputGates,
SerializableArrayList<GateDeploymentDescriptor> inputGates)
Constructs a task deployment descriptor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCurrentNumberOfSubtasks()
Returns the current number of subtasks.
|
int |
getIndexInSubtaskGroup()
Returns the task's index in the subtask group.
|
GateDeploymentDescriptor |
getInputGateDescriptor(int index)
Returns the input gate descriptor with the given index
|
Class<? extends AbstractInvokable> |
getInvokableClass()
Returns 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 |
getNumberOfInputGateDescriptors()
Returns the number of output gate deployment descriptors contained in this task deployment descriptor.
|
int |
getNumberOfOutputGateDescriptors()
Returns the number of output gate deployment descriptors contained in this task deployment descriptor.
|
GateDeploymentDescriptor |
getOutputGateDescriptor(int index)
Returns the output gate descriptor with the given index
|
Configuration |
getTaskConfiguration()
Returns the task's configuration object.
|
String |
getTaskName()
Returns the task's name.
|
ExecutionVertexID |
getVertexID()
Returns the task's execution vertex ID.
|
void |
read(DataInputView in) |
void |
write(DataOutputView out) |
public TaskDeploymentDescriptor(JobID jobID, ExecutionVertexID vertexID, String taskName, int indexInSubtaskGroup, int currentNumberOfSubtasks, Configuration jobConfiguration, Configuration taskConfiguration, Class<? extends AbstractInvokable> invokableClass, SerializableArrayList<GateDeploymentDescriptor> outputGates, SerializableArrayList<GateDeploymentDescriptor> inputGates)
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 objectinvokableClass - the class containing the task code to be executedoutputGates - list of output gate deployment descriptorsinputGateIDs - list of input gate deployment descriptorspublic TaskDeploymentDescriptor()
public void write(DataOutputView out) throws IOException
write in interface IOReadableWritableIOExceptionpublic void read(DataInputView in) throws IOException
read in interface IOReadableWritableIOExceptionpublic JobID getJobID()
public ExecutionVertexID getVertexID()
public String getTaskName()
public int getIndexInSubtaskGroup()
public int getCurrentNumberOfSubtasks()
public Configuration getJobConfiguration()
public Configuration getTaskConfiguration()
public Class<? extends AbstractInvokable> getInvokableClass()
public int getNumberOfOutputGateDescriptors()
public GateDeploymentDescriptor getOutputGateDescriptor(int index)
index - the index if the output gate descriptor to returnpublic int getNumberOfInputGateDescriptors()
public GateDeploymentDescriptor getInputGateDescriptor(int index)
index - the index if the input gate descriptor to returnCopyright © 2014 The Apache Software Foundation. All rights reserved.