|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.opennms.bb.common.utils.BBParser | +--org.opennms.bb.eui.operator.utils.EventsParser
EventsParser extends the BBParser and parses an input stream to read/interpret an event It throws an IOException if the xml stream does not conform to the event DTD
Inner classes inherited from class org.opennms.bb.common.utils.BBParser |
BBParser.BBErrorHandler |
Fields inherited from class org.opennms.bb.common.utils.BBParser |
ATTRIB_VALUE_PAIR_ERR, ATTRIB_VALUE_PAIR_ERR_STR, EXCEPTION, m_curElement, m_errNum, m_exceptionMsg, m_inpSource, m_parser, NULL_VALUE_ERR, NULL_VALUE_ERR_STR |
Constructor Summary | |
EventsParser()
Constructs the DOMParser |
Method Summary | |
Vector |
getEvents()
Returns a vector of events in the incoming event stram |
protected boolean |
processElement(org.w3c.dom.Element el,
boolean isRoot)
Overrides the method in the parent class to handle this XML |
protected boolean |
processEventNode(org.w3c.dom.Node eventNode)
Handles the 'event' element - all the relevant information for each event is read, and an 'EventBlock' created - this is then added to the event store |
protected boolean |
processEventsElement(org.w3c.dom.Node eventsNode)
Handles the 'events' element |
protected boolean |
processHeaderNode(org.w3c.dom.Node headerNode)
Handles the 'header' element - this is added to each event |
protected String |
processHost(org.w3c.dom.Node hostNode)
Returns the hostname from the node, the IP Address in the dotted decimal format |
protected Vector |
processParm(org.w3c.dom.Node parmsNode)
Handles the 'parm' element in the list of parms |
protected String |
processParmName(org.w3c.dom.Node parmNameNode)
Handles the 'parmName' element |
protected Vector |
processParms(org.w3c.dom.Node parmsNode)
Handles the 'parms' element for each event |
protected EventSnmpInfo |
processSnmp(org.w3c.dom.Node snmpNode)
Handles the 'snmp' element and returns the eid/eidText/specific/generic for this element |
protected boolean |
processValue(org.w3c.dom.Node parmValNode,
Vector parm)
process the ' |
Methods inherited from class org.opennms.bb.common.utils.BBParser |
getErrorMessage, getErrorNumber, parse, parse, parse, parse, processDocument, processNode, processParmValue |
Methods inherited from class java.lang.Object |
|
Field Detail |
private Vector m_eventsStore
private EventHeader m_eventHeader
private final String ATTRIB_DELIM
private final String HEADER
private final String VER
private final String DPNAME
private final String CREATED
private final String MSTATION
private final String EVENTS
private final String EVENT
private final String UEI
private final String SOURCE
private final String TIME
private final String YEAR
private final String MONTH
private final String DAY
private final String HOUR
private final String MIN
private final String SEC
private final String TYPE
private final String HOST
private final String SNMPHOST
private final String SNMP
private final String EID
private final String EIDTEXT
private final String SPECIFIC
private final String GENERIC
private final String PARMS
private final String PARM
private final String PARM_NAME
private final String PARM_VALUE
private final String DESCR
private final String LOGMSG
private final String LOGMSGDEST
private final String SEVERITY
private final String OPERINSTR
private final String AUTOACTION
private final String OPERACTION
private final String OPERACTIONMENU
private final String LOGGROUP
private final String NOTIFICATION
private final String TTICKET
private final String TTICKETSTATE
private final String FORWARD
private final String FORWARDSTATE
private final String FORWARDMECH
private final String MOUSEOVERTEXT
Constructor Detail |
public EventsParser()
Method Detail |
protected boolean processElement(org.w3c.dom.Element el, boolean isRoot)
processElement
in class BBParser
org.opennms.bb.common.utils.BBParser
protected boolean processHeaderNode(org.w3c.dom.Node headerNode)
protected boolean processEventsElement(org.w3c.dom.Node eventsNode)
protected boolean processEventNode(org.w3c.dom.Node eventNode)
protected String processHost(org.w3c.dom.Node hostNode)
protected EventSnmpInfo processSnmp(org.w3c.dom.Node snmpNode)
protected Vector processParms(org.w3c.dom.Node parmsNode)
protected Vector processParm(org.w3c.dom.Node parmsNode)
protected String processParmName(org.w3c.dom.Node parmNameNode)
protected boolean processValue(org.w3c.dom.Node parmValNode, Vector parm)
public Vector getEvents()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |