org.jboss.ejb.txtimer
Class EJBTimerServiceImpl

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src) 
      extended byorg.jboss.system.ServiceMBeanSupport (src) 
          extended byorg.jboss.ejb.txtimer.EJBTimerServiceImpl
All Implemented Interfaces:
MBeanRegistration (src) , NotificationBroadcaster (src) , NotificationEmitter (src) , Service (src) , ServiceMBean (src)

public class EJBTimerServiceImpl
extends ServiceMBeanSupport (src)

A service that implements this interface provides an Tx aware EJBTimerService.

Since:
07-Apr-2004

Field Summary
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src)
server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.system.ServiceMBean (src)
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
EJBTimerServiceImpl()
           
 
Method Summary
 TimerService (src) createTimerService(ObjectName (src)  containerId, java.lang.Object instancePk, Container (src)  container)
          Create a TimerService for a given TimedObjectId that lives in a JBoss Container.
 TimerService (src) createTimerService(ObjectName (src)  containerId, java.lang.Object instancePk, TimedObjectInvoker (src)  invoker)
          Create a TimerService for a given TimedObjectId that is invoked through the given invoker
 ObjectName (src) getPersistencePolicy()
          Get the object name of the persistence policy.
 ObjectName (src) getRetryPolicy()
          Get the object name of the retry policy.
 java.lang.String getTimedObjectInvokerClassName()
          Get the TimedObjectInvoker class name
 java.lang.String getTimerIdGeneratorClassName()
          Get the TimerIdGenerator class name
 TimerService (src) getTimerService(ObjectName (src)  containerId, java.lang.Object instancePk)
          Get the TimerService for a given TimedObjectId
 java.lang.String listTimers()
          List the timers registered with all TimerService objects
 void removeTimerService(ObjectName (src)  containerId, java.lang.Object instancePk)
          Remove the TimerService for a given TimedObjectId If the instance pk is left to null, it removes all timer services for the container id
 void retryTimeout(ObjectName (src)  containerId, java.lang.Object instancePk, Timer (src)  timer)
          Invokes the ejbTimeout method a given TimedObjectId
 void setPersistencePolicy(ObjectName (src)  persistencePolicyName)
          Set the object name of the persistence policy.
 void setRetryPolicy(ObjectName (src)  retryPolicyName)
          Set the object name of the retry policy.
 void setTimedObjectInvokerClassName(java.lang.String timedObjectInvokerClassName)
          Set the TimedObjectInvoker class name
 void setTimerIdGeneratorClassName(java.lang.String timerIdGeneratorClassName)
          Get the TimerIdGenerator class name
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src)
create, createService, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, startService, stop, stopService
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EJBTimerServiceImpl

public EJBTimerServiceImpl()
Method Detail

getRetryPolicy

public ObjectName (src)  getRetryPolicy()
Get the object name of the retry policy.


setRetryPolicy

public void setRetryPolicy(ObjectName (src)  retryPolicyName)
Set the object name of the retry policy.


getPersistencePolicy

public ObjectName (src)  getPersistencePolicy()
Get the object name of the persistence policy.


setPersistencePolicy

public void setPersistencePolicy(ObjectName (src)  persistencePolicyName)
Set the object name of the persistence policy.


getTimerIdGeneratorClassName

public java.lang.String getTimerIdGeneratorClassName()
Get the TimerIdGenerator class name


setTimerIdGeneratorClassName

public void setTimerIdGeneratorClassName(java.lang.String timerIdGeneratorClassName)
Get the TimerIdGenerator class name


getTimedObjectInvokerClassName

public java.lang.String getTimedObjectInvokerClassName()
Get the TimedObjectInvoker class name


setTimedObjectInvokerClassName

public void setTimedObjectInvokerClassName(java.lang.String timedObjectInvokerClassName)
Set the TimedObjectInvoker class name


createTimerService

public TimerService (src)  createTimerService(ObjectName (src)  containerId,
                                       java.lang.Object instancePk,
                                       Container (src)  container)
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
instancePk - The rimary key for an instance of a TimedObject, may be null
container - The Container that is associated with the TimerService
Returns:
the TimerService

createTimerService

public TimerService (src)  createTimerService(ObjectName (src)  containerId,
                                       java.lang.Object instancePk,
                                       TimedObjectInvoker (src)  invoker)
Create a TimerService for a given TimedObjectId that is invoked through the given invoker

Parameters:
containerId - The string identifier for a class of TimedObjects
instancePk - The rimary key for an instance of a TimedObject, may be null
invoker - The TimedObjectInvoker
Returns:
the TimerService

getTimerService

public TimerService (src)  getTimerService(ObjectName (src)  containerId,
                                    java.lang.Object instancePk)
Get the TimerService for a given TimedObjectId

Parameters:
containerId - The string identifier for a class of TimedObjects
instancePk - The rimary key for an instance of a TimedObject, may be null
Returns:
The TimerService, or null if it does not exist

retryTimeout

public void retryTimeout(ObjectName (src)  containerId,
                         java.lang.Object instancePk,
                         Timer (src)  timer)
Invokes the ejbTimeout method a given TimedObjectId

Parameters:
containerId - The string identifier for a class of TimedObjects
instancePk - The rimary key for an instance of a TimedObject, may be null
timer - the Timer that is passed to ejbTimeout

removeTimerService

public void removeTimerService(ObjectName (src)  containerId,
                               java.lang.Object instancePk)
Remove the TimerService for a given TimedObjectId If the instance pk is left to null, it removes all timer services for the container id

Parameters:
containerId - The string identifier for a class of TimedObjects
instancePk - The rimary key for an instance of a TimedObject, may be null

listTimers

public java.lang.String listTimers()
List the timers registered with all TimerService objects