Overview | Package | Class | Tree | Deprecated | Index | Help
| SNMP Stack 4_12
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

public class PassiveTrapPduv1
extends TrapPduv1

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 RFC 1905.

See notes on how to send traps in an Oracle JServer environment.

Since:
  4_12
Version:
  $Revision: 3.3 $ $Date: 2002/10/15 13:37:02 $
Author:
  Birgit Arkesteijn
See Also:
  `PassiveTrapPduv2`

Fields inherited from class uk.co.westhawk.snmp.stack.Pdu
`added, answered, context, encodedPacket, errind, errstat, msg_type, reqVarbinds, respVarbinds`

Constructor Summary
`PassiveTrapPduv1(PassiveSnmpContext con)` Constructor.

Method Summary
`void` | `addToTrans()` Override of the operation in Pdu.

Methods inherited from class uk.co.westhawk.snmp.stack.TrapPduv1
`getEnterprise, getGenericTrap, getGenericTrapString, getIpAddress, getSpecificTrap, getTimeTicks, new_value, send, setEnterprise, setGenericTrap, setIpAddress, setSpecificTrap, setTimeTicks, tell_them, toString`

Methods inherited from class uk.co.westhawk.snmp.stack.Pdu
`addOid, addOid, addOid, addOid, addOid, getContext, getErrorIndex, getErrorStatus, getErrorStatusString, getMsgType, getReqId, getRequestVarbinds, getResponseVarbinds, isTimedOut, notifyObservers, send, send, sendme, setErrorIndex, setErrorStatus, setErrorStatus, setMsgType, setRetryIntervals, toString, waitForSelf`

Methods inherited from class java.util.Observable
`addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, setChanged`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### PassiveTrapPduv1

    public PassiveTrapPduv1(PassiveSnmpContext con)

  Constructor.
  Parameters:
    `con` - The context (v1) of the Pdu. This is of type PassiveSnmpContext to ensure that the correct threading behaviour occurs.

Method Detail

### 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.
  Overrides:
    `addToTrans` in class `Pdu`
  Following copied from class: `uk.co.westhawk.snmp.stack.Pdu`
  See Also:
    `Pdu.send()`

Overview | Package | Class | Tree | Deprecated | Index | Help
| SNMP Stack 4_12
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD