Class ChangeRebuilder
- java.lang.Object
-
- com.google.gerrit.server.notedb.rebuild.ChangeRebuilder
-
- Direct Known Subclasses:
ChangeRebuilderImpl
,TestChangeRebuilderWrapper
public abstract class ChangeRebuilder extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ChangeRebuilder.NoPatchSetsException
-
Constructor Summary
Constructors Modifier Constructor Description protected
ChangeRebuilder(com.google.gwtorm.server.SchemaFactory<ReviewDb> schemaFactory)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
buildUpdates(NoteDbUpdateManager manager, ChangeBundle bundle)
abstract NoteDbUpdateManager.Result
execute(ReviewDb db, Change.Id changeId, NoteDbUpdateManager manager)
abstract NoteDbUpdateManager.Result
rebuild(ReviewDb db, Change.Id changeId)
abstract NoteDbUpdateManager.Result
rebuild(NoteDbUpdateManager manager, ChangeBundle bundle)
com.google.common.util.concurrent.ListenableFuture<NoteDbUpdateManager.Result>
rebuildAsync(Change.Id id, com.google.common.util.concurrent.ListeningExecutorService executor)
abstract NoteDbUpdateManager.Result
rebuildEvenIfReadOnly(ReviewDb db, Change.Id changeId)
abstract void
rebuildReviewDb(ReviewDb db, Project.NameKey project, Change.Id changeId)
Rebuild ReviewDb contents by copying from NoteDb.abstract NoteDbUpdateManager
stage(ReviewDb db, Change.Id changeId)
-
-
-
Constructor Detail
-
ChangeRebuilder
protected ChangeRebuilder(com.google.gwtorm.server.SchemaFactory<ReviewDb> schemaFactory)
-
-
Method Detail
-
rebuildAsync
public final com.google.common.util.concurrent.ListenableFuture<NoteDbUpdateManager.Result> rebuildAsync(Change.Id id, com.google.common.util.concurrent.ListeningExecutorService executor)
-
rebuildReviewDb
public abstract void rebuildReviewDb(ReviewDb db, Project.NameKey project, Change.Id changeId) throws com.google.gwtorm.server.OrmException
Rebuild ReviewDb contents by copying from NoteDb.Requires NoteDb to be the primary storage for the change.
- Throws:
com.google.gwtorm.server.OrmException
-
rebuild
public abstract NoteDbUpdateManager.Result rebuild(ReviewDb db, Change.Id changeId) throws IOException, com.google.gwtorm.server.OrmException
- Throws:
IOException
com.google.gwtorm.server.OrmException
-
rebuildEvenIfReadOnly
public abstract NoteDbUpdateManager.Result rebuildEvenIfReadOnly(ReviewDb db, Change.Id changeId) throws IOException, com.google.gwtorm.server.OrmException
- Throws:
IOException
com.google.gwtorm.server.OrmException
-
rebuild
public abstract NoteDbUpdateManager.Result rebuild(NoteDbUpdateManager manager, ChangeBundle bundle) throws IOException, com.google.gwtorm.server.OrmException
- Throws:
IOException
com.google.gwtorm.server.OrmException
-
buildUpdates
public abstract void buildUpdates(NoteDbUpdateManager manager, ChangeBundle bundle) throws IOException, com.google.gwtorm.server.OrmException
- Throws:
IOException
com.google.gwtorm.server.OrmException
-
stage
public abstract NoteDbUpdateManager stage(ReviewDb db, Change.Id changeId) throws IOException, com.google.gwtorm.server.OrmException
- Throws:
IOException
com.google.gwtorm.server.OrmException
-
execute
public abstract NoteDbUpdateManager.Result execute(ReviewDb db, Change.Id changeId, NoteDbUpdateManager manager) throws com.google.gwtorm.server.OrmException, IOException
- Throws:
com.google.gwtorm.server.OrmException
IOException
-
-