Interface AsyncIndexInfoService
-
- All Known Implementing Classes:
AsyncIndexInfoServiceImpl
public interface AsyncIndexInfoService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description 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 state@Nullable AsyncIndexInfo
getInfo(String name)
Returns the info for async indexer with given name@Nullable AsyncIndexInfo
getInfo(String name, NodeState root)
Returns the info for async indexer with given name and based on given root NodeStatedefault boolean
hasIndexerUpdatedForAnyLane(NodeState before, NodeState after)
Determines if any index lane has completed any indexing cycle between given two repository states
-
-
-
Method Detail
-
getAsyncLanes
Iterable<String> getAsyncLanes()
Returns all the async indexing lanes which are active in the setup.
-
getAsyncLanes
Iterable<String> getAsyncLanes(NodeState root)
Returns all the async indexing lanes which are active in the setup based on given root NodeState- Parameters:
root
- root NodeState from which async index state is read
-
getInfo
@Nullable @Nullable AsyncIndexInfo getInfo(String name)
Returns the info for async indexer with given name
-
getInfo
@Nullable @Nullable AsyncIndexInfo getInfo(String name, NodeState root)
Returns the info for async indexer with given name and based on given root NodeState
-
getIndexedUptoPerLane
Map<String,Long> getIndexedUptoPerLane()
Returns the lastIndexUpto time in millis for each indexing lane for current root state- Returns:
- map with lane name as key and lastIndexUpto in millis as value
-
getIndexedUptoPerLane
Map<String,Long> getIndexedUptoPerLane(NodeState root)
Returns the lastIndexUpto time in millis for each indexing lane for given root state- Returns:
- map with lane name as key and lastIndexUpto in millis as value
-
hasIndexerUpdatedForAnyLane
default boolean hasIndexerUpdatedForAnyLane(NodeState before, NodeState after)
Determines if any index lane has completed any indexing cycle between given two repository states- Parameters:
before
- before state of root nodeafter
- after state of root node- Returns:
- true if any indexing lane has completed any indexing cycle i.e. its lastIndexTo time has changed
-
-