S
- the service typepublic interface ServiceListener<S>
Modifier and Type | Interface and Description |
---|---|
static class |
ServiceListener.Inheritance
Deprecated.
Listeners inherently degrade performance. Inheritance only compounds the problem. Ultimately listener inheritance will be eliminated.
|
Modifier and Type | Method and Description |
---|---|
void |
dependencyFailed(ServiceController<? extends S> controller)
A dependency of the service has failed.
|
void |
dependencyFailureCleared(ServiceController<? extends S> controller)
A dependency of the service is retrying to start.
|
void |
immediateDependencyAvailable(ServiceController<? extends S> controller)
All
unavailable immediate dependencies of the service
are now available, i.e., they are installed and are not administratively disabled . |
void |
immediateDependencyUnavailable(ServiceController<? extends S> controller)
An immediate dependency of the service is uninstalled or administratively
disabled . |
void |
listenerAdded(ServiceController<? extends S> controller)
The listener has been added to a controller.
|
void |
serviceRemoveRequestCleared(ServiceController<? extends S> controller)
The service removal is canceled.
|
void |
serviceRemoveRequested(ServiceController<? extends S> controller)
The service is going to be removed.
|
void |
transition(ServiceController<? extends S> controller,
ServiceController.Transition transition)
The service has transitioned to a new sub-state.
|
void |
transitiveDependencyAvailable(ServiceController<? extends S> controller)
All
unavailable transitive dependencies of the
service are now available (installed and not administratively disabled ). |
void |
transitiveDependencyUnavailable(ServiceController<? extends S> controller)
A transitive dependency of the service is uninstalled or administratively
disabled . |
void listenerAdded(ServiceController<? extends S> controller)
controller
- the controller that this listener was added tovoid transition(ServiceController<? extends S> controller, ServiceController.Transition transition)
controller
- the controllertransition
- the transition that occurredvoid serviceRemoveRequested(ServiceController<? extends S> controller)
REMOVE
.controller
- the controllervoid serviceRemoveRequestCleared(ServiceController<? extends S> controller)
REMOVE
to any other
mode.
Such a mode change can only be successfully performed if setMode
is called before the service is removed.controller
- the controller.void dependencyFailed(ServiceController<? extends S> controller)
STARTING
to START_FAILED
.
Dependency failures that occur after the notified failure do not result in new dependencyFailed
notifications. A new call to this method will be made to notify new failures only if the previous failures have
been cleared
.
This method is invoked to notify both immediate and transitive dependency failures.
controller
- the controllervoid dependencyFailureCleared(ServiceController<? extends S> controller)
START_FAILED
to STARTING
.controller
- the controllervoid immediateDependencyUnavailable(ServiceController<? extends S> controller)
disabled
.
Immediate dependencies that are subsequently unavailable do not result in new immediateDependencyUnavailable
notifications. A new call to this method will only be made to notify newly found
unavailable dependencies if the previously unavailable dependencies have been cleared
.
controller
- the controllervoid immediateDependencyAvailable(ServiceController<? extends S> controller)
unavailable
immediate dependencies of the service
are now available, i.e., they are installed and are not administratively disabled
.
immediateDependencyUnavailable(ServiceController)
is called.controller
- the controllervoid transitiveDependencyUnavailable(ServiceController<? extends S> controller)
disabled
.
Transitive dependencies that are subsequently unavailable do not result in new transitiveDependencyUnavailable
notifications. A new call to this method will only be made to notify newly found
unavailable dependencies if the previously unavailable dependencies have all become available
.
controller
- the controllervoid transitiveDependencyAvailable(ServiceController<? extends S> controller)
unavailable
transitive dependencies of the
service are now available (installed and not administratively disabled
).
transitiveDependencyUnavailable(ServiceController)
is called.controller
- the controllerCopyright © 2018 JBoss by Red Hat. All rights reserved.