Class InterfaceGetNextPduStub

Direct Known Subclasses:
InterfaceGetNextPdu

public class InterfaceGetNextPduStub extends GetNextPdu
The class InterfaceGetNextPduStub. This file is auto generated by the StubBrowser utility, using Mibble. See the uk/co/westhawk/stub/ directory. 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!!
Since:
4_14
Version:
$Revision: 3.4 $ $Date: 2006/11/29 16:12:50 $
  • Field Details

  • Constructor Details

    • InterfaceGetNextPduStub

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

      public InterfaceGetNextPduStub(SnmpContextBasisFace con, Observer o) throws PduException, IOException
      Constructor that will send the first request immediately.
      Parameters:
      con - The context of the request
      o - the Observer that will be notified when the answer is received
      Throws:
      PduException
      IOException
  • Method Details

    • addOids

      public void addOids(InterfaceGetNextPduStub old)
      The method addOids is the basis for the GetNext functionality. If old is null, it initialises the varbinds from all_oids. If old is not null, it copies the column OIDs from the old InterfaceGetNextPduStub object. so the request continues where the previous one left. Note, the scalars and the columns OIDs are handled differently. The scalars are always copied from the original scal_oids, only the column OIDs are copied from the old InterfaceGetNextPduStub object.
    • addOids

      public void addOids(int index)
      This method sets the column index. By doing this, the request will return (only) this index. The index parameters only applies to the column OIDs. The scalars are copied from the original scal_oids.
    • setSysUpTime

      public void setSysUpTime(AsnObject new_value)
      sysUpTime OBJECT-TYPE ( Syntax: [APPLICATION 3] INTEGER (0..4294967295) Access: read-only Status: mandatory Description: The time (in hundredths of a second) since the network management portion of the system was last re-initialized. )
    • getSysUpTime

      public long getSysUpTime()
    • setIfNumber

      public void setIfNumber(AsnObject new_value)
      ifNumber OBJECT-TYPE ( Syntax: [UNIVERSAL 2] INTEGER Access: read-only Status: mandatory Description: The number of network interfaces (regardless of their current state) present on this system. )
    • getIfNumber

      public int getIfNumber()
    • setIfIndex

      public void setIfIndex(AsnObject new_value)
      ifIndex OBJECT-TYPE ( Syntax: [UNIVERSAL 2] INTEGER Access: read-only Status: mandatory Description: A unique value for each interface. Its value ranges between 1 and the value of ifNumber. The value for each interface must remain constant at least from one re-initialization of the entity's network management system to the next re- initialization. )
    • getIfIndex

      public int getIfIndex()
    • setIfDescr

      public void setIfDescr(AsnObject new_value)
      ifDescr OBJECT-TYPE ( Syntax: [UNIVERSAL 4] OCTET STRING (SIZE (0..255)) Access: read-only Status: mandatory Description: A textual string containing information about the interface. This string should include the name of the manufacturer, the product name and the version of the hardware interface. )
    • getIfDescr

      public String getIfDescr()
    • setIfSpeed

      public void setIfSpeed(AsnObject new_value)
      ifSpeed OBJECT-TYPE ( Syntax: [APPLICATION 2] INTEGER (0..4294967295) Access: read-only Status: mandatory Description: An estimate of the interface's current bandwidth in bits per second. For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. )
    • getIfSpeed

      public long getIfSpeed()
    • setIfOperStatus

      public void setIfOperStatus(AsnObject new_value)
      ifOperStatus OBJECT-TYPE ( Syntax: [UNIVERSAL 2] INTEGER (1 | 2 | 3) Access: read-only Status: mandatory Description: The current operational state of the interface. The testing(3) state indicates that no operational packets can be passed. )
    • getIfOperStatusStr

      public String getIfOperStatusStr()
    • getIfOperStatus

      public int getIfOperStatus()
    • setIfInOctets

      public void setIfInOctets(AsnObject new_value)
      ifInOctets OBJECT-TYPE ( Syntax: [APPLICATION 1] INTEGER (0..4294967295) Access: read-only Status: mandatory Description: The total number of octets received on the interface, including framing characters. )
    • getIfInOctets

      public long getIfInOctets()
    • setIfOutOctets

      public void setIfOutOctets(AsnObject new_value)
      ifOutOctets OBJECT-TYPE ( Syntax: [APPLICATION 1] INTEGER (0..4294967295) Access: read-only Status: mandatory Description: The total number of octets transmitted out of the interface, including framing characters. )
    • getIfOutOctets

      public long getIfOutOctets()
    • isValid

      public boolean isValid()
      Returns if this set of values is valid.
    • toString

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