Interface EJBPersistentTimerServiceMXBean
-
public interface EJBPersistentTimerServiceMXBean
This MBean provides an abstraction over the persistent storage of EJB timers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
cancelTimer(java.lang.String id)
Cancels a persistent EJB timer.boolean
cancelTimers(java.lang.String appName)
Cancels all persistent timers for all EJBs in all modules in an application.boolean
cancelTimers(java.lang.String appName, java.lang.String moduleURI)
Cancels all persistent timers for all EJBs in a modules.boolean
cancelTimers(java.lang.String appName, java.lang.String moduleURI, java.lang.String ejbName)
Cancels all persistent timers for an EJB.boolean
containsAutomaticTimers(java.lang.String appName)
Returns true if timers have been automatically created for any module in an application.boolean
containsAutomaticTimers(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.boolean
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.boolean
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.
-
-
-
Method Detail
-
getTimers
EJBPersistentTimerInfo[] 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
-
getTimers
EJBPersistentTimerInfo[] getTimers(java.lang.String appName, java.lang.String moduleURI)
Returns all persistent timers for all EJBs in a module.- Parameters:
appName
- the application namemoduleURI
- the module URI- Returns:
- the persistent timers for the application, or an empty array if there are no persistent timers for the module
-
getTimers
EJBPersistentTimerInfo[] getTimers(java.lang.String appName, java.lang.String moduleURI, java.lang.String ejbName)
Returns all persistent timers for an EJB.- Parameters:
appName
- the application namemoduleURI
- the module URIejbName
- the EJB name- Returns:
- the persistent timers for the application, or an empty array if there are no persistent timers for the EJB
-
cancelTimer
boolean 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 byEJBPersistentTimerInfo.getId()
- Returns:
- true if the timer was canceled, or false if the timer was not found
-
cancelTimers
boolean 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
-
cancelTimers
boolean 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 namemoduleURI
- the module URI- Returns:
- true if any timers were canceled
-
cancelTimers
boolean cancelTimers(java.lang.String appName, java.lang.String moduleURI, java.lang.String ejbName)
Cancels all persistent timers for an EJB.- Parameters:
appName
- the application namemoduleURI
- the module URIejbName
- the EJB name- Returns:
- true if any timers were canceled
-
containsAutomaticTimers
boolean containsAutomaticTimers(java.lang.String appName)
Returns true if timers have been automatically created for any module in an application.- Parameters:
appName
- the application name
-
containsAutomaticTimers
boolean containsAutomaticTimers(java.lang.String appName, java.lang.String moduleURI)
Returns true if timers have been automatically created for a module.- Parameters:
appName
- the application namemoduleURI
- the module URI
-
removeAutomaticTimers
boolean 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
-
removeAutomaticTimers
boolean 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 namemoduleURI
- the module URI
-
-