Interface TaskManagerInfo
-
- All Known Implementing Classes:
FineGrainedTaskManagerRegistration
public interface TaskManagerInfoInformation of a TaskManager needed inSlotManager.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<AllocationID,TaskManagerSlotInformation>getAllocatedSlots()Get allocated slots information.ResourceProfilegetAvailableResource()Get the available resource.intgetDefaultNumSlots()Get the default number of slots.ResourceProfilegetDefaultSlotResourceProfile()Get the default slot resource profile.longgetIdleSince()Get the timestamp when the last time becoming idle.InstanceIDgetInstanceId()Get the instanceId of this task manager.TaskExecutorConnectiongetTaskExecutorConnection()Get the taskExecutorConnection.ResourceProfilegetTotalResource()Get the total resource.booleanisIdle()Check whether this task manager is idle.
-
-
-
Method Detail
-
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
-
-