org.das2.util.filesystem
Enum FileSystemSettings.Persistence

java.lang.Object
  extended by java.lang.Enum<FileSystemSettings.Persistence>
      extended by org.das2.util.filesystem.FileSystemSettings.Persistence
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<FileSystemSettings.Persistence>
Enclosing class:
FileSystemSettings

public static enum FileSystemSettings.Persistence
extends java.lang.Enum<FileSystemSettings.Persistence>


Enum Constant Summary
ALWAYS
          Files persist indefinately, and the server is only contacted when a file is not available locally.
EXPIRES
          Files persist until a new version is available on the remote cache.
NONE
          No persistence.
SESSION
          Within a session, files are cached locally.
 
Method Summary
static FileSystemSettings.Persistence valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static FileSystemSettings.Persistence[] 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

NONE

public static final FileSystemSettings.Persistence NONE
No persistence. No files are cached locally.


SESSION

public static final FileSystemSettings.Persistence SESSION
Within a session, files are cached locally. This is the default.


EXPIRES

public static final FileSystemSettings.Persistence EXPIRES
Files persist until a new version is available on the remote cache.


ALWAYS

public static final FileSystemSettings.Persistence ALWAYS
Files persist indefinately, and the server is only contacted when a file is not available locally.

Method Detail

values

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

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

valueOf

public static FileSystemSettings.Persistence valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null