Package org.dspace.harvest
Class HarvestSchedulingServiceImpl
java.lang.Object
org.dspace.harvest.HarvestSchedulingServiceImpl
- All Implemented Interfaces:
HarvestSchedulingService
Service implementation for the scheduling of harvesting tasks.
This class is responsible for all business logic calls for the harvesting tasks and is autowired by spring
This class should never be accessed directly.
- Author:
- kevinvandevelde at atmire.com
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected HarvestedCollectionServiceprotected HarvestSchedulerprotected HarvestSchedulerprotected Thread -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidPause an active harvest scheduler.voidvoidResume a paused harvest scheduler.voidStart harvest scheduler.voidStop an active harvest scheduler.
-
Field Details
-
harvester
-
mainHarvestThread
-
harvestScheduler
-
harvestedCollectionService
-
-
Constructor Details
-
HarvestSchedulingServiceImpl
protected HarvestSchedulingServiceImpl()
-
-
Method Details
-
startNewScheduler
Description copied from interface:HarvestSchedulingServiceStart harvest scheduler.- Specified by:
startNewSchedulerin interfaceHarvestSchedulingService- Throws:
SQLException- An exception that provides information on a database access error or other errors.AuthorizeException- Exception indicating the current user of the context does not have permission to perform a particular action.
-
stopScheduler
Description copied from interface:HarvestSchedulingServiceStop an active harvest scheduler.- Specified by:
stopSchedulerin interfaceHarvestSchedulingService- Throws:
SQLException- An exception that provides information on a database access error or other errors.AuthorizeException- Exception indicating the current user of the context does not have permission to perform a particular action.
-
pauseScheduler
Description copied from interface:HarvestSchedulingServicePause an active harvest scheduler.- Specified by:
pauseSchedulerin interfaceHarvestSchedulingService- Throws:
SQLException- An exception that provides information on a database access error or other errors.AuthorizeException- Exception indicating the current user of the context does not have permission to perform a particular action.
-
resumeScheduler
Description copied from interface:HarvestSchedulingServiceResume a paused harvest scheduler.- Specified by:
resumeSchedulerin interfaceHarvestSchedulingService- Throws:
SQLException- An exception that provides information on a database access error or other errors.AuthorizeException- Exception indicating the current user of the context does not have permission to perform a particular action.
-
resetScheduler
- Specified by:
resetSchedulerin interfaceHarvestSchedulingService- Throws:
SQLException- An exception that provides information on a database access error or other errors.AuthorizeException- Exception indicating the current user of the context does not have permission to perform a particular action.IOException- A general class of exceptions produced by failed or interrupted I/O operations.
-