uk.co.westhawk.snmp.stack
Class  PassiveSnmpContextv2c
java.lang.Object
  |
  +--uk.co.westhawk.snmp.stack.AbstractSnmpContext
        |
        +--uk.co.westhawk.snmp.stack.SnmpContext
              |
              +--uk.co.westhawk.snmp.stack.SnmpContextv2c
                    |
                    +--uk.co.westhawk.snmp.stack.PassiveSnmpContextv2c
- All Implemented Interfaces: 
 - java.lang.Cloneable, java.util.EventListener, java.lang.Runnable, SnmpContextBasisFace, SnmpContextFace, SnmpContextv2cFace, TrapListener
 
- public class PassiveSnmpContextv2c
- extends SnmpContextv2c
  
This class contains the SNMP v2c context that is needed by every Pdu to
 send a SNMP v2c request in environments where thread creation is
 unwanted.
 
 This extends SnmpContextv2c so that it does not create any
 threads to send pdus. It must be used with the
 PDU class PassiveTrapPduv2. 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.4 $ $Date: 2002/10/15 13:37:02 $
 
- Author: 
 - Mike Waters, ERG Group
 
- See Also: 
 PassiveTrapPduv2
 
 
 
 
 
 
| 
Method Summary | 
protected  void | 
activate()
 
          Overrides the AbstractSnmpContext.activate() to do nothing. | 
 
 
 
| Methods inherited from class uk.co.westhawk.snmp.stack.AbstractSnmpContext | 
addPdu, addTrapListener, destroy, getDebugString, getHost, getHostAddress, getMaxRecvSize, getPort, getTypeSocket, removePdu, removeTrapListener, run, sendPacket, setMaxRecvSize, stop, trapReceived | 
 
| Methods inherited from class java.lang.Object | 
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
 
 
PassiveSnmpContextv2c
public PassiveSnmpContextv2c(java.lang.String a_host,
                             int a_port)
                      throws java.io.IOException
- Constructor.
- Parameters:
 host - The host to which the Pdu will sendport - The port where the SNMP server will be- See Also: 
 SnmpContextv2c.SnmpContextv2c(String, int)
 
 
PassiveSnmpContextv2c
public PassiveSnmpContextv2c(java.lang.String a_host,
                             int a_port,
                             java.lang.String socketType)
                      throws java.io.IOException
- Constructor.
- Parameters:
 host - The host to which the Pdu will sendport - The port where the SNMP server will betypeSocketA - The type of socket to use.- See Also: 
 SnmpContextv2c.SnmpContextv2c(String, int, String), 
SnmpContextBasisFace.STANDARD_SOCKET, 
SnmpContextBasisFace.NETSCAPE_SOCKET, 
SnmpContextBasisFace.KVM_SOCKET
 
 
activate
protected void activate()
- Overrides the AbstractSnmpContext.activate() to do nothing.
 This prevents the creation of threads in the base class.
- Overrides:
 activate in class AbstractSnmpContext
 
- See Also: 
 AbstractSnmpContext.activate()