Class AsyncIndexInfo
- java.lang.Object
 - 
- org.apache.jackrabbit.oak.plugins.index.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 longgetLastIndexedTo()Time in millis upto which the repository state is indexed via this indexerlonggetLeaseExpiryTime()Time in millis at which the current help lease would expire if indexing is in progress.java.lang.StringgetName()@Nullable IndexStatsMBeangetStatsMBean()IndexStatsMBean for current indexer.booleanisRunning()Returns true if the async indexer is currently activejava.lang.StringtoString() 
 - 
 
- 
- 
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:
 toStringin classjava.lang.Object
 
 - 
 
 -