Class TrackingCorruptIndexHandler
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.index.TrackingCorruptIndexHandler
-
- All Implemented Interfaces:
CorruptIndexHandler
public class TrackingCorruptIndexHandler extends Object implements CorruptIndexHandler
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
TrackingCorruptIndexHandler.CorruptIndexInfo
-
Field Summary
-
Fields inherited from interface org.apache.jackrabbit.oak.plugins.index.CorruptIndexHandler
NOOP
-
-
Constructor Summary
Constructors Constructor Description TrackingCorruptIndexHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,TrackingCorruptIndexHandler.CorruptIndexInfo>
getCorruptIndexData(String asyncName)
Map<String,TrackingCorruptIndexHandler.CorruptIndexInfo>
getFailingIndexData(String asyncName)
TabularData
getFailingIndexStats(String asyncName)
void
indexUpdateFailed(String async, String indexPath, Exception e)
boolean
isFailing(String asyncName)
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
-
-
-
Method Detail
-
getCorruptIndexData
public Map<String,TrackingCorruptIndexHandler.CorruptIndexInfo> getCorruptIndexData(String asyncName)
-
getFailingIndexData
public Map<String,TrackingCorruptIndexHandler.CorruptIndexInfo> getFailingIndexData(String asyncName)
-
isFailing
public boolean isFailing(String asyncName)
-
skippingCorruptIndex
public boolean skippingCorruptIndex(String async, String indexPath, Calendar corruptSince)
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
public void indexUpdateFailed(String async, String indexPath, Exception e)
- Specified by:
indexUpdateFailed
in interfaceCorruptIndexHandler
-
setCorruptInterval
public void setCorruptInterval(long interval, TimeUnit unit)
-
setErrorWarnInterval
public void setErrorWarnInterval(long errorWarnInterval, TimeUnit unit)
-
getFailingIndexStats
public TabularData getFailingIndexStats(String asyncName)
-
-