Package org.apache.bookkeeper.bookie
Class FileSystemUpgrade
- java.lang.Object
-
- org.apache.bookkeeper.bookie.FileSystemUpgrade
-
public class FileSystemUpgrade extends java.lang.Object
Application for upgrading the bookkeeper filesystem between versions.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static java.io.FilenameFilter
bookieFilesFilter
-
Constructor Summary
Constructors Constructor Description FileSystemUpgrade()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
finalizeUpgrade(ServerConfiguration conf)
static java.util.List<java.io.File>
getAllDirectories(ServerConfiguration conf)
static void
main(java.lang.String[] args)
static void
rollback(ServerConfiguration conf)
static void
upgrade(ServerConfiguration conf)
-
-
-
Method Detail
-
getAllDirectories
public static java.util.List<java.io.File> getAllDirectories(ServerConfiguration conf)
-
upgrade
public static void upgrade(ServerConfiguration conf) throws BookieException.UpgradeException, java.lang.InterruptedException
- Throws:
BookieException.UpgradeException
java.lang.InterruptedException
-
finalizeUpgrade
public static void finalizeUpgrade(ServerConfiguration conf) throws BookieException.UpgradeException, java.lang.InterruptedException
- Throws:
BookieException.UpgradeException
java.lang.InterruptedException
-
rollback
public static void rollback(ServerConfiguration conf) throws BookieException.UpgradeException, java.lang.InterruptedException
- Throws:
BookieException.UpgradeException
java.lang.InterruptedException
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-