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) void
indexUpdateFailed
(String async, String indexPath, Exception e) boolean
void
markWorkingIndexes
(Set<String> updatedIndexPaths) void
setCorruptInterval
(long interval, TimeUnit unit) void
setErrorWarnInterval
(long errorWarnInterval, TimeUnit unit) boolean
skippingCorruptIndex
(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:CorruptIndexHandler
Callback method to inform handler that a corrupt index has been skipped- Specified by:
skippingCorruptIndex
in 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:
indexUpdateFailed
in interfaceCorruptIndexHandler
-
setCorruptInterval
-
setErrorWarnInterval
-
getFailingIndexStats
-