uk.co.westhawk.snmp.pdu
Class  InterfacesPdu
java.lang.Object
  |
  +--java.util.Observable
        |
        +--uk.co.westhawk.snmp.stack.Pdu
              |
              +--uk.co.westhawk.snmp.pdu.InterfacePdu
                    |
                    +--uk.co.westhawk.snmp.pdu.InterfacesPdu
- public class InterfacesPdu
- extends InterfacePdu
  
The InterfacesPdu class will ask for the number of current interfaces.
 For each interface it will send an InterfacePdu to get the
 information of the specific interface.
- Version: 
 - $Revision: 3.9 $ $Date: 2002/10/10 15:26:15 $
 
- Author: 
 - Tim Panton
 - See Also: 
 InterfacePdu
 
 
 
 
 
| 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 | 
 
InterfacesPdu
public InterfacesPdu(SnmpContextBasisFace con,
                     java.util.Observer o,
                     int interfs)
              throws PduException,
                     java.io.IOException
- Constructor that will send the request immediately.
- Parameters:
 con - the SnmpContextBasisFaceo - the Observer that will be notified when the answer is receivedinterf - the index of the requested interface
 
 
getNumIfs
public static int getNumIfs(SnmpContextBasisFace con)
                     throws PduException,
                            java.io.IOException
- Returns how many interfaces are present.
- Returns:
 - the number of interfaces
 
 
 
getInterfacePdus
public InterfacePdu[] getInterfacePdus()
- Returns the interfaces.
- Returns:
 - the interfaces as an array of InterfacePdu
 
 
 
new_value
protected void new_value(int n,
                         varbind res)
- The value of the request is set. This will be called by
 Pdu.fillin().
- Overrides:
 new_value in class InterfacePdu
 
- Parameters:
 n - the index of the valuea_var - the value- See Also: 
 Pdu.new_value(int, uk.co.westhawk.snmp.stack.varbind)