|
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 org.deegree.ogcwebservices.csw.manager.HarvestRepository
class HarvestRepository
A harvest repository is a database that stores harvest requests and that caches basic record informations to optimizes harvesting of large sources (e.g. other catalogues). This class encapsulates access to this database.
Nested Class Summary | |
---|---|
class |
HarvestRepository.Record
|
(package private) static class |
HarvestRepository.ResourceType
|
(package private) class |
HarvestRepository.ResponseHandler
inner class for encapsulating response handler informations |
Method Summary | |
---|---|
(package private) void |
dropRecord(HarvestRepository.Record record)
drops a record from the cache table used by the harvester |
(package private) void |
dropRequest(java.net.URI source)
drops a request from the backend |
(package private) java.util.List<java.lang.String> |
getAllRecords(java.net.URI source)
returns fileidentifiers of all records assigend to a source from the harvest cache |
(package private) long |
getHarvestInterval(java.net.URI source)
returns the interval in |
(package private) static HarvestRepository |
getInstance()
returns an instance of a HarvestRepository |
(package private) java.util.Date |
getLastHarvestingTimestamp(java.net.URI source)
returns the Date a source has been harvested successful the last time |
(package private) java.util.Date |
getNextHarvestingTimestamp(java.net.URI source)
returns the next Date a source shall be harvested |
(package private) HarvestRepository.Record |
getRecordByID(java.net.URI source,
java.lang.String fileIdentifier)
returns a Record from the harvesters cache. |
(package private) java.util.List<HarvestRepository.ResponseHandler> |
getResponseHandlers(java.net.URI source)
returns a list |
(package private) int |
getSourceID(java.net.URI source)
returns the row ID of the passed source |
(package private) java.util.List<java.net.URI> |
getSources()
returns all sources registered to a harvest process |
(package private) HarvestRepository.ResourceType |
getSourceType(java.net.URI source)
returns the type of the passed source |
(package private) boolean |
getStatus(java.net.URI source)
returns true if last harvesting iteration for the passed source has been successful |
(package private) void |
setLastHarvestingTimestamp(java.net.URI source,
java.util.Date date)
sets the timestamp when a source has been harvested successfully for the last time |
(package private) void |
setNextHarvestingTimestamp(java.net.URI source,
java.util.Date date)
sets the next date a source shall be harvested |
(package private) boolean |
shallForceHarvesting(java.net.URI source)
returs true is a harvesting shall be forced outside the regular harvesting interval |
(package private) void |
storeRecord(HarvestRepository.Record record)
stores a record into the cache table used by the harvester |
(package private) void |
storeRequest(Harvest request)
stores a harvest request |
(package private) void |
updateRecord(HarvestRepository.Record record)
updates a record within the cache table used by the harvester |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
static HarvestRepository getInstance() throws java.io.IOException
HarvestRepository
HarvestRepository
java.io.IOException
void storeRequest(Harvest request) throws DBPoolException, java.sql.SQLException
request
-
DBPoolException
java.sql.SQLException
void dropRequest(java.net.URI source) throws DBPoolException, java.sql.SQLException
source
-
DBPoolException
java.sql.SQLException
java.util.List<java.net.URI> getSources() throws DBPoolException, java.sql.SQLException, java.net.URISyntaxException
DBPoolException
java.sql.SQLException
java.net.URISyntaxException
HarvestRepository.ResourceType getSourceType(java.net.URI source) throws DBPoolException, java.sql.SQLException
source
-
DBPoolException
java.sql.SQLException
boolean getStatus(java.net.URI source) throws DBPoolException, java.sql.SQLException
source
-
true
if last harvesting iteration for the passed source has been
successful
DBPoolException
java.sql.SQLException
java.util.Date getLastHarvestingTimestamp(java.net.URI source) throws DBPoolException, java.sql.SQLException
Date
a source has been harvested successful the last time
source
-
Date
a source has been harvested successful the last time
DBPoolException
java.sql.SQLException
void setLastHarvestingTimestamp(java.net.URI source, java.util.Date date) throws DBPoolException, java.sql.SQLException
source
- date
-
DBPoolException
java.sql.SQLException
java.util.Date getNextHarvestingTimestamp(java.net.URI source) throws DBPoolException, java.sql.SQLException
source
-
DBPoolException
java.sql.SQLException
void setNextHarvestingTimestamp(java.net.URI source, java.util.Date date) throws DBPoolException, java.sql.SQLException
source
- date
-
DBPoolException
java.sql.SQLException
long getHarvestInterval(java.net.URI source) throws DBPoolException, java.sql.SQLException
source
-
DBPoolException
java.sql.SQLException
java.util.List<HarvestRepository.ResponseHandler> getResponseHandlers(java.net.URI source) throws DBPoolException, java.sql.SQLException, java.net.URISyntaxException
source
-
DBPoolException
java.sql.SQLException
java.net.URISyntaxException
HarvestRepository.Record getRecordByID(java.net.URI source, java.lang.String fileIdentifier) throws DBPoolException, java.sql.SQLException
Record
from the harvesters cache. A instance of a
Record
includes its fileIdentifier,the datestamp when it has been changed for
the last time and the source it belongs too.
source
- fileIdentifier
-
Record
from the harvesters cache
DBPoolException
java.sql.SQLException
void storeRecord(HarvestRepository.Record record) throws DBPoolException, java.sql.SQLException
record
-
DBPoolException
java.sql.SQLException
void updateRecord(HarvestRepository.Record record) throws DBPoolException, java.sql.SQLException
record
-
DBPoolException
java.sql.SQLException
void dropRecord(HarvestRepository.Record record) throws DBPoolException, java.sql.SQLException
record
-
DBPoolException
java.sql.SQLException
java.util.List<java.lang.String> getAllRecords(java.net.URI source) throws DBPoolException, java.sql.SQLException
source
-
DBPoolException
java.sql.SQLException
int getSourceID(java.net.URI source) throws DBPoolException, java.sql.SQLException
source
-
DBPoolException
java.sql.SQLException
boolean shallForceHarvesting(java.net.URI source) throws DBPoolException
source
-
DBPoolException
|
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