public class ComponentStatisticsDataWriter extends Object implements ComponentStatisticsDataXMLConstants, Serializable
COMPONENT_EXTENSION_STATUS_KEY, COMPONENT_STATISTICS_DATA_KEY, COMPONENT_STATISTICS_DATA_LIST_KEY, COMPONENT_UPTIME_KEY, EXTENDED_TIMING_STATISTICS_FLAG_ENABLED_KEY, INSTANCE_NAME_KEY, MESSAGE_EXCHANGE_COMPONENT_TIME_AVERAGE_KEY, MESSAGE_EXCHANGE_DELIVERY_CHANNEL_TIME_AVERAGE_KEY, MESSAGE_EXCHANGE_MESSAGE_SERVICE_TIME_AVERAGE_KEY, MESSAGE_EXCHANGE_RESPONSE_TIME_AVERAGE_KEY, NAMESPACE_KEY, NAMESPACE_VALUE, NUMBER_OF_ACTIVATED_ENDPOINTS_KEY, NUMBER_OF_ACTIVE_EXCHANGES_KEY, NUMBER_OF_COMPLETED_EXCHANGES_KEY, NUMBER_OF_ERROR_EXCHANGES_KEY, NUMBER_OF_RECEIVED_DONES_KEY, NUMBER_OF_RECEIVED_ERRORS_KEY, NUMBER_OF_RECEIVED_FAULTS_KEY, NUMBER_OF_RECEIVED_REPLIES_KEY, NUMBER_OF_RECEIVED_REQUESTS_KEY, NUMBER_OF_SENT_DONES_KEY, NUMBER_OF_SENT_ERRORS_KEY, NUMBER_OF_SENT_FAULTS_KEY, NUMBER_OF_SENT_REPLIES_KEY, NUMBER_OF_SENT_REQUESTS_KEY, VERSION_KEY, VERSION_VALUE| Constructor and Description |
|---|
ComponentStatisticsDataWriter()
Constructor - Creates an ComponentStatisticsDataWriter
|
| Modifier and Type | Method and Description |
|---|---|
protected Element |
createComponentStatisticsDataElement(Document document,
ComponentStatisticsData data) |
static void |
main(String[] args) |
static String |
serialize(Map<String,ComponentStatisticsData> 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 ComponentStatisticsDataWriter()
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,ComponentStatisticsData> dataMap) throws ParserConfigurationException, TransformerException
NMRStatisticsData - dataParserConfigurationExceptionTransformerExceptionprotected Element createComponentStatisticsDataElement(Document document, ComponentStatisticsData 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.