Home » geronimo-2.2-source-release » org.apache.geronimo.monitoring.snapshot » [javadoc | source]
org.apache.geronimo.monitoring.snapshot
public class: SnapshotConfigXMLBuilder [javadoc | source]
java.lang.Object
   org.apache.geronimo.monitoring.snapshot.SnapshotConfigXMLBuilder
In charge of dealing with the XML processing of the snapshot's data.
Method from org.apache.geronimo.monitoring.snapshot.SnapshotConfigXMLBuilder Summary:
addMBeanName,   checkXMLExists,   ensureMonitorDir,   getAttributeValue,   getMBeanNames,   removeMBeanName,   saveDocument,   saveDuration,   saveRetention
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.geronimo.monitoring.snapshot.SnapshotConfigXMLBuilder Detail:
 public static boolean addMBeanName(String mbeanName) 
    Adds to the snapshot-config.xml another configuration element in order to persistently keep track of all user requested statistics. If there is a duplicate, nothing will be done.
 public static boolean checkXMLExists() 
    Ensures that there is an existing XML file. Creates one if there does not exist one already.
 public static  void ensureMonitorDir() 
    Checks to see if the GERONIMO_HOME/var/monitoring/ directory was made. If not, the method creates it.
 public static String getAttributeValue(String key) throws Exception 
    Returns the value of the configuration attribute, defined by the key
 public static ArrayList<String> getMBeanNames() 
 public static boolean removeMBeanName(String mbeanName) 
    Removes from the snapshot-config.xml a configuration element in order to persistently keep track of all user requested statistics. If there does not exist an instance of the mbeanNAme, nothing will be done.
 public static  void saveDocument(SnapshotConfig sc) 
    Write the XML document.
 public static  void saveDuration(long duration) 
    Saves the duration of the snapshot as a configuration attribute
 public static  void saveRetention(int retention) 
    Saves the retention of the snapshot as a configuration attribute