Package uk.co.westhawk.snmp.pdu
Class InterfaceGetNextPdu
java.lang.Object
java.util.Observable
uk.co.westhawk.snmp.stack.Pdu
uk.co.westhawk.snmp.stack.GetNextPdu
uk.co.westhawk.snmp.pdu.InterfaceGetNextPduStub
uk.co.westhawk.snmp.pdu.InterfaceGetNextPdu
The class InterfaceGetNextPdu.
This file is auto generated by the StubBrowser utility, using Mibble.
See the uk/co/westhawk/stub/ directory.
Added speed parameter and methods by hand.
Make sure that you replace the package name and classname placeholders.
Also, move this file to the correct package directory.
If these things are not done, this class will not compile correctly!!
- Version:
- $Revision: 3.17 $ $Date: 2008/05/06 10:17:06 $
-
Field Summary
Fields inherited from class uk.co.westhawk.snmp.pdu.InterfaceGetNextPduStub
all_oids, col_oids, ifDescr_OID, ifIndex_OID, ifInOctets_OID, ifNumber_OID, ifOperStatus_OID, ifOutOctets_OID, ifSpeed_OID, NO_COL, NO_OID, NO_SCAL, scal_oids, sysUpTime_OID
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class uk.co.westhawk.snmp.pdu.InterfaceGetNextPduStub
addOids, addOids, getIfDescr, getIfIndex, getIfInOctets, getIfNumber, getIfOperStatus, getIfOperStatusStr, getIfOutOctets, getIfSpeed, getSysUpTime, isValid, setIfDescr, setIfIndex, setIfInOctets, setIfNumber, setIfOperStatus, setIfOutOctets, setIfSpeed, setSysUpTime
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, waitForSelf
Methods inherited from class java.util.Observable
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers
-
Constructor Details
-
InterfaceGetNextPdu
Constructor.- Parameters:
con
- The context of the request
-
-
Method Details
-
getSpeed
public long getSpeed()Returns the last calculates speed.- See Also:
-
getSpeed
Calculates the speed of the interface. This is done by providing the method with the previous value of this interface. An interface is marked by its index. Do not confuse it with the previous interface ifInOctets the MIB. Total number of octets (received and transmitted) per second.- Parameters:
old
- The previous value of this interface
-
getIfNumber
Returns how many interfaces are present.- Returns:
- the number of interfaces
- Throws:
PduException
IOException
-
toString
Description copied from class:Pdu
Returns the string representation of the PDU.- Overrides:
toString
in classInterfaceGetNextPduStub
- Returns:
- The string of the PDU
-