Package org.jboss.as.txn.suspend
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 aSuspendControllerand aProcessStateNotifierand reacts to them bysuspendingorresumingtheRecoveryManagerService.- Author:
- Gytis Trikleris
-
-
Constructor Summary
Constructors Constructor Description RecoverySuspendController(com.arjuna.ats.jbossatx.jta.RecoveryManagerService recoveryManagerService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpreSuspend(org.jboss.as.server.suspend.ServerActivityCallback serverActivityCallback)SuspendstheRecoveryManagerService.voidpropertyChange(PropertyChangeEvent evt)Receives notifications from aProcessStateNotifierto detect when the process has reached aControlledProcessState.State.isRunning()running state}, reacting to them byresumingtheRecoveryManagerServiceif we haven't beensuspended.voidresume()ResumestheRecoveryManagerServiceif the current process stateis running.voidsuspended(org.jboss.as.server.suspend.ServerActivityCallback serverActivityCallback)
-
-
-
Method Detail
-
preSuspend
public void preSuspend(org.jboss.as.server.suspend.ServerActivityCallback serverActivityCallback)
SuspendstheRecoveryManagerService.- Specified by:
preSuspendin interfaceorg.jboss.as.server.suspend.ServerActivity
-
suspended
public void suspended(org.jboss.as.server.suspend.ServerActivityCallback serverActivityCallback)
- Specified by:
suspendedin interfaceorg.jboss.as.server.suspend.ServerActivity
-
resume
public void resume()
ResumestheRecoveryManagerServiceif the current process stateis running. Otherwise records that the service can be resumed once anotification is receivedthat the process state is running.- Specified by:
resumein interfaceorg.jboss.as.server.suspend.ServerActivity
-
propertyChange
public void propertyChange(PropertyChangeEvent evt)
Receives notifications from aProcessStateNotifierto detect when the process has reached aControlledProcessState.State.isRunning()running state}, reacting to them byresumingtheRecoveryManagerServiceif we haven't beensuspended.- Specified by:
propertyChangein interfacePropertyChangeListener
-
-