org.jboss.ha.jmx
Class HAServiceMBeanSupport

java.lang.Object
  extended by org.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended by org.jboss.system.ServiceMBeanSupport
          extended by org.jboss.ha.jmx.AbstractHAServiceMBeanSupport<org.jboss.ha.framework.interfaces.HAService<Notification>>
              extended by org.jboss.ha.jmx.HAServiceMBeanSupport
All Implemented Interfaces:
EventListener, MBeanRegistration, NotificationBroadcaster, NotificationEmitter, org.jboss.ha.framework.interfaces.HAService<Notification>, org.jboss.ha.framework.interfaces.HAServiceKeyProvider, org.jboss.ha.framework.server.EventFacility<Notification>, org.jboss.ha.framework.server.EventFactory<Notification>, org.jboss.ha.framework.server.HAServiceRpcHandler<Notification>, HAServiceMBean, org.jboss.kernel.spi.dependency.KernelControllerContextAware, Service, ServiceMBean

public class HAServiceMBeanSupport
extends AbstractHAServiceMBeanSupport<org.jboss.ha.framework.interfaces.HAService<Notification>>
implements org.jboss.ha.framework.server.HAServiceRpcHandler<Notification>

Management Bean for an HA-Service. Provides a convenient common base for cluster symmetric MBeans. This class is also a user transparent extension of the standard NotificationBroadcasterSupport to a clustered environment. Listeners register with their local broadcaster. Invoking sendNotification() on any broadcaster, will notify all listeners in the same cluster partition. TODO: The performance can be further optimized by avoiding broadcast messages when remote listener nodes are not interested (e.g. have no local subscribers) or by iterating locally over filters or remote listeners.

Version:
$Revision: 87733 $
Author:
Ivelin Ivanov , Paul Ferraro

Field Summary
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.system.ServiceMBean
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
HAServiceMBeanSupport()
           
 
Method Summary
protected  org.jboss.ha.framework.interfaces.HAService<Notification> createHAService()
          Defines the object used to delegate service methods.
 
Methods inherited from class org.jboss.ha.jmx.AbstractHAServiceMBeanSupport
callAsyncMethodOnPartition, callMethodOnPartition, createEvent, createService, destroyService, getDistributedState, getHAPartition, getHAService, getHAServiceKey, getPartitionName, getSendLocalLifecycleNotifications, getSendRemoteLifecycleNotifications, getServiceHAName, handleEvent, isRegisterThreadContextClassLoader, notifyListeners, sendNotification, sendNotificationRemote, sendNotificationToLocalListeners, setClusterPartition, setDistributedState, setHAPartition, setRegisterThreadContextClassLoader, setSendLocalLifecycleNotifications, setSendRemoteLifecycleNotifications, setServiceHAName, setupPartition, startService, stopService
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
create, destroy, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, pojoChange, pojoCreate, pojoDestroy, pojoStart, pojoStop, postDeregister, postRegister, preDeregister, preRegister, setKernelControllerContext, start, stop, unsetKernelControllerContext
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.ha.framework.interfaces.EventListener
handleEvent
 
Methods inherited from interface org.jboss.system.ServiceMBean
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 
Methods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, getNotificationInfo, removeNotificationListener
 
Methods inherited from interface org.jboss.ha.framework.interfaces.HAService
create, destroy, start, stop
 

Constructor Detail

HAServiceMBeanSupport

public HAServiceMBeanSupport()
Method Detail

createHAService

protected org.jboss.ha.framework.interfaces.HAService<Notification> createHAService()
Description copied from class: AbstractHAServiceMBeanSupport
Defines the object used to delegate service methods.

Specified by:
createHAService in class AbstractHAServiceMBeanSupport<org.jboss.ha.framework.interfaces.HAService<Notification>>
Returns:
an HAService delegate
See Also:
AbstractHAServiceMBeanSupport.createHAService()


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.