uk.co.westhawk.snmp.pdu
Class  GetNextPdu_vec
java.lang.Object
  |
  +--java.util.Observable
        |
        +--uk.co.westhawk.snmp.stack.Pdu
              |
              +--uk.co.westhawk.snmp.stack.GetNextPdu
                    |
                    +--uk.co.westhawk.snmp.pdu.GetNextPdu_vec
- Direct Known Subclasses: 
 - InterfaceGetNextPdu
 
- public class GetNextPdu_vec
- extends GetNextPdu
  
 The GetNextPdu_vec class will ask for a number of objects (OIDs), based 
 on the GetNext request.
 
 
 Specify with addOid() the OIDs that should be requested with this
 Pdu request. No more than count (see constructor) should be added.
 Add an Observer to the Pdu with addObserver(), and send the Pdu
 with send().
 
 
 If no exception occurred whilst receiving the response, the Object to the 
 update() method of the Observer will be an array of
 varbinds, so they may contains any AsnObject type.
 If an exception occurred, that exception will be passed as the Object
 to the update() method.
 
- Version: 
 - $Revision: 3.10 $ $Date: 2002/10/10 15:13:57 $
 
- Author: 
 - Birgit Arkesteijn
 
- See Also: 
 Pdu.addOid(java.lang.String), 
Pdu.send(), 
InterfaceGetNextPdu, 
OneGetNextPdu, 
varbind
 
 
| 
Method Summary | 
protected  void | 
new_value(int n,
          varbind var)
 
          The value of the request is set. | 
protected  void | 
tell_them()
 
          The methods notifies all observers. | 
 
| Methods inherited from class uk.co.westhawk.snmp.stack.Pdu | 
addOid, addOid, addOid, addOid, addOid, addToTrans, getContext, getErrorIndex, getErrorStatus, getErrorStatusString, getMsgType, getReqId, getRequestVarbinds, getResponseVarbinds, isTimedOut, notifyObservers, send, send, send, sendme, setErrorIndex, setErrorStatus, setErrorStatus, setMsgType, setRetryIntervals, toString, 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 | 
 
GetNextPdu_vec
public GetNextPdu_vec(SnmpContextBasisFace con,
                      int count)
- Constructor.
- Parameters:
 con - The context of the requestcount - The number of OIDs to be get
 
 
new_value
protected void new_value(int n,
                         varbind var)
- The value of the request is set. This will be called by
 Pdu.fillin().
- Overrides:
 new_value in class Pdu
 
- Parameters:
 n - the index of the valuea_var - the value- See Also: 
 Pdu.new_value(int, uk.co.westhawk.snmp.stack.varbind)
 
 
tell_them
protected void tell_them()
- The methods notifies all observers. 
 This will be called by Pdu.fillin().
 
 
 If no exception occurred whilst receiving the response, the Object to the 
 update() method of the Observer will be an array of
 varbinds, so they may contains any AsnObject type.
 If an exception occurred, that exception will be passed as the Object
 to the update() method.
 
- Overrides:
 tell_them in class Pdu