org.eaglei.search.provider.lucene
Class RepositoryStreamHarvester

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

public final class RepositoryStreamHarvester
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
RepositoryStreamHarvester(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

RepositoryStreamHarvester

public RepositoryStreamHarvester(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.