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 void
doPause()
protected void
doPause(long timeout)
protected void
doResume()
protected void
doStart()
protected void
doStop()
ActivityContext
getActivityContext()
int
getStartDelaySeconds()
boolean
isDerived()
Returns whether this service is derived from another root service.boolean
isWaitOnShutdown()
void
pause(java.lang.String scheduleId)
void
resume(java.lang.String scheduleId)
void
setExposals(java.lang.String[] includePatterns, java.lang.String[] excludePatterns)
void
setStartDelaySeconds(int startDelaySeconds)
void
setWaitOnShutdown(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
-
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:
getStartDelaySeconds
in interfaceSchedulerService
-
setStartDelaySeconds
public void setStartDelaySeconds(int startDelaySeconds)
- Specified by:
setStartDelaySeconds
in interfaceSchedulerService
-
isWaitOnShutdown
public boolean isWaitOnShutdown()
- Specified by:
isWaitOnShutdown
in interfaceSchedulerService
-
setWaitOnShutdown
public void setWaitOnShutdown(boolean waitOnShutdown)
- Specified by:
setWaitOnShutdown
in interfaceSchedulerService
-
setExposals
public void setExposals(java.lang.String[] includePatterns, java.lang.String[] excludePatterns)
- Specified by:
setExposals
in interfaceSchedulerService
-
isDerived
public boolean isDerived()
Description copied from class:AbstractServiceController
Returns whether this service is derived from another root service.- Specified by:
isDerived
in classAbstractServiceController
- Returns:
- whether this service is derived
-
doStart
protected void doStart() throws java.lang.Exception
- Specified by:
doStart
in classAbstractServiceController
- Throws:
java.lang.Exception
-
doPause
protected void doPause() throws java.lang.Exception
- Specified by:
doPause
in classAbstractServiceController
- Throws:
java.lang.Exception
-
doPause
protected void doPause(long timeout) throws java.lang.Exception
- Specified by:
doPause
in classAbstractServiceController
- Throws:
java.lang.Exception
-
doResume
protected void doResume() throws java.lang.Exception
- Specified by:
doResume
in classAbstractServiceController
- Throws:
java.lang.Exception
-
doStop
protected void doStop() throws java.lang.Exception
- Specified by:
doStop
in classAbstractServiceController
- Throws:
java.lang.Exception
-
getActivityContext
public ActivityContext getActivityContext()
- Specified by:
getActivityContext
in 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
-
-