|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.management.StandardMBean
com.sun.sgs.impl.service.nodemap.affinity.AffinityGroupFinderStats
public class AffinityGroupFinderStats
Management info for the label propagation affinity group finder.
| Field Summary | |
|---|---|
static String |
CONS_NAME
Our consumer name, created with at ProfileLevel.MEDIUM. |
protected AggregateProfileCounter |
failed
The total number of failed algorithm runs. |
protected AggregateProfileSample |
iterations
The number of iterations in the last algorithm run. |
protected int |
numGroups
The number of groups found in the last algorithm run. |
protected AggregateProfileCounter |
runs
The total number of algorithm runs. |
protected AggregateProfileSample |
runtime
The time (milliseconds) for the last algorithm run. |
protected AggregateProfileCounter |
stopped
The total number of stopped algorithm runs. |
| Fields inherited from interface com.sun.sgs.management.AffinityGroupFinderMXBean |
|---|
MXBEAN_NAME |
| Constructor Summary | |
|---|---|
AffinityGroupFinderStats(LPAAffinityGroupFinder finder,
ProfileCollector collector,
int stopIter)
Constructs the MXBean for affinity group finder information. |
|
| Method Summary | |
|---|---|
void |
clear()
Clears all data values. |
void |
failedCountInc()
Increment the count of failed algorithm runs. |
void |
findAffinityGroups()
Finds affinity groups based on the current graph information. |
double |
getAvgIterations()
Returns the average number of iterations required for algorithm runs. |
double |
getAvgRunTime()
Returns the average amount of time, in milliseconds, spent in algorithm runs. |
protected String |
getDescription(MBeanAttributeInfo info)
|
protected String |
getDescription(MBeanInfo info)
|
protected String |
getDescription(MBeanOperationInfo op)
|
protected int |
getImpact(MBeanOperationInfo op)
|
long |
getLastClearTime()
Returns the time of the last call to AffinityGroupFinderMXBean.clear(), or the time
this MBean was created if clear has never been called. |
int |
getMaxIterations()
Returns the max number of iterations for any algorithm run. |
long |
getMaxRunTime()
Returns the maximum amount of time, in milliseconds, spent in an algorithm run. |
long |
getMinRunTime()
Returns the minimum amount of time, in milliseconds, spent in an algorithm run. |
long |
getNumberFailures()
Returns the number of times the affinity group finder has failed, due to errors or node failures during a run. |
long |
getNumberGroups()
Returns the number of groups found in the latest run of the affinity group finder. |
long |
getNumberRuns()
Returns the number of times the affinity group finder has run, including runs that fail. |
long |
getNumberStopped()
Returns the number of times the affinity group finder was stopped due to not converging soon enough. |
int |
getStopIteration()
Returns the configured maximum number of iterations allowed to run before stopping the algorithm and returning the current results. |
void |
iterationsSample(long sample)
Report the number of iterations a run took. |
void |
runsCountInc()
Increment the count of algorithm runs. |
void |
runtimeSample(long sample)
Report the amount of runtime, in milliseconds, a run took. |
void |
setNumGroups(int value)
Set the number of groups found in the last run. |
void |
stoppedCountInc()
Increment the count of stopped algorithm runs, due to reaching the maximum number of iterations (if set). |
| Methods inherited from class javax.management.StandardMBean |
|---|
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, getParameterName, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CONS_NAME
ProfileLevel.MEDIUM.
protected int numGroups
protected final AggregateProfileSample iterations
protected final AggregateProfileSample runtime
protected final AggregateProfileCounter runs
protected final AggregateProfileCounter failed
protected final AggregateProfileCounter stopped
| Constructor Detail |
|---|
public AffinityGroupFinderStats(LPAAffinityGroupFinder finder,
ProfileCollector collector,
int stopIter)
finder - the affinity group findercollector - the profile collectorstopIter - the maximum iterations a run will perform| Method Detail |
|---|
public double getAvgIterations()
getAvgIterations in interface AffinityGroupFinderMXBeanpublic double getAvgRunTime()
getAvgRunTime in interface AffinityGroupFinderMXBeanpublic int getMaxIterations()
getMaxIterations in interface AffinityGroupFinderMXBeanpublic long getMaxRunTime()
getMaxRunTime in interface AffinityGroupFinderMXBeanpublic long getMinRunTime()
getMinRunTime in interface AffinityGroupFinderMXBeanpublic long getNumberFailures()
getNumberFailures in interface AffinityGroupFinderMXBeanpublic long getNumberGroups()
getNumberGroups in interface AffinityGroupFinderMXBeanpublic long getNumberRuns()
getNumberRuns in interface AffinityGroupFinderMXBeanpublic long getNumberStopped()
getNumberStopped in interface AffinityGroupFinderMXBeanpublic int getStopIteration()
getStopIteration in interface AffinityGroupFinderMXBeanpublic void clear()
clear in interface AffinityGroupFinderMXBeanpublic long getLastClearTime()
AffinityGroupFinderMXBean.clear(), or the time
this MBean was created if clear has never been called. The
time is the difference, measured in milliseconds, between the time at
which this was last cleared and midnight, January 1, 1970 UTC.
getLastClearTime in interface AffinityGroupFinderMXBeanclearpublic void findAffinityGroups()
NOTE: This method is useful for testing but may be removed.
findAffinityGroups in interface AffinityGroupFinderMXBeanprotected String getDescription(MBeanInfo info)
getDescription in class StandardMBeanprotected String getDescription(MBeanAttributeInfo info)
getDescription in class StandardMBeanprotected String getDescription(MBeanOperationInfo op)
getDescription in class StandardMBeanprotected int getImpact(MBeanOperationInfo op)
getImpact in class StandardMBeanpublic void iterationsSample(long sample)
sample - the number of iterationspublic void runtimeSample(long sample)
sample - the amount of runtime, in msecspublic void runsCountInc()
public void failedCountInc()
public void stoppedCountInc()
public void setNumGroups(int value)
value - the number of groups found in the last run.
|
RedDwarf, Version 0.10.1 2010-03-14 10:56:12 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||