public interface GroupDefinitionRecalculationThreadMonitorMBean
GroupDefinitions| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the metrics data, starting all values back to 0 as if starting fresh.
|
long |
getAutoRecalculatingGroupDefinitionCount()
Returns the count of the number of group definitions currently set for auto-recalculation, this can never be
greater than
getGroupDefinitionCount() |
long |
getAutoRecalculationThreadTime()
Returns the time (in millis) that it took to recalculate all of the DynaGroups in the system whose owning
GroupDefinition was set to automatically recalculate on a periodic basis (this metric only
reflects the last known / collected time for the recalculation thread) |
long |
getDynaGroupCount()
Returns the count of the number of
ResourceGroups in the system current managed by some
GroupDefinition |
long |
getGroupDefinitionCount()
Returns the count of the total number of group definitions currently managed by the system
|
Map<String,Map<String,Object>> |
getStatistics()
Returns a map of statistics broken down by group definition.
|
void |
updateAutoRecalculationThreadTime(long timeInMillis)
Sets the time (in millis) that it took to recalculate all of the DynaGroups in the system whose owning
GroupDefinition was set to automatically recalculate on a periodic basis (this metric only
reflects the last known / collected time for the recalculation thread) |
void |
updateStatistic(String groupDefinitionName,
int newDynaGroupCount,
boolean success,
long executionTime)
Updates the internal
GroupDefinitionRecalculationThreadMonitor.GroupDefinitionRecalculationStatistic
for the GroupDefinition with the given name. |
void clear()
long getGroupDefinitionCount()
long getAutoRecalculatingGroupDefinitionCount()
getGroupDefinitionCount()getGroupDefinitionCount()long getDynaGroupCount()
ResourceGroups in the system current managed by some
GroupDefinitionResourceGroups in the system current managed by some
GroupDefinitionlong getAutoRecalculationThreadTime()
GroupDefinition was set to automatically recalculate on a periodic basis (this metric only
reflects the last known / collected time for the recalculation thread)GroupDefinition was set to automatically recalculate on a periodic basis (this metric only
reflects the last known / collected time for the recalculation thread)void updateAutoRecalculationThreadTime(long timeInMillis)
GroupDefinition was set to automatically recalculate on a periodic basis (this metric only
reflects the last known / collected time for the recalculation thread)timeInMillis - the time (in millis) that it took to recalculate all of the DynaGroups in the system whose owning
GroupDefinition was set to automatically recalculate on a periodic basis (this metric only
reflects the last known / collected time for the recalculation thread)Map<String,Map<String,Object>> getStatistics()
void updateStatistic(String groupDefinitionName, int newDynaGroupCount, boolean success, long executionTime)
GroupDefinitionRecalculationThreadMonitor.GroupDefinitionRecalculationStatistic
for the GroupDefinition with the given name.groupDefinitionName - the name of the GroupDefinition whose internal statistics will be updatednewDynaGroupCount - the count of the number of DynaGroups managed by this GroupDefinitionsuccess - whether or not the last recalculation was successful; if successful, newDynaGroupCount will
reflect the count after recalculation, otherwise it will reflect the last known countexecutionTime - the time (in millis) that it took to recalculate this GroupDefinitionCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.