org.neo4j.kernel.ha
Enum BranchedDataPolicy

java.lang.Object
  extended by java.lang.Enum<BranchedDataPolicy>
      extended by org.neo4j.kernel.ha.BranchedDataPolicy
All Implemented Interfaces:
Serializable, Comparable<BranchedDataPolicy>

public enum BranchedDataPolicy
extends Enum<BranchedDataPolicy>


Enum Constant Summary
keep_all
           
keep_last
           
keep_none
           
 
Method Summary
static File getBranchedDataDirectory(File storeDir, long timestamp)
           
static File getBranchedDataRootDirectory(File storeDir)
           
abstract  void handle(File storeDir)
           
static boolean isBranchedDataDirectory(File directory)
           
static boolean isBranchedDataRootDirectory(File directory)
           
static File[] listBranchedDataDirectories(File storeDir)
           
protected  void moveAwayDb(File storeDir, File branchedDataDir)
           
static BranchedDataPolicy valueOf(String name)
          Returns the enum constant of this type with the specified name.
static BranchedDataPolicy[] 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

keep_all

public static final BranchedDataPolicy keep_all

keep_last

public static final BranchedDataPolicy keep_last

keep_none

public static final BranchedDataPolicy keep_none
Method Detail

values

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

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

valueOf

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

handle

public abstract void handle(File storeDir)
                     throws IOException
Throws:
IOException

moveAwayDb

protected void moveAwayDb(File storeDir,
                          File branchedDataDir)
                   throws IOException
Throws:
IOException

isBranchedDataRootDirectory

public static boolean isBranchedDataRootDirectory(File directory)

isBranchedDataDirectory

public static boolean isBranchedDataDirectory(File directory)

getBranchedDataRootDirectory

public static File getBranchedDataRootDirectory(File storeDir)

getBranchedDataDirectory

public static File getBranchedDataDirectory(File storeDir,
                                            long timestamp)

listBranchedDataDirectories

public static File[] listBranchedDataDirectories(File storeDir)


Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.