public class EndpointStatisticsDataWriter extends Object implements EndpointStatisticsDataXMLConstants, Serializable
ACTIVATION_TIME_KEY, COMPONENT_NAME_KEY, CONSUMING_ENDPOINT_STATISTICS_DATA_KEY, ENDPOINT_NAMESPACE_KEY, ENDPOINT_NAMESPACE_VALUE, ENDPOINT_STATISTICS_DATA_LIST_KEY, ENDPOINT_VERSION_KEY, ENDPOINT_VERSION_VALUE, EXTENDED_TIMING_STATISTICS_FLAG_ENABLED_KEY, INSTANCE_NAME_KEY, IS_PROVISIONING_ENDPOINT_KEY, MESSAGE_EXCHANGE_COMPONENT_TIME_AVERAGE_KEY, MESSAGE_EXCHANGE_DELIVERY_CHANNEL_TIME_AVERAGE_KEY, MESSAGE_EXCHANGE_RESPONSE_TIME_AVERAGE_KEY, MESSAGE_EXCHANGE_SERVICE_TIME_AVERAGE_KEY, MESSAGE_EXCHANGE_STATUS_TIME_AVERAGE_KEY, NUMBER_OF_ACTIVE_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, PROVISIONING_ENDPOINT_STATISTICS_DATA_KEY, UPTIME_KEY| Constructor and Description |
|---|
EndpointStatisticsDataWriter()
Constructor - Creates an EndpointStatisticsDataWriter
|
| Modifier and Type | Method and Description |
|---|---|
protected Element |
createConsumingEndpointStatisticsDataElement(Document document,
ConsumingEndpointStatisticsData consumingData) |
protected Element |
createPerformanceMeasurementDataElement(Document document,
PerformanceData data) |
protected Element |
createProvisioningEndpointStatisticsDataElement(Document document,
ProvisioningEndpointStatisticsData provisioningData) |
static void |
main(String[] args) |
static String |
serialize(Map<String,IEndpointStatisticsData> 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 EndpointStatisticsDataWriter()
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,IEndpointStatisticsData> dataMap) throws ParserConfigurationException, TransformerException
NMRStatisticsData - dataParserConfigurationExceptionTransformerExceptionprotected Element createProvisioningEndpointStatisticsDataElement(Document document, ProvisioningEndpointStatisticsData provisioningData)
document - data - protected Element createConsumingEndpointStatisticsDataElement(Document document, ConsumingEndpointStatisticsData consumingData)
document - data - protected Element createPerformanceMeasurementDataElement(Document document, PerformanceData 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.