OAI-PMH State Manager (for persisting harvest state)
This class actually serves two distinct functions:
Long-term state management: remembering/retrieving the end date of the most recent harvest through saveDate()/loadDate().
Short-term state management: remembering resumption tokens to allow for continuation of an interrupted harvest through saveState()/loadState().
category |
VuFind |
---|---|
package |
Harvest_Tools |
author |
Demian Katz demian.katz@villanova.edu |
license |
http://opensource.org/licenses/gpl-2.0.php GNU General Public License |
link |
Wiki |
__construct(string $basePath)
string
Directory to contain state files
clearState() : void
loadDate() : string
string
loadState() : array|boolean
array|boolean
saveDate(string $date) : void
string
Date to save.
saveState(string $set, string $token, string $startDate) : void
string
Set being harvested
string
Current resumption token
string
Start date of harvest
lastHarvestFile : string
var |
---|
string
lastStateFile : string
var |
---|
string