|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.continuent.tungsten.common.patterns.notification.adaptor.ManagerNotificationAdaptor
public class ManagerNotificationAdaptor
This class represents a means to receive monitoring information about datasources that are pushed from a manager directly to the process that wants to receive the notifications. This class, in effect, can act as a relay between the manager and the host process.
| Constructor Summary | |
|---|---|
ManagerNotificationAdaptor()
|
|
| Method Summary | |
|---|---|
void |
addListener(ResourceNotificationListener listener)
Add a listener that will be informed in the event of a resource notification. |
void |
deliver(ClusterResourceNotification notification)
|
java.util.Map<java.lang.String,NotificationGroupMember> |
getNotificationGroupMembers()
|
void |
notifyListeners(ClusterResourceNotification notification)
Deliver notification to listeners. |
void |
prepare()
|
void |
run()
Run start the listener thread. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ManagerNotificationAdaptor()
| Method Detail |
|---|
public void addListener(ResourceNotificationListener listener)
addListener in interface ResourceNotifierlistener -
public void notifyListeners(ClusterResourceNotification notification)
throws ResourceNotificationException
notifyListeners in interface ResourceNotifiernotification -
ResourceNotificationExceptionpublic void run()
run in interface java.lang.Runnable
public void deliver(ClusterResourceNotification notification)
throws ResourceNotificationException
ResourceNotificationExceptionpublic java.util.Map<java.lang.String,NotificationGroupMember> getNotificationGroupMembers()
getNotificationGroupMembers in interface ResourceNotifier
public void prepare()
throws java.lang.Exception
prepare in interface ResourceNotifierjava.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||