Package com.aspectran.scheduler.service
Class QuartzSchedulerService
- java.lang.Object
-
- com.aspectran.core.service.AbstractServiceController
-
- com.aspectran.scheduler.service.QuartzSchedulerService
-
- All Implemented Interfaces:
ServiceController,SchedulerService
public class QuartzSchedulerService extends AbstractServiceController implements SchedulerService
The Class QuartzSchedulerService.
-
-
Constructor Summary
Constructors Constructor Description QuartzSchedulerService(CoreService coreService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoPause()protected voiddoPause(long timeout)protected voiddoResume()protected voiddoStart()protected voiddoStop()ActivityContextgetActivityContext()intgetStartDelaySeconds()booleanisDerived()Returns whether this service is derived from another root service.booleanisWaitOnShutdown()voidpause(java.lang.String scheduleId)voidresume(java.lang.String scheduleId)voidsetExposals(java.lang.String[] includePatterns, java.lang.String[] excludePatterns)voidsetStartDelaySeconds(int startDelaySeconds)voidsetWaitOnShutdown(boolean waitOnShutdown)-
Methods inherited from class com.aspectran.core.service.AbstractServiceController
clearDerivedService, getLock, getServiceName, isActive, isBusy, joinDerivedService, pause, pause, restart, restart, resume, setServiceStateListener, start, stop, withdrawDerivedService
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.aspectran.core.service.ServiceController
getServiceName, isActive, isBusy, pause, pause, restart, restart, resume, setServiceStateListener, start, stop
-
-
-
-
Constructor Detail
-
QuartzSchedulerService
public QuartzSchedulerService(CoreService coreService)
-
-
Method Detail
-
getStartDelaySeconds
public int getStartDelaySeconds()
- Specified by:
getStartDelaySecondsin interfaceSchedulerService
-
setStartDelaySeconds
public void setStartDelaySeconds(int startDelaySeconds)
-
isWaitOnShutdown
public boolean isWaitOnShutdown()
- Specified by:
isWaitOnShutdownin interfaceSchedulerService
-
setWaitOnShutdown
public void setWaitOnShutdown(boolean waitOnShutdown)
-
setExposals
public void setExposals(java.lang.String[] includePatterns, java.lang.String[] excludePatterns)
-
isDerived
public boolean isDerived()
Description copied from class:AbstractServiceControllerReturns whether this service is derived from another root service.- Specified by:
isDerivedin classAbstractServiceController- Returns:
- whether this service is derived
-
doStart
protected void doStart() throws java.lang.Exception- Specified by:
doStartin classAbstractServiceController- Throws:
java.lang.Exception
-
doPause
protected void doPause() throws java.lang.Exception- Specified by:
doPausein classAbstractServiceController- Throws:
java.lang.Exception
-
doPause
protected void doPause(long timeout) throws java.lang.Exception- Specified by:
doPausein classAbstractServiceController- Throws:
java.lang.Exception
-
doResume
protected void doResume() throws java.lang.Exception- Specified by:
doResumein classAbstractServiceController- Throws:
java.lang.Exception
-
doStop
protected void doStop() throws java.lang.Exception- Specified by:
doStopin classAbstractServiceController- Throws:
java.lang.Exception
-
getActivityContext
public ActivityContext getActivityContext()
- Specified by:
getActivityContextin interfaceSchedulerService
-
pause
public void pause(java.lang.String scheduleId) throws SchedulerServiceException- Throws:
SchedulerServiceException
-
resume
public void resume(java.lang.String scheduleId) throws SchedulerServiceException- Throws:
SchedulerServiceException
-
-