net.sf.snmpadaptor4j.core.mapping
Class DataMapTrapMapping

java.lang.Object
  extended by net.sf.snmpadaptor4j.core.mapping.DataMapTrapMapping
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DefaultDataMapTrapMapping, MapDataMapTrapMapping, SimpleDataMapTrapMapping

public abstract class DataMapTrapMapping
extends Object
implements Serializable

Object containing the mapping to build the dataMap field of SnmpTrap from a JMX notification.

Author:
Jean-Philippe MINETTI
See Also:
Serialized Form

Constructor Summary
protected DataMapTrapMapping(SnmpOid sequenceNumberOid, SnmpOid messageOid, boolean hasSystemInfo)
          Hidden constructor (abstract class).
 
Method Summary
 boolean equals(Object obj)
           
 SnmpOid getMessageOid()
          Returns the OID of message field of JMX notification.
 SnmpOid getSequenceNumberOid()
          Returns the OID of sequenceNumber field of JMX notification.
 int hashCode()
           
 boolean isHasSystemInfo()
          Returns TRUE for put all system information attributes in the dataMap field of SnmpTrap .
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataMapTrapMapping

protected DataMapTrapMapping(SnmpOid sequenceNumberOid,
                             SnmpOid messageOid,
                             boolean hasSystemInfo)
Hidden constructor (abstract class).

Parameters:
sequenceNumberOid - OID of sequenceNumber field of JMX notification. Is NULL if the sequenceNumber should not be present in dataMap field of SnmpTrap.
messageOid - OID of message field of JMX notification. Is NULL if the message should not be present in dataMap field of SnmpTrap.
hasSystemInfo - TRUE for put all system information attributes in the dataMap field of SnmpTrap.
Method Detail

getSequenceNumberOid

public final SnmpOid getSequenceNumberOid()
Returns the OID of sequenceNumber field of JMX notification.

Returns:
OID of sequenceNumber field of JMX notification. Is NULL if the sequenceNumber should not be present in dataMap field of SnmpTrap.

getMessageOid

public final SnmpOid getMessageOid()
Returns the OID of message field of JMX notification.

Returns:
OID of message field of JMX notification. Is NULL if the message should not be present in dataMap field of SnmpTrap.

isHasSystemInfo

public final boolean isHasSystemInfo()
Returns TRUE for put all system information attributes in the dataMap field of SnmpTrap .

Returns:
TRUE for put all system information attributes in the dataMap field of SnmpTrap .

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2012-2013 snmpAdaptor4j. All Rights Reserved.