Class DefaultMassIndexerProgressMonitor
- java.lang.Object
-
- org.infinispan.query.impl.massindex.DefaultMassIndexerProgressMonitor
-
- All Implemented Interfaces:
org.hibernate.search.backend.IndexingMonitor,org.hibernate.search.batchindexing.MassIndexerProgressMonitor
public class DefaultMassIndexerProgressMonitor extends Object implements org.hibernate.search.batchindexing.MassIndexerProgressMonitor
- Author:
- Sanne Grinovero <sanne@hibernate.org> (C) 2012 Red Hat Inc.
-
-
Constructor Summary
Constructors Constructor Description DefaultMassIndexerProgressMonitor(int logAfterNumberOfDocuments, org.infinispan.commons.time.TimeService timeService)Logs progress of indexing job everylogAfterNumberOfDocumentsdocuments written.DefaultMassIndexerProgressMonitor(org.infinispan.commons.time.TimeService timeService)Logs progress of indexing job every 50 documents written.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToTotalCount(long count)voiddocumentsAdded(long increment)voiddocumentsBuilt(int number)voidentitiesLoaded(int size)protected intgetStatusMessagePeriod()voidindexingCompleted()protected voidprintStatusMessage(long startTime, long doneCount)
-
-
-
Constructor Detail
-
DefaultMassIndexerProgressMonitor
public DefaultMassIndexerProgressMonitor(org.infinispan.commons.time.TimeService timeService)
Logs progress of indexing job every 50 documents written.
-
DefaultMassIndexerProgressMonitor
public DefaultMassIndexerProgressMonitor(int logAfterNumberOfDocuments, org.infinispan.commons.time.TimeService timeService)Logs progress of indexing job everylogAfterNumberOfDocumentsdocuments written.- Parameters:
logAfterNumberOfDocuments- log each time the specified number of documents has been added
-
-
Method Detail
-
entitiesLoaded
public void entitiesLoaded(int size)
- Specified by:
entitiesLoadedin interfaceorg.hibernate.search.batchindexing.MassIndexerProgressMonitor
-
documentsAdded
public void documentsAdded(long increment)
- Specified by:
documentsAddedin interfaceorg.hibernate.search.backend.IndexingMonitor
-
documentsBuilt
public void documentsBuilt(int number)
- Specified by:
documentsBuiltin interfaceorg.hibernate.search.batchindexing.MassIndexerProgressMonitor
-
addToTotalCount
public void addToTotalCount(long count)
- Specified by:
addToTotalCountin interfaceorg.hibernate.search.batchindexing.MassIndexerProgressMonitor
-
indexingCompleted
public void indexingCompleted()
- Specified by:
indexingCompletedin interfaceorg.hibernate.search.batchindexing.MassIndexerProgressMonitor
-
getStatusMessagePeriod
protected int getStatusMessagePeriod()
-
printStatusMessage
protected void printStatusMessage(long startTime, long doneCount)
-
-