Package com.google.gerrit.index
Class SiteIndexer<K,V,I extends Index<K,V>>
java.lang.Object
com.google.gerrit.index.SiteIndexer<K,V,I>
- Direct Known Subclasses:
AllAccountsIndexer
,AllChangesIndexer
,AllGroupsIndexer
,AllProjectsIndexer
Base class for implementations that can index all entities of a given type.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Result of an operation to index a subset or all of the entities of a given type. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final void
addErrorListener
(com.google.common.util.concurrent.ListenableFuture<?> future, String desc, org.eclipse.jgit.lib.ProgressMonitor progress, AtomicBoolean ok) abstract SiteIndexer.Result
Indexes all entities for the provided index.Indexes all entities for the provided index.protected PrintWriter
void
void
setTotalWork
(int num) void
-
Field Details
-
totalWork
protected int totalWork -
progressOut
-
verboseWriter
-
-
Constructor Details
-
SiteIndexer
public SiteIndexer()
-
-
Method Details
-
setTotalWork
public void setTotalWork(int num) -
setProgressOut
-
setVerboseOut
-
indexAll
Indexes all entities for the provided index. -
indexAll
Indexes all entities for the provided index.NOTE: This method does not implement the 'notifyListeners' logic which is effectively ignored and all listeners are always notified.
-
addErrorListener
protected final void addErrorListener(com.google.common.util.concurrent.ListenableFuture<?> future, String desc, org.eclipse.jgit.lib.ProgressMonitor progress, AtomicBoolean ok) -
newPrintWriter
-