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

public abstract class SiteIndexer<K,V,I extends Index<K,V>> extends Object
Base class for implementations that can index all entities of a given type.
  • Field Details

    • totalWork

      protected int totalWork
    • progressOut

      protected OutputStream progressOut
    • verboseWriter

      protected PrintWriter verboseWriter
  • Constructor Details

    • SiteIndexer

      public SiteIndexer()
  • Method Details

    • setTotalWork

      public void setTotalWork(int num)
    • setProgressOut

      public void setProgressOut(OutputStream out)
    • setVerboseOut

      public void setVerboseOut(OutputStream out)
    • indexAll

      public abstract SiteIndexer.Result indexAll(I index)
      Indexes all entities for the provided index.
    • indexAll

      public SiteIndexer.Result indexAll(I index, boolean notifyListeners)
      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

      protected PrintWriter newPrintWriter(OutputStream out)