Home » geronimo-2.2-source-release » org.apache.geronimo.monitoring.jmx » [javadoc | source]
org.apache.geronimo.monitoring.jmx
public class: MasterRemoteControlJMX [javadoc | source]
java.lang.Object
   org.apache.geronimo.monitoring.jmx.MasterRemoteControlJMX

All Implemented Interfaces:
    GBeanLifecycle

This is the GBean that will be the bottleneck for the communication between the management node and the data in the server node.
Field Summary
public static final  GBeanInfo GBEAN_INFO     
Constructor:
 public MasterRemoteControlJMX() 
Method from org.apache.geronimo.monitoring.jmx.MasterRemoteControlJMX Summary:
SnapshotStatus,   addMBeanForSnapshot,   doFail,   doStart,   doStop,   fetchMaxSnapshotData,   fetchMinSnapshotData,   fetchSnapshotData,   getAllMBeanNames,   getAllSnapshotStatAttributes,   getGBeanInfo,   getSnapshotCount,   getSnapshotDuration,   getSnapshotRetention,   getSpecificStatistics,   getStatisticsProviderMBeanNames,   getStats,   getTrackedMBeans,   invoke,   removeMBeanForSnapshot,   setAttribute,   setSnapshotDuration,   setSnapshotRetention,   startSnapshot,   startSnapshot,   stopSnapshot
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.geronimo.monitoring.jmx.MasterRemoteControlJMX Detail:
 public Integer SnapshotStatus() 
 public boolean addMBeanForSnapshot(String mbeanName) 
    Adds a record of the mbean via its name to take snapshots of. As a result the mbeanName will be written to snapshot-config.xml
 public  void doFail() 
 public  void doStart() 
    Executes when the GBean starts up. Also starts the snapshot thread.
 public  void doStop() 
    Executes when the GBean stops. Also stops the snapshot thread.
 public HashMap<String, Long> fetchMaxSnapshotData(Integer numberOfSnapshot) 
    Fetches the max amount for each statistic stored from the snapshot thread and returns it in a HashMap
 public HashMap<String, Long> fetchMinSnapshotData(Integer numberOfSnapshot) 
    Fetches the min amount for each statistic stored from the snapshot thread and returns it in a HashMap
 public ArrayList<String, Object> fetchSnapshotData(Integer numberOfSnapshot,
    Integer everyNthSnapshot) 
    Fetches the data stored from the snapshot thread and returns it in a ArrayList with each element being a HashMap of the attribute mapping to the statistic. All stats will be the average of 1 - n, n+1 - 2n, ..., cn+1 - c(n+1) Grabs 'numberOfSnapshots' snapshots. Grabs one snapshot per 'everyNthsnapshot'
 public Set<String> getAllMBeanNames() 
    Fetches all mbean names
 public HashMap<String> getAllSnapshotStatAttributes() 
 public static GBeanInfo getGBeanInfo() 
 public Long getSnapshotCount() 
 public Long getSnapshotDuration() 
    Gets the elapsed time in milliseconds between each snapshot.
 public Integer getSnapshotRetention() 
 public TreeMap<Long, Long> getSpecificStatistics(String mbeanName,
    String statsName,
    Integer numberOfSnapshots,
    Integer everyNthSnapshot,
    Boolean showArchived) 
 public Set<String> getStatisticsProviderMBeanNames() 
    Fetches all mbean names that provide JSR-77 statistics
 public static HashMap getStats(String objectName) throws Exception 
    Looks up the JSR-77 statistics associated with this object name.
 public Set<String> getTrackedMBeans() 
 public Object invoke(ObjectName name,
    String operationName,
    Object[] params,
    String[] signature) throws Exception 
 public boolean removeMBeanForSnapshot(String mbeanName) 
    Removes a record of the mbean via its name to take snapshots of. As a result the mbeanName will be removed from snapshot-config.xml
 public  void setAttribute(String objectName,
    String attrName,
    Object attrValue) throws Exception 
    Changes the objectName's attrName's value to attrValue
 public  void setSnapshotDuration(Long snapshotDuration) 
    Sets the elapsed time in milliseconds between each snapshot.
 public  void setSnapshotRetention(Integer retention) 
 public boolean startSnapshot(Long interval) 
    Begins the snapshot process given the time interval between snapshots Precondition: interval is given in milli seconds
 public boolean startSnapshot(Long interval,
    Integer retention) 
    Begins the snapshot process given the time interval between snapshots Precondition: interval is given in milli seconds
 public boolean stopSnapshot() 
    Stops the snapshot thread