org.jboss.soa.esb.services.jbpm.integration.timer
Class QuartzSchedulerService

java.lang.Object
  extended by org.jboss.soa.esb.services.jbpm.integration.timer.QuartzSchedulerService
All Implemented Interfaces:
java.io.Serializable, org.jbpm.scheduler.SchedulerService, org.jbpm.svc.Service

public class QuartzSchedulerService
extends java.lang.Object
implements org.jbpm.scheduler.SchedulerService

Implementation of the jBPM scheduler service targeting quartz.

Author:
Kevin Conner
See Also:
Serialized Form

Nested Class Summary
static class QuartzSchedulerService.QuartzSchedulerServiceJob
          The quartz job associated with executing a jBPM timer.
 
Constructor Summary
QuartzSchedulerService(org.jbpm.JbpmContext jbpmContext, org.quartz.Scheduler scheduler, int maxRefireCount)
          Create the scheduler service.
 
Method Summary
 void close()
          Close the scheduler service.
 void createTimer(org.jbpm.job.Timer timer)
          Create a timer.
 void deleteTimer(org.jbpm.job.Timer timer)
          Delete a specific timer.
 void deleteTimersByName(java.lang.String timerName, org.jbpm.graph.exe.Token token)
          Delete a specific timer given a name and associated jBPM token.
 void deleteTimersByProcessInstance(org.jbpm.graph.exe.ProcessInstance processInstance)
          Delete timers associated with a jBPM process instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuartzSchedulerService

public QuartzSchedulerService(org.jbpm.JbpmContext jbpmContext,
                              org.quartz.Scheduler scheduler,
                              int maxRefireCount)
Create the scheduler service.

Parameters:
jbpmContext - The associated jBPM context.
scheduler - The quartz scheduler.
Method Detail

createTimer

public void createTimer(org.jbpm.job.Timer timer)
Create a timer.

Specified by:
createTimer in interface org.jbpm.scheduler.SchedulerService
Parameters:
timer - the timer to create.

deleteTimer

public void deleteTimer(org.jbpm.job.Timer timer)
Delete a specific timer.

Specified by:
deleteTimer in interface org.jbpm.scheduler.SchedulerService
Parameters:
timer - The timer to delete.

deleteTimersByName

public void deleteTimersByName(java.lang.String timerName,
                               org.jbpm.graph.exe.Token token)
Delete a specific timer given a name and associated jBPM token.

Specified by:
deleteTimersByName in interface org.jbpm.scheduler.SchedulerService
Parameters:
timerName - The name of the timer to delete.
token - The token associated with the timer.

deleteTimersByProcessInstance

public void deleteTimersByProcessInstance(org.jbpm.graph.exe.ProcessInstance processInstance)
Delete timers associated with a jBPM process instance.

Specified by:
deleteTimersByProcessInstance in interface org.jbpm.scheduler.SchedulerService
Parameters:
processInstance - The process instance associated with the timers.

close

public void close()
Close the scheduler service.

Specified by:
close in interface org.jbpm.svc.Service