org.jvnet.solaris.libzfs
Enum ZFSType

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

public enum ZFSType
extends Enum<ZFSType>

Type of ZFSObject.

Author:
Kohsuke Kawaguchi
See Also:
zfs_type_t

Enum Constant Summary
FILESYSTEM
          A ZFS dataset of type "filesystem" that can be mounted within the standard system namespace and behaves like other file systems.
SNAPSHOT
          A read-only version of a file system or volume at a given point in time.
VOLUME
          A logical volume exported as a raw or block device.
 
Field Summary
 int code
           
 Class<? extends ZFSObject> type
           
 
Method Summary
static ZFSType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ZFSType[] 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

FILESYSTEM

public static final ZFSType FILESYSTEM
A ZFS dataset of type "filesystem" that can be mounted within the standard system namespace and behaves like other file systems. While ZFS file systems are designed to be POSIX compliant, known issues exist that prevent compliance in some cases. Applications that depend on standards conformance might fail due to nonstandard behavior when checking file system free space.


SNAPSHOT

public static final ZFSType SNAPSHOT
A read-only version of a file system or volume at a given point in time. It is specified as filesystem@name or volume@name.


VOLUME

public static final ZFSType VOLUME
A logical volume exported as a raw or block device. This type of dataset should only be used under special cir- cumstances. File systems are typically used in most environments. Volumes cannot be used in a non-global zone.

Field Detail

code

public final int code

type

public final Class<? extends ZFSObject> type
Method Detail

values

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

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

valueOf

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