org.neo4j.kernel.impl.storemigration
Class StoreFiles

java.lang.Object
  extended by org.neo4j.kernel.impl.storemigration.StoreFiles

public class StoreFiles
extends Object


Field Summary
static String[] fileNames
           
 
Constructor Summary
StoreFiles()
           
 
Method Summary
static void move(File fromDirectory, File toDirectory)
          Moves a database's store files from one directory to another.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fileNames

public static final String[] fileNames
Constructor Detail

StoreFiles

public StoreFiles()
Method Detail

move

public static void move(File fromDirectory,
                        File toDirectory)
                 throws IOException
Moves a database's store files from one directory to another. Since it just renames files (the standard way of moving with JDK6) from and to must be on the same disk partition.

Parameters:
fromDirectory - The directory that hosts the database files.
toDirectory - The directory to move the database files to.
Throws:
IOException - If any of the move operations fail for any reason.


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