| org.jboss.ha.jmx.HAServiceMBeanSupport org.jboss.ha.jmx.examples.HANotificationBroadcasterExample
HANotificationBroadcasterExample | public class HANotificationBroadcasterExample extends HAServiceMBeanSupport implements HANotificationBroadcasterExampleMBean(Code) | | This MBean is an example showing how to extend a cluster notification broadcaster
Use the sendNotiication() operation to trigger new clustered notifications.
Observe the status of each instance of this mbean in the participating cluster partition nodes.
author: Ivelin Ivanov |
Method Summary | |
public Collection | getReceivedNotifications() | public void | sendTextMessage(String message) Broadcasts a notification to the cluster partition. | protected void | startService() On service start, subscribes to notification sent by this broadcaster or its remote peers. | protected void | stopService() On service stop, unsubscribes to notification sent by this broadcaster or its remote peers. |
getReceivedNotifications | public Collection getReceivedNotifications()(Code) | | Lists the notifications received on the cluster partition
|
sendTextMessage | public void sendTextMessage(String message)(Code) | | Broadcasts a notification to the cluster partition.
This example does not ensure that a notification sequence number
is unique throughout the partition.
|
startService | protected void startService() throws Exception(Code) | | On service start, subscribes to notification sent by this broadcaster or its remote peers.
|
stopService | protected void stopService() throws Exception(Code) | | On service stop, unsubscribes to notification sent by this broadcaster or its remote peers.
|
|
|