|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.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 java.util.List<java.net.URI> |
inProgress
|
protected static NamespaceContext |
nsc
|
protected java.lang.String |
version
|
Constructor Summary | |
---|---|
protected |
AbstractHarvester(java.lang.String version)
|
Method Summary | |
---|---|
void |
addRequest(Harvest request)
adds a request to the harvesting process |
protected java.lang.String |
getIdentifierXPath(XMLFragment metaData)
returns the XPath the metadata records identifier |
protected java.lang.String |
getIdentifierXPathForUpdate(XMLFragment metaData)
returns the XPath the metadata records identifier |
protected void |
informResponseHandlers(java.net.URI source)
informs all response handlers assigend to a source about successful harvesting of the source |
protected void |
informResponseHandlers(java.net.URI source,
java.lang.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(java.net.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 java.util.List<java.net.URI> inProgress
protected java.lang.String version
protected static NamespaceContext nsc
Constructor Detail |
---|
protected AbstractHarvester(java.lang.String version)
version
- the version of the CSWMethod Detail |
---|
public void addRequest(Harvest request) throws java.io.IOException, DBPoolException, java.sql.SQLException
request
-
java.io.IOException
java.sql.SQLException
DBPoolException
public boolean isRunning()
true
if the harvesting process is runningpublic void removeRequest(Harvest request) throws java.io.IOException, DBPoolException, java.sql.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
-
java.io.IOException
java.sql.SQLException
DBPoolException
public void startHarvesting()
public void stopHarvesting()
protected void informResponseHandlers(java.net.URI source) throws java.io.IOException, DBPoolException, java.sql.SQLException, java.net.URISyntaxException
source
-
java.net.URISyntaxException
java.sql.SQLException
DBPoolException
java.net.MalformedURLException
java.io.IOException
protected boolean shallHarvest(java.net.URI source, HarvestRepository.ResourceType targetType) throws java.io.IOException, DBPoolException, java.sql.SQLException
source
-
true
if the passed source shall be harvested
DBPoolException
java.sql.SQLException
java.io.IOException
service
protected void informResponseHandlers(java.net.URI source, java.lang.Throwable e) throws java.io.IOException, DBPoolException, java.sql.SQLException, java.net.URISyntaxException
source
- e
-
java.net.URISyntaxException
java.sql.SQLException
DBPoolException
java.io.IOException
protected java.lang.String getIdentifierXPath(XMLFragment metaData)
metaData
-
protected java.lang.String getIdentifierXPathForUpdate(XMLFragment metaData)
metaData
-
|
deegree 2.5 (2011/06/29 09:44 build-8-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://www.deegree.org