Interface EJBPersistentTimerServiceMXBean
- 
 public interface EJBPersistentTimerServiceMXBeanThis MBean provides an abstraction over the persistent storage of EJB timers.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancancelTimer(java.lang.String id)Cancels a persistent EJB timer.booleancancelTimers(java.lang.String appName)Cancels all persistent timers for all EJBs in all modules in an application.booleancancelTimers(java.lang.String appName, java.lang.String moduleURI)Cancels all persistent timers for all EJBs in a modules.booleancancelTimers(java.lang.String appName, java.lang.String moduleURI, java.lang.String ejbName)Cancels all persistent timers for an EJB.booleancontainsAutomaticTimers(java.lang.String appName)Returns true if timers have been automatically created for any module in an application.booleancontainsAutomaticTimers(java.lang.String appName, java.lang.String moduleURI)Returns true if timers have been automatically created for a module.EJBPersistentTimerInfo[]getTimers(java.lang.String appName)Returns all persistent timers for all EJBs in all modules in an application.EJBPersistentTimerInfo[]getTimers(java.lang.String appName, java.lang.String moduleURI)Returns all persistent timers for all EJBs in a module.EJBPersistentTimerInfo[]getTimers(java.lang.String appName, java.lang.String moduleURI, java.lang.String ejbName)Returns all persistent timers for an EJB.booleanremoveAutomaticTimers(java.lang.String appName)Cancels all persistent timers for all EJBs in all modules in an application, and removes the persistent indicator that timers were automatically created.booleanremoveAutomaticTimers(java.lang.String appName, java.lang.String moduleURI)Cancels all persistent timers for all EJBs in a module, and removes the persistent indicator that timers were automatically created.
 
- 
- 
- 
Method Detail- 
getTimersEJBPersistentTimerInfo[] getTimers(java.lang.String appName) Returns all persistent timers for all EJBs in all modules in an application.- Parameters:
- appName- the application name
- Returns:
- the persistent timers for the application, or an empty array if there are no persistent timers for the application
 
 - 
getTimersEJBPersistentTimerInfo[] getTimers(java.lang.String appName, java.lang.String moduleURI) Returns all persistent timers for all EJBs in a module.- Parameters:
- appName- the application name
- moduleURI- the module URI
- Returns:
- the persistent timers for the application, or an empty array if there are no persistent timers for the module
 
 - 
getTimersEJBPersistentTimerInfo[] getTimers(java.lang.String appName, java.lang.String moduleURI, java.lang.String ejbName) Returns all persistent timers for an EJB.- Parameters:
- appName- the application name
- moduleURI- the module URI
- ejbName- the EJB name
- Returns:
- the persistent timers for the application, or an empty array if there are no persistent timers for the EJB
 
 - 
cancelTimerboolean cancelTimer(java.lang.String id) Cancels a persistent EJB timer.Canceling an automatic timer will not cause it to be recreated when the application is deployed unless the persistent indicator is also removed using one of the removeAutomaticTimers(java.lang.String)methods.- Parameters:
- id- the ID as returned by- EJBPersistentTimerInfo.getId()
- Returns:
- true if the timer was canceled, or false if the timer was not found
 
 - 
cancelTimersboolean cancelTimers(java.lang.String appName) Cancels all persistent timers for all EJBs in all modules in an application.Canceling an automatic timer will not cause it to be recreated when the application is deployed unless the persistent indicator is also removed using one of the removeAutomaticTimers(java.lang.String)methods.- Parameters:
- appName- the application name
- Returns:
- true if any timers were canceled
 
 - 
cancelTimersboolean cancelTimers(java.lang.String appName, java.lang.String moduleURI)Cancels all persistent timers for all EJBs in a modules.Canceling an automatic timer will not cause it to be recreated when the application is deployed unless the persistent indicator is also removed using one of the removeAutomaticTimers(java.lang.String)methods.- Parameters:
- appName- the application name
- moduleURI- the module URI
- Returns:
- true if any timers were canceled
 
 - 
cancelTimersboolean cancelTimers(java.lang.String appName, java.lang.String moduleURI, java.lang.String ejbName)Cancels all persistent timers for an EJB.- Parameters:
- appName- the application name
- moduleURI- the module URI
- ejbName- the EJB name
- Returns:
- true if any timers were canceled
 
 - 
containsAutomaticTimersboolean containsAutomaticTimers(java.lang.String appName) Returns true if timers have been automatically created for any module in an application.- Parameters:
- appName- the application name
 
 - 
containsAutomaticTimersboolean containsAutomaticTimers(java.lang.String appName, java.lang.String moduleURI)Returns true if timers have been automatically created for a module.- Parameters:
- appName- the application name
- moduleURI- the module URI
 
 - 
removeAutomaticTimersboolean removeAutomaticTimers(java.lang.String appName) Cancels all persistent timers for all EJBs in all modules in an application, and removes the persistent indicator that timers were automatically created.- Parameters:
- appName- the application name
 
 - 
removeAutomaticTimersboolean removeAutomaticTimers(java.lang.String appName, java.lang.String moduleURI)Cancels all persistent timers for all EJBs in a module, and removes the persistent indicator that timers were automatically created.- Parameters:
- appName- the application name
- moduleURI- the module URI
 
 
- 
 
-