org.jvnet.solaris.libzfs.jna
Enum vdev_state_t
java.lang.Object
java.lang.Enum<vdev_state_t>
org.jvnet.solaris.libzfs.jna.vdev_state_t
- All Implemented Interfaces:
- Serializable, Comparable<vdev_state_t>
public enum vdev_state_t
- extends Enum<vdev_state_t>
vdev states are ordered from least to most healthy.
A vdev that's CANT_OPEN or below is considered unusable.
|
Method Summary |
static vdev_state_t |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static vdev_state_t[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
VDEV_STATE_UNKNOWN
public static final vdev_state_t VDEV_STATE_UNKNOWN
VDEV_STATE_CLOSED
public static final vdev_state_t VDEV_STATE_CLOSED
VDEV_STATE_OFFLINE
public static final vdev_state_t VDEV_STATE_OFFLINE
VDEV_STATE_REMOVED
public static final vdev_state_t VDEV_STATE_REMOVED
VDEV_STATE_CANT_OPEN
public static final vdev_state_t VDEV_STATE_CANT_OPEN
VDEV_STATE_FAULTED
public static final vdev_state_t VDEV_STATE_FAULTED
VDEV_STATE_DEGRADED
public static final vdev_state_t VDEV_STATE_DEGRADED
VDEV_STATE_HEALTHY
public static final vdev_state_t VDEV_STATE_HEALTHY
values
public static vdev_state_t[] 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 (vdev_state_t c : vdev_state_t.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static vdev_state_t valueOf(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:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
Copyright © 2012. All Rights Reserved.