Interface EJBPersistentTimerServiceMXBean


public interface EJBPersistentTimerServiceMXBean
This MBean provides an abstraction over the persistent storage of EJB timers.
  • Method Details

    • getTimers

      EJBPersistentTimerInfo[] getTimers(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(String appName, 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
    • getTimers

      EJBPersistentTimerInfo[] getTimers(String appName, String moduleURI, 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
    • cancelTimer

      boolean cancelTimer(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
    • cancelTimers

      boolean cancelTimers(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(String appName, 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
    • cancelTimers

      boolean cancelTimers(String appName, String moduleURI, 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
    • containsAutomaticTimers

      boolean containsAutomaticTimers(String appName)
      Returns true if timers have been automatically created for any module in an application.
      Parameters:
      appName - the application name
    • containsAutomaticTimers

      boolean containsAutomaticTimers(String appName, String moduleURI)
      Returns true if timers have been automatically created for a module.
      Parameters:
      appName - the application name
      moduleURI - the module URI
    • removeAutomaticTimers

      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.
      Parameters:
      appName - the application name
    • removeAutomaticTimers

      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.
      Parameters:
      appName - the application name
      moduleURI - the module URI