org.neo4j.kernel.impl.storemigration
Class LogFiles
java.lang.Object
org.neo4j.kernel.impl.storemigration.LogFiles
public class LogFiles
- extends Object
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 |
LogFiles
public LogFiles()
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 logsfromDirectory
- The directory that hosts the database and its logstoDirectory
- 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.