|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.snmpadaptor4j.object.SnmpTrap
public abstract class SnmpTrap
Object representing a specific or generic SNMP trap.
| Constructor Summary | |
|---|---|
protected |
SnmpTrap(long timeStamp,
SnmpOid source,
Map<SnmpOid,SnmpTrapData> dataMap)
Hidden constructor (abstract class). |
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
Map<SnmpOid,SnmpTrapData> |
getDataMap()
Returns the map of "interesting" information. |
SnmpOid |
getSource()
Returns the OID indexing the source of the trap. |
long |
getTimeStamp()
Returns the elapsed time in 100th of second since the application launch. |
int |
hashCode()
|
static GenericSnmpTrap |
newInstance(long timeStamp,
SnmpOid source,
GenericSnmpTrapType type,
Map<SnmpOid,SnmpTrapData> dataMap)
Creates and returns an object representing a generic SNMP trap. |
static SpecificSnmpTrap |
newInstance(long timeStamp,
SnmpOid source,
int type,
Map<SnmpOid,SnmpTrapData> dataMap)
Creates and returns an object representing a specific SNMP trap. |
abstract void |
traceTo(org.apache.log4j.Logger logger)
Traces the content of SNMP trap to logs. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected SnmpTrap(long timeStamp,
SnmpOid source,
Map<SnmpOid,SnmpTrapData> dataMap)
timeStamp - Elapsed time in 100th of second since the application launch.source - OID indexing the source of the trap.dataMap - Map of "interesting" information.| Method Detail |
|---|
public static SpecificSnmpTrap newInstance(long timeStamp,
SnmpOid source,
int type,
Map<SnmpOid,SnmpTrapData> dataMap)
timeStamp - Elapsed time in 100th of second since the application launch.source - OID indexing the source of the trap (must not be NULL).type - Trap type.dataMap - Map of "interesting" information.
public static GenericSnmpTrap newInstance(long timeStamp,
SnmpOid source,
GenericSnmpTrapType type,
Map<SnmpOid,SnmpTrapData> dataMap)
timeStamp - Elapsed time in 100th of second since the application launch.source - OID indexing the source of the trap (must not be NULL).type - Trap type (must not be NULL).dataMap - Map of "interesting" information.
public final long getTimeStamp()
public final SnmpOid getSource()
public final Map<SnmpOid,SnmpTrapData> getDataMap()
NULL).public abstract void traceTo(org.apache.log4j.Logger logger)
logger - Logger (must not be NULL).public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||