Class InterfaceGetNextPdu


public class InterfaceGetNextPdu extends InterfaceGetNextPduStub
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 $
  • Constructor Details

    • InterfaceGetNextPdu

      public InterfaceGetNextPdu(SnmpContextBasisFace con)
      Constructor.
      Parameters:
      con - The context of the request
  • Method Details

    • getSpeed

      public long getSpeed()
      Returns the last calculates speed.
      See Also:
    • getSpeed

      public long getSpeed(InterfaceGetNextPdu old)
      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

      public static int getIfNumber(SnmpContextBasisFace con) throws PduException, IOException
      Returns how many interfaces are present.
      Returns:
      the number of interfaces
      Throws:
      PduException
      IOException
    • toString

      public String toString()
      Description copied from class: Pdu
      Returns the string representation of the PDU.
      Overrides:
      toString in class InterfaceGetNextPduStub
      Returns:
      The string of the PDU