com.sun.sgs.impl.service.nodemap.affinity.graph
Class AffinityGraphBuilderStats

java.lang.Object
  extended by javax.management.StandardMBean
      extended by com.sun.sgs.impl.service.nodemap.affinity.graph.AffinityGraphBuilderStats
All Implemented Interfaces:
AffinityGraphBuilderMXBean, DynamicMBean, MBeanRegistration

public class AffinityGraphBuilderStats
extends StandardMBean
implements AffinityGraphBuilderMXBean

The exposed management information for the affinity graph builder.


Field Summary
static String CONS_NAME
          Our consumer name, created with at ProfileLevel.MEDIUM.
 
Fields inherited from interface com.sun.sgs.management.AffinityGraphBuilderMXBean
MXBEAN_NAME
 
Constructor Summary
AffinityGraphBuilderStats(ProfileCollector collector, edu.uci.ics.jung.graph.Graph<?,?> graph, int snapCount, long snapPeriod)
          Constructs a stats instance.
 
Method Summary
protected  String getDescription(MBeanAttributeInfo info)
          
protected  String getDescription(MBeanInfo info)
          
 long getNumberEdges()
          Returns the number of edges in the affinity graph.
 long getNumberVertices()
          Returns the number of vertices in the affinity graph.
 long getProcessingTime()
          Returns the time, in milliseconds, spent processing the affinity graph due to modifications such as updates or pruning.
 long getPruneCount()
          Returns the number of times the affinity graph has been pruned to remove dead data.
 int getSnapshotCount()
          Returns the configured number of full snapshots to consider live.
 long getSnapshotPeriod()
          Returns the configured time, in milliseconds, for each snapshot.
 long getUpdateCount()
          Returns the number of updates made to the affinity graph, which add graph data.
 void processingTimeInc(long inc)
          Increments the processing time by the input argument.
 void pruneCountInc()
          Increments the prune count.
 void updateCountInc()
          Increments the update count.
 
Methods inherited from class javax.management.StandardMBean
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, 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

CONS_NAME

public static final String CONS_NAME
Our consumer name, created with at ProfileLevel.MEDIUM.

See Also:
Constant Field Values
Constructor Detail

AffinityGraphBuilderStats

public AffinityGraphBuilderStats(ProfileCollector collector,
                                 edu.uci.ics.jung.graph.Graph<?,?> graph,
                                 int snapCount,
                                 long snapPeriod)
Constructs a stats instance.

Parameters:
collector - the profile collector
graph - the graph
snapCount - the configured snapshot count
snapPeriod - the configured snapshot period
Method Detail

getNumberEdges

public long getNumberEdges()
Returns the number of edges in the affinity graph.

Specified by:
getNumberEdges in interface AffinityGraphBuilderMXBean
Returns:
the number of edges in the affinity graph

getNumberVertices

public long getNumberVertices()
Returns the number of vertices in the affinity graph.

Specified by:
getNumberVertices in interface AffinityGraphBuilderMXBean
Returns:
the number of vertices in the affinity graph

getProcessingTime

public long getProcessingTime()
Returns the time, in milliseconds, spent processing the affinity graph due to modifications such as updates or pruning.

Specified by:
getProcessingTime in interface AffinityGraphBuilderMXBean
Returns:
the amount of time spent processing the affinity graph

getUpdateCount

public long getUpdateCount()
Returns the number of updates made to the affinity graph, which add graph data.

Specified by:
getUpdateCount in interface AffinityGraphBuilderMXBean
Returns:
the number of updates made to the affinity graph

getPruneCount

public long getPruneCount()
Returns the number of times the affinity graph has been pruned to remove dead data.

Specified by:
getPruneCount in interface AffinityGraphBuilderMXBean
Returns:
the number of times the affinity graph has been pruned

getSnapshotCount

public int getSnapshotCount()
Returns the configured number of full snapshots to consider live. Dead snapshots are eventually removed.

Specified by:
getSnapshotCount in interface AffinityGraphBuilderMXBean
Returns:
the number of live snapshots

getSnapshotPeriod

public long getSnapshotPeriod()
Returns the configured time, in milliseconds, for each snapshot.

Specified by:
getSnapshotPeriod in interface AffinityGraphBuilderMXBean
Returns:
the snapshot time period, in milliseconds

getDescription

protected String getDescription(MBeanInfo info)

Overrides:
getDescription in class StandardMBean

getDescription

protected String getDescription(MBeanAttributeInfo info)

Overrides:
getDescription in class StandardMBean

processingTimeInc

public void processingTimeInc(long inc)
Increments the processing time by the input argument.

Parameters:
inc - the amount to increment the processing time by

updateCountInc

public void updateCountInc()
Increments the update count.


pruneCountInc

public void pruneCountInc()
Increments the prune count.


RedDwarf, Version 0.10.1
2010-03-14 10:56:12

Copyright © 2010 The RedDwarf Authors. All rights reserved
Copyright © 2007-2010 Sun Microsystems, Inc. All rights reserved