public class TaskManagerSlot extends Object implements TaskManagerSlotInformation
| 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() |
org.apache.flink.runtime.resourcemanager.slotmanager.SlotState |
getState() |
TaskExecutorConnection |
getTaskManagerConnection() |
void |
updateAllocation(AllocationID allocationId,
org.apache.flink.api.common.JobID jobId) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisMatchingRequirementpublic TaskManagerSlot(SlotID slotId, ResourceProfile resourceProfile, TaskExecutorConnection taskManagerConnection)
public org.apache.flink.runtime.resourcemanager.slotmanager.SlotState getState()
getState in interface TaskManagerSlotInformationpublic SlotID getSlotId()
getSlotId in interface TaskManagerSlotInformationpublic ResourceProfile getResourceProfile()
TaskManagerSlotInformationgetResourceProfile in interface TaskManagerSlotInformationpublic TaskExecutorConnection getTaskManagerConnection()
getTaskManagerConnection in interface TaskManagerSlotInformation@Nullable public AllocationID getAllocationId()
getAllocationId in interface TaskManagerSlotInformation@Nullable public org.apache.flink.api.common.JobID getJobId()
getJobId in interface TaskManagerSlotInformationpublic 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)
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.