Package uk.co.westhawk.snmp.pdu
Class PassiveTrapPduv1
java.lang.Object
java.util.Observable
uk.co.westhawk.snmp.stack.Pdu
uk.co.westhawk.snmp.stack.TrapPduv1
uk.co.westhawk.snmp.pdu.PassiveTrapPduv1
This class represents the ASN SNMP v1 Trap PDU object
that does not create a thread to send itself. It must be used with the
context class PassiveSnmpContext. The original purpose of the
Passive classes is to allow the stack to be used in environments where
thread creation is unwanted, eg database JVMs such as Oracle JServer.
See SNMPv2-PDU.
See notes on how to send traps in an Oracle JServer environment.
- Since:
- 4_12
- Version:
- $Revision: 3.7 $ $Date: 2006/03/23 14:54:09 $
- Author:
- Birgit Arkesteijn
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class uk.co.westhawk.snmp.stack.TrapPduv1
getEnterprise, getGenericTrap, getGenericTrapString, getIpAddress, getSpecificTrap, getTimeTicks, send, setEnterprise, setGenericTrap, setIpAddress, setSpecificTrap, setTimeTicks, toString
Methods inherited from class uk.co.westhawk.snmp.stack.Pdu
addOid, addOid, addOid, addOid, addOid, getContext, getErrorIndex, getErrorStatus, getErrorStatusString, getMsgType, getReqId, getRequestVarbinds, getResponseVarbinds, getRetryIntervals, isTimedOut, notifyObservers, send, setRetryIntervals, waitForSelf
Methods inherited from class java.util.Observable
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers
-
Constructor Details
-
PassiveTrapPduv1
Constructor.- Parameters:
con
- The context (v1) of the PDU. This is of type PassiveSnmpContext to ensure that the correct threading behaviour occurs.
-
-
Method Details
-
addToTrans
public void addToTrans()Override of the operation in PDU. Send the trap in the callers thread. That is, don't create a sending thread or add it to a queue or anything, just go straight to the socket.
-