Class 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
    • Constructor Detail

      • RecoverySuspendController

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

      • 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