Package com.google.gerrit.server.index
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 Summary
Constructors Constructor Description GerritIndexStatus(SitePaths sitePaths)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
exists(String indexName)
boolean
getReady(String indexName, int version)
void
save()
void
setReady(String indexName, int version, boolean ready)
-
-
-
Constructor Detail
-
GerritIndexStatus
public GerritIndexStatus(SitePaths sitePaths) throws org.eclipse.jgit.errors.ConfigInvalidException, IOException
- Throws:
org.eclipse.jgit.errors.ConfigInvalidException
IOException
-
-
Method Detail
-
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
-
-