Class FineGrainedTaskManagerSlot
- java.lang.Object
-
- org.apache.flink.runtime.resourcemanager.slotmanager.FineGrainedTaskManagerSlot
-
- All Implemented Interfaces:
TaskManagerSlotInformation
public class FineGrainedTaskManagerSlot extends Object implements TaskManagerSlotInformation
A FineGrainedTaskManagerSlot represents a slot located in a TaskManager. It maintains states of the slot needed inFineGrainedSlotManager.Note that it should not in the state of
SlotState.FREE.
-
-
Constructor Summary
Constructors Constructor Description FineGrainedTaskManagerSlot(AllocationID allocationId, org.apache.flink.api.common.JobID jobId, ResourceProfile resourceProfile, TaskExecutorConnection taskManagerConnection, org.apache.flink.runtime.resourcemanager.slotmanager.SlotState slotState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcompleteAllocation()AllocationIDgetAllocationId()InstanceIDgetInstanceId()org.apache.flink.api.common.JobIDgetJobId()ResourceProfilegetResourceProfile()Get resource profile of this slot.SlotIDgetSlotId()org.apache.flink.runtime.resourcemanager.slotmanager.SlotStategetState()TaskExecutorConnectiongetTaskManagerConnection()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.runtime.resourcemanager.slotmanager.TaskManagerSlotInformation
isMatchingRequirement
-
-
-
-
Constructor Detail
-
FineGrainedTaskManagerSlot
public FineGrainedTaskManagerSlot(AllocationID allocationId, org.apache.flink.api.common.JobID jobId, ResourceProfile resourceProfile, TaskExecutorConnection taskManagerConnection, org.apache.flink.runtime.resourcemanager.slotmanager.SlotState slotState)
-
-
Method Detail
-
getResourceProfile
public ResourceProfile getResourceProfile()
Description copied from interface:TaskManagerSlotInformationGet resource profile of this slot.- Specified by:
getResourceProfilein interfaceTaskManagerSlotInformation- Returns:
- resource profile of this slot
-
getState
public org.apache.flink.runtime.resourcemanager.slotmanager.SlotState getState()
- Specified by:
getStatein interfaceTaskManagerSlotInformation
-
getJobId
public org.apache.flink.api.common.JobID getJobId()
- Specified by:
getJobIdin interfaceTaskManagerSlotInformation
-
getAllocationId
public AllocationID getAllocationId()
- Specified by:
getAllocationIdin interfaceTaskManagerSlotInformation
-
getSlotId
public SlotID getSlotId()
- Specified by:
getSlotIdin interfaceTaskManagerSlotInformation
-
getInstanceId
public InstanceID getInstanceId()
- Specified by:
getInstanceIdin interfaceTaskManagerSlotInformation
-
getTaskManagerConnection
public TaskExecutorConnection getTaskManagerConnection()
- Specified by:
getTaskManagerConnectionin interfaceTaskManagerSlotInformation
-
completeAllocation
public void completeAllocation()
-
-