org.snmp4j.agent.agentx.subagent
Enum AgentXSharedMOTableSupport.IndexStrategy

java.lang.Object
  extended by java.lang.Enum<AgentXSharedMOTableSupport.IndexStrategy>
      extended by org.snmp4j.agent.agentx.subagent.AgentXSharedMOTableSupport.IndexStrategy
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<AgentXSharedMOTableSupport.IndexStrategy>
Enclosing class:
AgentXSharedMOTableSupport

public static enum AgentXSharedMOTableSupport.IndexStrategy
extends java.lang.Enum<AgentXSharedMOTableSupport.IndexStrategy>


Enum Constant Summary
alwaysAnySubIndex
          Always allocate any sub-index values and do not hold a local reference count for allocated sub-indexes.
alwaysFirstSubIndex
          Always allocate the first sub-index only and do not hold a local reference count for allocated sub-indexes.
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.
firstSubIndexOnly
          Only allocate an index value for the first sub-index of a row at the master agent.
noIndexAllocation
          Do not allocate any indexes at the master agent.
 
Method Summary
static AgentXSharedMOTableSupport.IndexStrategy valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static AgentXSharedMOTableSupport.IndexStrategy[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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 Detail

values

public static AgentXSharedMOTableSupport.IndexStrategy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (AgentXSharedMOTableSupport.IndexStrategy c : AgentXSharedMOTableSupport.IndexStrategy.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static AgentXSharedMOTableSupport.IndexStrategy valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

Copyright 2005-2012 Frank Fock (SNMP4J.org)

Copyright © 2012 SNMP4J.org. All Rights Reserved.