Interface ClusterResourceStatisticsProvider
-
- All Known Implementing Classes:
FineGrainedTaskManagerTracker
public interface ClusterResourceStatisticsProviderProvides statistics of cluster resources.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResourceProfilegetFreeResource()Get profile of total free resources.ResourceProfilegetFreeResourceOf(InstanceID instanceId)Get profile of free resources from the TaskManager with the given instance id.intgetNumberFreeSlots()Get total number of free slots.intgetNumberFreeSlotsOf(InstanceID instanceId)Get number of free slots from the TaskManager with the given instance id.intgetNumberRegisteredSlots()Get total number of registered slots.intgetNumberRegisteredSlotsOf(InstanceID instanceId)Get number of registered slots from the TaskManager with the given instance id.ResourceProfilegetPendingResource()Get profile of total pending resources.ResourceProfilegetRegisteredResource()Get profile of total registered resources.ResourceProfilegetRegisteredResourceOf(InstanceID instanceId)Get profile of registered resources from the TaskManager with the given instance id.
-
-
-
Method Detail
-
getNumberRegisteredSlots
int getNumberRegisteredSlots()
Get total number of registered slots.
-
getNumberRegisteredSlotsOf
int getNumberRegisteredSlotsOf(InstanceID instanceId)
Get number of registered slots from the TaskManager with the given instance id.
-
getNumberFreeSlots
int getNumberFreeSlots()
Get total number of free slots.
-
getNumberFreeSlotsOf
int getNumberFreeSlotsOf(InstanceID instanceId)
Get number of free slots from the TaskManager with the given instance id.
-
getRegisteredResource
ResourceProfile getRegisteredResource()
Get profile of total registered resources.
-
getRegisteredResourceOf
ResourceProfile getRegisteredResourceOf(InstanceID instanceId)
Get profile of registered resources from the TaskManager with the given instance id.
-
getFreeResource
ResourceProfile getFreeResource()
Get profile of total free resources.
-
getFreeResourceOf
ResourceProfile getFreeResourceOf(InstanceID instanceId)
Get profile of free resources from the TaskManager with the given instance id.
-
getPendingResource
ResourceProfile getPendingResource()
Get profile of total pending resources.
-
-