|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.snmpadaptor4j.core.mapping.XmlMappingParser
public final class XmlMappingParser
Parser of SNMP mapping file (XML).
| Method Summary | |
|---|---|
String |
findBaseOid(ObjectName mBeanName,
Map<String,String> rootOidMap,
String defaultRootOid,
String mainDefaultRootOid)
Finds a base OID of a MBean instance in the mapping. |
static XmlMappingParser |
newInstance(URL url)
Creates and returns a new instance of XmlMappingParser. |
List<MBeanAttributeMapping> |
newMBeanAttributeMappingList(Map<String,MBeanAttributeInfo> mBeanAttributeInfoMap,
ClassLoader classLoader,
String baseOid)
Creates and returns the list of mapping for access to each attribute of an MBean. |
Map<String,SnmpTrapMapping> |
newSnmpTrapMappingMap(String baseOid)
Creates and returns the map of mapping to build SNMP traps from JMX notifications for each notification type. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static XmlMappingParser newInstance(URL url)
throws Exception
XmlMappingParser.
url - URL to the SNMP mapping file.
XmlMappingParser.
Exception - Exception if an error occurred.
public String findBaseOid(ObjectName mBeanName,
Map<String,String> rootOidMap,
String defaultRootOid,
String mainDefaultRootOid)
mBeanName - MBean name.rootOidMap - Map of root OIDs where the attributes of the application will stay.defaultRootOid - Default root OID containing the attributes of the current application.mainDefaultRootOid - Default root OID containing the attributes of the main application (must not be NULL).
NULL).
public List<MBeanAttributeMapping> newMBeanAttributeMappingList(Map<String,MBeanAttributeInfo> mBeanAttributeInfoMap,
ClassLoader classLoader,
String baseOid)
throws Exception
mBeanAttributeInfoMap - Map of informations on each MBean attribute.classLoader - ClassLoader where the MBean has been created.baseOid - Base OID of MBean instance.
NULL).
Exception - Exception if an error occurred.public Map<String,SnmpTrapMapping> newSnmpTrapMappingMap(String baseOid)
baseOid - Base OID of MBean instance.
NULL).public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||