public class TaskManagerSlot extends Object implements TaskManagerSlotInformation
Modifier and Type | Class and Description |
---|---|
static class |
TaskManagerSlot.State
State of the
TaskManagerSlot . |
Constructor and Description |
---|
TaskManagerSlot(SlotID slotId,
ResourceProfile resourceProfile,
TaskExecutorConnection taskManagerConnection) |
Modifier and Type | Method and Description |
---|---|
void |
assignPendingSlotRequest(PendingSlotRequest pendingSlotRequest) |
void |
clearPendingSlotRequest() |
void |
completeAllocation(AllocationID allocationId,
JobID jobId) |
void |
freeSlot() |
AllocationID |
getAllocationId() |
PendingSlotRequest |
getAssignedSlotRequest() |
InstanceID |
getInstanceId() |
JobID |
getJobId() |
ResourceProfile |
getResourceProfile()
Get resource profile of this slot.
|
SlotID |
getSlotId() |
TaskManagerSlot.State |
getState() |
TaskExecutorConnection |
getTaskManagerConnection() |
boolean |
isMatchingRequirement(ResourceProfile required)
Check whether required resource profile can be matched by this slot.
|
void |
updateAllocation(AllocationID allocationId,
JobID jobId) |
public TaskManagerSlot(SlotID slotId, ResourceProfile resourceProfile, TaskExecutorConnection taskManagerConnection)
public TaskManagerSlot.State getState()
public SlotID getSlotId()
getSlotId
in interface TaskManagerSlotInformation
public ResourceProfile getResourceProfile()
TaskManagerSlotInformation
getResourceProfile
in interface TaskManagerSlotInformation
public TaskExecutorConnection getTaskManagerConnection()
public AllocationID getAllocationId()
public PendingSlotRequest getAssignedSlotRequest()
public InstanceID getInstanceId()
getInstanceId
in interface TaskManagerSlotInformation
public void freeSlot()
public void clearPendingSlotRequest()
public void assignPendingSlotRequest(PendingSlotRequest pendingSlotRequest)
public void completeAllocation(AllocationID allocationId, JobID jobId)
public void updateAllocation(AllocationID allocationId, JobID jobId)
public boolean isMatchingRequirement(ResourceProfile required)
isMatchingRequirement
in interface TaskManagerSlotInformation
required
- The required resource profileCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.