Class AsyncIndexInfo
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.index.AsyncIndexInfo
-
public class AsyncIndexInfo extends Object
-
-
Constructor Summary
Constructors Constructor Description AsyncIndexInfo(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 indexerlong
getLeaseExpiryTime()
Time in millis at which the current help lease would expire if indexing is in progress.String
getName()
@Nullable IndexStatsMBean
getStatsMBean()
IndexStatsMBean for current indexer.boolean
isRunning()
Returns true if the async indexer is currently activeString
toString()
-
-
-
Constructor Detail
-
AsyncIndexInfo
public AsyncIndexInfo(String name, long lastIndexedTo, long leaseExpiryTime, boolean running, @Nullable @Nullable IndexStatsMBean statsMBean)
-
-
Method Detail
-
getName
public 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
-
-