Class VersionManager

    • Field Detail

      • onlineUpgrade

        protected final boolean onlineUpgrade
      • runReindexMsg

        protected final String runReindexMsg
      • sitePaths

        protected final SitePaths sitePaths
      • defs

        protected final Map<String,​com.google.gerrit.index.IndexDefinition<?,​?,​?>> defs
    • Method Detail

      • getOnlineUpgrade

        public static boolean getOnlineUpgrade​(org.eclipse.jgit.lib.Config cfg)
      • isKnownIndex

        public boolean isKnownIndex​(String name)
        Tells if an index with this name is currently known or not.
        Parameters:
        name - index name
        Returns:
        true if index is known and can be used, otherwise false.
      • initIndex

        protected <K,​V,​I extends com.google.gerrit.index.Index<K,​V>> void initIndex​(com.google.gerrit.index.IndexDefinition<K,​V,​I> def,
                                                                                                      GerritIndexStatus cfg)