public static class JMXRegistrar.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)
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
Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved