Class RecoverySuspendController

java.lang.Object
org.jboss.as.txn.suspend.RecoverySuspendController
All Implemented Interfaces:
PropertyChangeListener, EventListener, org.jboss.as.server.suspend.ServerActivity

public class RecoverySuspendController extends Object implements org.jboss.as.server.suspend.ServerActivity, PropertyChangeListener
Listens for notifications from a SuspendController and a ProcessStateNotifier and reacts to them by suspending or resuming the RecoveryManagerService.
Author:
Gytis Trikleris
  • Field Summary

    Fields inherited from interface org.jboss.as.server.suspend.ServerActivity

    DEFAULT_EXECUTION_GROUP, HIGHEST_EXECUTION_GROUP, LOWEST_EXECUTION_GROUP
  • Constructor Summary

    Constructors
    Constructor
    Description
    RecoverySuspendController(com.arjuna.ats.jbossatx.jta.RecoveryManagerService recoveryManagerService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    preSuspend(org.jboss.as.server.suspend.ServerActivityCallback serverActivityCallback)
    Suspends the RecoveryManagerService.
    void
    Receives notifications from a ProcessStateNotifier to detect when the process has reached a ControlledProcessState.State.isRunning() running state}, reacting to them by resuming the RecoveryManagerService if we haven't been suspended.
    void
    Resumes the RecoveryManagerService if the current process state is running.
    void
    suspended(org.jboss.as.server.suspend.ServerActivityCallback serverActivityCallback)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.jboss.as.server.suspend.ServerActivity

    getExecutionGroup
  • Constructor Details

    • RecoverySuspendController

      public RecoverySuspendController(com.arjuna.ats.jbossatx.jta.RecoveryManagerService recoveryManagerService)
  • Method Details

    • preSuspend

      public void preSuspend(org.jboss.as.server.suspend.ServerActivityCallback serverActivityCallback)
      Suspends the RecoveryManagerService.
      Specified by:
      preSuspend in interface org.jboss.as.server.suspend.ServerActivity
    • suspended

      public void suspended(org.jboss.as.server.suspend.ServerActivityCallback serverActivityCallback)
      Specified by:
      suspended in interface org.jboss.as.server.suspend.ServerActivity
    • resume

      public void resume()
      Resumes the RecoveryManagerService if the current process state is running. Otherwise records that the service can be resumed once a notification is received that the process state is running.
      Specified by:
      resume in interface org.jboss.as.server.suspend.ServerActivity
    • propertyChange

      public void propertyChange(PropertyChangeEvent evt)
      Receives notifications from a ProcessStateNotifier to detect when the process has reached a ControlledProcessState.State.isRunning() running state}, reacting to them by resuming the RecoveryManagerService if we haven't been suspended.
      Specified by:
      propertyChange in interface PropertyChangeListener