|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.geronimo.monitoring.snapshot.SnapshotConfigXMLBuilder
public class SnapshotConfigXMLBuilder
In charge of dealing with the XML processing of the snapshot's data.
Constructor Summary | |
---|---|
SnapshotConfigXMLBuilder()
|
Method Summary | |
---|---|
static boolean |
addMBeanName(String mbeanName)
Removes from the snapshot-config.xml a configuration element |
static void |
checkXMLExists()
Ensures that there is an existing XML file. |
static Document |
createDocument()
Creates an instance of a Document and returns it |
static void |
ensureMonitorDir()
Checks to see if the GERONIMO_HOME/var/monitoring/ directory was made. |
static String |
getAttributeValue(String key)
Returns the value of the configuration attribute, defined by the key |
static ArrayList<String> |
getMBeanNames()
|
static Document |
openDocument()
Parses the XML document specified by the private member 'pathToXML' and stores the information in the a Document object |
static boolean |
removeMBeanName(String mbeanName)
Adds to the snapshot-config.xml another configuration element |
static void |
saveDocument(Document document,
String path)
Write the document object to the file location specified by the path. |
static void |
saveDuration(long duration)
Saves the duration of the snapshot as a configuration attribute |
static void |
saveRetention(int retention)
Saves the retention of the snapshot as a configuration attribute |
static Document |
setUpDocument(Document document)
Prepares the root element for a document. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SnapshotConfigXMLBuilder()
Method Detail |
---|
public static ArrayList<String> getMBeanNames()
public static boolean removeMBeanName(String mbeanName)
public static boolean addMBeanName(String mbeanName)
public static void saveDuration(long duration)
duration
- public static void saveRetention(int retention)
retention
- public static String getAttributeValue(String key) throws Exception
key
-
Exception
public static void checkXMLExists()
public static Document setUpDocument(Document document)
public static Document createDocument()
public static void saveDocument(Document document, String path)
public static Document openDocument()
public static void ensureMonitorDir()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |