|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
com.tivoli.twg.snmp.SNMP
This class represents an instance of the SNMP stack. It is required for all SNMP transactions.
SNMPContext
,
SNMPPDU
,
SNMPEntity
Constructor Summary | |
---|---|
SNMP()
Construct An SNMP Session to be used for all SNMP Transactions. |
|
SNMP(java.util.Observer Trapper)
Construct An SNMP Session to be used for all SNMP Transactions. |
Method Summary | |
---|---|
static boolean |
isNative()
This method will return whether the native (WinSNMP) stack is in use for the class (static) |
int |
Level()
Deprecated. always returns zero |
int |
MajorVersion()
Deprecated. always returns zero |
int |
MinorVersion()
Deprecated. always returns zero |
void |
RequestNetMask(com.tivoli.twg.snmp.SubNetRequester subnetRequester)
Deprecated. does nothing |
void |
RequestNetMask(TWGSNMPDevice Device)
Deprecated. does nothing |
void |
RequestPing(com.tivoli.twg.snmp.PingRequester pingRequester)
This method will submit a Ping Request to the TWGIPDevice. |
void |
RequestPing(TWGSNMPDevice snmpDevice)
This method will submit a Ping Request to the TWGSNMPDevice. |
long |
ResponseCount()
This method will return the number of Response PDUs received. |
int |
RetransmitMode()
Deprecated. always returns zero |
void |
run()
INTERNAL USE ONLY Processes asynchronous events for SNMP stack traps |
void |
ShutDown()
INTERNAL USE ONLY |
int |
SubmitPDU(SNMPEntity sourceEntity,
SNMPEntity destEntity,
SNMPContext context,
SNMPPDU PDU)
This method will submit a PDU (Get, Set, Getnext, Trap) to the stack for transmition. |
long |
TimeoutCount()
This method will return the number of PDUs that have timed out. |
int |
TranslateMode()
Deprecated. always returns zero |
long |
TransmitCount()
This method will return the number of PDUs that have been transmitted. |
long |
TrapCount()
This method will return the number of Trap PDUs received. |
int |
TrapRegister(SNMPEntity Source,
SNMPEntity Dest,
SNMPContext Context,
java.lang.String TrapOID)
This method will set up a registration to receive traps. |
int |
TrapUnregister(SNMPEntity Source,
SNMPEntity Dest,
SNMPContext Context,
java.lang.String TrapOID)
This method will set up a un-registration for the receipt traps. |
Methods inherited from class java.util.Observable |
---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SNMP() throws TWGSNMPException
TWGSNMPException
public SNMP(java.util.Observer Trapper) throws TWGSNMPException
Trapper
-
TWGSNMPException
Method Detail |
public final long TransmitCount()
public final long ResponseCount()
public final long TimeoutCount()
public final long TrapCount()
public final int MajorVersion()
public final int MinorVersion()
public final int Level()
public final int TranslateMode()
public final int RetransmitMode()
public final void RequestNetMask(com.tivoli.twg.snmp.SubNetRequester subnetRequester)
public final void RequestNetMask(TWGSNMPDevice Device)
public final void RequestPing(TWGSNMPDevice snmpDevice)
public final void RequestPing(com.tivoli.twg.snmp.PingRequester pingRequester)
pingRequester
- - Instance of this class indicates to what station this
request should be sent.public static final boolean isNative()
public final int SubmitPDU(SNMPEntity sourceEntity, SNMPEntity destEntity, SNMPContext context, SNMPPDU PDU)
sourceEntity
- source SNMPEntitydestEntity
- destination SNMPEntitycontext
- SNMPContext for this pduPDU
- Instance of the PDU class that contains the request data.
public final void ShutDown()
This method will terminate the SNMP stack with malice! All outstanding requests will be terminated. That includes any pending Ping/mask requests. This should be used ONLY when you are shutting down the system.
public final int TrapRegister(SNMPEntity Source, SNMPEntity Dest, SNMPContext Context, java.lang.String TrapOID)
Source
- Source of the registration, ie. this station. This is useful if this
station has more then one address entity active (IP) if you wish to receive from
all of them, simply register with the NULL address: "0.0.0.0".Dest
- Destination of the registration, ie. the stations we would like to receive traps from.
Can be either a specific address, or a null class, to receive all traps sent to this address.Context
- The Context of the device we would like to receive traps from.
Can also be set to null to indicate that anything will be received.TrapOID
- The type of trap we would like to register for.
Can be set to either a specific trap OID, or to null to indicate all traps.
public final int TrapUnregister(SNMPEntity Source, SNMPEntity Dest, SNMPContext Context, java.lang.String TrapOID)
public void run()
run
in interface java.lang.Runnable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |