public class IndexConsistencyChecker extends Object
Modifier and Type | Class and Description |
---|---|
static class |
IndexConsistencyChecker.DirectoryStatus |
static class |
IndexConsistencyChecker.FileSizeStatus |
static class |
IndexConsistencyChecker.Level |
static class |
IndexConsistencyChecker.Result |
Constructor and Description |
---|
IndexConsistencyChecker(org.apache.jackrabbit.oak.spi.state.NodeState rootState,
String indexPath,
File workDirRoot)
Checks the index at given path for consistency
|
Modifier and Type | Method and Description |
---|---|
IndexConsistencyChecker.Result |
check(IndexConsistencyChecker.Level level) |
IndexConsistencyChecker.Result |
check(IndexConsistencyChecker.Level level,
boolean cleanWorkDir) |
void |
setPrintStream(PrintStream printStream) |
void |
setVerbose(boolean verbose) |
public IndexConsistencyChecker(org.apache.jackrabbit.oak.spi.state.NodeState rootState, String indexPath, File workDirRoot)
rootState
- root state of repositoryindexPath
- path of index which needs to be checkedworkDirRoot
- directory which would be used for copying the index file locally to perform
check. File would be created in a subdirectory. If the index is valid
then the files would be removed otherwise whatever files have been copied
would be left as ispublic void setPrintStream(PrintStream printStream)
public void setVerbose(boolean verbose)
public IndexConsistencyChecker.Result check(IndexConsistencyChecker.Level level) throws IOException
IOException
public IndexConsistencyChecker.Result check(IndexConsistencyChecker.Level level, boolean cleanWorkDir) throws IOException
IOException
Copyright © 2012–2017 The Apache Software Foundation. All rights reserved.