|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hibernate.search.jmx.IndexControl
public class IndexControl
Implementation of the IndexControlMBean
JMX attributes and operations.
Field Summary |
---|
Fields inherited from interface org.hibernate.search.jmx.IndexControlMBean |
---|
INDEX_CTRL_MBEAN_OBJECT_NAME |
Constructor Summary | |
---|---|
IndexControl(Properties props)
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IndexControl(Properties props)
Method Detail |
---|
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 index
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |