Package org.dspace.harvest
Class HarvestSchedulingServiceImpl
- java.lang.Object
-
- org.dspace.harvest.HarvestSchedulingServiceImpl
-
- All Implemented Interfaces:
HarvestSchedulingService
public class HarvestSchedulingServiceImpl extends Object implements 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
Fields Modifier and Type Field Description protected HarvestedCollectionServiceharvestedCollectionServiceprotected HarvestSchedulerharvesterprotected HarvestSchedulerharvestSchedulerprotected ThreadmainHarvestThread
-
Constructor Summary
Constructors Modifier Constructor Description protectedHarvestSchedulingServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpauseScheduler()Pause an active harvest scheduler.voidresetScheduler()voidresumeScheduler()Resume a paused harvest scheduler.voidstartNewScheduler()Start harvest scheduler.voidstopScheduler()Stop an active harvest scheduler.
-
-
-
Field Detail
-
harvester
protected HarvestScheduler harvester
-
mainHarvestThread
protected Thread mainHarvestThread
-
harvestScheduler
protected HarvestScheduler harvestScheduler
-
harvestedCollectionService
@Autowired(required=true) protected HarvestedCollectionService harvestedCollectionService
-
-
Method Detail
-
startNewScheduler
public void startNewScheduler() throws SQLException, AuthorizeExceptionDescription 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
public void stopScheduler() throws SQLException, AuthorizeExceptionDescription 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
public void pauseScheduler() throws SQLException, AuthorizeExceptionDescription 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
public void resumeScheduler() throws SQLException, AuthorizeExceptionDescription 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
public void resetScheduler() throws SQLException, AuthorizeException, IOException- 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.
-
-