|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.snmpadaptor4j.config.XmlConfigParser
public final class XmlConfigParser
XML parser of SNMP configuration.
| Method Summary | |
|---|---|
String |
getDefaultRootOid()
Returns the default root OID containing the attributes of the application. |
String |
getListenerAddress()
Returns the listening IP address of SNMP daemon (127.0.0.1 by default). |
Integer |
getListenerPort()
Returns the UDP port of SNMP daemon (161 by default). |
String |
getListenerReadCommunity()
Returns the read community of SNMP daemon ("public" by default). |
Integer |
getListenerSnmpVersion()
Returns the protocol version of SNMP daemon (SNMP v2 by default). |
String |
getListenerWriteCommunity()
Returns the write community of SNMP daemon ("private" by default). |
List<SnmpManagerConfiguration> |
getManagerList()
Returns the parameter list to connect to each manager where to send all notifications (SNMP traps). |
Map<ObjectName,String> |
getMBeanOidMap()
Returns the map of MBean OIDs. |
Map<String,String> |
getRootOidMap()
Returns the map of root OIDs where the attributes of the application will stay. |
static XmlConfigParser |
newInstance(URL url)
Creates and returns a new instance of XmlConfigParser. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static XmlConfigParser newInstance(URL url)
throws Exception
XmlConfigParser.
url - URL to the SNMP configuration file.
XmlConfigParser.
Exception - Exception if an error occurred.public String getListenerAddress()
SnmpDaemonConfiguration
getListenerAddress in interface SnmpDaemonConfigurationpublic Integer getListenerPort()
SnmpDaemonConfiguration
getListenerPort in interface SnmpDaemonConfigurationpublic Integer getListenerSnmpVersion()
SnmpDaemonConfiguration
getListenerSnmpVersion in interface SnmpDaemonConfigurationpublic String getListenerReadCommunity()
SnmpDaemonConfiguration
getListenerReadCommunity in interface SnmpDaemonConfigurationpublic String getListenerWriteCommunity()
SnmpDaemonConfiguration
getListenerWriteCommunity in interface SnmpDaemonConfigurationpublic List<SnmpManagerConfiguration> getManagerList()
SnmpConfiguration
getManagerList in interface SnmpConfigurationpublic String getDefaultRootOid()
SnmpAppContext
getDefaultRootOid in interface SnmpAppContextpublic Map<String,String> getRootOidMap()
SnmpAppContext
getRootOidMap in interface SnmpAppContextNULL but can be empty).public Map<ObjectName,String> getMBeanOidMap()
SnmpAppContext
getMBeanOidMap in interface SnmpAppContextNULL but can be empty).public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||