Save This Page
Home » jboss-5.0.0.CR1-src » org » jboss » ejb » txtimer » [javadoc | source]
org.jboss.ejb.txtimer
public class: EJBTimerServiceImpl [javadoc | source]
java.lang.Object
   org.jboss.mx.util.JBossNotificationBroadcasterSupport
      org.jboss.system.ServiceMBeanSupport
         org.jboss.ejb.txtimer.EJBTimerServiceImpl

All Implemented Interfaces:
    EJBTimerServiceImplMBean, org.jboss.kernel.spi.dependency.KernelControllerContextAware, ServiceMBean, MBeanRegistration, NotificationEmitter

A service that implements this interface provides an Tx aware EJBTimerService.
Field Summary
public static  TimerService FOR_NON_TIMED_OBJECT    Used for objects that don't implement javax.ejb.TimedObject but still call getTimerService() According to the CTS, it's allowed (jbcts-381). 
Fields inherited from org.jboss.system.ServiceMBeanSupport:
SERVICE_CONTROLLER_SIG,  log,  server,  serviceName
Method from org.jboss.ejb.txtimer.EJBTimerServiceImpl Summary:
createTimerService,   createTimerService,   getPersistencePolicy,   getRetryPolicy,   getTimedObjectInvokerClassName,   getTimerIdGeneratorClassName,   getTimerService,   listTimers,   removeTimerService,   removeTimerService,   removeTimerService,   restoreTimers,   setPersistencePolicy,   setRetryPolicy,   setTimedObjectInvokerClassName,   setTimerIdGeneratorClassName,   setTransactionManagerFactory,   startService,   stopService
Methods from org.jboss.system.ServiceMBeanSupport:
create,   createService,   destroy,   destroyService,   getDeploymentInfo,   getLog,   getName,   getNextNotificationSequenceNumber,   getObjectName,   getServer,   getServiceName,   getState,   getStateString,   jbossInternalCreate,   jbossInternalDescription,   jbossInternalDestroy,   jbossInternalLifecycle,   jbossInternalStart,   jbossInternalStop,   pojoChange,   pojoCreate,   pojoDestroy,   pojoStart,   pojoStop,   postDeregister,   postRegister,   preDeregister,   preRegister,   setKernelControllerContext,   start,   startService,   stop,   stopService,   unsetKernelControllerContext
Methods from org.jboss.mx.util.JBossNotificationBroadcasterSupport:
addNotificationListener,   getNotificationInfo,   handleNotification,   nextNotificationSequenceNumber,   removeNotificationListener,   removeNotificationListener,   sendNotification
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.ejb.txtimer.EJBTimerServiceImpl Detail:
 public TimerService createTimerService(ObjectName containerId,
    Object instancePk,
    Container container) 
    Create a TimerService for a given TimedObjectId that lives in a JBoss Container. The TimedObjectInvoker is constructed from the invokerClassName.
 public TimerService createTimerService(ObjectName containerId,
    Object instancePk,
    TimedObjectInvoker invoker) 
    Create a TimerService for a given TimedObjectId that is invoked through the given 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() 
    Get the TimedObjectInvoker class name
 public String getTimerIdGeneratorClassName() 
    Get the TimerIdGenerator class name
 public TimerService getTimerService(ObjectName containerId,
    Object instancePk) 
    Get the TimerService for a given TimedObjectId
 public String listTimers() 
    List the timers registered with all TimerService objects
 public  void removeTimerService(ObjectName containerId,
    Object instancePk) 
    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.
 public  void removeTimerService(ObjectName containerId,
    boolean keepState) throws IllegalStateException 
    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.
 public  void removeTimerService(ObjectName containerId,
    Object instancePk,
    boolean keepState) throws IllegalStateException 
    Remove the TimerService for a given containerId/pKey (TimedObjectId).
 public  void restoreTimers(ObjectName containerId,
    ClassLoader loader) throws IllegalStateException 
    Restore the persisted timers for a given ejb container
 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) 
    Set the TimedObjectInvoker class name
 public  void setTimerIdGeneratorClassName(String timerIdGeneratorClassName) 
    Get the TimerIdGenerator class name
 public  void setTransactionManagerFactory(TransactionManagerFactory factory) 
    Set the TransactionManagerFactory
 protected  void startService() throws Exception 
 protected  void stopService()