de.pangaea.metadataportal.harvester
Class IndexBuilder

java.lang.Object
  extended by de.pangaea.metadataportal.harvester.IndexBuilder

public class IndexBuilder
extends Object

Component of panFMP that analyzes and indexes harvested documents in different threads.

Author:
Uwe Schindler

Field Summary
protected  SingleIndexConfig iconfig
           
 
Constructor Summary
IndexBuilder(boolean create, SingleIndexConfig iconfig)
           
 
Method Summary
 void addDocument(MetadataDocument mdoc)
           
 void checkIndexerBuffer()
           
 void close()
           
 Date getLastHarvestedFromDisk()
           
 boolean isClosed()
           
 boolean isCreatingNew()
           
 boolean isFailed()
           
 void registerHarvesterCommitEvent(HarvesterCommitEvent event)
           
 void setLastHarvested(Date datestamp)
           
 void setValidIdentifiers(Set<String> validIdentifiers)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

iconfig

protected SingleIndexConfig iconfig
Constructor Detail

IndexBuilder

public IndexBuilder(boolean create,
                    SingleIndexConfig iconfig)
             throws IOException
Throws:
IOException
Method Detail

isCreatingNew

public boolean isCreatingNew()

isFailed

public boolean isFailed()

registerHarvesterCommitEvent

public void registerHarvesterCommitEvent(HarvesterCommitEvent event)

setValidIdentifiers

public void setValidIdentifiers(Set<String> validIdentifiers)

isClosed

public boolean isClosed()

close

public void close()
           throws Exception
Throws:
Exception

addDocument

public void addDocument(MetadataDocument mdoc)
                 throws IndexBuilderBackgroundFailure,
                        InterruptedException
Throws:
IndexBuilderBackgroundFailure
InterruptedException

checkIndexerBuffer

public void checkIndexerBuffer()
                        throws IndexBuilderBackgroundFailure,
                               InterruptedException
Throws:
IndexBuilderBackgroundFailure
InterruptedException

setLastHarvested

public void setLastHarvested(Date datestamp)

getLastHarvestedFromDisk

public Date getLastHarvestedFromDisk()


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