| org.jboss.ha.jmx.examples.HANotificationBroadcasterClientExample
HANotificationBroadcasterClientExample | public class HANotificationBroadcasterClientExample extends ServiceMBeanSupport implements HANotificationBroadcasterClientExampleMBean,NotificationListener(Code) | | This MBean is an example that shows how to delegate notification services to a HANotificationBroadcaster.
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 |
broadcasterName_ | ObjectName broadcasterName_(Code) | | The broadcaster MBean that this class listens to and delegates HA notifications to
|
getHANotificationBroadcasterName | public String getHANotificationBroadcasterName()(Code) | | the name of the broadcaster MBean |
getReceivedNotifications | public Collection getReceivedNotifications()(Code) | | Lists the notifications received on the cluster 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.
|
|
|