org.infinispan.query.MassIndexer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of infinispan-embedded-query
Show all versions of infinispan-embedded-query
Infinispan Embedded Query All-in-One module
package org.infinispan.query;
import org.infinispan.jmx.annotations.MBean;
import org.infinispan.jmx.annotations.ManagedOperation;
/**
* Component to rebuild the indexes from the existing data.
* This process starts by removing all existing indexes, and then a distributed
* task is executed to rebuild the indexes. This task can take a long time to run,
* depending on data size, used stores, indexing complexity.
*
* While reindexing is being performed queries should not be executed as they
* will very likely miss many or all results.
*
* @author Sanne Grinovero (C) 2012 Red Hat Inc.
*/
@MBean(objectName = "MassIndexer",
description = "Component that rebuilds the index from the cached data")
public interface MassIndexer {
//TODO Add more parameters here, like timeout when it will be implemented
//(see ISPN-1313, and ISPN-1042 for task cancellation)
@ManagedOperation(description = "Starts rebuilding the index", displayName = "Rebuild index")
void start();
}