java.lang.Object | ||
↳ | com.sun.jmx.snmp.Enumerated | |
↳ | com.sun.jmx.snmp.EnumRowStatus |
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.
This API is a Sun Microsystems internal API and is subject to change without notice.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | active | This value corresponds to the active RowStatus, as defined in
RFC 2579 from SMIv2:
|
|||||||||
int | createAndGo | This value corresponds to the createAndGo RowStatus,
as defined in RFC 2579 from SMIv2:
|
|||||||||
int | createAndWait | This value corresponds to the createAndWait RowStatus,
as defined in RFC 2579 from SMIv2:
|
|||||||||
int | destroy | This value corresponds to the destroy RowStatus, as defined in
RFC 2579 from SMIv2:
|
|||||||||
int | notInService | This value corresponds to the notInService RowStatus, as
defined in RFC 2579 from SMIv2:
|
|||||||||
int | notReady | This value corresponds to the notReady RowStatus, as defined
in RFC 2579 from SMIv2:
|
|||||||||
int | unspecified | This value is SNMP Runtime 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. |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Build an
EnumRowStatus from an int . | |||||||||||
Build an
EnumRowStatus from an Enumerated . | |||||||||||
Build an
EnumRowStatus from a long . | |||||||||||
Build an
EnumRowStatus from an Integer . | |||||||||||
Build an
EnumRowStatus from a Long . | |||||||||||
Build an
EnumRowStatus with unspecified value. | |||||||||||
Build an
EnumRowStatus from a String . | |||||||||||
Build an
EnumRowStatus from an SnmpInt . |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Check that the given
value is valid. | |||||||||||
Build an SnmpValue from this object.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the hashtable of the integer forms.
| |||||||||||
Returns the hashtable of the string forms.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
This value corresponds to the active RowStatus, as defined in RFC 2579 from SMIv2:
This value corresponds to the createAndGo RowStatus, as defined in RFC 2579 from SMIv2:
This value corresponds to the createAndWait RowStatus, as defined in RFC 2579 from SMIv2:
This value corresponds to the destroy RowStatus, as defined in RFC 2579 from SMIv2:
This value corresponds to the notInService RowStatus, as defined in RFC 2579 from SMIv2:
This value corresponds to the notReady RowStatus, as defined in RFC 2579 from SMIv2:
This value is SNMP Runtime 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.
Build an EnumRowStatus
from an int
.
valueIndex | should be either 0 (unspecified), or one of the values defined in RFC 2579. |
---|
IllegalArgumentException | if the given
valueIndex is not valid.
|
---|
Build an EnumRowStatus
from an Enumerated
.
valueIndex | should be either 0 (unspecified), or one of the values defined in RFC 2579. |
---|
IllegalArgumentException | if the given
valueIndex is not valid.
|
---|
Build an EnumRowStatus
from a long
.
valueIndex | should be either 0 (unspecified), or one of the values defined in RFC 2579. |
---|
IllegalArgumentException | if the given
valueIndex is not valid.
|
---|
Build an EnumRowStatus
from an Integer
.
valueIndex | should be either 0 (unspecified), or one of the values defined in RFC 2579. |
---|
IllegalArgumentException | if the given
valueIndex is not valid.
|
---|
Build an EnumRowStatus
from a Long
.
valueIndex | should be either 0 (unspecified), or one of the values defined in RFC 2579. |
---|
IllegalArgumentException | if the given
valueIndex is not valid.
|
---|
Build an EnumRowStatus
with unspecified value.
IllegalArgumentException |
---|
Build an EnumRowStatus
from a String
.
x | should be either "unspecified", or one of the values defined in RFC 2579 ("active", "notReady", etc...) |
---|
IllegalArgumentException | if the given String
x is not valid.
|
---|
Build an EnumRowStatus
from an SnmpInt
.
valueIndex | should be either 0 (unspecified), or one of the values defined in RFC 2579. |
---|
IllegalArgumentException | if the given
valueIndex is not valid.
|
---|
Check that the given value
is valid.
Valid values are:
Build an SnmpValue from this object.
IllegalArgumentException | if this object holds an unspecified value. |
---|
Returns the hashtable of the integer forms. getIntTable().get(x) returns the string form associated to the integer x. This method must be implemented by the derived class.
Returns the hashtable of the string forms. getStringTable().get(s) returns the integer form associated to the string s. This method must be implemented by the derived class.