| 
deegree 2.1 (2007/11/08 09:57 build-328-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.TimerTask
org.deegree.ogcwebservices.csw.manager.AbstractHarvester
public abstract class AbstractHarvester
Abstract super class of all CS-W harvesters. For each kind of source a specialized harvester shall be implemented. A concrete implementation of AbstractHarvester will be called within a timer loop.
| Nested Class Summary | |
|---|---|
protected  class | 
AbstractHarvester.AbstractHarvestProcessor
abstract super class for all harvest processores  | 
| Field Summary | |
|---|---|
protected  List<URI> | 
inProgress
 | 
protected static NamespaceContext | 
nsc
 | 
| Constructor Summary | |
|---|---|
AbstractHarvester()
 | 
|
| Method Summary | |
|---|---|
 void | 
addRequest(Harvest request)
adds a request to the harvesting process  | 
protected  void | 
informResponseHandlers(URI source)
informs all response handlers assigend to a source about successful harvesting of the source  | 
protected  void | 
informResponseHandlers(URI source,
                                             Throwable e)
informs all response handlers assigend to a source about an exception that occurs when harvesting a source  | 
 boolean | 
isRunning()
returns true if the harvesting process is running  | 
 void | 
removeRequest(Harvest request)
removes a request from the harvesting request.  | 
protected  boolean | 
shallHarvest(URI source,
                         HarvestRepository.ResourceType targetType)
returns true if the passed source shall be harvested. this is true if a source has not been harvested before or the next harvesting timestamp has been reached and the source is of type  | 
 void | 
startHarvesting()
starts the harvesting process  | 
 void | 
stopHarvesting()
stops the harvesting process  | 
| Methods inherited from class java.util.TimerTask | 
|---|
cancel, run, scheduledExecutionTime | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected List<URI> inProgress
protected static NamespaceContext nsc
| Constructor Detail | 
|---|
public AbstractHarvester()
| Method Detail | 
|---|
public void addRequest(Harvest request)
                throws IOException,
                       DBPoolException,
                       SQLException
request - 
SQLException
DBPoolException
IOExceptionpublic boolean isRunning()
true if the harvesting process is running
public void removeRequest(Harvest request)
                   throws IOException,
                          DBPoolException,
                          SQLException
!! At the moment the OGC CSW does not know a mechanism/request to stop a cyclic harvesting job, so this method can not be called with a standard OGC OWS request !!
request - 
SQLException
DBPoolException
IOExceptionpublic void startHarvesting()
public void stopHarvesting()
protected void informResponseHandlers(URI source)
                               throws IOException,
                                      DBPoolException,
                                      SQLException,
                                      URISyntaxException
source - 
URISyntaxException
SQLException
DBPoolException
MalformedURLException
IOException
protected boolean shallHarvest(URI source,
                               HarvestRepository.ResourceType targetType)
                        throws IOException,
                               DBPoolException,
                               SQLException
source - 
true if the passed source shall be harvested
DBPoolException
SQLException
IOExceptionservice
protected void informResponseHandlers(URI source,
                                      Throwable e)
                               throws IOException,
                                      DBPoolException,
                                      SQLException,
                                      URISyntaxException
source - e - 
URISyntaxException
SQLException
DBPoolException
IOException
  | 
deegree 2.1 (2007/11/08 09:57 build-328-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
an open source project founded by lat/lon, Bonn, Germany.
					For more information visit: http://deegree.sourceforge.net