public final class ScheduledTaskGroup extends Object implements Serializable
Task
that belong to a stage.
Executors receive units of ScheduledTaskGroups during job execution,
and thus the resource type of all tasks of a ScheduledTaskGroup must be identical.
A stage contains a list of IDs of TaskGroups whose length corresponds to stage/operator parallelism.
This class includes all information which will be required from the executor after scheduled,
including the (serialized) DAG of Task
s,
the incoming/outgoing edges to/from the stage the TaskGroup belongs to, and so on.Constructor and Description |
---|
ScheduledTaskGroup(String jobId,
byte[] serializedTaskGroupDag,
String taskGroupId,
List<PhysicalStageEdge> taskGroupIncomingEdges,
List<PhysicalStageEdge> taskGroupOutgoingEdges,
int attemptIdx,
String containerType)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getAttemptIdx() |
String |
getContainerType() |
String |
getJobId() |
byte[] |
getSerializedTaskGroupDag() |
String |
getTaskGroupId() |
int |
getTaskGroupIdx() |
List<PhysicalStageEdge> |
getTaskGroupIncomingEdges() |
List<PhysicalStageEdge> |
getTaskGroupOutgoingEdges() |
public ScheduledTaskGroup(String jobId, byte[] serializedTaskGroupDag, String taskGroupId, List<PhysicalStageEdge> taskGroupIncomingEdges, List<PhysicalStageEdge> taskGroupOutgoingEdges, int attemptIdx, String containerType)
jobId
- the id of the job.serializedTaskGroupDag
- the serialized DAG of the task group.taskGroupId
- the ID of the scheduled task group.taskGroupIncomingEdges
- the incoming edges of the task group.taskGroupOutgoingEdges
- the outgoing edges of the task group.attemptIdx
- the attempt index.containerType
- the type of container to execute the task group on.public String getJobId()
public byte[] getSerializedTaskGroupDag()
public String getTaskGroupId()
public int getTaskGroupIdx()
public List<PhysicalStageEdge> getTaskGroupIncomingEdges()
public List<PhysicalStageEdge> getTaskGroupOutgoingEdges()
public int getAttemptIdx()
public String getContainerType()
Copyright © 2018. All rights reserved.