org.openstreetmap.osmosis.core.store
Enum StorageStage

java.lang.Object
  extended by java.lang.Enum<StorageStage>
      extended by org.openstreetmap.osmosis.core.store.StorageStage
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<StorageStage>

public enum StorageStage
extends java.lang.Enum<StorageStage>

Each class used for managing storage has a lifecycle. The values of this enum represent each state in that lifecycle.

Author:
Brett Henderson

Enum Constant Summary
Add
          Data is being written to storage.
NotStarted
          No data has yet been written to storage.
Reading
          Data is being read from storage.
Released
          All resources associated with the storage have been released.
 
Method Summary
static StorageStage valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static StorageStage[] 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

NotStarted

public static final StorageStage NotStarted
No data has yet been written to storage.


Add

public static final StorageStage Add
Data is being written to storage.


Reading

public static final StorageStage Reading
Data is being read from storage.


Released

public static final StorageStage Released
All resources associated with the storage have been released.

Method Detail

values

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

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

valueOf

public static StorageStage 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