public class OAIHarvester
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
OAIHarvester.HarvestingException
Exception class specifically assigned to recoverable errors that occur during harvesting.
|
static class |
OAIHarvester.HarvestScheduler
The class responsible for scheduling harvesting cycles are regular intervals.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
OAI_ADDRESS_ERROR |
static java.lang.String |
OAI_DMD_ERROR |
static java.lang.String |
OAI_ORE_ERROR |
static java.lang.String |
OAI_SET_ERROR |
| Constructor and Description |
|---|
OAIHarvester(Context c,
DSpaceObject dso,
HarvestedCollection hc) |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
oaiResolveNamespaceToPrefix(java.lang.String oaiSource,
java.lang.String MDNamespace)
Query the OAI-PMH server for its mapping of the supplied namespace and metadata prefix.
|
static void |
pauseScheduler()
Pause an active harvest scheduler.
|
static void |
resetScheduler() |
static void |
resumeScheduler()
Resume a paused harvest scheduler.
|
void |
runHarvest()
Performs a harvest cycle on this collection.
|
static void |
startNewScheduler()
Start harvest scheduler.
|
static void |
stopScheduler()
Stop an active harvest scheduler.
|
java.util.List<java.lang.String> |
verifyOAIharvester()
Verify OAI settings for the current collection
|
static java.util.List<java.lang.String> |
verifyOAIharvester(java.lang.String oaiSource,
java.lang.String oaiSetId,
java.lang.String metaPrefix,
boolean testORE)
Verify the existence of an OAI server with the specified set and
supporting the provided metadata formats.
|
public static final java.lang.String OAI_ADDRESS_ERROR
public static final java.lang.String OAI_SET_ERROR
public static final java.lang.String OAI_DMD_ERROR
public static final java.lang.String OAI_ORE_ERROR
public OAIHarvester(Context c, DSpaceObject dso, HarvestedCollection hc) throws OAIHarvester.HarvestingException, java.sql.SQLException
OAIHarvester.HarvestingExceptionjava.sql.SQLExceptionpublic void runHarvest()
throws java.sql.SQLException,
java.io.IOException,
AuthorizeException
java.sql.SQLExceptionjava.io.IOExceptionAuthorizeExceptionpublic static java.lang.String oaiResolveNamespaceToPrefix(java.lang.String oaiSource,
java.lang.String MDNamespace)
throws java.io.IOException,
javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException,
javax.xml.transform.TransformerException,
java.net.ConnectException
oaiSource - the address of the OAI-PMH providerMDNamespace - the namespace that we are trying to resolve to the metadataPrefixjava.io.IOExceptionjavax.xml.parsers.ParserConfigurationExceptionorg.xml.sax.SAXExceptionjavax.xml.transform.TransformerExceptionjava.net.ConnectExceptionpublic java.util.List<java.lang.String> verifyOAIharvester()
public static java.util.List<java.lang.String> verifyOAIharvester(java.lang.String oaiSource,
java.lang.String oaiSetId,
java.lang.String metaPrefix,
boolean testORE)
oaiSource - the address of the OAI-PMH provideroaiSetId - metaPrefix - testORE - whether the method should also check the PMH provider for ORE supportpublic static void startNewScheduler()
throws java.sql.SQLException,
AuthorizeException
java.sql.SQLExceptionAuthorizeExceptionpublic static void stopScheduler()
throws java.sql.SQLException,
AuthorizeException
java.sql.SQLExceptionAuthorizeExceptionpublic static void pauseScheduler()
throws java.sql.SQLException,
AuthorizeException
java.sql.SQLExceptionAuthorizeExceptionpublic static void resumeScheduler()
throws java.sql.SQLException,
AuthorizeException
java.sql.SQLExceptionAuthorizeExceptionpublic static void resetScheduler()
throws java.sql.SQLException,
AuthorizeException,
java.io.IOException
java.sql.SQLExceptionAuthorizeExceptionjava.io.IOExceptionCopyright © 2013 DuraSpace. All Rights Reserved.