|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xbean.kernel.standard.AsyncServiceMonitor
public class AsyncServiceMonitor
The AsyncServiceMonitor delivers service events to a delegate ServiceMonitor asynchronously using an executor.
Constructor Summary | |
---|---|
AsyncServiceMonitor(ServiceMonitor delegate,
Executor executor)
Creates a AsyncServiceMonitor which asynchronously delivers service events to specified delegate ServiceMonitor using the specified executor. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AsyncServiceMonitor(ServiceMonitor delegate, Executor executor)
delegate
- the service monitor that should recieve the asynchronous eventsexecutor
- the executor used to asynchronously deliver the eventsMethod Detail |
---|
public void serviceRegistered(ServiceEvent serviceEvent)
serviceRegistered
in interface ServiceMonitor
serviceEvent
- the event informationpublic void serviceStarting(ServiceEvent serviceEvent)
serviceStarting
in interface ServiceMonitor
serviceEvent
- the event informationpublic void serviceWaitingToStart(ServiceEvent serviceEvent)
serviceWaitingToStart
in interface ServiceMonitor
serviceEvent
- the event informationServiceEvent.getUnsatisfiedConditions()
public void serviceStartError(ServiceEvent serviceEvent)
serviceStartError
in interface ServiceMonitor
serviceEvent
- the event informationServiceEvent.getCause()
public void serviceRunning(ServiceEvent serviceEvent)
serviceRunning
in interface ServiceMonitor
serviceEvent
- the event informationpublic void serviceStopping(ServiceEvent serviceEvent)
serviceStopping
in interface ServiceMonitor
serviceEvent
- the event informationpublic void serviceWaitingToStop(ServiceEvent serviceEvent)
serviceWaitingToStop
in interface ServiceMonitor
serviceEvent
- the event informationServiceEvent.getUnsatisfiedConditions()
public void serviceStopError(ServiceEvent serviceEvent)
serviceStopError
in interface ServiceMonitor
serviceEvent
- the event informationServiceEvent.getCause()
public void serviceStopped(ServiceEvent serviceEvent)
serviceStopped
in interface ServiceMonitor
serviceEvent
- the event informationpublic void serviceUnregistered(ServiceEvent serviceEvent)
serviceUnregistered
in interface ServiceMonitor
serviceEvent
- the event information
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |