Class AnyNewIndexOID

java.lang.Object
org.snmp4j.smi.AbstractVariable
org.snmp4j.smi.OID
org.snmp4j.agent.agentx.subagent.index.AnyNewIndexOID
All Implemented Interfaces:
Serializable, Cloneable, Comparable<org.snmp4j.smi.Variable>, org.snmp4j.asn1.BERSerializable, org.snmp4j.smi.AssignableFromIntArray, org.snmp4j.smi.AssignableFromString, org.snmp4j.smi.Variable

public class AnyNewIndexOID extends org.snmp4j.smi.OID
The AnyNewIndexOID is a special OID subclass for shared table indexes. This object can be used to create a locally unique index value during sub-agent initialization that will be replaced by a globally unique index when AgentX connection is being established.
Version:
1.0
Author:
Frank Fock
See Also:
  • Field Summary

    Fields inherited from class org.snmp4j.smi.OID

    MAX_OID_LEN, MAX_SUBID_VALUE

    Fields inherited from class org.snmp4j.smi.AbstractVariable

    SMISYNTAXES_PROPERTIES
  • Constructor Summary

    Constructors
    Constructor
    Description
    Create an empty index.
    AnyNewIndexOID(int[] index)
    Constructs an NewIndexOID from an array of integer values.
    Constructs an NewIndexOID from a dotted string.
  • Method Summary

    Modifier and Type
    Method
    Description
     

    Methods inherited from class org.snmp4j.smi.OID

    append, append, append, appendUnsigned, compareTo, decodeBER, encodeBER, equals, format, fromSubIndex, get, getBERLength, getSuffix, getSyntax, getUnsigned, getValue, hashCode, isValid, last, lastUnsigned, leftMostCompare, mask, max, min, nextPeer, predecessor, removeLast, rightMostCompare, set, setValue, setValue, size, startsWith, subOID, subOID, successor, toByteArray, toDottedString, toInt, toIntArray, toLong, toString, toSubIndex, toUnsignedLongArray, trim, trim

    Methods inherited from class org.snmp4j.smi.AbstractVariable

    createFromBER, createFromSyntax, equal, getBERPayloadLength, getSyntaxFromString, getSyntaxString, getSyntaxString, isDynamic, isException

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • AnyNewIndexOID

      public AnyNewIndexOID()
      Create an empty index.
    • AnyNewIndexOID

      public AnyNewIndexOID(int[] index)
      Constructs an NewIndexOID from an array of integer values.
      Parameters:
      index - an array of int values. The array is copied. Later changes to rawOID will therefore not affect the OID's value.
    • AnyNewIndexOID

      public AnyNewIndexOID(String index)
      Constructs an NewIndexOID from a dotted string. The string can contain embedded strings enclosed by a single quote (') that are converted to the corresponding OIO value. See OID(String).
      Parameters:
      index - a dotted OID index String, for example "3.38.50.39"
  • Method Details

    • clone

      public Object clone()
      Specified by:
      clone in interface org.snmp4j.smi.Variable
      Overrides:
      clone in class org.snmp4j.smi.OID