org.eaglei.search.provider.lucene
Class AbstractStreamHarvester

java.lang.Object
  extended by org.eaglei.search.provider.lucene.AbstractStreamHarvester
All Implemented Interfaces:
org.eaglei.search.provider.PollingDataHarvester
Direct Known Subclasses:
FileStreamHarvester, RepositoryStreamHarvester

public abstract class AbstractStreamHarvester
extends java.lang.Object
implements org.eaglei.search.provider.PollingDataHarvester

Author:
tbashor

Field Summary
protected  org.eaglei.model.EIOntModel eiOntModel
           
protected static java.text.DateFormat formatWithTZ
           
protected  org.eaglei.model.EIEntity institution
           
protected  boolean isInitialized
           
 
Constructor Summary
protected AbstractStreamHarvester(org.eaglei.model.EIOntModel eiOntModel, org.eaglei.model.EIEntity institution)
          Creates a new RepositoryHarvester.
 
Method Summary
 void addChangeListener(ResourceChangeListener listener)
           
protected  int generateResourceChangeEvents(java.io.InputStream is)
           
abstract  java.lang.String getHarvestInfo()
           
abstract  void harvest()
          Executes the repository /harvest API and notifies listeners of change information.
 boolean isInitialized()
           
protected  void notifyChangeEvent(ResourceChangeEvent event)
           
protected  void notifyChangeStreamEnd(java.util.Date lastModifiedDate)
           
protected  void notifyChangeStreamStart()
           
 void setInitialized(boolean isInitialized)
           
 void startPolling()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

formatWithTZ

protected static final java.text.DateFormat formatWithTZ

eiOntModel

protected final org.eaglei.model.EIOntModel eiOntModel

institution

protected final org.eaglei.model.EIEntity institution

isInitialized

protected boolean isInitialized
Constructor Detail

AbstractStreamHarvester

protected AbstractStreamHarvester(org.eaglei.model.EIOntModel eiOntModel,
                                  org.eaglei.model.EIEntity institution)
Creates a new RepositoryHarvester.

Method Detail

startPolling

public void startPolling()
Specified by:
startPolling in interface org.eaglei.search.provider.PollingDataHarvester

isInitialized

public boolean isInitialized()

setInitialized

public void setInitialized(boolean isInitialized)

getHarvestInfo

public abstract java.lang.String getHarvestInfo()

addChangeListener

public void addChangeListener(ResourceChangeListener listener)

notifyChangeStreamStart

protected void notifyChangeStreamStart()

notifyChangeEvent

protected void notifyChangeEvent(ResourceChangeEvent event)

notifyChangeStreamEnd

protected void notifyChangeStreamEnd(java.util.Date lastModifiedDate)

harvest

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

Throws:
java.io.IOException

generateResourceChangeEvents

protected int generateResourceChangeEvents(java.io.InputStream is)


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