Package org.snmp4j.agent.agentx.subagent
Enum Class AgentXSharedMOTableSupport.IndexStrategy
java.lang.Object
java.lang.Enum<AgentXSharedMOTableSupport.IndexStrategy>
org.snmp4j.agent.agentx.subagent.AgentXSharedMOTableSupport.IndexStrategy
- All Implemented Interfaces:
Serializable
,Comparable<AgentXSharedMOTableSupport.IndexStrategy>
,Constable
- Enclosing class:
AgentXSharedMOTableSupport<R extends org.snmp4j.agent.mo.MOTableRow,
A extends org.snmp4j.smi.Address>
public static enum AgentXSharedMOTableSupport.IndexStrategy
extends Enum<AgentXSharedMOTableSupport.IndexStrategy>
AgentXSharedMOTableSupport.IndexStrategy
specifies how index values are generated.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAlways allocate any sub-index values and do not hold a local reference count for allocated sub-indexes.Always allocate the first sub-index only and do not hold a local reference count for allocated sub-indexes.Allocate for all sub-indexes of a row index as long as the sub-index value has not yet been allocated by this shared table support instance.Only allocate an index value for the first sub-index of a row at the master agent.Do not allocate any indexes at the master agent. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
noIndexAllocation
Do not allocate any indexes at the master agent. -
firstSubIndexOnly
Only allocate an index value for the first sub-index of a row at the master agent. This is the recommended strategy for most use cases. Index values already allocated are not allocated again. A reference count is being hold to guarantee proper deallocation. -
anyNonAllocatedSubIndex
Allocate for all sub-indexes of a row index as long as the sub-index value has not yet been allocated by this shared table support instance. -
alwaysFirstSubIndex
Always allocate the first sub-index only and do not hold a local reference count for allocated sub-indexes. -
alwaysAnySubIndex
Always allocate any sub-index values and do not hold a local reference count for allocated sub-indexes.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-