|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.snmpadaptor4j.core.trap.SnmpTrapBuilder
public class SnmpTrapBuilder
Builder of SNMP traps from JMX notifications for an MBean.
Constructor Summary | |
---|---|
SnmpTrapBuilder(Map<String,SnmpTrapMapping> mappingMap,
SystemInfo systemInfo)
Constructor. |
Method Summary | |
---|---|
Map<String,SnmpTrapMapping> |
getMappingMap()
Returns the map of mappings to build SNMP traps for each notification type. |
protected Map<SnmpOid,SnmpTrapData> |
newDataMap(DataMapTrapMapping mapping,
Notification notification)
Creates and returns a new dataMap of SnmpTrap by a JMX notification. |
SnmpTrap |
newTrap(Notification notification)
Creates and returns a new SNMP trap by a JMX notification. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SnmpTrapBuilder(Map<String,SnmpTrapMapping> mappingMap, SystemInfo systemInfo)
mappingMap
- Map of mappings to build SNMP traps for each notification type.systemInfo
- Informations on the system.Method Detail |
---|
public Map<String,SnmpTrapMapping> getMappingMap()
public SnmpTrap newTrap(Notification notification)
notification
- JMX notification generated by a MBean.
NULL
if the notification is not mapped.protected final Map<SnmpOid,SnmpTrapData> newDataMap(DataMapTrapMapping mapping, Notification notification)
dataMap
of SnmpTrap
by a JMX notification.
mapping
- Mapping to build the dataMap
field of SnmpTrap
from a JMX notification.notification
- JMX notification generated by a MBean.
dataMap
of SnmpTrap
.public final String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |