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,
org.apache.flink.api.common.JobID jobId) |
void |
freeSlot() |
AllocationID |
getAllocationId() |
PendingSlotRequest |
getAssignedSlotRequest() |
InstanceID |
getInstanceId() |
org.apache.flink.api.common.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,
org.apache.flink.api.common.JobID jobId) |
public TaskManagerSlot(SlotID slotId, ResourceProfile resourceProfile, TaskExecutorConnection taskManagerConnection)
public TaskManagerSlot.State getState()
public SlotID getSlotId()
getSlotId in interface TaskManagerSlotInformationpublic ResourceProfile getResourceProfile()
TaskManagerSlotInformationgetResourceProfile in interface TaskManagerSlotInformationpublic TaskExecutorConnection getTaskManagerConnection()
public AllocationID getAllocationId()
@Nullable public org.apache.flink.api.common.JobID getJobId()
public PendingSlotRequest getAssignedSlotRequest()
public InstanceID getInstanceId()
getInstanceId in interface TaskManagerSlotInformationpublic void freeSlot()
public void clearPendingSlotRequest()
public void assignPendingSlotRequest(PendingSlotRequest pendingSlotRequest)
public void completeAllocation(AllocationID allocationId, org.apache.flink.api.common.JobID jobId)
public void updateAllocation(AllocationID allocationId, org.apache.flink.api.common.JobID jobId)
public boolean isMatchingRequirement(ResourceProfile required)
isMatchingRequirement in interface TaskManagerSlotInformationrequired - The required resource profileCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.