public class XMLUtility extends Object
CounterSet
s.Modifier and Type | Field and Description |
---|---|
static XMLUtility |
INSTANCE |
protected static org.apache.log4j.Logger |
log |
Modifier and Type | Method and Description |
---|---|
void |
readXML(CounterSet root,
InputStream is,
ICounterSet.IInstrumentFactory instrumentFactory,
Pattern filter) |
protected void |
writeHistory(Writer w,
History h,
String units)
|
void |
writeXML(CounterSet root,
Writer w,
Pattern filter)
Serializes an
ICounterSet as XML. |
protected static final org.apache.log4j.Logger log
public static final XMLUtility INSTANCE
public void writeXML(CounterSet root, Writer w, Pattern filter) throws IOException
ICounterSet
as XML.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.IOException
protected void writeHistory(Writer w, History h, String units) throws IOException
w
- h
- units
- IOException
public void readXML(CounterSet root, InputStream is, ICounterSet.IInstrumentFactory instrumentFactory, Pattern filter) throws IOException, ParserConfigurationException, SAXException
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.