|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.search.impl.SimpleIndexingProgressMonitor
public class SimpleIndexingProgressMonitor
A very simple implementation of MassIndexerProgressMonitor which
uses the logger at INFO level to output indexing speed statistics.
| Constructor Summary | |
|---|---|
SimpleIndexingProgressMonitor()
Logs progress of indexing job every 50 documents written. |
|
SimpleIndexingProgressMonitor(int logAfterNumberOfDocuments)
Logs progress of indexing job every logAfterNumberOfDocuments
documents written. |
|
| 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. |
protected int |
getStatusMessagePeriod()
|
void |
indexingCompleted()
Invoked when the indexing is completed. |
protected void |
printStatusMessage(long startTime,
long totalTodoCount,
long doneCount)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleIndexingProgressMonitor()
public SimpleIndexingProgressMonitor(int logAfterNumberOfDocuments)
logAfterNumberOfDocuments
documents written.
logAfterNumberOfDocuments - log each time the specified number of documents has been added| Method Detail |
|---|
public void entitiesLoaded(int size)
MassIndexerProgressMonitor
entitiesLoaded in interface MassIndexerProgressMonitorsize - number of entities loaded from databasepublic void documentsAdded(long increment)
IndexingMonitor
documentsAdded in interface IndexingMonitorincrement - number of documents add operations performedpublic void documentsBuilt(int number)
MassIndexerProgressMonitor
documentsBuilt in interface MassIndexerProgressMonitornumber - number of Documents builtpublic void addToTotalCount(long count)
MassIndexerProgressMonitor
addToTotalCount in interface MassIndexerProgressMonitorcount - number of newly indexed entities which has to
be added to total countpublic void indexingCompleted()
MassIndexerProgressMonitor
indexingCompleted in interface MassIndexerProgressMonitorprotected int getStatusMessagePeriod()
protected void printStatusMessage(long startTime,
long totalTodoCount,
long doneCount)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||