org.hibernate.search.jmx
public class IndexingProgressMonitor extends Object implements IndexingProgressMonitorMBean, MassIndexerProgressMonitor
INDEXING_PROGRESS_MONITOR_MBEAN_OBJECT_NAME| Constructor and Description |
|---|
IndexingProgressMonitor() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public final void documentsAdded(long increment)
IndexingMonitordocumentsAdded in interface IndexingMonitorincrement - number of documents add operations performedpublic final void documentsBuilt(int number)
MassIndexerProgressMonitordocumentsBuilt in interface MassIndexerProgressMonitornumber - number of Documents builtpublic final void entitiesLoaded(int size)
MassIndexerProgressMonitorentitiesLoaded in interface MassIndexerProgressMonitorsize - number of entities loaded from databasepublic final void addToTotalCount(long count)
MassIndexerProgressMonitoraddToTotalCount in interface MassIndexerProgressMonitorcount - number of newly indexed entities which has to
be added to total countpublic final void indexingCompleted()
MassIndexerProgressMonitorindexingCompleted in interface MassIndexerProgressMonitorpublic final long getLoadedEntitiesCount()
getLoadedEntitiesCount in interface IndexingProgressMonitorMBeanpublic final long getDocumentsAddedCount()
getDocumentsAddedCount in interface IndexingProgressMonitorMBeanDocuments added so farpublic final long getNumberOfEntitiesToIndex()
getNumberOfEntitiesToIndex in interface IndexingProgressMonitorMBeanCopyright © 2006-2015 Red Hat, Inc. All Rights Reserved