Interface TaskManagerSlotInformation
-
- All Known Implementing Classes:
FineGrainedTaskManagerSlot
public interface TaskManagerSlotInformationBasic information about a TaskManager slot.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description AllocationIDgetAllocationId()InstanceIDgetInstanceId()org.apache.flink.api.common.JobIDgetJobId()ResourceProfilegetResourceProfile()Get resource profile of this slot.SlotIDgetSlotId()org.apache.flink.runtime.resourcemanager.slotmanager.SlotStategetState()TaskExecutorConnectiongetTaskManagerConnection()default booleanisMatchingRequirement(ResourceProfile required)Returns true if the requiredResourceProfilecan be fulfilled by this slot.
-
-
-
Method Detail
-
getSlotId
SlotID getSlotId()
-
getAllocationId
@Nullable AllocationID getAllocationId()
-
getJobId
@Nullable org.apache.flink.api.common.JobID getJobId()
-
getState
org.apache.flink.runtime.resourcemanager.slotmanager.SlotState getState()
-
getInstanceId
InstanceID getInstanceId()
-
getTaskManagerConnection
TaskExecutorConnection getTaskManagerConnection()
-
isMatchingRequirement
default boolean isMatchingRequirement(ResourceProfile required)
Returns true if the requiredResourceProfilecan be fulfilled by this slot.- Parameters:
required- resources- Returns:
- true if the this slot can fulfill the resource requirements
-
getResourceProfile
ResourceProfile getResourceProfile()
Get resource profile of this slot.- Returns:
- resource profile of this slot
-
-