All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.query.MassIndexer Maven / Gradle / Ivy

There is a newer version: 9.1.7.Final
Show newest version
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();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy