Class IfTableEntry


  • public final class IfTableEntry
    extends SnmpTableEntry

    This object contains a list of all the elements defined in the MIB-II interface table. An instance object is initialized by calling the constructor and passing in a variable list from an SNMP PDU. The actual data can be recovered via the base class map interface.

    Once an instance is created and its data set either via the constructor or from the update method, the actual elements can be retrieved using the instance names. The names include: ifIndex,ifDescr, ifSpeed,etc al. The information can also be accessed by using the complete object identifier for the entry.

    For more information on the individual fields, and to find out their respective object identifiers see RFC1213 from the IETF.

    Author:
    Sowmya , Weave , Jon Whetzel
    See Also:
    RFC1213
    • Constructor Detail

      • IfTableEntry

        public IfTableEntry()

        The class constructor used to initialize the object to its initial state. Although the object's attributes and data can be changed after its created, this constructor will initialize all the variables as per their named varbind in the passed array. This array should have been collected from an SnmpPduRequest that was received from a remote host.

    • Method Detail

      • getIfType

        public Integer getIfType()

        getIfType

        Returns:
        a Integer object.
      • getIfAdminStatus

        public Integer getIfAdminStatus()

        getIfAdminStatus

        Returns:
        a Integer object.
      • getIfDescr

        public String getIfDescr()

        getIfDescr

        Returns:
        a String object.
      • getPhysAddr

        public String getPhysAddr()

        getPhysAddr

        Returns:
        a String object.
      • getIfOperStatus

        public Integer getIfOperStatus()

        getIfOperStatus

        Returns:
        a Integer object.
      • getIfSpeed

        public Long getIfSpeed()

        getIfSpeed

        Returns:
        a Long object.