org.friendlysnmp
Enum ValueValidation

java.lang.Object
  extended by java.lang.Enum<ValueValidation>
      extended by org.friendlysnmp.ValueValidation
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ValueValidation>

public enum ValueValidation
extends java.lang.Enum<ValueValidation>

SET operation validation result which is sent to MIB manager by agent. See error codes RFC-3416 and descriptions at here.

Error codes are declared in SnmpConstants

Version:
$Revision: 1.12 $

Enum Constant Summary
AUTHORIZATION_ERROR
          An authorization error occurred.
BAD_VALUE
          The requested SNMP operation tried to change a variable but it specified either a syntax or value error.
COMMIT_FAILED
          No validation errors occurred, but no variables were updated.
GENERAL_ERROR
          An error other than one of those listed here occurred during the requested SNMP operation.
INCONSISTENT_NAME
          The variable does not exist; the agent cannot create it because the named object instance is inconsistent with the values of other managed objects.
INCONSISTENT_VALUE
          The value is inconsistent with values of other managed objects.
NO_ACCESS
          The specified SNMP variable is not accessible.
NO_CREATION
          The variable does not exist, and the agent cannot create it.
NO_SUCH_NAME
          The requested SNMP operation identified an unknown variable.
NOT_WRITEABLE
          The variable exists but the agent cannot modify it.
READ_ONLY
          The requested SNMP operation tried to change a variable that was not allowed to change, according to the community profile of the variable.
RESOURCE_UNAVAILABLE
          Assigning the value to the variable requires allocation of resources that are currently unavailable.
SUCCESS
          The agent reports that no errors occurred during transmission.
TOO_BIG
          The agent could not place the results of the requested SNMP operation in a single SNMP message.
UNDO_FAILED
          No validation errors occurred.
WRONG_ENCODING
          The value contains an Abstract Syntax Notation One (ASN.1) encoding that is inconsistent with the ASN.1 tag of the field.
WRONG_LENGTH
          The value specifies a length that is inconsistent with the length required for the variable.
WRONG_TYPE
          The value specifies a type that is inconsistent with the type required for the variable.
WRONG_VALUE
          The value cannot be assigned to the variable.
 
Method Summary
static ValueValidation find(int code)
           
static ValueValidation valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ValueValidation[] 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

SUCCESS

public static final ValueValidation SUCCESS
The agent reports that no errors occurred during transmission.


TOO_BIG

public static final ValueValidation TOO_BIG
The agent could not place the results of the requested SNMP operation in a single SNMP message.


NO_SUCH_NAME

public static final ValueValidation NO_SUCH_NAME
The requested SNMP operation identified an unknown variable.


BAD_VALUE

public static final ValueValidation BAD_VALUE
The requested SNMP operation tried to change a variable but it specified either a syntax or value error.


READ_ONLY

public static final ValueValidation READ_ONLY
The requested SNMP operation tried to change a variable that was not allowed to change, according to the community profile of the variable.


GENERAL_ERROR

public static final ValueValidation GENERAL_ERROR
An error other than one of those listed here occurred during the requested SNMP operation.


NO_ACCESS

public static final ValueValidation NO_ACCESS
The specified SNMP variable is not accessible.


WRONG_TYPE

public static final ValueValidation WRONG_TYPE
The value specifies a type that is inconsistent with the type required for the variable.


WRONG_LENGTH

public static final ValueValidation WRONG_LENGTH
The value specifies a length that is inconsistent with the length required for the variable.


WRONG_ENCODING

public static final ValueValidation WRONG_ENCODING
The value contains an Abstract Syntax Notation One (ASN.1) encoding that is inconsistent with the ASN.1 tag of the field.


WRONG_VALUE

public static final ValueValidation WRONG_VALUE
The value cannot be assigned to the variable.


NO_CREATION

public static final ValueValidation NO_CREATION
The variable does not exist, and the agent cannot create it.


INCONSISTENT_VALUE

public static final ValueValidation INCONSISTENT_VALUE
The value is inconsistent with values of other managed objects.


RESOURCE_UNAVAILABLE

public static final ValueValidation RESOURCE_UNAVAILABLE
Assigning the value to the variable requires allocation of resources that are currently unavailable.


COMMIT_FAILED

public static final ValueValidation COMMIT_FAILED
No validation errors occurred, but no variables were updated.


UNDO_FAILED

public static final ValueValidation UNDO_FAILED
No validation errors occurred. Some variables were updated because it was not possible to undo their assignment.


AUTHORIZATION_ERROR

public static final ValueValidation AUTHORIZATION_ERROR
An authorization error occurred.


NOT_WRITEABLE

public static final ValueValidation NOT_WRITEABLE
The variable exists but the agent cannot modify it.


INCONSISTENT_NAME

public static final ValueValidation INCONSISTENT_NAME
The variable does not exist; the agent cannot create it because the named object instance is inconsistent with the values of other managed objects.

Method Detail

values

public static ValueValidation[] 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 (ValueValidation c : ValueValidation.values())
    System.out.println(c);

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

valueOf

public static ValueValidation 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

find

public static final ValueValidation find(int code)