com.bigdata.counters
Class XMLUtility
java.lang.Object
com.bigdata.counters.XMLUtility
public class XMLUtility
- extends Object
XML (de-)serialization of CounterSets.
- Version:
- $Id: XMLUtility.java 2265 2009-10-26 12:51:06Z thompsonbry $
- Author:
- Bryan Thompson
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static final org.apache.log4j.Logger log
INSTANCE
public static final XMLUtility INSTANCE
writeXML
public void writeXML(CounterSet root,
Writer w,
Pattern filter)
throws IOException
- Serializes an
ICounterSet as XML.
- Parameters:
root - The ICounterSet.w - Where to write the XML.filter - A filter to be applied to the counters (optional). Only the
matched counters will be serialized.
- Throws:
IOException
writeHistory
protected void writeHistory(Writer w,
History h,
String units)
throws IOException
- Write the sample values for a
History of some ICounter.
- Parameters:
w - h - units -
- Throws:
IOException
readXML
public void readXML(CounterSet root,
InputStream is,
ICounterSet.IInstrumentFactory instrumentFactory,
Pattern filter)
throws IOException,
ParserConfigurationException,
SAXException
- Throws:
IOException
ParserConfigurationException
SAXException
Copyright © 2006-2011 SYSTAP, LLC. All Rights Reserved.