|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.server.resource.group.definition.mbean.GroupDefinitionRecalculationThreadMonitor
public class GroupDefinitionRecalculationThreadMonitor
An MBean that exposes call-time metrics for the cost of recalculating
DynaGroups from their owning GroupDefinitions
| Nested Class Summary | |
|---|---|
class |
GroupDefinitionRecalculationThreadMonitor.GroupDefinitionRecalculationStatistic
|
| Constructor Summary | |
|---|---|
GroupDefinitionRecalculationThreadMonitor()
|
|
| Method Summary | |
|---|---|
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 |
postDeregister()
|
void |
postRegister(Boolean registrationDone)
|
void |
preDeregister()
|
ObjectName |
preRegister(MBeanServer server,
ObjectName name)
|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GroupDefinitionRecalculationThreadMonitor()
| Method Detail |
|---|
public static GroupDefinitionRecalculationThreadMonitorMBean getMBean()
public ObjectName preRegister(MBeanServer server,
ObjectName name)
throws Exception
preRegister in interface MBeanRegistrationExceptionpublic void clear()
GroupDefinitionRecalculationThreadMonitorMBean
clear in interface GroupDefinitionRecalculationThreadMonitorMBeanpublic long getGroupDefinitionCount()
GroupDefinitionRecalculationThreadMonitorMBean
getGroupDefinitionCount in interface GroupDefinitionRecalculationThreadMonitorMBeanpublic long getAutoRecalculatingGroupDefinitionCount()
GroupDefinitionRecalculationThreadMonitorMBeanGroupDefinitionRecalculationThreadMonitorMBean.getGroupDefinitionCount()
getAutoRecalculatingGroupDefinitionCount in interface GroupDefinitionRecalculationThreadMonitorMBeanGroupDefinitionRecalculationThreadMonitorMBean.getGroupDefinitionCount()public long getDynaGroupCount()
GroupDefinitionRecalculationThreadMonitorMBeanResourceGroups in the system current managed by some
GroupDefinition
getDynaGroupCount 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.GroupDefinitionRecalculationStatistic
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()
GroupDefinitionRecalculationThreadMonitorMBean
getStatistics in interface GroupDefinitionRecalculationThreadMonitorMBeanpublic void postRegister(Boolean registrationDone)
postRegister in interface MBeanRegistration
public void preDeregister()
throws Exception
preDeregister in interface MBeanRegistrationExceptionpublic void postDeregister()
postDeregister in interface MBeanRegistration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||