org.jvnet.solaris.libzfs
Enum ZPoolStatus

java.lang.Object
  extended by java.lang.Enum<ZPoolStatus>
      extended by org.jvnet.solaris.libzfs.ZPoolStatus
All Implemented Interfaces:
Serializable, Comparable<ZPoolStatus>

public enum ZPoolStatus
extends Enum<ZPoolStatus>

Pool health statistics.

Author:
Kohsuke Kawaguchi

Enum Constant Summary
ZPOOL_STATUS_BAD_GUID_SUM
           
ZPOOL_STATUS_BAD_LOG
           
ZPOOL_STATUS_CORRUPT_CACHE
          corrupt /kernel/drv/zpool.cache
ZPOOL_STATUS_CORRUPT_DATA
           
ZPOOL_STATUS_CORRUPT_LABEL_NR
           
ZPOOL_STATUS_CORRUPT_LABEL_R
           
ZPOOL_STATUS_CORRUPT_POOL
           
ZPOOL_STATUS_FAILING_DEV
           
ZPOOL_STATUS_FAULTED_DEV_NR
           
ZPOOL_STATUS_FAULTED_DEV_R
           
ZPOOL_STATUS_HOSTID_MISMATCH
           
ZPOOL_STATUS_IO_FAILURE_CONTINUE
           
ZPOOL_STATUS_IO_FAILURE_WAIT
           
ZPOOL_STATUS_MISSING_DEV_NR
           
ZPOOL_STATUS_MISSING_DEV_R
           
ZPOOL_STATUS_OFFLINE_DEV
           
ZPOOL_STATUS_OK
           
ZPOOL_STATUS_RESILVERING
           
ZPOOL_STATUS_VERSION_NEWER
           
ZPOOL_STATUS_VERSION_OLDER
           
 
Field Summary
 String action
          Human readable description of how to resolve the problem.
 String status
          Human readable description of what this status means.
 
Method Summary
static ZPoolStatus valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ZPoolStatus[] 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

ZPOOL_STATUS_CORRUPT_CACHE

public static final ZPoolStatus ZPOOL_STATUS_CORRUPT_CACHE
corrupt /kernel/drv/zpool.cache


ZPOOL_STATUS_MISSING_DEV_R

public static final ZPoolStatus ZPOOL_STATUS_MISSING_DEV_R

ZPOOL_STATUS_MISSING_DEV_NR

public static final ZPoolStatus ZPOOL_STATUS_MISSING_DEV_NR

ZPOOL_STATUS_CORRUPT_LABEL_R

public static final ZPoolStatus ZPOOL_STATUS_CORRUPT_LABEL_R

ZPOOL_STATUS_CORRUPT_LABEL_NR

public static final ZPoolStatus ZPOOL_STATUS_CORRUPT_LABEL_NR

ZPOOL_STATUS_BAD_GUID_SUM

public static final ZPoolStatus ZPOOL_STATUS_BAD_GUID_SUM

ZPOOL_STATUS_CORRUPT_POOL

public static final ZPoolStatus ZPOOL_STATUS_CORRUPT_POOL

ZPOOL_STATUS_CORRUPT_DATA

public static final ZPoolStatus ZPOOL_STATUS_CORRUPT_DATA

ZPOOL_STATUS_FAILING_DEV

public static final ZPoolStatus ZPOOL_STATUS_FAILING_DEV

ZPOOL_STATUS_VERSION_NEWER

public static final ZPoolStatus ZPOOL_STATUS_VERSION_NEWER

ZPOOL_STATUS_HOSTID_MISMATCH

public static final ZPoolStatus ZPOOL_STATUS_HOSTID_MISMATCH

ZPOOL_STATUS_IO_FAILURE_WAIT

public static final ZPoolStatus ZPOOL_STATUS_IO_FAILURE_WAIT

ZPOOL_STATUS_IO_FAILURE_CONTINUE

public static final ZPoolStatus ZPOOL_STATUS_IO_FAILURE_CONTINUE

ZPOOL_STATUS_BAD_LOG

public static final ZPoolStatus ZPOOL_STATUS_BAD_LOG

ZPOOL_STATUS_FAULTED_DEV_R

public static final ZPoolStatus ZPOOL_STATUS_FAULTED_DEV_R

ZPOOL_STATUS_FAULTED_DEV_NR

public static final ZPoolStatus ZPOOL_STATUS_FAULTED_DEV_NR

ZPOOL_STATUS_VERSION_OLDER

public static final ZPoolStatus ZPOOL_STATUS_VERSION_OLDER

ZPOOL_STATUS_RESILVERING

public static final ZPoolStatus ZPOOL_STATUS_RESILVERING

ZPOOL_STATUS_OFFLINE_DEV

public static final ZPoolStatus ZPOOL_STATUS_OFFLINE_DEV

ZPOOL_STATUS_OK

public static final ZPoolStatus ZPOOL_STATUS_OK
Field Detail

status

public final String status
Human readable description of what this status means. Can be null.


action

public final String action
Human readable description of how to resolve the problem. Can be null.

Method Detail

values

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

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

valueOf

public static ZPoolStatus 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.