public class FrameworkStatisticsDataWriter extends Object implements FrameworkStatisticsDataXMLConstants, Serializable
FRAMEWORK_STATISTICS_DATA_KEY, FRAMEWORK_STATISTICS_DATA_LIST_KEY, INSTANCE_NAME_KEY, NAMESPACE_KEY, NAMESPACE_VALUE, STARTUP_TIME_KEY, UP_TIME_KEY, VERSION_KEY, VERSION_VALUE| Constructor and Description |
|---|
FrameworkStatisticsDataWriter()
Constructor - Creates an FrameworkStatisticsDataWriter
|
| Modifier and Type | Method and Description |
|---|---|
protected Element |
createFrameworkStatisticsDataElement(Document document,
FrameworkStatisticsData data) |
static void |
main(String[] args) |
static String |
serialize(Map<String,FrameworkStatisticsData> dataMap) |
static void |
setContents(File aFile,
String aContents)
Change the contents of text file in its entirety, overwriting any
existing text.
|
static void |
writeToFile(Document document,
String directoryPath) |
protected String |
writeToString(Document document) |
public FrameworkStatisticsDataWriter()
public static void writeToFile(Document document, String directoryPath) throws TransformerConfigurationException, TransformerException, Exception
document - directoryPath - TransformerConfigurationExceptionTransformerExceptionExceptionpublic static void setContents(File aFile, String aContents) throws FileNotFoundException, IOException
aFile - is an existing file which can be written to.IllegalArgumentException - if param does not comply.FileNotFoundException - if the file does not exist.IOException - if problem encountered during write.public static String serialize(Map<String,FrameworkStatisticsData> dataMap) throws ParserConfigurationException, TransformerException
NMRStatisticsData - dataParserConfigurationExceptionTransformerExceptionprotected Element createFrameworkStatisticsDataElement(Document document, FrameworkStatisticsData data)
document - data - protected String writeToString(Document document) throws TransformerException
document - TransformerExceptionpublic static void main(String[] args)
args - Copyright © 2011-2016 OpenESB Community. All Rights Reserved.