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

java.lang.Object
  extended by org.jboss.soa.esb.services.jbpm.integration.AbstractJmsJobService
      extended by org.jboss.soa.esb.services.jbpm.integration.timer.JmsSchedulerService
All Implemented Interfaces:
java.io.Serializable

public class JmsSchedulerService
extends AbstractJmsJobService

Implementation of the jBPM scheduler service targeting quartz.

Author:
Kevin Conner
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.soa.esb.services.jbpm.integration.AbstractJmsJobService
log
 
Constructor Summary
JmsSchedulerService(JbpmContext jbpmContext, javax.jms.ConnectionFactory connectionFactory, javax.jms.Destination destination, boolean isCommitEnabled, JmsScheduledDeliveryStrategy scheduledDeliveryStrategy)
          Create the JMS scheduler service.
 
Method Summary
 void createTimer(Timer timer)
          Create a timer.
 void deleteTimer(Timer timer)
          Delete a specific timer.
 void deleteTimersByName(java.lang.String timerName, Token token)
          Delete a specific timer given a name and associated jBPM token.
 void deleteTimersByProcessInstance(ProcessInstance processInstance)
          Delete timers associated with a jBPM process instance.
 
Methods inherited from class org.jboss.soa.esb.services.jbpm.integration.AbstractJmsJobService
close, getJobSession, getMessageProducer, getSession, send
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmsSchedulerService

public JmsSchedulerService(JbpmContext jbpmContext,
                           javax.jms.ConnectionFactory connectionFactory,
                           javax.jms.Destination destination,
                           boolean isCommitEnabled,
                           JmsScheduledDeliveryStrategy scheduledDeliveryStrategy)
                    throws javax.jms.JMSException
Create the JMS scheduler service.

Parameters:
jbpmContext - The current jBPM context.
connectionFactory - The associated JMS connection factory.
destination - The JMS destination for jobs.
isCommitEnabled - true if commit should be invoked, false otherwise.
Throws:
javax.jms.JMSException - For errors in constructing the JMS session.
Method Detail

createTimer

public void createTimer(Timer timer)
Create a timer.

Parameters:
timer - the timer to create.

deleteTimer

public void deleteTimer(Timer timer)
Delete a specific timer.

Parameters:
timer - The timer to delete.

deleteTimersByName

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

Parameters:
timerName - The name of the timer to delete.
token - The token associated with the timer.

deleteTimersByProcessInstance

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

Parameters:
processInstance - The process instance associated with the timers.