com.sun.jdmk.snmp
Class EnumRowStatus

java.lang.Object
  extended bycom.sun.jdmk.Enumerated
      extended bycom.sun.jdmk.snmp.EnumRowStatus
All Implemented Interfaces:
Serializable

Deprecated. Use package com.sun.management.snmp in preference to classes in this package. This class may be removed in a future version of Java DMK.

public class EnumRowStatus
extends Enumerated
implements Serializable

This class is an internal class which is used to represent RowStatus codes as defined in RFC 2579. It defines an additional code, unspecified, which is implementation specific, and is used to identify unspecified actions (when for instance the RowStatus variable is not present in the varbind list) or uninitialized values. mibgen does not generate objects of this class but any variable using the RowStatus textual convention can be converted into an object of this class thanks to the EnumRowStatus(Enumerated valueIndex) constructor.

See Also:
Serialized Form

Field Summary
static int active
          Deprecated. This value corresponds to the active RowStatus, as defined in RFC 2579 from SMIv2: active indicates that the conceptual row is available for use by the managed device;
static int createAndGo
          Deprecated. This value corresponds to the createAndGo RowStatus, as defined in RFC 2579 from SMIv2: createAndGo is supplied by a management station wishing to create a new instance of a conceptual row and to have its status automatically set to active, making it available for use by the managed device;
static int createAndWait
          Deprecated. This value corresponds to the createAndWait RowStatus, as defined in RFC 2579 from SMIv2: createAndWait is supplied by a management station wishing to create a new instance of a conceptual row (but not make it available for use by the managed device);
static int destroy
          Deprecated. This value corresponds to the destroy RowStatus, as defined in RFC 2579 from SMIv2: destroy is supplied by a management station wishing to delete all of the instances associated with an existing conceptual row.
static int notInService
          Deprecated. This value corresponds to the notInService RowStatus, as defined in RFC 2579 from SMIv2: notInService indicates that the conceptual row exists in the agent, but is unavailable for use by the managed device; notInService has no implication regarding the internal consistency of the row, availability of resources, or consistency with the current state of the managed device;
static int notReady
          Deprecated. This value corresponds to the notReady RowStatus, as defined in RFC 2579 from SMIv2: notReady indicates that the conceptual row exists in the agent, but is missing information necessary in order to be available for use by the managed device (i.e., one or more required columns in the conceptual row have not been instantiated);
static int unspecified
          Deprecated. This value is Java DMK implementation specific, and is used to identify unspecified actions (when for instance the RowStatus variable is not present in the varbind list) or uninitialized values.
 
Fields inherited from class com.sun.jdmk.Enumerated
value
 
Constructor Summary
EnumRowStatus()
          Deprecated. Build an EnumRowStatus with unspecified value.
EnumRowStatus(Enumerated valueIndex)
          Deprecated. Build an EnumRowStatus from an Enumerated.
EnumRowStatus(int valueIndex)
          Deprecated. Build an EnumRowStatus from an int.
EnumRowStatus(Integer valueIndex)
          Deprecated. Build an EnumRowStatus from an Integer.
EnumRowStatus(long valueIndex)
          Deprecated. Build an EnumRowStatus from a long.
EnumRowStatus(Long valueIndex)
          Deprecated. Build an EnumRowStatus from a Long.
EnumRowStatus(SnmpInt valueIndex)
          Deprecated. Build an EnumRowStatus from an SnmpInt.
EnumRowStatus(String x)
          Deprecated. Build an EnumRowStatus from a String.
 
Method Summary
protected  Hashtable getIntTable()
          Deprecated.  
protected  Hashtable getStringTable()
          Deprecated.  
static boolean isValidValue(int value)
          Deprecated. Check that the given value is valid.
 SnmpInt toSnmpValue()
          Deprecated. Build an SnmpValue from this object.
 
Methods inherited from class com.sun.jdmk.Enumerated
equals, hashCode, intValue, toString, valueIndexes, valueStrings
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

unspecified

public static final int unspecified
Deprecated. 
This value is Java DMK implementation specific, and is used to identify unspecified actions (when for instance the RowStatus variable is not present in the varbind list) or uninitialized values.

See Also:
Constant Field Values

active

public static final int active
Deprecated. 
This value corresponds to the active RowStatus, as defined in RFC 2579 from SMIv2:

See Also:
Constant Field Values

notInService

public static final int notInService
Deprecated. 
This value corresponds to the notInService RowStatus, as defined in RFC 2579 from SMIv2:

See Also:
Constant Field Values

notReady

public static final int notReady
Deprecated. 
This value corresponds to the notReady RowStatus, as defined in RFC 2579 from SMIv2:

See Also:
Constant Field Values

createAndGo

public static final int createAndGo
Deprecated. 
This value corresponds to the createAndGo RowStatus, as defined in RFC 2579 from SMIv2:

See Also:
Constant Field Values

createAndWait

public static final int createAndWait
Deprecated. 
This value corresponds to the createAndWait RowStatus, as defined in RFC 2579 from SMIv2:

See Also:
Constant Field Values

destroy

public static final int destroy
Deprecated. 
This value corresponds to the destroy RowStatus, as defined in RFC 2579 from SMIv2:

See Also:
Constant Field Values
Constructor Detail

EnumRowStatus

public EnumRowStatus(int valueIndex)
              throws IllegalArgumentException
Deprecated. 
Build an EnumRowStatus from an int.

Parameters:
valueIndex - should be either 0 (unspecified), or one of the values defined in RFC 2579.
Throws:
IllegalArgumentException - if the given valueIndex is not valid.

EnumRowStatus

public EnumRowStatus(Enumerated valueIndex)
              throws IllegalArgumentException
Deprecated. 
Build an EnumRowStatus from an Enumerated.

Parameters:
valueIndex - should be either 0 (unspecified), or one of the values defined in RFC 2579.
Throws:
IllegalArgumentException - if the given valueIndex is not valid.

EnumRowStatus

public EnumRowStatus(long valueIndex)
              throws IllegalArgumentException
Deprecated. 
Build an EnumRowStatus from a long.

Parameters:
valueIndex - should be either 0 (unspecified), or one of the values defined in RFC 2579.
Throws:
IllegalArgumentException - if the given valueIndex is not valid.

EnumRowStatus

public EnumRowStatus(Integer valueIndex)
              throws IllegalArgumentException
Deprecated. 
Build an EnumRowStatus from an Integer.

Parameters:
valueIndex - should be either 0 (unspecified), or one of the values defined in RFC 2579.
Throws:
IllegalArgumentException - if the given valueIndex is not valid.

EnumRowStatus

public EnumRowStatus(Long valueIndex)
              throws IllegalArgumentException
Deprecated. 
Build an EnumRowStatus from a Long.

Parameters:
valueIndex - should be either 0 (unspecified), or one of the values defined in RFC 2579.
Throws:
IllegalArgumentException - if the given valueIndex is not valid.

EnumRowStatus

public EnumRowStatus()
              throws IllegalArgumentException
Deprecated. 
Build an EnumRowStatus with unspecified value.


EnumRowStatus

public EnumRowStatus(String x)
              throws IllegalArgumentException
Deprecated. 
Build an EnumRowStatus from a String.

Parameters:
x - should be either "unspecified", or one of the values defined in RFC 2579 ("active", "notReady", etc...)
Throws:
IllegalArgumentException - if the given String x is not valid.

EnumRowStatus

public EnumRowStatus(SnmpInt valueIndex)
              throws IllegalArgumentException
Deprecated. 
Build an EnumRowStatus from an SnmpInt.

Parameters:
valueIndex - should be either 0 (unspecified), or one of the values defined in RFC 2579.
Throws:
IllegalArgumentException - if the given valueIndex is not valid.
Method Detail

toSnmpValue

public SnmpInt toSnmpValue()
                    throws IllegalArgumentException
Deprecated. 
Build an SnmpValue from this object.

Returns:
an SnmpInt containing this object value.
Throws:
IllegalArgumentException - if this object holds an unspecified value.

isValidValue

public static boolean isValidValue(int value)
Deprecated. 
Check that the given value is valid. Valid values are:


getIntTable

protected Hashtable getIntTable()
Deprecated. 

getStringTable

protected Hashtable getStringTable()
Deprecated. 

FCS Release
jdmk-5_1-b34.2 2005.11.29_16:24:00_MET

Copyright 1998-2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.