Class AsyncIndexInfoServiceImpl
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.index.AsyncIndexInfoServiceImpl
-
- All Implemented Interfaces:
AsyncIndexInfoService
public class AsyncIndexInfoServiceImpl extends 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 protected void
bindStatsMBeans(IndexStatsMBean mBean)
Iterable<String>
getAsyncLanes()
Returns all the async indexing lanes which are active in the setup.Iterable<String>
getAsyncLanes(NodeState root)
Returns all the async indexing lanes which are active in the setup based on given root NodeStateMap<String,Long>
getIndexedUptoPerLane()
Returns the lastIndexUpto time in millis for each indexing lane for current root stateMap<String,Long>
getIndexedUptoPerLane(NodeState root)
Returns the lastIndexUpto time in millis for each indexing lane for given root stateAsyncIndexInfo
getInfo(String name)
Returns the info for async indexer with given nameAsyncIndexInfo
getInfo(String name, NodeState root)
Returns the info for async indexer with given name and based on given root NodeStateprotected void
unbindStatsMBeans(IndexStatsMBean mBean)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, 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 Iterable<String> getAsyncLanes()
Description copied from interface:AsyncIndexInfoService
Returns all the async indexing lanes which are active in the setup.- Specified by:
getAsyncLanes
in interfaceAsyncIndexInfoService
-
getAsyncLanes
public Iterable<String> getAsyncLanes(NodeState root)
Description copied from interface:AsyncIndexInfoService
Returns all the async indexing lanes which are active in the setup based on given root NodeState- Specified by:
getAsyncLanes
in interfaceAsyncIndexInfoService
- Parameters:
root
- root NodeState from which async index state is read
-
getInfo
public AsyncIndexInfo getInfo(String name)
Description copied from interface:AsyncIndexInfoService
Returns the info for async indexer with given name- Specified by:
getInfo
in interfaceAsyncIndexInfoService
-
getInfo
public AsyncIndexInfo getInfo(String name, NodeState root)
Description copied from interface:AsyncIndexInfoService
Returns the info for async indexer with given name and based on given root NodeState- Specified by:
getInfo
in interfaceAsyncIndexInfoService
-
getIndexedUptoPerLane
public Map<String,Long> getIndexedUptoPerLane()
Description copied from interface:AsyncIndexInfoService
Returns the lastIndexUpto time in millis for each indexing lane for current root state- Specified by:
getIndexedUptoPerLane
in interfaceAsyncIndexInfoService
- Returns:
- map with lane name as key and lastIndexUpto in millis as value
-
getIndexedUptoPerLane
public Map<String,Long> getIndexedUptoPerLane(NodeState root)
Description copied from interface:AsyncIndexInfoService
Returns the lastIndexUpto time in millis for each indexing lane for given root state- Specified by:
getIndexedUptoPerLane
in interfaceAsyncIndexInfoService
- Returns:
- map with lane name as key and lastIndexUpto in millis as value
-
bindStatsMBeans
protected void bindStatsMBeans(IndexStatsMBean mBean)
-
unbindStatsMBeans
protected void unbindStatsMBeans(IndexStatsMBean mBean)
-
-