Class GerritIndexStatus

java.lang.Object
com.google.gerrit.server.index.GerritIndexStatus

public class GerritIndexStatus extends Object
Status to decide if a specific index version (e.g. change v55) is initialized and ready for use. An index version is ready for use after documents for all entities were created.
  • Constructor Details

    • GerritIndexStatus

      public GerritIndexStatus(SitePaths sitePaths) throws org.eclipse.jgit.errors.ConfigInvalidException, IOException
      Throws:
      org.eclipse.jgit.errors.ConfigInvalidException
      IOException
  • Method Details

    • setReady

      public void setReady(String indexName, int version, boolean ready)
    • getReady

      public boolean getReady(String indexName, int version)
    • exists

      public boolean exists(String indexName)
    • save

      public void save() throws IOException
      Throws:
      IOException