public class RecoverySuspendController extends Object implements org.jboss.as.server.suspend.ServerActivity, PropertyChangeListener
SuspendController and a ProcessStateNotifier and reacts
to them by suspending or resuming
the RecoveryManagerService.| Constructor and Description |
|---|
RecoverySuspendController(com.arjuna.ats.jbossatx.jta.RecoveryManagerService recoveryManagerService) |
| Modifier and Type | Method and Description |
|---|---|
void |
preSuspend(org.jboss.as.server.suspend.ServerActivityCallback serverActivityCallback)
Suspends the RecoveryManagerService. |
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. |
void |
resume()
Resumes the RecoveryManagerService if the current
process state is running. |
void |
suspended(org.jboss.as.server.suspend.ServerActivityCallback serverActivityCallback) |
public RecoverySuspendController(com.arjuna.ats.jbossatx.jta.RecoveryManagerService recoveryManagerService)
public void preSuspend(org.jboss.as.server.suspend.ServerActivityCallback serverActivityCallback)
Suspends the RecoveryManagerService.preSuspend in interface org.jboss.as.server.suspend.ServerActivitypublic void suspended(org.jboss.as.server.suspend.ServerActivityCallback serverActivityCallback)
suspended in interface org.jboss.as.server.suspend.ServerActivitypublic 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.resume in interface org.jboss.as.server.suspend.ServerActivitypublic void propertyChange(PropertyChangeEvent evt)
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.propertyChange in interface PropertyChangeListenerCopyright © 2022 JBoss by Red Hat. All rights reserved.