Package com.tailf.conf
Class SnmpVarbind
Object
com.tailf.conf.SnmpVarbind
The SnmpVarbind is a data structure for holding an SNMP variable binding
which is on either of the forms:
- Variable - Value
- OID - Value
- Column - RowIndex - Value
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Constructor Summary
ConstructorDescriptionSnmpVarbind
(int[] ioid, ConfValue value) Deprecated.SnmpVarbind
(long[] oid, ConfValue value) Constructor for Snmp variable binding (of type OID)SnmpVarbind
(String column, int[] rowindex, ConfValue value) Constructor for Snmp variable binding (of type COLUMN_ROW)SnmpVarbind
(String variable, ConfValue value) Constructor for Snmp variable binding (of type VARIABLE) -
Method Summary
Modifier and TypeMethodDescriptionencode()
Return encoded term.encodeOid
(int[] oid) Should only be used for rowindex nowencodeOid
(long[] oid) int[]
getOID()
Deprecated.long[]
int[]
int
getType()
getValue()
oidToString
(int[] oid) Return oid as string on format 1.2.3.4 etc Should only be used for rowindex nowoidToString
(long[] oid) Return oid as string on format 1.2.3.4 etctoString()
-
Field Details
-
VARIABLE
public static final int VARIABLE- See Also:
-
OID
public static final int OID- See Also:
-
COLUMN_ROW
public static final int COLUMN_ROW- See Also:
-
-
Constructor Details
-
SnmpVarbind
Constructor for Snmp variable binding (of type VARIABLE) -
SnmpVarbind
Deprecated.Constructor for Snmp variable binding (of type OID) Using int, can't handle all valid values Use SnmpVarbind(long[], ConfValue) instead -
SnmpVarbind
Constructor for Snmp variable binding (of type OID) -
SnmpVarbind
Constructor for Snmp variable binding (of type COLUMN_ROW)
-
-
Method Details
-
getType
public int getType() -
getVariable
-
getOID
Deprecated.Uses ints, which can't handle all valid OID values Use getOIDLong instead -
getOIDLong
public long[] getOIDLong() -
getColumn
-
getRowIndex
public int[] getRowIndex() -
getValue
-
encode
Return encoded term. -
toString
-
oidToString
Return oid as string on format 1.2.3.4 etc Should only be used for rowindex now -
oidToString
Return oid as string on format 1.2.3.4 etc -
encodeOid
Should only be used for rowindex now -
encodeOid
-