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 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
ConstructorsConstructorDescriptionRecoverySuspendController(com.arjuna.ats.jbossatx.jta.RecoveryManagerService recoveryManagerService) -
Method Summary
Modifier and TypeMethodDescriptionvoidpreSuspend(org.jboss.as.server.suspend.ServerActivityCallback serverActivityCallback) SuspendstheRecoveryManagerService.voidReceives 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) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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) 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
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
-