org.jboss.ejb.txtimer
Class EJBTimerServiceLocator.MBeanDelegate

java.lang.Object
  extended byorg.jboss.ejb.txtimer.EJBTimerServiceLocator.MBeanDelegate
All Implemented Interfaces:
EJBTimerService (src)
Enclosing class:
EJBTimerServiceLocator (src)

public static class EJBTimerServiceLocator.MBeanDelegate
extends java.lang.Object
implements EJBTimerService (src)

Delegates method calls to the EJBTimerService to the MBean server


Field Summary
 
Fields inherited from interface org.jboss.ejb.txtimer.EJBTimerService (src)
OBJECT_NAME
 
Constructor Summary
EJBTimerServiceLocator.MBeanDelegate(MBeanServer (src)  server)
           
 
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
 TimerService (src) getTimerService(ObjectName (src)  containerId, java.lang.Object instancePk)
          Get the TimerService for a given TimedObjectId
 void removeTimerService(ObjectName (src)  containerId, java.lang.Object instancePk)
          Remove the TimerService for a given TimedObjectId
 void retryTimeout(ObjectName (src)  containerId, java.lang.Object instancePk, Timer (src)  timer)
          Invokes the ejbTimeout method a given TimedObjectId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EJBTimerServiceLocator.MBeanDelegate

public EJBTimerServiceLocator.MBeanDelegate(MBeanServer (src)  server)
Method Detail

createTimerService

public TimerService (src)  createTimerService(ObjectName (src)  containerId,
                                       java.lang.Object instancePk,
                                       Container (src)  container)
                                throws java.lang.IllegalStateException
Description copied from interface: EJBTimerService (src)
Create a TimerService for a given TimedObjectId that lives in a JBoss Container. The TimedObjectInvoker is constructed from the invokerClassName.

Specified by:
createTimerService in interface EJBTimerService (src)
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
Throws:
java.lang.IllegalStateException

createTimerService

public TimerService (src)  createTimerService(ObjectName (src)  containerId,
                                       java.lang.Object instancePk,
                                       TimedObjectInvoker (src)  invoker)
                                throws java.lang.IllegalStateException
Description copied from interface: EJBTimerService (src)
Create a TimerService for a given TimedObjectId that is invoked through the given invoker

Specified by:
createTimerService in interface EJBTimerService (src)
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
Throws:
java.lang.IllegalStateException

getTimerService

public TimerService (src)  getTimerService(ObjectName (src)  containerId,
                                    java.lang.Object instancePk)
                             throws java.lang.IllegalStateException
Description copied from interface: EJBTimerService (src)
Get the TimerService for a given TimedObjectId

Specified by:
getTimerService in interface EJBTimerService (src)
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
Throws:
java.lang.IllegalStateException

retryTimeout

public void retryTimeout(ObjectName (src)  containerId,
                         java.lang.Object instancePk,
                         Timer (src)  timer)
Description copied from interface: EJBTimerService (src)
Invokes the ejbTimeout method a given TimedObjectId

Specified by:
retryTimeout in interface EJBTimerService (src)
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)
                        throws java.lang.IllegalStateException
Description copied from interface: EJBTimerService (src)
Remove the TimerService for a given TimedObjectId

Specified by:
removeTimerService in interface EJBTimerService (src)
Parameters:
containerId - The string identifier for a class of TimedObjects
instancePk - The rimary key for an instance of a TimedObject, may be null
Throws:
java.lang.IllegalStateException