S
- the service typepublic abstract class AbstractServiceListener<S> extends Object implements ServiceListener<S>
ServiceListener.Inheritance
Constructor and Description |
---|
AbstractServiceListener() |
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 . |
public void listenerAdded(ServiceController<? extends S> controller)
listenerAdded
in interface ServiceListener<S>
controller
- the controller that this listener was added topublic void transition(ServiceController<? extends S> controller, ServiceController.Transition transition)
transition
in interface ServiceListener<S>
controller
- the controllertransition
- the transition that occurredpublic void serviceRemoveRequested(ServiceController<? extends S> controller)
REMOVE
.serviceRemoveRequested
in interface ServiceListener<S>
controller
- the controllerpublic void 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.serviceRemoveRequestCleared
in interface ServiceListener<S>
controller
- the controller.public 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.
dependencyFailed
in interface ServiceListener<S>
controller
- the controllerpublic void dependencyFailureCleared(ServiceController<? extends S> controller)
START_FAILED
to STARTING
.dependencyFailureCleared
in interface ServiceListener<S>
controller
- the controllerpublic void 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
.
immediateDependencyUnavailable
in interface ServiceListener<S>
controller
- the controllerpublic void immediateDependencyAvailable(ServiceController<? extends S> controller)
unavailable
immediate dependencies of the service
are now available, i.e., they are installed and are not administratively disabled
.
ServiceListener.immediateDependencyUnavailable(ServiceController)
is called.immediateDependencyAvailable
in interface ServiceListener<S>
controller
- the controllerpublic void 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
.
transitiveDependencyUnavailable
in interface ServiceListener<S>
controller
- the controllerpublic void transitiveDependencyAvailable(ServiceController<? extends S> controller)
unavailable
transitive dependencies of the
service are now available (installed and not administratively disabled
).
ServiceListener.transitiveDependencyUnavailable(ServiceController)
is called.transitiveDependencyAvailable
in interface ServiceListener<S>
controller
- the controllerCopyright © 2018 JBoss by Red Hat. All rights reserved.