|
jBPM :: Distribution 6.2.0-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jbpm.process.core.timer.impl.QuartzSchedulerService
public class QuartzSchedulerService
Quartz based GlobalSchedulerService
that is configured according
to Quartz rules and allows to store jobs in data base. With that it survives
server crashes and operates as soon as service is initialized without session
being active.
Nested Class Summary | |
---|---|
static class |
QuartzSchedulerService.GlobalQuartzJobHandle
|
static class |
QuartzSchedulerService.InmemoryTimerJobInstanceDelegate
|
static class |
QuartzSchedulerService.QuartzJob
|
Constructor Summary | |
---|---|
QuartzSchedulerService()
|
Method Summary | |
---|---|
org.drools.core.time.JobHandle |
buildJobHandleForContext(NamedJobContext ctx)
Builds JobHandle based on NamedJobContext |
void |
forceShutdown()
|
void |
initScheduler(org.drools.core.time.TimerService timerService)
Provides handle to inject timerService that owns this scheduler service and initialize it |
void |
internalSchedule(org.drools.core.time.impl.TimerJobInstance timerJobInstance)
|
boolean |
isTransactional()
Indicates if given implementation of scheduler service supports transactional timer store. |
boolean |
isValid(GlobalTimerService.GlobalJobHandle jobHandle)
Verifies if given job is still valid or it was already executed/vetoed. |
boolean |
removeJob(org.drools.core.time.JobHandle jobHandle)
|
boolean |
retryEnabled()
Indicates if given implementation of scheduler service supports retries of failed timer jobs |
org.drools.core.time.JobHandle |
scheduleJob(org.drools.core.time.Job job,
org.drools.core.time.JobContext ctx,
org.drools.core.time.Trigger trigger)
|
void |
setInterceptor(SchedulerServiceInterceptor interceptor)
Allows to set interceptor that will be used to schedule timer instances |
void |
shutdown()
Allows to shutdown the scheduler service |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QuartzSchedulerService()
Method Detail |
---|
public org.drools.core.time.JobHandle scheduleJob(org.drools.core.time.Job job, org.drools.core.time.JobContext ctx, org.drools.core.time.Trigger trigger)
scheduleJob
in interface org.drools.core.time.SchedulerService
public boolean removeJob(org.drools.core.time.JobHandle jobHandle)
removeJob
in interface org.drools.core.time.SchedulerService
public void internalSchedule(org.drools.core.time.impl.TimerJobInstance timerJobInstance)
internalSchedule
in interface org.drools.core.time.InternalSchedulerService
public void initScheduler(org.drools.core.time.TimerService timerService)
GlobalSchedulerService
initScheduler
in interface GlobalSchedulerService
timerService
- owner of this scheduler servicepublic void shutdown()
GlobalSchedulerService
shutdown
in interface GlobalSchedulerService
public void forceShutdown()
public org.drools.core.time.JobHandle buildJobHandleForContext(NamedJobContext ctx)
GlobalSchedulerService
buildJobHandleForContext
in interface GlobalSchedulerService
public boolean isTransactional()
GlobalSchedulerService
isTransactional
in interface GlobalSchedulerService
public void setInterceptor(SchedulerServiceInterceptor interceptor)
GlobalSchedulerService
setInterceptor
in interface GlobalSchedulerService
public boolean retryEnabled()
GlobalSchedulerService
retryEnabled
in interface GlobalSchedulerService
public boolean isValid(GlobalTimerService.GlobalJobHandle jobHandle)
GlobalSchedulerService
isValid
in interface GlobalSchedulerService
|
jBPM :: Distribution 6.2.0-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |