|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.ejb.txtimer.EJBTimerServiceImpl
public class EJBTimerServiceImpl
A service that implements this interface provides an Tx aware EJBTimerService.
| Field Summary |
|---|
| Fields inherited from class org.jboss.system.ServiceMBeanSupport |
|---|
server, SERVICE_CONTROLLER_SIG, serviceName |
| Fields inherited from interface org.jboss.ejb.txtimer.EJBTimerServiceImplMBean |
|---|
OBJECT_NAME |
| Fields inherited from interface org.jboss.system.ServiceMBean |
|---|
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
| Constructor Summary | |
|---|---|
EJBTimerServiceImpl()
|
|
| Method Summary | |
|---|---|
javax.ejb.TimerService |
createTimerService(javax.management.ObjectName containerId,
Object instancePk,
Container container)
Create a TimerService for a given TimedObjectId that lives in a JBoss Container. |
javax.ejb.TimerService |
createTimerService(javax.management.ObjectName containerId,
Object instancePk,
TimedObjectInvoker invoker)
Create a TimerService for a given TimedObjectId that is invoked through the given invoker |
javax.management.ObjectName |
getPersistencePolicy()
Get the object name of the persistence policy. |
javax.management.ObjectName |
getRetryPolicy()
Get the object name of the retry policy. |
String |
getTimedObjectInvokerClassName()
Get the TimedObjectInvoker class name |
String |
getTimerIdGeneratorClassName()
Get the TimerIdGenerator class name |
javax.ejb.TimerService |
getTimerService(javax.management.ObjectName containerId,
Object instancePk)
Get the TimerService for a given TimedObjectId |
String |
listTimers()
List the timers registered with all TimerService objects |
void |
removeTimerService(javax.management.ObjectName containerId,
boolean keepState)
Remove the TimerService for a given containerId. |
void |
removeTimerService(javax.management.ObjectName containerId,
Object instancePk)
Remove the TimerService for a given containerId/pKey (TimedObjectId), along with any persisted timer information. |
void |
removeTimerService(javax.management.ObjectName containerId,
Object instancePk,
boolean keepState)
Remove the TimerService for a given containerId/pKey (TimedObjectId). |
void |
restoreTimers(javax.management.ObjectName containerId,
ClassLoader loader)
Restore the persisted timers for a given ejb container |
void |
setPersistencePolicy(javax.management.ObjectName persistencePolicyName)
Set the object name of the persistence policy. |
void |
setRetryPolicy(javax.management.ObjectName retryPolicyName)
Set the object name of the retry policy. |
void |
setTimedObjectInvokerClassName(String timedObjectInvokerClassName)
Set the TimedObjectInvoker class name |
void |
setTimerIdGeneratorClassName(String timerIdGeneratorClassName)
Get the TimerIdGenerator class name |
void |
setTransactionManagerFactory(org.jboss.tm.TransactionManagerFactory factory)
Set the TransactionManagerFactory |
protected void |
startService()
|
protected void |
stopService()
|
| Methods inherited from class org.jboss.system.ServiceMBeanSupport |
|---|
create, createService, destroy, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop |
| Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
|---|
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jboss.system.ServiceMBean |
|---|
getName, getState, getStateString, jbossInternalLifecycle |
| Methods inherited from interface org.jboss.system.Service |
|---|
create, destroy, start, stop |
| Constructor Detail |
|---|
public EJBTimerServiceImpl()
| Method Detail |
|---|
public javax.management.ObjectName getRetryPolicy()
getRetryPolicy in interface EJBTimerServiceImplMBeanpublic void setRetryPolicy(javax.management.ObjectName retryPolicyName)
setRetryPolicy in interface EJBTimerServiceImplMBeanpublic javax.management.ObjectName getPersistencePolicy()
getPersistencePolicy in interface EJBTimerServiceImplMBeanpublic void setPersistencePolicy(javax.management.ObjectName persistencePolicyName)
setPersistencePolicy in interface EJBTimerServiceImplMBeanpublic String getTimerIdGeneratorClassName()
getTimerIdGeneratorClassName in interface EJBTimerServiceImplMBeanpublic void setTimerIdGeneratorClassName(String timerIdGeneratorClassName)
setTimerIdGeneratorClassName in interface EJBTimerServiceImplMBeanpublic String getTimedObjectInvokerClassName()
getTimedObjectInvokerClassName in interface EJBTimerServiceImplMBeanpublic void setTimedObjectInvokerClassName(String timedObjectInvokerClassName)
setTimedObjectInvokerClassName in interface EJBTimerServiceImplMBeanpublic void setTransactionManagerFactory(org.jboss.tm.TransactionManagerFactory factory)
setTransactionManagerFactory in interface EJBTimerServiceImplMBean
protected void startService()
throws Exception
startService in class org.jboss.system.ServiceMBeanSupportExceptionprotected void stopService()
stopService in class org.jboss.system.ServiceMBeanSupport
public javax.ejb.TimerService createTimerService(javax.management.ObjectName containerId,
Object instancePk,
Container container)
createTimerService in interface EJBTimerServicecontainerId - The string identifier for a class of TimedObjectsinstancePk - The rimary key for an instance of a TimedObject, may be nullcontainer - The Container that is associated with the TimerService
public javax.ejb.TimerService createTimerService(javax.management.ObjectName containerId,
Object instancePk,
TimedObjectInvoker invoker)
createTimerService in interface EJBTimerServicecontainerId - The string identifier for a class of TimedObjectsinstancePk - The rimary key for an instance of a TimedObject, may be nullinvoker - The TimedObjectInvoker
public javax.ejb.TimerService getTimerService(javax.management.ObjectName containerId,
Object instancePk)
getTimerService in interface EJBTimerServicecontainerId - The string identifier for a class of TimedObjectsinstancePk - The rimary key for an instance of a TimedObject, may be null
public void removeTimerService(javax.management.ObjectName containerId,
Object instancePk)
removeTimerService in interface EJBTimerServicecontainerId - The string identifier for a class of TimedObjectspKey - The primary key for an instance of a TimedObject, may be null
public void removeTimerService(javax.management.ObjectName containerId,
boolean keepState)
throws IllegalStateException
removeTimerService in interface EJBTimerServicecontainerId - The string identifier for a class of TimedObjectskeepState - Flag indicating whether timer persistent state should be kept or removed
IllegalStateException
public void removeTimerService(javax.management.ObjectName containerId,
Object instancePk,
boolean keepState)
throws IllegalStateException
containerId - The string identifier for a class of TimedObjectspKey - The primary key for an instance of a TimedObject, may be nullkeepState - Flag indicating whether timer persistent state should be kept or removed
IllegalStateException
public void restoreTimers(javax.management.ObjectName containerId,
ClassLoader loader)
throws IllegalStateException
restoreTimers in interface EJBTimerServicecontainerId - The ejb container idloader - The classloader to use for loading the timers
IllegalStateExceptionpublic String listTimers()
listTimers in interface EJBTimerServiceImplMBean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||