Package com.google.gerrit.server.index
Class OnlineReindexer<K,V,I extends Index<K,V>>
- java.lang.Object
-
- com.google.gerrit.server.index.OnlineReindexer<K,V,I>
-
-
Constructor Summary
Constructors Constructor Description OnlineReindexer(IndexDefinition<K,V,I> def, int oldVersion, int newVersion, PluginSetContext<OnlineUpgradeListener> listeners)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activateIndex()
Switches the search index from the old version to the new version.int
getVersion()
Returns the index version that this indexer is creating documents for.boolean
isRunning()
Returnstrue
if the background indexer is currently running.void
start()
Starts the background process.
-
-
-
Constructor Detail
-
OnlineReindexer
public OnlineReindexer(IndexDefinition<K,V,I> def, int oldVersion, int newVersion, PluginSetContext<OnlineUpgradeListener> listeners)
-
-
Method Detail
-
start
public void start()
Starts the background process.
-
isRunning
public boolean isRunning()
Returnstrue
if the background indexer is currently running.
-
getVersion
public int getVersion()
Returns the index version that this indexer is creating documents for.
-
activateIndex
public void activateIndex()
Switches the search index from the old version to the new version. This method should be called when the new version is fully ready.
-
-