All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface com.sun.jaw.snmp.manager.SnmpManagerSrvIf

public interface SnmpManagerSrvIf
This interface lists methods that can be used to create and destroy requests. These methods help to start a request with just one method call.

For every kind of method, there are two types. One that accepts a SnmpPeer object and another that does not require it, meaning that the implementation will use a default peer object.

See Also:
SnmpVar, SnmpVarbindList, SnmpParameters, SnmpPeer, SnmpRequest

Method Index

 o snmpGet(SnmpHandlerIf, SnmpVarbindList)
Uses the default peer setup for the session.
 o snmpGet(SnmpPeer, SnmpHandlerIf, SnmpVarbindList)
Performs a single SNMP get request on the varbind list.
 o snmpGetBulk(SnmpHandlerIf, SnmpVarbindList, int, int)
Uses the default peersetup for the session.
 o snmpGetBulk(SnmpPeer, SnmpHandlerIf, SnmpVarbindList, int, int)
Performs a single SNMP getbulk request on the varbind list.
 o snmpGetNext(SnmpHandlerIf, SnmpVarbindList)
Uses the default peer setup for the session.
 o snmpGetNext(SnmpPeer, SnmpHandlerIf, SnmpVarbindList)
Performs a single SNMP getnext request on the varbind list.
 o snmpGetNextPoll(SnmpHandlerIf, SnmpVarbindList, int)
Uses the default peer setup for the session.
 o snmpGetNextPoll(SnmpPeer, SnmpHandlerIf, SnmpVarbindList, int)
Starts polling the peer at the specified intervals, for the MIB variables in the varbind list.
 o snmpGetPoll(SnmpHandlerIf, SnmpVarbindList, int)
Uses the default peer setup for the session.
 o snmpGetPoll(SnmpPeer, SnmpHandlerIf, SnmpVarbindList, int)
Starts polling the peer at the specified intervals, for the MIB variables in the varbind list.
 o snmpSet(SnmpHandlerIf, SnmpVarbindList)
Uses the default peer setup for the session.
 o snmpSet(SnmpPeer, SnmpHandlerIf, SnmpVarbindList)
Performs a single SNMP set request on the peer for the specified varbind list.
 o snmpWalkUntil(SnmpHandlerIf, SnmpVarbindList, SnmpOid)
Uses the default peer setup for the session.
 o snmpWalkUntil(SnmpPeer, SnmpHandlerIf, SnmpVarbindList, SnmpOid)
Walks through the lexicographic ordering of the agent MIB.

Methods

 o snmpGet
 public abstract SnmpRequest snmpGet(SnmpPeer peer,
                                     SnmpHandlerIf cb,
                                     SnmpVarbindList vblst) throws SnmpStatusException
Performs a single SNMP get request on the varbind list. When the command completes, the appropriate callback method is invoked.

Parameters:
peer - The SNMP peer object.
cb - The callback that gets invoked when request is complete.
vblst - A list of SNMP varbinds.
Throws: you
may never get this by using these convenience ftns.
See Also:
SnmpHandlerIf
 o snmpGet
 public abstract SnmpRequest snmpGet(SnmpHandlerIf cb,
                                     SnmpVarbindList vblst) throws SnmpStatusException
Uses the default peer setup for the session.

Parameters:
cb - The callback that is invoked when the request completes.
vblst - List of SNMP varbinds.
Throws: You
may never get this by using these convenience ftns.
 o snmpGetNext
 public abstract SnmpRequest snmpGetNext(SnmpPeer peer,
                                         SnmpHandlerIf cb,
                                         SnmpVarbindList vblst) throws SnmpStatusException
Performs a single SNMP getnext request on the varbind list. When the command completes, the appropriate callback method is invoked.

Parameters:
peer - The SNMP peer object.
cb - The callback that is invoked when a request is complete.
vblst - A list of SNMP varbinds.
Throws: you
may never get this by using these convenience ftns.
See Also:
SnmpHandlerIf
 o snmpGetNext
 public abstract SnmpRequest snmpGetNext(SnmpHandlerIf cb,
                                         SnmpVarbindList vblst) throws SnmpStatusException
Uses the default peer setup for the session.

 o snmpGetBulk
 public abstract SnmpRequest snmpGetBulk(SnmpPeer peer,
                                         SnmpHandlerIf cb,
                                         SnmpVarbindList vblst,
                                         int nonRepeat,
                                         int maxRepeat) throws SnmpStatusException
Performs a single SNMP getbulk request on the varbind list. When the command completes, the appropriate callback method is invoked.

Parameters:
peer - The SNMP peer object.
cb - The callback that is invoked when a request is complete.
vblst - A list of SNMP varbinds.
nonRepeat - Number of varbind to get one time.
maxRepeat - Number of repetition for varbind to get multiple time.
Throws: you
may never get this by using these convenience ftns.
See Also:
SnmpHandlerIf
 o snmpGetBulk
 public abstract SnmpRequest snmpGetBulk(SnmpHandlerIf cb,
                                         SnmpVarbindList vblst,
                                         int nonRepeat,
                                         int maxRepeat) throws SnmpStatusException
Uses the default peersetup for the session.

 o snmpSet
 public abstract SnmpRequest snmpSet(SnmpPeer peer,
                                     SnmpHandlerIf cb,
                                     SnmpVarbindList vblst) throws SnmpStatusException
Performs a single SNMP set request on the peer for the specified varbind list. Because retries on set operations are not performed, the user needs to specify the timeout value within which a response is requested.

Parameters:
peer - The SNMP peer object.
cb - The callback that is invoked when request is complete.
vblst - A list of SNMP varbinds.
Throws: you
may never get this by using these convenience ftns.
See Also:
SnmpHandlerIf
 o snmpSet
 public abstract SnmpRequest snmpSet(SnmpHandlerIf cb,
                                     SnmpVarbindList vblst) throws SnmpStatusException
Uses the default peer setup for the session.

 o snmpGetPoll
 public abstract SnmpRequest snmpGetPoll(SnmpPeer peer,
                                         SnmpHandlerIf cb,
                                         SnmpVarbindList vblst,
                                         int intrvl) throws SnmpStatusException
Starts polling the peer at the specified intervals, for the MIB variables in the varbind list. It does a SNMP get request on the varbind list. After each poll, the appropriate callback method is invoked.

Parameters:
peer - The SNMP peer object.
cb - The callback that is invoked when request is complete.
vblst - A list of SNMP varbinds.
intrvl - The frequency of polling.
Throws: you
may never get this by using these convenience ftns.
See Also:
SnmpHandlerIf
 o snmpGetPoll
 public abstract SnmpRequest snmpGetPoll(SnmpHandlerIf cb,
                                         SnmpVarbindList vblst,
                                         int intrvl) throws SnmpStatusException
Uses the default peer setup for the session.

 o snmpGetNextPoll
 public abstract SnmpRequest snmpGetNextPoll(SnmpPeer peer,
                                             SnmpHandlerIf cb,
                                             SnmpVarbindList vblst,
                                             int intrvl) throws SnmpStatusException
Starts polling the peer at the specified intervals, for the MIB variables in the varbind list. It saves the original varbind list that is used during each poll. It performs an SNMP getnext request on the saved original varbind list and provides the response to the user via the callback mechanism. This method is similar to snmpGetPoll except that it uses getnext on the original varbind list instead of get.

Parameters:
peer - The SNMP peer object.
cb - The callback that is invoked when request is complete.
vblst - A list of SNMP varbinds.
intrvl - The frequency of polling.
Throws: you
may never get this by using these convenience ftns.
See Also:
SnmpHandlerIf
 o snmpGetNextPoll
 public abstract SnmpRequest snmpGetNextPoll(SnmpHandlerIf cb,
                                             SnmpVarbindList vblst,
                                             int intrvl) throws SnmpStatusException
Uses the default peer setup for the session.

 o snmpWalkUntil
 public abstract SnmpRequest snmpWalkUntil(SnmpPeer peer,
                                           SnmpHandlerIf cb,
                                           SnmpVarbindList vblst,
                                           SnmpOid key) throws SnmpStatusException
Walks through the lexicographic ordering of the agent MIB. It starts at the specified varbind list and continues until the OID key specified as a parameter is no longer a subset of the first variable in the response varbind list or an error occurred. Typically, this feature is used to walk an arbitrary table and obtain all rows satisfying a specific condition. The condition may be a specific instance combination for a MIB variable or a MIB variable OID entry object.
 String var[] = {"ifDescr", "ifSpeed" } ;
 vblst = new SnmpVarbindList(var) ;
 snmpWalkUntil(vblst, new SnmpOid("ifIndex")) ;
 
This example walks through the interface table and get all the rows in ifTable.
 snmpWalkUntil(vblst, new SnmpOid(".1.3")) ;
 
This example walks through the entire agent MIB starting at ifDescr and ifSpeed.

Parameters:
peer - The peer object to talk to.
cb - The callback that is invoked when the request completes.
vblst - The list from SnmpVarbindList.
key - Condition key that must be a subset of the first variable in the response SnmpVarbindList. Walk terminates if this condition is false.
Throws: you
may never get this by using these convenience ftns.
See Also:
SnmpHandlerIf
 o snmpWalkUntil
 public abstract SnmpRequest snmpWalkUntil(SnmpHandlerIf cb,
                                           SnmpVarbindList vblst,
                                           SnmpOid key) throws SnmpStatusException
Uses the default peer setup for the session.


All Packages  Class Hierarchy  This Package  Previous  Next  Index