public class IndexControl extends Object implements IndexControlMBean
IndexControlMBean JMX attributes and operations.INDEX_CTRL_MBEAN_OBJECT_NAME| Constructor and Description |
|---|
IndexControl(Properties props) |
| Modifier and Type | Method and Description |
|---|---|
int |
getBatchSize() |
int |
getNumberOfFetchingThreads() |
int |
getNumberOfObjectLoadingThreads() |
void |
index(String entity)
Index the specified entity using the mass indexer.
|
void |
optimize(String entity)
Optimizes the index for the specified entity.
|
void |
purge(String entity)
Purge the index of the specified entity.
|
void |
setBatchSize(int batchSize)
Sets the batch size for the mass indexer.
|
void |
setNumberOfFetchingThreads(int numberOfThreads) |
void |
setNumberOfObjectLoadingThreads(int numberOfThreads) |
public IndexControl(Properties props)
public void setBatchSize(int batchSize)
IndexControlMBeansetBatchSize in interface IndexControlMBeanbatchSize - the new batch sizepublic int getBatchSize()
getBatchSize in interface IndexControlMBeanpublic void setNumberOfObjectLoadingThreads(int numberOfThreads)
setNumberOfObjectLoadingThreads in interface IndexControlMBeannumberOfThreads - the number of threads used for object loading during mass indexing.public int getNumberOfObjectLoadingThreads()
getNumberOfObjectLoadingThreads in interface IndexControlMBeanpublic void setNumberOfFetchingThreads(int numberOfThreads)
setNumberOfFetchingThreads in interface IndexControlMBeannumberOfThreads - the number of threads used for collections fetching during mass indexingpublic int getNumberOfFetchingThreads()
getNumberOfFetchingThreads in interface IndexControlMBeanpublic void index(String entity)
IndexControlMBeanNote:
This method is only available if the Hibernate SessionFactory
is available via JNDI.
index in interface IndexControlMBeanentity - The fqc of the entity to indexpublic void optimize(String entity)
IndexControlMBeanNote:
This method is only available if the Hibernate SessionFactory
is available via JNDI.
optimize in interface IndexControlMBeanentity - The fqc of the entity to indexpublic void purge(String entity)
IndexControlMBeanNote:
This method is only available if the Hibernate SessionFactory
is available via JNDI.
purge in interface IndexControlMBeanentity - The fqc of the entity to indexCopyright © 2018 JBoss by Red Hat. All rights reserved.