Interface EJBPersistentTimerServiceMXBean
public interface EJBPersistentTimerServiceMXBean
This MBean provides an abstraction over the persistent storage of EJB timers.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
cancelTimer
(String id) Cancels a persistent EJB timer.boolean
cancelTimers
(String appName) Cancels all persistent timers for all EJBs in all modules in an application.boolean
cancelTimers
(String appName, String moduleURI) Cancels all persistent timers for all EJBs in a modules.boolean
cancelTimers
(String appName, String moduleURI, String ejbName) Cancels all persistent timers for an EJB.boolean
containsAutomaticTimers
(String appName) Returns true if timers have been automatically created for any module in an application.boolean
containsAutomaticTimers
(String appName, String moduleURI) Returns true if timers have been automatically created for a module.Returns all persistent timers for all EJBs in all modules in an application.Returns all persistent timers for all EJBs in a module.Returns all persistent timers for an EJB.boolean
removeAutomaticTimers
(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
(String appName, String moduleURI) Cancels all persistent timers for all EJBs in a module, and removes the persistent indicator that timers were automatically created.
-
Method Details
-
getTimers
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
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
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
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
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
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
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
Returns true if timers have been automatically created for any module in an application.- Parameters:
appName
- the application name
-
containsAutomaticTimers
Returns true if timers have been automatically created for a module.- Parameters:
appName
- the application namemoduleURI
- the module URI
-
removeAutomaticTimers
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
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
-