com.neeve.ods
Enum IStorePersister.StartupExpectation

java.lang.Object
  extended by java.lang.Enum<IStorePersister.StartupExpectation>
      extended by com.neeve.ods.IStorePersister.StartupExpectation
All Implemented Interfaces:
Serializable, Comparable<IStorePersister.StartupExpectation>
Enclosing interface:
IStorePersister

public static enum IStorePersister.StartupExpectation
extends Enum<IStorePersister.StartupExpectation>

Enumerates the set of supported startup expectations.

This enumerates the various startup expectations that can be requested when opening a persister. A startup expectation is an expectation of the state of the transaction log and/or it environment when the persister is starting up. A persister provided an expectation when starting will fail to start if the expectation is not met.


Enum Constant Summary
LogEmptiness
          Used to specify the expectation of the emptiness of the transaction log.
LogPresence
          Used to specify the expectation of the presence of the transaction log.
 
Method Summary
static IStorePersister.StartupExpectation valueOf(String name)
          Returns the enum constant of this type with the specified name.
static IStorePersister.StartupExpectation[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

LogPresence

public static final IStorePersister.StartupExpectation LogPresence
Used to specify the expectation of the presence of the transaction log.

This value is used to specify the expectation of the presence of a persister's transaction log. Permissible values are enumerated by the log presence expectation enumeration i.e. IStorePersister.LogPresenceExpectation


LogEmptiness

public static final IStorePersister.StartupExpectation LogEmptiness
Used to specify the expectation of the emptiness of the transaction log.

This value is used to specify the expectation of the emptiness of a persister's transaction log. Permissible values are enumerated by the log emptiness expectation enumeration i.e. IStorePersister.LogEmptinessExpectation

Method Detail

values

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

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

valueOf

public static IStorePersister.StartupExpectation 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 © 2016 Neeve Research, LLC. All Rights Reserved.