com.sas.services.mgmt
Class ServiceNotificationBroadcaster

com.sas.services.mgmt.ServiceNotificationBroadcaster
All Implemented Interfaces:
ServiceNotificationBroadcasterInterface, java.io.Serializable, java.rmi.Remote

public class ServiceNotificationBroadcaster
implements ServiceNotificationBroadcasterInterface, java.io.Serializable

Service notification broadcaster. Observers interested in receiving notifications about changes to a service may register themselves with this notification broadcaster.

Since:
1.0
See Also:
Serialized Form

Constructor Summary
ServiceNotificationBroadcaster()
           
 
Method Summary
 void addServiceObserver(ServiceRemoteObserverInterface serviceObserver)
          Adds a service observer.
 void notifyServiceObservers(ServiceEvent serviceEvent)
          Notify all registered service observers of the specified service event.
 void removeAllServiceObservers()
          Removes all service observers.
 void removeServiceObserver(ServiceRemoteObserverInterface serviceObserver)
          Removes a service observer.
 

Constructor Detail

ServiceNotificationBroadcaster

public ServiceNotificationBroadcaster()
Method Detail

addServiceObserver

public final void addServiceObserver(ServiceRemoteObserverInterface serviceObserver)
Adds a service observer.

Specified by:
addServiceObserver in interface ServiceNotificationBroadcasterInterface
Parameters:
serviceObserver - An observer interested in receiving service notifications.

removeServiceObserver

public final void removeServiceObserver(ServiceRemoteObserverInterface serviceObserver)
Removes a service observer.

Specified by:
removeServiceObserver in interface ServiceNotificationBroadcasterInterface
Parameters:
serviceObserver - An observer no longer interested in receiving service notifications.

removeAllServiceObservers

public final void removeAllServiceObservers()
Removes all service observers.

Specified by:
removeAllServiceObservers in interface ServiceNotificationBroadcasterInterface

notifyServiceObservers

public final void notifyServiceObservers(ServiceEvent serviceEvent)
Notify all registered service observers of the specified service event.

Specified by:
notifyServiceObservers in interface ServiceNotificationBroadcasterInterface
Parameters:
serviceEvent - Service event to be broadcast to all registered service observers.



Copyright © 2009 SAS Institute Inc. All Rights Reserved.