|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xbean.kernel.standard.ServiceMonitorBroadcaster
The ServiceMonitorBroadcaster broadcasts kernel events to registered service monitors.
Constructor Summary | |
ServiceMonitorBroadcaster(KernelMonitor kernelMonitor)
Creates a ServiceMonitorBroadcaster that notifies the specified kernel monitor when an error occurs while notifying the registered service monitors. |
Method Summary | |
void |
addServiceMonitor(ServiceMonitor serviceMonitor,
ServiceName serviceName)
Adds a service monitor for a specific service, or if the specified service name is null, a global monitor. |
void |
removeServiceMonitor(ServiceMonitor serviceMonitor)
Removes a service monitor. |
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 ServiceMonitorBroadcaster(KernelMonitor kernelMonitor)
kernelMonitor
- the monitor to notify when an error occurs while notifying the registered service monitorsMethod Detail |
public void addServiceMonitor(ServiceMonitor serviceMonitor, ServiceName serviceName)
serviceMonitor
- the service monitor to addserviceName
- the unique name of the service to monitor or null to monitor all servicespublic void removeServiceMonitor(ServiceMonitor serviceMonitor)
serviceMonitor
- the service monitor to removepublic 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 |