Package com.google.gerrit.server.update
Class NoteDbBatchUpdate
- java.lang.Object
-
- com.google.gerrit.server.update.BatchUpdate
-
- com.google.gerrit.server.update.NoteDbBatchUpdate
-
- All Implemented Interfaces:
AutoCloseable
public class NoteDbBatchUpdate extends BatchUpdate
BatchUpdateimplementation using only NoteDb that updates code refs and meta refs in a singleBatchRefUpdate.Used when
noteDb.changes.disableReviewDb=true, at which point ReviewDb is not consulted during updates.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceNoteDbBatchUpdate.AssistedFactory-
Nested classes/interfaces inherited from class com.google.gerrit.server.update.BatchUpdate
BatchUpdate.Factory
-
-
Field Summary
-
Fields inherited from class com.google.gerrit.server.update.BatchUpdate
batchRefUpdate, newChanges, onSubmitValidators, ops, order, project, pushCert, refLogMessage, repoManager, repoOnlyOps, repoView, tz, user, when
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(BatchUpdateListener listener)protected ContextnewContext()-
Methods inherited from class com.google.gerrit.server.update.BatchUpdate
addOp, addRepoOnlyOp, close, execute, getAccount, getRefUpdates, getRepoView, getRevWalk, getUser, initRepository, insertChange, logDebug, logDebug, logDebug, logDebug, logDebug, module, setOnSubmitValidators, setOrder, setPushCertificate, setRefLogMessage, setRepository, updateChangesInParallel
-
-
-
-
Method Detail
-
execute
public void execute(BatchUpdateListener listener) throws UpdateException, RestApiException
- Specified by:
executein classBatchUpdate- Throws:
UpdateExceptionRestApiException
-
newContext
protected Context newContext()
- Specified by:
newContextin classBatchUpdate
-
-