Class IfTableEntry
- java.lang.Object
-
- org.opennms.netmgt.snmp.AbstractSnmpStore
-
- org.opennms.netmgt.snmp.SnmpStore
-
- org.opennms.netmgt.provision.service.snmp.SnmpTableEntry
-
- org.opennms.netmgt.provision.service.snmp.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
-
-
Field Summary
Fields Modifier and Type Field Description static StringIF_ADMIN_STATUSConstantIF_ADMIN_STATUS="ifAdminStatus"static StringIF_DESCRConstantIF_DESCR="ifDescr"static StringIF_IN_DISCARDSConstantIF_IN_DISCARDS="ifInDiscards"static StringIF_IN_ERRORSConstantIF_IN_ERRORS="ifInErrors"static StringIF_IN_NUCASTConstantIF_IN_NUCAST="ifInNUcastPkts"static StringIF_IN_OCTETSConstantIF_IN_OCTETS="ifInOctets"static StringIF_IN_UCASTConstantIF_IN_UCAST="ifInUcastPkts"static StringIF_IN_UKNOWN_PROTOSConstantIF_IN_UKNOWN_PROTOS="ifInUnknownProtos"static StringIF_INDEXConstantIF_INDEX="AbstractSnmpStore.IFINDEX"static StringIF_LAST_CHANGEConstantIF_LAST_CHANGE="ifLastChange"static StringIF_MTUConstantIF_MTU="ifMtu"static StringIF_OPER_STATUSConstantIF_OPER_STATUS="ifOperStatus"static StringIF_OUT_DISCARDSConstantIF_OUT_DISCARDS="ifOutDiscards"static StringIF_OUT_ERRORSConstantIF_OUT_ERRORS="ifOutErrors"static StringIF_OUT_NUCASTConstantIF_OUT_NUCAST="ifOutNUcastPkts"static StringIF_OUT_OCTETSConstantIF_OUT_OCTETS="ifOutOctets"static StringIF_OUT_QLENConstantIF_OUT_QLEN="ifOutQLen"static StringIF_OUT_UCASTConstantIF_OUT_UCAST="ifOutUcastPkts"static StringIF_PHYS_ADDRConstantIF_PHYS_ADDR="ifPhysAddr"static StringIF_SPECIFICConstantIF_SPECIFIC="ifSpecific"static StringIF_SPEEDConstantIF_SPEED="ifSpeed"static StringIF_TYPEConstantIF_TYPE="ifType"static NamedSnmpVar[]ms_elemListConstantms_elemListstatic StringTABLE_OIDThe TABLE_OID is the object identifier that represents the root of the interface table in the MIB forest.-
Fields inherited from class org.opennms.netmgt.snmp.AbstractSnmpStore
IFINDEX
-
-
Constructor Summary
Constructors Constructor Description IfTableEntry()The class constructor used to initialize the object to its initial state.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetIfAdminStatus()getIfAdminStatusStringgetIfDescr()getIfDescrIntegergetIfOperStatus()getIfOperStatusLonggetIfSpeed()getIfSpeedIntegergetIfType()getIfTypeStringgetPhysAddr()getPhysAddr-
Methods inherited from class org.opennms.netmgt.snmp.SnmpStore
getElementListSize, getElements, storeResult
-
Methods inherited from class org.opennms.netmgt.snmp.AbstractSnmpStore
getDisplayString, getHexString, getIfIndex, getInt32, getIPAddress, getObjectID, getUInt32, getValue, isEmpty, putIfIndex, putValue, size
-
-
-
-
Field Detail
-
IF_INDEX
public static final String IF_INDEX
ConstantIF_INDEX="AbstractSnmpStore.IFINDEX"- See Also:
- Constant Field Values
-
IF_DESCR
public static final String IF_DESCR
ConstantIF_DESCR="ifDescr"- See Also:
- Constant Field Values
-
IF_TYPE
public static final String IF_TYPE
ConstantIF_TYPE="ifType"- See Also:
- Constant Field Values
-
IF_MTU
public static final String IF_MTU
ConstantIF_MTU="ifMtu"- See Also:
- Constant Field Values
-
IF_SPEED
public static final String IF_SPEED
ConstantIF_SPEED="ifSpeed"- See Also:
- Constant Field Values
-
IF_PHYS_ADDR
public static final String IF_PHYS_ADDR
ConstantIF_PHYS_ADDR="ifPhysAddr"- See Also:
- Constant Field Values
-
IF_ADMIN_STATUS
public static final String IF_ADMIN_STATUS
ConstantIF_ADMIN_STATUS="ifAdminStatus"- See Also:
- Constant Field Values
-
IF_OPER_STATUS
public static final String IF_OPER_STATUS
ConstantIF_OPER_STATUS="ifOperStatus"- See Also:
- Constant Field Values
-
IF_LAST_CHANGE
public static final String IF_LAST_CHANGE
ConstantIF_LAST_CHANGE="ifLastChange"- See Also:
- Constant Field Values
-
IF_IN_OCTETS
public static final String IF_IN_OCTETS
ConstantIF_IN_OCTETS="ifInOctets"- See Also:
- Constant Field Values
-
IF_IN_UCAST
public static final String IF_IN_UCAST
ConstantIF_IN_UCAST="ifInUcastPkts"- See Also:
- Constant Field Values
-
IF_IN_NUCAST
public static final String IF_IN_NUCAST
ConstantIF_IN_NUCAST="ifInNUcastPkts"- See Also:
- Constant Field Values
-
IF_IN_DISCARDS
public static final String IF_IN_DISCARDS
ConstantIF_IN_DISCARDS="ifInDiscards"- See Also:
- Constant Field Values
-
IF_IN_ERRORS
public static final String IF_IN_ERRORS
ConstantIF_IN_ERRORS="ifInErrors"- See Also:
- Constant Field Values
-
IF_IN_UKNOWN_PROTOS
public static final String IF_IN_UKNOWN_PROTOS
ConstantIF_IN_UKNOWN_PROTOS="ifInUnknownProtos"- See Also:
- Constant Field Values
-
IF_OUT_OCTETS
public static final String IF_OUT_OCTETS
ConstantIF_OUT_OCTETS="ifOutOctets"- See Also:
- Constant Field Values
-
IF_OUT_UCAST
public static final String IF_OUT_UCAST
ConstantIF_OUT_UCAST="ifOutUcastPkts"- See Also:
- Constant Field Values
-
IF_OUT_NUCAST
public static final String IF_OUT_NUCAST
ConstantIF_OUT_NUCAST="ifOutNUcastPkts"- See Also:
- Constant Field Values
-
IF_OUT_DISCARDS
public static final String IF_OUT_DISCARDS
ConstantIF_OUT_DISCARDS="ifOutDiscards"- See Also:
- Constant Field Values
-
IF_OUT_ERRORS
public static final String IF_OUT_ERRORS
ConstantIF_OUT_ERRORS="ifOutErrors"- See Also:
- Constant Field Values
-
IF_OUT_QLEN
public static final String IF_OUT_QLEN
ConstantIF_OUT_QLEN="ifOutQLen"- See Also:
- Constant Field Values
-
IF_SPECIFIC
public static final String IF_SPECIFIC
ConstantIF_SPECIFIC="ifSpecific"- See Also:
- Constant Field Values
-
ms_elemList
public static NamedSnmpVar[] ms_elemList
Constantms_elemList
-
TABLE_OID
public static final String TABLE_OID
The TABLE_OID is the object identifier that represents the root of the interface table in the MIB forest.
- See Also:
- Constant Field Values
-
-
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.
-
-