|
deegree 2.6-pre (2011/11/29 00:10 build-378-unofficial) | |||||||||
| 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
|
protected String |
version
|
| Constructor Summary | |
|---|---|
protected |
AbstractHarvester(String version)
|
| Method Summary | |
|---|---|
void |
addRequest(Harvest request)
adds a request to the harvesting process |
protected String |
getIdentifierXPath(XMLFragment metaData)
returns the XPath the metadata records identifier |
protected String |
getIdentifierXPathForUpdate(XMLFragment metaData)
returns the XPath the metadata records identifier |
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 String version
protected static NamespaceContext nsc
| Constructor Detail |
|---|
protected AbstractHarvester(String version)
version - the version of the CSW| Method Detail |
|---|
public void addRequest(Harvest request)
throws IOException,
DBPoolException,
SQLException
request -
IOException
SQLException
DBPoolExceptionpublic 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 -
IOException
SQLException
DBPoolExceptionpublic 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
IOExceptionprotected String getIdentifierXPath(XMLFragment metaData)
metaData -
protected String getIdentifierXPathForUpdate(XMLFragment metaData)
metaData -
|
deegree 2.6-pre (2011/11/29 00:10 build-378-unofficial) | |||||||||
| 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://www.deegree.org