Interface TaskManagerSlotInformation
- All Known Implementing Classes:
FineGrainedTaskManagerSlot
public interface TaskManagerSlotInformation
Basic information about a TaskManager slot.
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.flink.api.common.JobIDgetJobId()Get resource profile of this slot.org.apache.flink.runtime.resourcemanager.slotmanager.SlotStategetState()default booleanisMatchingRequirement(ResourceProfile required) Returns true if the requiredResourceProfilecan be fulfilled by this slot.
-
Method Details
-
getSlotId
SlotID getSlotId() -
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
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
-