Neo4j Enterprise

org.neo4j.kernel
Enum HighlyAvailableGraphDatabase.BranchedDataPolicy

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

public static enum HighlyAvailableGraphDatabase.BranchedDataPolicy
extends Enum<HighlyAvailableGraphDatabase.BranchedDataPolicy>


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

keep_last

public static final HighlyAvailableGraphDatabase.BranchedDataPolicy keep_last

keep_none

public static final HighlyAvailableGraphDatabase.BranchedDataPolicy keep_none

shutdown

public static final HighlyAvailableGraphDatabase.BranchedDataPolicy shutdown
Method Detail

values

public static HighlyAvailableGraphDatabase.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 (HighlyAvailableGraphDatabase.BranchedDataPolicy c : HighlyAvailableGraphDatabase.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 HighlyAvailableGraphDatabase.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

moveAwayDb

protected void moveAwayDb(HighlyAvailableGraphDatabase db,
                          File branchedDataDir)

isBranchedDataRootDirectory

public static boolean isBranchedDataRootDirectory(File directory)

isBranchedDataDirectory

public static boolean isBranchedDataDirectory(File directory)

getBranchedDataRootDirectory

public static File getBranchedDataRootDirectory(String dbStoreDir)

getBranchedDataDirectory

public static File getBranchedDataDirectory(String dbStoreDir,
                                            long timestamp)

listBranchedDataDirectories

public static File[] listBranchedDataDirectories(String storeDir)

Neo4j Enterprise

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