de.pangaea.metadataportal.harvester
Interface HarvesterCommitEvent


public interface HarvesterCommitEvent

This interface must be implemented to receive harvester commit events. Each time after the IndexBuilder commits changes to the Lucene index it calls this interface's harvesterCommitted(java.util.Set) method.

To use commit events, the Harvester class must implement this interface (which is not the default) and call IndexBuilder.registerHarvesterCommitEvent(de.pangaea.metadataportal.harvester.HarvesterCommitEvent) on startup.

Author:
Uwe Schindler

Method Summary
 void harvesterCommitted(Set<String> docIds)
          Called with a Set of Strings that are the commited document identifiers.
 

Method Detail

harvesterCommitted

void harvesterCommitted(Set<String> docIds)
Called with a Set of Strings that are the commited document identifiers. Be warned, you should have some synchronization because this method is called from a different thread!



Copyright ©2007-2011 panFMP Developers c/o Uwe Schindler