Interface TaskManagerInfo
- All Known Implementing Classes:
FineGrainedTaskManagerRegistration
public interface TaskManagerInfo
Information of a TaskManager needed in
SlotManager.-
Method Summary
Modifier and TypeMethodDescriptionGet allocated slots information.Get the available resource.intGet the default number of slots.Get the default slot resource profile.longGet the timestamp when the last time becoming idle.Get the instanceId of this task manager.Get the taskExecutorConnection.Get the total resource.booleanisIdle()Check whether this task manager is idle.
-
Method Details
-
getInstanceId
InstanceID getInstanceId()Get the instanceId of this task manager.- Returns:
- the instanceId
-
getTaskExecutorConnection
TaskExecutorConnection getTaskExecutorConnection()Get the taskExecutorConnection.- Returns:
- the taskExecutorConnection
-
getAllocatedSlots
Map<AllocationID,TaskManagerSlotInformation> getAllocatedSlots()Get allocated slots information.- Returns:
- allocated slots information mapped by its allocationId
-
getAvailableResource
ResourceProfile getAvailableResource()Get the available resource.- Returns:
- the available resource
-
getTotalResource
ResourceProfile getTotalResource()Get the total resource.- Returns:
- the total resource
-
getDefaultSlotResourceProfile
ResourceProfile getDefaultSlotResourceProfile()Get the default slot resource profile.- Returns:
- the default slot resource profile
-
getDefaultNumSlots
int getDefaultNumSlots()Get the default number of slots.- Returns:
- the default number of slots
-
getIdleSince
long getIdleSince()Get the timestamp when the last time becoming idle.- Returns:
- the timestamp when the last time becoming idle
-
isIdle
boolean isIdle()Check whether this task manager is idle.- Returns:
- whether this task manager is idle
-