Class AsyncIndexInfoServiceImpl
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.index.AsyncIndexInfoServiceImpl
-
- All Implemented Interfaces:
AsyncIndexInfoService
public class AsyncIndexInfoServiceImpl extends java.lang.Object implements AsyncIndexInfoService
-
-
Constructor Summary
Constructors Constructor Description AsyncIndexInfoServiceImpl()AsyncIndexInfoServiceImpl(NodeStore nodeStore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Iterable<java.lang.String>getAsyncLanes()Returns all the async indexing lanes which are active in the setup.java.lang.Iterable<java.lang.String>getAsyncLanes(NodeState root)Returns all the async indexing lanes which are active in the setup based on given root NodeStatejava.util.Map<java.lang.String,java.lang.Long>getIndexedUptoPerLane()Returns the lastIndexUpto time in millis for each indexing lane for current root statejava.util.Map<java.lang.String,java.lang.Long>getIndexedUptoPerLane(NodeState root)Returns the lastIndexUpto time in millis for each indexing lane for given root stateAsyncIndexInfogetInfo(java.lang.String name)Returns the info for async indexer with given nameAsyncIndexInfogetInfo(java.lang.String name, NodeState root)Returns the info for async indexer with given name and based on given root NodeState-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.jackrabbit.oak.plugins.index.AsyncIndexInfoService
hasIndexerUpdatedForAnyLane
-
-
-
-
Constructor Detail
-
AsyncIndexInfoServiceImpl
public AsyncIndexInfoServiceImpl()
-
AsyncIndexInfoServiceImpl
public AsyncIndexInfoServiceImpl(NodeStore nodeStore)
-
-
Method Detail
-
getAsyncLanes
public java.lang.Iterable<java.lang.String> getAsyncLanes()
Description copied from interface:AsyncIndexInfoServiceReturns all the async indexing lanes which are active in the setup.- Specified by:
getAsyncLanesin interfaceAsyncIndexInfoService
-
getAsyncLanes
public java.lang.Iterable<java.lang.String> getAsyncLanes(NodeState root)
Description copied from interface:AsyncIndexInfoServiceReturns all the async indexing lanes which are active in the setup based on given root NodeState- Specified by:
getAsyncLanesin interfaceAsyncIndexInfoService- Parameters:
root- root NodeState from which async index state is read
-
getInfo
public AsyncIndexInfo getInfo(java.lang.String name)
Description copied from interface:AsyncIndexInfoServiceReturns the info for async indexer with given name- Specified by:
getInfoin interfaceAsyncIndexInfoService
-
getInfo
public AsyncIndexInfo getInfo(java.lang.String name, NodeState root)
Description copied from interface:AsyncIndexInfoServiceReturns the info for async indexer with given name and based on given root NodeState- Specified by:
getInfoin interfaceAsyncIndexInfoService
-
getIndexedUptoPerLane
public java.util.Map<java.lang.String,java.lang.Long> getIndexedUptoPerLane()
Description copied from interface:AsyncIndexInfoServiceReturns the lastIndexUpto time in millis for each indexing lane for current root state- Specified by:
getIndexedUptoPerLanein interfaceAsyncIndexInfoService- Returns:
- map with lane name as key and lastIndexUpto in millis as value
-
getIndexedUptoPerLane
public java.util.Map<java.lang.String,java.lang.Long> getIndexedUptoPerLane(NodeState root)
Description copied from interface:AsyncIndexInfoServiceReturns the lastIndexUpto time in millis for each indexing lane for given root state- Specified by:
getIndexedUptoPerLanein interfaceAsyncIndexInfoService- Returns:
- map with lane name as key and lastIndexUpto in millis as value
-
-