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
ConstructorsConstructorDescriptionCreate an empty index.AnyNewIndexOID
(int[] index) Constructs anNewIndexOID
from an array of integer values.AnyNewIndexOID
(String index) Constructs anNewIndexOID
from a dotted string. -
Method Summary
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
-
Constructor Details
-
AnyNewIndexOID
public AnyNewIndexOID()Create an empty index. -
AnyNewIndexOID
public AnyNewIndexOID(int[] index) Constructs anNewIndexOID
from an array of integer values.- Parameters:
index
- an array ofint
values. The array is copied. Later changes torawOID
will therefore not affect the OID's value.
-
AnyNewIndexOID
Constructs anNewIndexOID
from a dotted string. The string can contain embedded strings enclosed by a single quote (') that are converted to the corresponding OIO value. SeeOID(String)
.- Parameters:
index
- a dotted OID index String, for example "3.38.50.39"
-
-
Method Details
-
clone
- Specified by:
clone
in interfaceorg.snmp4j.smi.Variable
- Overrides:
clone
in classorg.snmp4j.smi.OID
-