org.eaglei.solr.harvest
Class RepositoryStreamHarvester

java.lang.Object
  extended by org.eaglei.solr.harvest.AbstractStreamHarvester
      extended by org.eaglei.solr.harvest.RepositoryStreamHarvester
All Implemented Interfaces:
org.eaglei.search.harvest.DataHarvester, org.eaglei.search.harvest.PollingDataHarvester

public final class RepositoryStreamHarvester
extends AbstractStreamHarvester

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

Author:
tbashor

Field Summary
 
Fields inherited from class org.eaglei.solr.harvest.AbstractStreamHarvester
eiOntModel, formatWithTZ, hasInitialData, institution
 
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.solr.harvest.AbstractStreamHarvester
addChangeListener, generateResourceChangeEvents, hasInitialData, notifyChangeEvent, notifyChangeStreamEnd, notifyChangeStreamStart, notifyOptimize, optimize, 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()
Executes the repository /harvest API and notifies listeners of change information.



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