Package org.onosproject.alarm
Class XmlEventParser
- java.lang.Object
-
- org.onosproject.alarm.XmlEventParser
-
public final class XmlEventParser extends Object
Parser for Netconf notifications.
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Logger
log
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Document
createDocFromMessage(InputStream message)
Creates a document from the input stream message and returns the result.static Node
getDescriptionNode(Document doc)
static long
getEventTime(String dateTime)
static long
getEventTime(Document doc)
-
-
-
Method Detail
-
createDocFromMessage
public static Document createDocFromMessage(InputStream message) throws SAXException, IOException, ParserConfigurationException
Creates a document from the input stream message and returns the result.- Parameters:
message
- input stream message- Returns:
- the document result
- Throws:
SAXException
- Throws SAX ExceptionIOException
- Throws IO ExceptionParserConfigurationException
- Throws ParserConfigurationException
-
getEventTime
public static long getEventTime(String dateTime) throws UnsupportedOperationException, IllegalArgumentException
-
getEventTime
public static long getEventTime(Document doc) throws UnsupportedOperationException, IllegalArgumentException
-
-