Package uk.co.westhawk.snmp.pdu
Class InterfacesPdu
java.lang.Object
java.util.Observable
uk.co.westhawk.snmp.stack.Pdu
uk.co.westhawk.snmp.stack.GetPdu
uk.co.westhawk.snmp.pdu.InterfacePdu
uk.co.westhawk.snmp.pdu.InterfacesPdu
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.12 $ $Date: 2006/11/29 16:12:50 $
- Author:
- Tim Panton
- See Also:
-
Field Summary
Fields inherited from class uk.co.westhawk.snmp.pdu.InterfacePdu
DOWN, TESTING, UNKNOWN, UP
-
Constructor Summary
ConstructorsConstructorDescriptionInterfacesPdu
(SnmpContextBasisFace con, Observer o, int interfs) Constructor that will send the request immediately. -
Method Summary
Methods inherited from class uk.co.westhawk.snmp.pdu.InterfacePdu
getDescription, getIndex, getInOctet, getNumIfs, getOperStatus, getOperStatusString, getOperStatusString, getOutOctet, getSpeed, getSysUpTime
Methods inherited from class uk.co.westhawk.snmp.stack.Pdu
addOid, addOid, addOid, addOid, addOid, getContext, getErrorIndex, getErrorStatus, getErrorStatusString, getMsgType, getReqId, getRequestVarbinds, getResponseVarbinds, getRetryIntervals, isTimedOut, notifyObservers, send, send, setRetryIntervals, toString, waitForSelf
Methods inherited from class java.util.Observable
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers
-
Constructor Details
-
InterfacesPdu
public InterfacesPdu(SnmpContextBasisFace con, Observer o, int interfs) throws PduException, IOException Constructor that will send the request immediately.- Parameters:
con
- the SnmpContextBasisFaceo
- the Observer that will be notified when the answer is receivedinterfs
- the index of the requested interface- Throws:
PduException
IOException
-
-
Method Details
-
getInterfacePdus
Returns the interfaces.- Returns:
- the interfaces as an array of InterfacePdu
-