|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hibernate.search.jmx.IndexingProgressMonitor
public class IndexingProgressMonitor
A JMX based mass indexer progress monitor. This monitor will allow you to follow mass indexing progress via JMX.
Field Summary |
---|
Fields inherited from interface org.hibernate.search.jmx.IndexingProgressMonitorMBean |
---|
INDEXING_PROGRESS_MONITOR_MBEAN_OBJECT_NAME |
Constructor Summary | |
---|---|
IndexingProgressMonitor()
|
Method Summary | |
---|---|
void |
addToTotalCount(long count)
The total count of entities to be indexed is added here; It could be called more than once, the implementation should add them up. |
void |
documentsAdded(long increment)
Notify the IndexingMonitor of the number of documents added to the index. |
void |
documentsBuilt(int number)
The number of Documents built; This is invoked several times and concurrently during the indexing process. |
void |
entitiesLoaded(int size)
The number of entities loaded from database; This is invoked several times and concurrently during the indexing process. |
long |
getDocumentsAddedCount()
|
long |
getLoadedEntitiesCount()
|
long |
getNumberOfEntitiesToIndex()
|
void |
indexingCompleted()
Invoked when the indexing is completed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IndexingProgressMonitor()
Method Detail |
---|
public final void documentsAdded(long increment)
IndexingMonitor
documentsAdded
in interface IndexingMonitor
increment
- number of documents add operations performedpublic final void documentsBuilt(int number)
MassIndexerProgressMonitor
documentsBuilt
in interface MassIndexerProgressMonitor
number
- number of Document
s builtpublic final void entitiesLoaded(int size)
MassIndexerProgressMonitor
entitiesLoaded
in interface MassIndexerProgressMonitor
size
- number of entities loaded from databasepublic final void addToTotalCount(long count)
MassIndexerProgressMonitor
addToTotalCount
in interface MassIndexerProgressMonitor
count
- number of newly indexed entities which has to
be added to total countpublic final void indexingCompleted()
MassIndexerProgressMonitor
indexingCompleted
in interface MassIndexerProgressMonitor
public final long getLoadedEntitiesCount()
getLoadedEntitiesCount
in interface IndexingProgressMonitorMBean
public final long getDocumentsAddedCount()
getDocumentsAddedCount
in interface IndexingProgressMonitorMBean
Document
s added so farpublic final long getNumberOfEntitiesToIndex()
getNumberOfEntitiesToIndex
in interface IndexingProgressMonitorMBean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |