Class SnmpVarbind

Object
com.tailf.conf.SnmpVarbind

public class SnmpVarbind extends Object
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 Details

  • Constructor Details

    • SnmpVarbind

      public SnmpVarbind(String variable, ConfValue value)
      Constructor for Snmp variable binding (of type VARIABLE)
    • SnmpVarbind

      @Deprecated public SnmpVarbind(int[] ioid, ConfValue value)
      Deprecated.
      Constructor for Snmp variable binding (of type OID) Using int, can't handle all valid values Use SnmpVarbind(long[], ConfValue) instead
    • SnmpVarbind

      public SnmpVarbind(long[] oid, ConfValue value)
      Constructor for Snmp variable binding (of type OID)
    • SnmpVarbind

      public SnmpVarbind(String column, int[] rowindex, ConfValue value)
      Constructor for Snmp variable binding (of type COLUMN_ROW)
  • Method Details

    • getType

      public int getType()
    • getVariable

      public String getVariable()
    • getOID

      @Deprecated public int[] getOID()
      Deprecated.
      Uses ints, which can't handle all valid OID values Use getOIDLong instead
    • getOIDLong

      public long[] getOIDLong()
    • getColumn

      public String getColumn()
    • getRowIndex

      public int[] getRowIndex()
    • getValue

      public ConfValue getValue()
    • encode

      public ConfEObject encode()
      Return encoded term.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • oidToString

      public String oidToString(int[] oid)
      Return oid as string on format 1.2.3.4 etc Should only be used for rowindex now
    • oidToString

      public String oidToString(long[] oid)
      Return oid as string on format 1.2.3.4 etc
    • encodeOid

      public ConfEObject encodeOid(int[] oid)
      Should only be used for rowindex now
    • encodeOid

      public ConfEObject encodeOid(long[] oid)