public class TaskManagerSlot extends Object
Constructor and Description |
---|
TaskManagerSlot(SlotID slotId,
ResourceProfile resourceProfile,
TaskExecutorConnection taskManagerConnection,
AllocationID allocationId) |
Modifier and Type | Method and Description |
---|---|
AllocationID |
getAllocationId() |
PendingSlotRequest |
getAssignedSlotRequest() |
InstanceID |
getInstanceId() |
ResourceProfile |
getResourceProfile() |
SlotID |
getSlotId() |
TaskExecutorConnection |
getTaskManagerConnection() |
boolean |
hasPendingSlotRequest() |
boolean |
isAllocated() |
boolean |
isFree() |
boolean |
isMatchingRequirement(ResourceProfile required)
Check whether required resource profile can be matched by this slot.
|
void |
setAllocationId(AllocationID allocationId) |
void |
setAssignedSlotRequest(PendingSlotRequest assignedSlotRequest) |
public TaskManagerSlot(SlotID slotId, ResourceProfile resourceProfile, TaskExecutorConnection taskManagerConnection, AllocationID allocationId)
public SlotID getSlotId()
public ResourceProfile getResourceProfile()
public TaskExecutorConnection getTaskManagerConnection()
public AllocationID getAllocationId()
public void setAllocationId(AllocationID allocationId)
public PendingSlotRequest getAssignedSlotRequest()
public void setAssignedSlotRequest(PendingSlotRequest assignedSlotRequest)
public InstanceID getInstanceId()
public boolean isMatchingRequirement(ResourceProfile required)
required
- The required resource profilepublic boolean isFree()
public boolean isAllocated()
public boolean hasPendingSlotRequest()
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.