Class AsyncIndexInfo


  • public class AsyncIndexInfo
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      AsyncIndexInfo​(java.lang.String name, long lastIndexedTo, long leaseExpiryTime, boolean running, @Nullable IndexStatsMBean statsMBean)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getLastIndexedTo()
      Time in millis upto which the repository state is indexed via this indexer
      long getLeaseExpiryTime()
      Time in millis at which the current help lease would expire if indexing is in progress.
      java.lang.String getName()  
      @Nullable IndexStatsMBean getStatsMBean()
      IndexStatsMBean for current indexer.
      boolean isRunning()
      Returns true if the async indexer is currently active
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AsyncIndexInfo

        public AsyncIndexInfo​(java.lang.String name,
                              long lastIndexedTo,
                              long leaseExpiryTime,
                              boolean running,
                              @Nullable
                              @Nullable IndexStatsMBean statsMBean)
    • Method Detail

      • getName

        public java.lang.String getName()
      • getLastIndexedTo

        public long getLastIndexedTo()
        Time in millis upto which the repository state is indexed via this indexer
      • getLeaseExpiryTime

        public long getLeaseExpiryTime()
        Time in millis at which the current help lease would expire if indexing is in progress. If indexing is not in progress then its value would be -1
      • isRunning

        public boolean isRunning()
        Returns true if the async indexer is currently active
      • getStatsMBean

        @Nullable
        public @Nullable IndexStatsMBean getStatsMBean()
        IndexStatsMBean for current indexer. The MBean would be returning valid values only for that cluster node where the async indexer is active. For other cluster nodes the values may not reflect the current state
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object