Package org.hibernate.search.jmx
Interface IndexControlMBean
- All Known Implementing Classes:
IndexControl
public interface IndexControlMBean
Defines the Hibernate Search exposed JMX attributes and operations for index creation and purging.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionintintintvoidIndex the specified entity using the mass indexer.voidOptimizes the index for the specified entity.voidPurge the index of the specified entity.voidsetBatchSize(int batchSize) Sets the batch size for the mass indexer.voidsetNumberOfFetchingThreads(int numberOfThreads) voidsetNumberOfObjectLoadingThreads(int numberOfThreads)
-
Field Details
-
INDEX_CTRL_MBEAN_OBJECT_NAME
- See Also:
-
-
Method Details
-
setBatchSize
void setBatchSize(int batchSize) Sets the batch size for the mass indexer.- Parameters:
batchSize- the new batch size
-
getBatchSize
int getBatchSize()- Returns:
- the current batch size for (mass) indexing
-
setNumberOfObjectLoadingThreads
void setNumberOfObjectLoadingThreads(int numberOfThreads) - Parameters:
numberOfThreads- the number of threads used for object loading during mass indexing.
-
getNumberOfObjectLoadingThreads
int getNumberOfObjectLoadingThreads()- Returns:
- the current number of threads during mass indexing
-
setNumberOfFetchingThreads
void setNumberOfFetchingThreads(int numberOfThreads) - Parameters:
numberOfThreads- the number of threads used for collections fetching during mass indexing
-
getNumberOfFetchingThreads
int getNumberOfFetchingThreads()- Returns:
- the current number of threads used for collection fetching
-
index
Index the specified entity using the mass indexer.Note:
This method is only available if the HibernateSessionFactoryis available via JNDI.- Parameters:
entity- The fqc of the entity to index- Throws:
IllegalArgumentException- in case the entity name is not validUnsupportedOperationException- in case the HibernateSessionFactoryis not bound via JNDI.
-
optimize
Optimizes the index for the specified entity.Note:
This method is only available if the HibernateSessionFactoryis available via JNDI.- Parameters:
entity- The fqc of the entity to index- Throws:
IllegalArgumentException- in case the entity name is not validUnsupportedOperationException- in case the HibernateSessionFactoryis not bound via JNDI.
-
purge
Purge the index of the specified entity.Note:
This method is only available if the HibernateSessionFactoryis available via JNDI.- Parameters:
entity- The fqc of the entity to index- Throws:
IllegalArgumentException- in case the entity name is not validUnsupportedOperationException- in case the HibernateSessionFactoryis not bound via JNDI.
-