| org.jboss.ejb.txtimer.EJBTimerServiceImpl
EJBTimerServiceImpl | public class EJBTimerServiceImpl extends ServiceMBeanSupport implements EJBTimerServiceImplMBean(Code) | | A service that implements this interface provides an Tx aware EJBTimerService.
author: Thomas.Diesler@jboss.org author: Dimitris.Andreadis@jboss.org version: $Revision: 57209 $ since: 07-Apr-2004 |
Method Summary | |
public TimerService | createTimerService(ObjectName containerId, Object instancePk, Container container) Create a TimerService for a given TimedObjectId that lives in a JBoss Container. | public TimerService | createTimerService(ObjectName containerId, Object instancePk, TimedObjectInvoker invoker) | public ObjectName | getPersistencePolicy() Get the object name of the persistence policy. | public ObjectName | getRetryPolicy() Get the object name of the retry policy. | public String | getTimedObjectInvokerClassName() | public String | getTimerIdGeneratorClassName() | public TimerService | getTimerService(ObjectName containerId, Object instancePk) | public String | listTimers() | public void | removeTimerService(ObjectName containerId, Object instancePk) Remove the TimerService for a given containerId/pKey (TimedObjectId),
along with any persisted timer information. | public void | removeTimerService(ObjectName containerId, boolean keepState) Remove the TimerService for a given containerId. | public void | removeTimerService(ObjectName containerId, Object instancePk, boolean keepState) Remove the TimerService for a given containerId/pKey (TimedObjectId). | public void | restoreTimers(ObjectName containerId, ClassLoader loader) | public void | setPersistencePolicy(ObjectName persistencePolicyName) Set the object name of the persistence policy. | public void | setRetryPolicy(ObjectName retryPolicyName) Set the object name of the retry policy. | public void | setTimedObjectInvokerClassName(String timedObjectInvokerClassName) | public void | setTimerIdGeneratorClassName(String timerIdGeneratorClassName) | public void | setTransactionManagerFactory(TransactionManagerFactory factory) | protected void | startService() | protected void | stopService() |
createTimerService | public TimerService createTimerService(ObjectName containerId, Object instancePk, Container container)(Code) | | Create a TimerService for a given TimedObjectId that lives in a JBoss Container.
The TimedObjectInvoker is constructed from the invokerClassName.
Parameters: containerId - The string identifier for a class of TimedObjects Parameters: instancePk - The rimary key for an instance of a TimedObject, may be null Parameters: container - The Container that is associated with the TimerService the TimerService |
createTimerService | public TimerService createTimerService(ObjectName containerId, Object instancePk, TimedObjectInvoker invoker)(Code) | | Create a TimerService for a given TimedObjectId that is invoked through the given invoker
Parameters: containerId - The string identifier for a class of TimedObjects Parameters: instancePk - The rimary key for an instance of a TimedObject, may be null Parameters: invoker - The TimedObjectInvoker the TimerService |
getPersistencePolicy | public ObjectName getPersistencePolicy()(Code) | | Get the object name of the persistence policy.
|
getRetryPolicy | public ObjectName getRetryPolicy()(Code) | | Get the object name of the retry policy.
|
getTimedObjectInvokerClassName | public String getTimedObjectInvokerClassName()(Code) | | Get the TimedObjectInvoker class name
|
getTimerIdGeneratorClassName | public String getTimerIdGeneratorClassName()(Code) | | Get the TimerIdGenerator class name
|
getTimerService | public TimerService getTimerService(ObjectName containerId, Object instancePk)(Code) | | Get the TimerService for a given TimedObjectId
Parameters: containerId - The string identifier for a class of TimedObjects Parameters: instancePk - The rimary key for an instance of a TimedObject, may be null The TimerService, or null if it does not exist |
listTimers | public String listTimers()(Code) | | List the timers registered with all TimerService objects
|
removeTimerService | public void removeTimerService(ObjectName containerId, Object instancePk)(Code) | | Remove the TimerService for a given containerId/pKey (TimedObjectId),
along with any persisted timer information.
This should be used for removing the TimerService and Timers
associated with a particular entity bean, when it gets removed.
Parameters: containerId - The string identifier for a class of TimedObjects Parameters: pKey - The primary key for an instance of a TimedObject, may be null |
removeTimerService | public void removeTimerService(ObjectName containerId, boolean keepState) throws IllegalStateException(Code) | | Remove the TimerService for a given containerId.
This should be used to remove the timer service and timers for
any type of container (session, entity, message) at the time of
undeployment.
Parameters: containerId - The string identifier for a class of TimedObjects Parameters: keepState - Flag indicating whether timer persistent state should be kept or removed |
removeTimerService | public void removeTimerService(ObjectName containerId, Object instancePk, boolean keepState) throws IllegalStateException(Code) | | Remove the TimerService for a given containerId/pKey (TimedObjectId).
Parameters: containerId - The string identifier for a class of TimedObjects Parameters: pKey - The primary key for an instance of a TimedObject, may be null Parameters: keepState - Flag indicating whether timer persistent state should be kept or removed |
restoreTimers | public void restoreTimers(ObjectName containerId, ClassLoader loader) throws IllegalStateException(Code) | | Restore the persisted timers for a given ejb container
Parameters: containerId - The ejb container id Parameters: loader - The classloader to use for loading the timers |
setPersistencePolicy | public void setPersistencePolicy(ObjectName persistencePolicyName)(Code) | | Set the object name of the persistence policy.
|
setRetryPolicy | public void setRetryPolicy(ObjectName retryPolicyName)(Code) | | Set the object name of the retry policy.
|
setTimedObjectInvokerClassName | public void setTimedObjectInvokerClassName(String timedObjectInvokerClassName)(Code) | | Set the TimedObjectInvoker class name
|
setTimerIdGeneratorClassName | public void setTimerIdGeneratorClassName(String timerIdGeneratorClassName)(Code) | | Get the TimerIdGenerator class name
|
setTransactionManagerFactory | public void setTransactionManagerFactory(TransactionManagerFactory factory)(Code) | | Set the TransactionManagerFactory
|
stopService | protected void stopService()(Code) | | |
|
|