org.apache.jackrabbit.core.query.lucene
Class ConsistencyCheck

java.lang.Object
  extended by org.apache.jackrabbit.core.query.lucene.ConsistencyCheck

public class ConsistencyCheck
extends Object

Implements a consistency check on the search index. Currently the following checks are implemented:


Method Summary
 List<ConsistencyCheckError> getErrors()
          Returns the errors detected by the consistency check.
 void repair(boolean ignoreFailure)
          Repairs detected errors during the consistency check.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

repair

public void repair(boolean ignoreFailure)
            throws IOException
Repairs detected errors during the consistency check.

Parameters:
ignoreFailure - if true repair failures are ignored, the repair continues without throwing an exception. If false the repair procedure is aborted on the first repair failure.
Throws:
IOException - if a repair failure occurs.

getErrors

public List<ConsistencyCheckError> getErrors()
Returns the errors detected by the consistency check.

Returns:
the errors detected by the consistency check.


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.