Class NoteDbMigrator
- java.lang.Object
-
- com.google.gerrit.server.notedb.rebuild.NoteDbMigrator
-
- All Implemented Interfaces:
AutoCloseable
public class NoteDbMigrator extends Object implements AutoCloseable
One stop shop for migrating a site's change storage from ReviewDb to NoteDb.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NoteDbMigrator.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
static boolean
getAutoMigrate(org.eclipse.jgit.lib.Config cfg)
static boolean
getTrialMode(org.eclipse.jgit.lib.Config cfg)
void
migrate()
void
rebuild()
static void
setTrialMode(org.eclipse.jgit.lib.Config cfg, boolean trial)
-
-
-
Method Detail
-
getAutoMigrate
public static boolean getAutoMigrate(org.eclipse.jgit.lib.Config cfg)
-
getTrialMode
public static boolean getTrialMode(org.eclipse.jgit.lib.Config cfg)
-
setTrialMode
public static void setTrialMode(org.eclipse.jgit.lib.Config cfg, boolean trial)
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
-
migrate
public void migrate() throws com.google.gwtorm.server.OrmException, IOException
- Throws:
com.google.gwtorm.server.OrmException
IOException
-
rebuild
public void rebuild() throws MigrationException, com.google.gwtorm.server.OrmException
- Throws:
MigrationException
com.google.gwtorm.server.OrmException
-
-