public class SlotSharingGroupAssignment extends Object
| Constructor and Description |
|---|
SlotSharingGroupAssignment() |
| Modifier and Type | Method and Description |
|---|---|
SubSlot |
addNewSlotWithTask(AllocatedSlot slot,
ExecutionVertex vertex) |
SubSlot |
addNewSlotWithTask(AllocatedSlot slot,
ExecutionVertex vertex,
CoLocationConstraint constraint) |
int |
getNumberOfAvailableSlotsForJid(JobVertexID jid) |
int |
getNumberOfSlots() |
SubSlot |
getSlotForTask(ExecutionVertex vertex)
Gets a slot suitable for the given task vertex.
|
SubSlot |
getSlotForTask(ExecutionVertex vertex,
CoLocationConstraint constraint) |
public SubSlot addNewSlotWithTask(AllocatedSlot slot, ExecutionVertex vertex)
public SubSlot addNewSlotWithTask(AllocatedSlot slot, ExecutionVertex vertex, CoLocationConstraint constraint)
public SubSlot getSlotForTask(ExecutionVertex vertex)
ExecutionVertex.getPreferredLocations()), but will return non local
slots if no local slot is available. The method returns null, when no slot is available for the
given JobVertexID at all.vertex - public SubSlot getSlotForTask(ExecutionVertex vertex, CoLocationConstraint constraint)
public int getNumberOfSlots()
public int getNumberOfAvailableSlotsForJid(JobVertexID jid)
Copyright © 2015 The Apache Software Foundation. All rights reserved.