Interface AsyncIndexInfoService

    • Method Summary

      All Methods Instance Methods Abstract Methods Default 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 NodeState
      java.util.Map<java.lang.String,​java.lang.Long> getIndexedUptoPerLane()
      Returns the lastIndexUpto time in millis for each indexing lane for current root state
      java.util.Map<java.lang.String,​java.lang.Long> getIndexedUptoPerLane​(NodeState root)
      Returns the lastIndexUpto time in millis for each indexing lane for given root state
      @Nullable AsyncIndexInfo getInfo​(java.lang.String name)
      Returns the info for async indexer with given name
      @Nullable AsyncIndexInfo getInfo​(java.lang.String name, NodeState root)
      Returns the info for async indexer with given name and based on given root NodeState
      default boolean hasIndexerUpdatedForAnyLane​(NodeState before, NodeState after)
      Determines if any index lane has completed any indexing cycle between given two repository states
    • Method Detail

      • getAsyncLanes

        java.lang.Iterable<java.lang.String> getAsyncLanes()
        Returns all the async indexing lanes which are active in the setup.
      • getAsyncLanes

        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 NodeState
        Parameters:
        root - root NodeState from which async index state is read
      • getInfo

        @Nullable
        @Nullable AsyncIndexInfo getInfo​(java.lang.String name)
        Returns the info for async indexer with given name
      • getInfo

        @Nullable
        @Nullable AsyncIndexInfo getInfo​(java.lang.String name,
                                         NodeState root)
        Returns the info for async indexer with given name and based on given root NodeState
      • getIndexedUptoPerLane

        java.util.Map<java.lang.String,​java.lang.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

        java.util.Map<java.lang.String,​java.lang.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 node
        after - after state of root node
        Returns:
        true if any indexing lane has completed any indexing cycle i.e. its lastIndexTo time has changed