|
||||||||||
| 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.MonitorNotifierGroupCommAdaptor
public class MonitorNotifierGroupCommAdaptor
This class represents a means to receive monitoring information about datasources from group communications. This works with a variety of GC implementations thanks to using Hedera wrappers.
| Constructor Summary | |
|---|---|
MonitorNotifierGroupCommAdaptor()
Create a new adapter. |
|
| Method Summary | |
|---|---|
void |
addListener(ResourceNotificationListener listener)
Add a listener that will be informed in the event of a resource notification. |
void |
configureGroupCommunications()
|
java.util.Map<java.lang.String,NotificationGroupMember> |
getNotificationGroupMembers()
|
void |
notifyListeners(ClusterResourceNotification notification)
Deliver notification to listeners. |
void |
prepare()
|
void |
receive(java.io.Serializable object)
Receive a resource notification. |
void |
run()
Run start the listener thread. |
void |
shutdown()
Shut down by logging out of the channel. |
void |
startGroupCommunications()
Start group communications by launching the message adapter thread. |
protected void |
stopGroupCommunications()
Shut down group communications. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MonitorNotifierGroupCommAdaptor()
throws ResourceNotificationException
ResourceNotificationException| 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 configureGroupCommunications()
throws ResourceNotificationException
ResourceNotificationExceptionpublic void startGroupCommunications()
protected void stopGroupCommunications()
public void shutdown()
public void receive(java.io.Serializable object)
receive in interface org.continuent.hedera.adapters.MessageListenerpublic 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 | |||||||||