public class ControlledProcessStateService extends Object implements org.jboss.msc.service.Service<ControlledProcessStateService>, ProcessStateNotifier
ControlledProcessState.State and allows services to register a listener for changes
to it.| Modifier and Type | Field and Description |
|---|---|
static org.jboss.msc.service.ServiceName |
INTERNAL_SERVICE_NAME
Only for use within the WildFly Core kernel; may change or be removed at any time
|
static org.jboss.msc.service.ServiceName |
SERVICE_NAME
Deprecated.
use the 'org.wildfly.management.process-state-notifier' capability to obtain a
ProcessStateNotifier |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Registers a listener for changes to the process state.
|
static org.jboss.msc.service.ServiceController<ControlledProcessStateService> |
addService(org.jboss.msc.service.ServiceTarget target,
ControlledProcessState processState) |
ControlledProcessState.State |
getCurrentState()
Returns the current process state.
|
ControlledProcessStateService |
getValue() |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a previously
registered listener. |
void |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
@Deprecated public static final org.jboss.msc.service.ServiceName SERVICE_NAME
ProcessStateNotifierpublic static final org.jboss.msc.service.ServiceName INTERNAL_SERVICE_NAME
public static org.jboss.msc.service.ServiceController<ControlledProcessStateService> addService(org.jboss.msc.service.ServiceTarget target, ControlledProcessState processState)
public void start(org.jboss.msc.service.StartContext context)
throws org.jboss.msc.service.StartException
start in interface org.jboss.msc.Serviceorg.jboss.msc.service.StartExceptionpublic void stop(org.jboss.msc.service.StopContext context)
stop in interface org.jboss.msc.Servicepublic ControlledProcessStateService getValue()
getValue in interface org.jboss.msc.value.Value<ControlledProcessStateService>public ControlledProcessState.State getCurrentState()
getCurrentState in interface ProcessStateNotifierpublic void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener in interface ProcessStateNotifierlistener - the listenerpublic void removePropertyChangeListener(PropertyChangeListener listener)
registered listener.removePropertyChangeListener in interface ProcessStateNotifierlistener - the listenerCopyright © 2020 JBoss by Red Hat. All rights reserved.