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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int - 
Constructor Summary
ConstructorsConstructorDescriptionSnmpVarbind(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) long[]int[]intgetType()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
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
 - 
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
 
 -