|
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.Objectorg.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(URI source)
drops a request from the backend |
(package private) List<String> |
getAllRecords(URI source)
returns fileidentifiers of all records assigend to a source from the harvest cache |
(package private) long |
getHarvestInterval(URI source)
returns the interval in |
(package private) static HarvestRepository |
getInstance()
returns an instance of a HarvestRepository |
(package private) Date |
getLastHarvestingTimestamp(URI source)
returns the Date a source has been harvested successful the last time |
(package private) Date |
getNextHarvestingTimestamp(URI source)
returns the next Date a source shall be harvested |
(package private) HarvestRepository.Record |
getRecordByID(URI source,
String fileIdentifier)
returns a Record from the harvesters cache. |
(package private) List<HarvestRepository.ResponseHandler> |
getResponseHandlers(URI source)
returns a list |
(package private) int |
getSourceID(URI source)
returns the row ID of the passed source |
(package private) List<URI> |
getSources()
returns all sources registered to a harvest process |
(package private) HarvestRepository.ResourceType |
getSourceType(URI source)
returns the type of the passed source |
(package private) boolean |
getStatus(URI source)
returns true if last harvesting iteration for the passed source has been successful |
(package private) void |
setLastHarvestingTimestamp(URI source,
Date date)
sets the timestamp when a source has been harvested successfully for the last time |
(package private) void |
setNextHarvestingTimestamp(URI source,
Date date)
sets the next date a source shall be harvested |
(package private) boolean |
shallForceHarvesting(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 IOException
HarvestRepository
HarvestRepository
IOException
void storeRequest(Harvest request) throws DBPoolException, SQLException
request
-
DBPoolException
SQLException
void dropRequest(URI source) throws DBPoolException, SQLException
source
-
DBPoolException
SQLException
List<URI> getSources() throws DBPoolException, SQLException, URISyntaxException
DBPoolException
SQLException
URISyntaxException
HarvestRepository.ResourceType getSourceType(URI source) throws DBPoolException, SQLException
source
-
DBPoolException
SQLException
boolean getStatus(URI source) throws DBPoolException, SQLException
source
-
true
if last harvesting iteration for the passed source has been
successful
DBPoolException
SQLException
Date getLastHarvestingTimestamp(URI source) throws DBPoolException, SQLException
Date
a source has been harvested successful the last time
source
-
Date
a source has been harvested successful the last time
DBPoolException
SQLException
void setLastHarvestingTimestamp(URI source, Date date) throws DBPoolException, SQLException
source
- date
-
DBPoolException
SQLException
Date getNextHarvestingTimestamp(URI source) throws DBPoolException, SQLException
source
-
DBPoolException
SQLException
void setNextHarvestingTimestamp(URI source, Date date) throws DBPoolException, SQLException
source
- date
-
DBPoolException
SQLException
long getHarvestInterval(URI source) throws DBPoolException, SQLException
source
-
DBPoolException
SQLException
List<HarvestRepository.ResponseHandler> getResponseHandlers(URI source) throws DBPoolException, SQLException, URISyntaxException
source
-
DBPoolException
SQLException
URISyntaxException
HarvestRepository.Record getRecordByID(URI source, String fileIdentifier) throws DBPoolException, 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
SQLException
void storeRecord(HarvestRepository.Record record) throws DBPoolException, SQLException
record
-
DBPoolException
SQLException
void updateRecord(HarvestRepository.Record record) throws DBPoolException, SQLException
record
-
DBPoolException
SQLException
void dropRecord(HarvestRepository.Record record) throws DBPoolException, SQLException
record
-
DBPoolException
SQLException
List<String> getAllRecords(URI source) throws DBPoolException, SQLException
source
-
DBPoolException
SQLException
int getSourceID(URI source) throws DBPoolException, SQLException
source
-
DBPoolException
SQLException
boolean shallForceHarvesting(URI source) throws DBPoolException
source
-
DBPoolException
|
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