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)
IndexControlMBean
setBatchSize
in interface IndexControlMBean
batchSize
- the new batch sizepublic int getBatchSize()
getBatchSize
in interface IndexControlMBean
public void setNumberOfObjectLoadingThreads(int numberOfThreads)
setNumberOfObjectLoadingThreads
in interface IndexControlMBean
numberOfThreads
- the number of threads used for object loading during mass indexing.public int getNumberOfObjectLoadingThreads()
getNumberOfObjectLoadingThreads
in interface IndexControlMBean
public void setNumberOfFetchingThreads(int numberOfThreads)
setNumberOfFetchingThreads
in interface IndexControlMBean
numberOfThreads
- the number of threads used for collections fetching during mass indexingpublic int getNumberOfFetchingThreads()
getNumberOfFetchingThreads
in interface IndexControlMBean
public void index(String entity)
IndexControlMBean
Note:
This method is only available if the Hibernate SessionFactory
is available via JNDI.
index
in interface IndexControlMBean
entity
- The fqc of the entity to indexpublic void optimize(String entity)
IndexControlMBean
Note:
This method is only available if the Hibernate SessionFactory
is available via JNDI.
optimize
in interface IndexControlMBean
entity
- The fqc of the entity to indexpublic void purge(String entity)
IndexControlMBean
Note:
This method is only available if the Hibernate SessionFactory
is available via JNDI.
purge
in interface IndexControlMBean
entity
- The fqc of the entity to indexCopyright © 2018 JBoss by Red Hat. All rights reserved.