Class TrackingCorruptIndexHandler
java.lang.Object
org.apache.jackrabbit.oak.plugins.index.TrackingCorruptIndexHandler
- All Implemented Interfaces:
CorruptIndexHandler
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.apache.jackrabbit.oak.plugins.index.CorruptIndexHandler
NOOP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCorruptIndexData(String asyncName) getFailingIndexData(String asyncName) getFailingIndexStats(String asyncName) voidindexUpdateFailed(String async, String indexPath, Exception e) booleanvoidmarkWorkingIndexes(Set<String> updatedIndexPaths) voidsetCorruptInterval(long interval, TimeUnit unit) voidsetErrorWarnInterval(long errorWarnInterval, TimeUnit unit) booleanskippingCorruptIndex(String async, String indexPath, Calendar corruptSince) Callback method to inform handler that a corrupt index has been skipped
-
Constructor Details
-
TrackingCorruptIndexHandler
public TrackingCorruptIndexHandler()
-
-
Method Details
-
getCorruptIndexData
public Map<String,TrackingCorruptIndexHandler.CorruptIndexInfo> getCorruptIndexData(String asyncName) -
getFailingIndexData
public Map<String,TrackingCorruptIndexHandler.CorruptIndexInfo> getFailingIndexData(String asyncName) -
markWorkingIndexes
-
isFailing
-
skippingCorruptIndex
Description copied from interface:CorruptIndexHandlerCallback method to inform handler that a corrupt index has been skipped- Specified by:
skippingCorruptIndexin interfaceCorruptIndexHandler- Parameters:
async- async nameindexPath- corrupt index pathcorruptSince- time since index is corrupt- Returns:
- true if warning is logged for skipped indexing
-
indexUpdateFailed
- Specified by:
indexUpdateFailedin interfaceCorruptIndexHandler
-
setCorruptInterval
-
setErrorWarnInterval
-
getFailingIndexStats
-