|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public void serviceRegistered(ServiceEvent serviceEvent)
serviceEvent
- the event informationpublic void serviceStarting(ServiceEvent serviceEvent)
serviceEvent
- the event informationpublic void serviceWaitingToStart(ServiceEvent serviceEvent)
serviceEvent
- the event informationServiceEvent.getUnsatisfiedConditions()
public void serviceStartError(ServiceEvent serviceEvent)
serviceEvent
- the event informationServiceEvent.getCause()
public void serviceRunning(ServiceEvent serviceEvent)
serviceEvent
- the event informationpublic void serviceStopping(ServiceEvent serviceEvent)
serviceEvent
- the event informationpublic void serviceWaitingToStop(ServiceEvent serviceEvent)
serviceEvent
- the event informationServiceEvent.getUnsatisfiedConditions()
public void serviceStopError(ServiceEvent serviceEvent)
serviceEvent
- the event informationServiceEvent.getCause()
public void serviceStopped(ServiceEvent serviceEvent)
serviceEvent
- the event informationpublic void serviceUnregistered(ServiceEvent serviceEvent)
serviceEvent
- the event information
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |