public class GroupDefinitionRecalculationThreadMonitor extends Object implements GroupDefinitionRecalculationThreadMonitorMBean
GroupDefinitions| Modifier and Type | Class and Description |
|---|---|
class |
GroupDefinitionRecalculationThreadMonitor.GroupDefinitionRecalculationStat |
| Constructor and Description |
|---|
GroupDefinitionRecalculationThreadMonitor() |
| 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
GroupDefinitionRecalculationThreadMonitorMBean.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
|
static GroupDefinitionRecalculationThreadMonitorMBean |
getMBean() |
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.GroupDefinitionRecalculationStat
for the GroupDefinition with the given name. |
public GroupDefinitionRecalculationThreadMonitor()
public static GroupDefinitionRecalculationThreadMonitorMBean getMBean()
public void clear()
GroupDefinitionRecalculationThreadMonitorMBeanclear in interface GroupDefinitionRecalculationThreadMonitorMBeanpublic long getGroupDefinitionCount()
GroupDefinitionRecalculationThreadMonitorMBeangetGroupDefinitionCount in interface GroupDefinitionRecalculationThreadMonitorMBeanpublic long getAutoRecalculatingGroupDefinitionCount()
GroupDefinitionRecalculationThreadMonitorMBeanGroupDefinitionRecalculationThreadMonitorMBean.getGroupDefinitionCount()getAutoRecalculatingGroupDefinitionCount in interface GroupDefinitionRecalculationThreadMonitorMBeanGroupDefinitionRecalculationThreadMonitorMBean.getGroupDefinitionCount()public long getDynaGroupCount()
GroupDefinitionRecalculationThreadMonitorMBeanResourceGroups in the system current managed by some
GroupDefinitiongetDynaGroupCount in interface GroupDefinitionRecalculationThreadMonitorMBeanResourceGroups in the system current managed by some
GroupDefinitionpublic long getAutoRecalculationThreadTime()
GroupDefinitionRecalculationThreadMonitorMBeanGroupDefinition was set to automatically recalculate on a periodic basis (this metric only
reflects the last known / collected time for the recalculation thread)getAutoRecalculationThreadTime in interface GroupDefinitionRecalculationThreadMonitorMBeanGroupDefinition was set to automatically recalculate on a periodic basis (this metric only
reflects the last known / collected time for the recalculation thread)public void updateAutoRecalculationThreadTime(long timeInMillis)
GroupDefinitionRecalculationThreadMonitorMBeanGroupDefinition was set to automatically recalculate on a periodic basis (this metric only
reflects the last known / collected time for the recalculation thread)updateAutoRecalculationThreadTime in interface GroupDefinitionRecalculationThreadMonitorMBeantimeInMillis - 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)public void updateStatistic(String groupDefinitionName, int newDynaGroupCount, boolean success, long executionTime)
GroupDefinitionRecalculationThreadMonitorMBeanGroupDefinitionRecalculationThreadMonitor.GroupDefinitionRecalculationStat
for the GroupDefinition with the given name.updateStatistic in interface GroupDefinitionRecalculationThreadMonitorMBeangroupDefinitionName - 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 GroupDefinitionpublic Map<String,Map<String,Object>> getStatistics()
GroupDefinitionRecalculationThreadMonitorMBeangetStatistics in interface GroupDefinitionRecalculationThreadMonitorMBeanCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.