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.
  • Enum Constant Details

    • noIndexAllocation

      public static final AgentXSharedMOTableSupport.IndexStrategy noIndexAllocation
      Do not allocate any indexes at the master agent.
    • firstSubIndexOnly

      public static final AgentXSharedMOTableSupport.IndexStrategy 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

      public static final AgentXSharedMOTableSupport.IndexStrategy 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

      public static final AgentXSharedMOTableSupport.IndexStrategy alwaysFirstSubIndex
      Always allocate the first sub-index only and do not hold a local reference count for allocated sub-indexes.
    • alwaysAnySubIndex

      public static final AgentXSharedMOTableSupport.IndexStrategy alwaysAnySubIndex
      Always allocate any sub-index values and do not hold a local reference count for allocated sub-indexes.
  • Method Details

    • values

      public static AgentXSharedMOTableSupport.IndexStrategy[] 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

      public static AgentXSharedMOTableSupport.IndexStrategy valueOf(String name)
      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 name
      NullPointerException - if the argument is null