|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ServiceMonitor
This interface is used to monitor service lifecycle events. A ServiceMonitor can be registered with a kernel using
Kernel.addServiceMonitor(ServiceMonitor) or Kernel.addServiceMonitor(ServiceMonitor, ServiceName).
| Method Summary | |
|---|---|
void |
serviceRegistered(ServiceEvent serviceEvent)
A new service has been registered with the kernel. |
void |
serviceRunning(ServiceEvent serviceEvent)
A service has entered the RUNNING state. |
void |
serviceStartError(ServiceEvent serviceEvent)
An error occured while calling creating the service. |
void |
serviceStarting(ServiceEvent serviceEvent)
A service has entered the STARTING state. |
void |
serviceStopError(ServiceEvent serviceEvent)
An error occured while calling destroying the service. |
void |
serviceStopped(ServiceEvent serviceEvent)
A service has entered the STOPPED state. |
void |
serviceStopping(ServiceEvent serviceEvent)
A service has entered the RUNNING state. |
void |
serviceUnregistered(ServiceEvent serviceEvent)
A service has been unregistered from the kernel. |
void |
serviceWaitingToStart(ServiceEvent serviceEvent)
A service is waiting to start because some start conditions are unsatified. |
void |
serviceWaitingToStop(ServiceEvent serviceEvent)
A service is waiting to stop because some stop condition is unsatified. |
| Method Detail |
|---|
void serviceRegistered(ServiceEvent serviceEvent)
serviceEvent - the event informationvoid serviceStarting(ServiceEvent serviceEvent)
serviceEvent - the event informationvoid serviceWaitingToStart(ServiceEvent serviceEvent)
serviceEvent - the event informationServiceEvent.getUnsatisfiedConditions()void serviceStartError(ServiceEvent serviceEvent)
serviceEvent - the event informationServiceEvent.getCause()void serviceRunning(ServiceEvent serviceEvent)
serviceEvent - the event informationvoid serviceStopping(ServiceEvent serviceEvent)
serviceEvent - the event informationvoid serviceWaitingToStop(ServiceEvent serviceEvent)
serviceEvent - the event informationServiceEvent.getUnsatisfiedConditions()void serviceStopError(ServiceEvent serviceEvent)
serviceEvent - the event informationServiceEvent.getCause()void serviceStopped(ServiceEvent serviceEvent)
serviceEvent - the event informationvoid serviceUnregistered(ServiceEvent serviceEvent)
serviceEvent - the event information
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||