public class SuspendController extends Object implements org.jboss.msc.service.Service<SuspendController>
ServerActivity instance
can be registered directly with this controller.| Modifier and Type | Class and Description |
|---|---|
static class |
SuspendController.State |
| Modifier and Type | Field and Description |
|---|---|
static org.jboss.msc.service.ServiceName |
SERVICE_NAME
Deprecated.
Use org.jboss.as.server.Services.JBOSS_SUSPEND_CONTROLLER instead which gets the service name
via org.wildfly.server.suspend-controller capability
|
| Constructor and Description |
|---|
SuspendController() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(OperationListener listener) |
org.jboss.msc.value.InjectedValue<NotificationHandlerRegistry> |
getNotificationHandlerRegistry() |
SuspendController.State |
getState() |
SuspendController |
getValue() |
void |
registerActivity(ServerActivity activity) |
void |
removeListener(OperationListener listener) |
void |
resume() |
void |
setStartSuspended(boolean startSuspended) |
void |
start(org.jboss.msc.service.StartContext startContext) |
void |
stop(org.jboss.msc.service.StopContext stopContext) |
void |
suspend(long timeoutMillis) |
void |
unRegisterActivity(ServerActivity activity) |
@Deprecated public static final org.jboss.msc.service.ServiceName SERVICE_NAME
public void setStartSuspended(boolean startSuspended)
public void suspend(long timeoutMillis)
public void resume()
public void registerActivity(ServerActivity activity)
public void unRegisterActivity(ServerActivity activity)
public void start(org.jboss.msc.service.StartContext startContext)
throws org.jboss.msc.service.StartException
start in interface org.jboss.msc.Serviceorg.jboss.msc.service.StartExceptionpublic void stop(org.jboss.msc.service.StopContext stopContext)
stop in interface org.jboss.msc.Servicepublic SuspendController.State getState()
public void addListener(OperationListener listener)
public void removeListener(OperationListener listener)
public SuspendController getValue() throws IllegalStateException, IllegalArgumentException
getValue in interface org.jboss.msc.value.Value<SuspendController>IllegalStateExceptionIllegalArgumentExceptionpublic org.jboss.msc.value.InjectedValue<NotificationHandlerRegistry> getNotificationHandlerRegistry()
Copyright © 2018 JBoss by Red Hat. All rights reserved.