Class FineGrainedTaskManagerSlot
java.lang.Object
org.apache.flink.runtime.resourcemanager.slotmanager.FineGrainedTaskManagerSlot
- All Implemented Interfaces:
TaskManagerSlotInformation
A FineGrainedTaskManagerSlot represents a slot located in a TaskManager. It maintains states of
the slot needed in
FineGrainedSlotManager.
Note that it should not in the state of SlotState.FREE.
-
Constructor Summary
ConstructorsConstructorDescriptionFineGrainedTaskManagerSlot(AllocationID allocationId, org.apache.flink.api.common.JobID jobId, ResourceProfile resourceProfile, TaskExecutorConnection taskManagerConnection, org.apache.flink.runtime.resourcemanager.slotmanager.SlotState slotState) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.flink.runtime.resourcemanager.slotmanager.TaskManagerSlotInformation
isMatchingRequirement
-
Constructor Details
-
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 Details
-
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
- Specified by:
getAllocationIdin interfaceTaskManagerSlotInformation
-
getSlotId
- Specified by:
getSlotIdin interfaceTaskManagerSlotInformation
-
getInstanceId
- Specified by:
getInstanceIdin interfaceTaskManagerSlotInformation
-
getTaskManagerConnection
- Specified by:
getTaskManagerConnectionin interfaceTaskManagerSlotInformation
-
completeAllocation
public void completeAllocation()
-