|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Beta public static interface ServiceManager.Listener
A listener for the aggregate state changes of the services that are under management. Users
that need to listen to more fine-grained events (such as when each particular
service
starts, or terminates), should attach service
listeners
to each individual service.
Method Summary | |
---|---|
void |
failure(Service service)
Called when a component service has failed. |
void |
healthy()
Called when the service initially becomes healthy. |
void |
stopped()
Called when the all of the component services have reached a terminal state, either terminated or failed. |
Method Detail |
---|
void healthy()
This will be called at most once after all the services have entered the running state. If any services fail during start up or fail/terminate before all other services have started running then this method will not be called.
void stopped()
void failure(Service service)
service
- The service that failed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |