Interface ClusterResourceStatisticsProvider
- All Known Implementing Classes:
FineGrainedTaskManagerTracker
public interface ClusterResourceStatisticsProvider
Provides statistics of cluster resources.
-
Method Summary
Modifier and TypeMethodDescriptionGet profile of total free resources.getFreeResourceOf(InstanceID instanceId) Get profile of free resources from the TaskManager with the given instance id.intGet total number of free slots.intgetNumberFreeSlotsOf(InstanceID instanceId) Get number of free slots from the TaskManager with the given instance id.intGet total number of registered slots.intgetNumberRegisteredSlotsOf(InstanceID instanceId) Get number of registered slots from the TaskManager with the given instance id.Get profile of total pending resources.Get profile of total registered resources.getRegisteredResourceOf(InstanceID instanceId) Get profile of registered resources from the TaskManager with the given instance id.
-
Method Details
-
getNumberRegisteredSlots
int getNumberRegisteredSlots()Get total number of registered slots. -
getNumberRegisteredSlotsOf
Get number of registered slots from the TaskManager with the given instance id. -
getNumberFreeSlots
int getNumberFreeSlots()Get total number of free slots. -
getNumberFreeSlotsOf
Get number of free slots from the TaskManager with the given instance id. -
getRegisteredResource
ResourceProfile getRegisteredResource()Get profile of total registered resources. -
getRegisteredResourceOf
Get profile of registered resources from the TaskManager with the given instance id. -
getFreeResource
ResourceProfile getFreeResource()Get profile of total free resources. -
getFreeResourceOf
Get profile of free resources from the TaskManager with the given instance id. -
getPendingResource
ResourceProfile getPendingResource()Get profile of total pending resources.
-