public class EndpointStatisticsDataReader extends DefaultHandler 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 |
|---|
EndpointStatisticsDataReader()
Constructor - creates a new instance of
EndpointStatisticsDataReader
|
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length)
Process the character report for current tag.
|
void |
endDocument()
End of document processing.
|
void |
endElement(String uri,
String localName,
String qName)
Process the end element tag.
|
Map<String,IEndpointStatisticsData> |
getEndpointStatisticsDataMap() |
static void |
main(String[] args) |
static Map<String,IEndpointStatisticsData> |
parseFromFile(File file) |
static Map<String,IEndpointStatisticsData> |
parseFromFile(String fileName) |
static Map<String,IEndpointStatisticsData> |
parseFromURI(String uriString) |
static Map<String,IEndpointStatisticsData> |
parseFromURI(URI uri) |
static Map<String,IEndpointStatisticsData> |
parseFromXMLData(String rawXMLData) |
void |
startDocument()
Start of document processing.
|
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes)
Process the new element.
|
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warningpublic EndpointStatisticsDataReader()
public Map<String,IEndpointStatisticsData> getEndpointStatisticsDataMap()
public void startDocument()
throws SAXException
startDocument in interface ContentHandlerstartDocument in class DefaultHandlerSAXException - is any SAX exception, possibly wrapping another exception.public void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in class DefaultHandlerSAXException - is any SAX exception, possibly wrapping another exception.public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement in interface ContentHandlerstartElement in class DefaultHandleruri - is the Namespace URI, or the empty string if the element has
no Namespace URI or if Namespace processing is not being
performed.localName - is the The local name (without prefix), or the empty string if
Namespace processing is not being performed.qName - is the qualified name (with prefix), or the empty string if
qualified names are not available.attributes - is the attributes attached to the element. If there are no
attributes, it shall be an empty Attributes object.SAXException - is any SAX exception, possibly wrapping another exception.public void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class DefaultHandlerch - are the element's characters.start - is the start position in the character array.length - is the number of characters to use from the character array.SAXException - is any SAX exception, possibly wrapping another exception.public void endElement(String uri, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class DefaultHandleruri - is the Namespace URI, or the empty string if the element has
no Namespace URI or if Namespace processing is not being
performed.localName - is the The local name (without prefix), or the empty string if
Namespace processing is not being performed.qName - is the qualified name (with prefix), or the empty string if
qualified names are not available.SAXException - is any SAX exception, possibly wrapping another exception.public static Map<String,IEndpointStatisticsData> parseFromXMLData(String rawXMLData) throws MalformedURLException, ParserConfigurationException, SAXException, URISyntaxException, IOException
rawXMLData - MalformedURLExceptionParserConfigurationExceptionSAXExceptionURISyntaxExceptionIOExceptionpublic static Map<String,IEndpointStatisticsData> parseFromFile(String fileName) throws MalformedURLException, ParserConfigurationException, SAXException, URISyntaxException, IOException
fileName - MalformedURLExceptionParserConfigurationExceptionSAXExceptionURISyntaxExceptionIOExceptionpublic static Map<String,IEndpointStatisticsData> parseFromFile(File file) throws MalformedURLException, ParserConfigurationException, SAXException, URISyntaxException, IOException
fileName - MalformedURLExceptionParserConfigurationExceptionSAXExceptionURISyntaxExceptionIOExceptionpublic static Map<String,IEndpointStatisticsData> parseFromURI(String uriString) throws MalformedURLException, ParserConfigurationException, SAXException, URISyntaxException, IOException
uriString - MalformedURLExceptionParserConfigurationExceptionSAXExceptionURISyntaxExceptionIOExceptionpublic static Map<String,IEndpointStatisticsData> parseFromURI(URI uri) throws MalformedURLException, ParserConfigurationException, SAXException, URISyntaxException, IOException
uri - MalformedURLExceptionParserConfigurationExceptionSAXExceptionURISyntaxExceptionIOExceptionpublic static void main(String[] args)
args - Copyright © 2011-2016 OpenESB Community. All Rights Reserved.