org.opennms.bb.dp.capsd.utils
Class CapsdPluginParser
java.lang.Object
|
+--org.opennms.bb.common.utils.BBParser
|
+--org.opennms.bb.dp.capsd.utils.CapsdPluginParser
- public class CapsdPluginParser
- extends BBParser
CapsdPluginParser parses the 'capsdPluginXML.xml' to get
plugin information for this poller
It throws an IOException if the xml file is not found or if it does not
conform to its DTD
- Author:
- Sowmya
Constructor Summary |
CapsdPluginParser(long ipAddr)
Creates the DOM parser and the data stores |
Method Summary |
List |
getPlugins()
Returns the poller plugins |
protected boolean |
processElement(org.w3c.dom.Element el,
boolean isRoot)
This is the method to be overridden by sub-classes to branch off and
go through the DOM tree to handle elements specific to the XML they
are parsing - does nothing here |
protected boolean |
processPlugin(org.w3c.dom.Element pluginNode)
|
protected boolean |
processPlugins(org.w3c.dom.Element pluginsNode)
|
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
m_ipAddr
long m_ipAddr
m_plugins
List m_plugins
m_curPollerIP
long m_curPollerIP
POLLERIP
final String POLLERIP
- XML TAGS that are relevant
TYPE
final String TYPE
PLUGINS
final String PLUGINS
PLUGIN
final String PLUGIN
NAME
final String NAME
DBCAPABILITY
final String DBCAPABILITY
CLASSNAME
final String CLASSNAME
CapsdPluginParser
public CapsdPluginParser(long ipAddr)
throws IOException
- Creates the DOM parser and the data stores
processElement
protected boolean processElement(org.w3c.dom.Element el,
boolean isRoot)
- Description copied from class:
BBParser
- This is the method to be overridden by sub-classes to branch off and
go through the DOM tree to handle elements specific to the XML they
are parsing - does nothing here
- Overrides:
processElement
in class BBParser
- Following copied from class:
org.opennms.bb.common.utils.BBParser
- Returns:
- true if processed sucessfully, false otherwise
processPlugins
protected boolean processPlugins(org.w3c.dom.Element pluginsNode)
processPlugin
protected boolean processPlugin(org.w3c.dom.Element pluginNode)
getPlugins
public List getPlugins()
- Returns the poller plugins