org.eaglei.search.provider.lucene
Class FileStreamHarvester

java.lang.Object
  extended by org.eaglei.search.provider.lucene.AbstractStreamHarvester
      extended by org.eaglei.search.provider.lucene.FileStreamHarvester
All Implemented Interfaces:
org.eaglei.search.provider.PollingDataHarvester

public final class FileStreamHarvester
extends AbstractStreamHarvester

Extension of AbstractRDFProvider that uses the Repository /harvest API (see /harvest REST API spec for details).

Author:
tbashor

Field Summary
 
Fields inherited from class org.eaglei.search.provider.lucene.AbstractStreamHarvester
eiOntModel, formatWithTZ, institution, isInitialized
 
Constructor Summary
FileStreamHarvester(org.eaglei.model.EIOntModel eiOntModel, org.eaglei.model.EIEntity institution, org.eaglei.services.InstitutionRegistry institutionRegistry)
          Creates a new RepositoryHarvester.
 
Method Summary
 java.lang.String getHarvestInfo()
           
 void harvest()
          Executes the repository /harvest API and notifies listeners of change information.
 
Methods inherited from class org.eaglei.search.provider.lucene.AbstractStreamHarvester
addChangeListener, generateResourceChangeEvents, isInitialized, notifyChangeEvent, notifyChangeStreamEnd, notifyChangeStreamStart, setInitialized, startPolling
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileStreamHarvester

public FileStreamHarvester(org.eaglei.model.EIOntModel eiOntModel,
                           org.eaglei.model.EIEntity institution,
                           org.eaglei.services.InstitutionRegistry institutionRegistry)
Creates a new RepositoryHarvester.

Method Detail

getHarvestInfo

public java.lang.String getHarvestInfo()
Specified by:
getHarvestInfo in class AbstractStreamHarvester

harvest

public void harvest()
             throws java.io.IOException
Executes the repository /harvest API and notifies listeners of change information.

Specified by:
harvest in class AbstractStreamHarvester
Throws:
java.io.IOException


Copyright © 2009-2011 Eagle-I. All Rights Reserved.