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
BatchUpdate
implementation 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 interface
NoteDbBatchUpdate.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 void
execute(BatchUpdateListener listener)
protected Context
newContext()
-
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:
execute
in classBatchUpdate
- Throws:
UpdateException
RestApiException
-
newContext
protected Context newContext()
- Specified by:
newContext
in classBatchUpdate
-
-