org.neo4j.kernel.impl.storemigration
Class LogFiles

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

public class LogFiles
extends Object


Constructor Summary
LogFiles()
           
 
Method Summary
static void move(File fromDirectory, File toDirectory)
          Moves all logical logs of a database from one directory to another.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogFiles

public LogFiles()
Method Detail

move

public static void move(File fromDirectory,
                        File toDirectory)
                 throws IOException
Moves all logical logs of a database 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:
filename - The base filename for the logical logs
fromDirectory - The directory that hosts the database and its logs
toDirectory - The directory to move the log 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.