org.jboss.ha.jmx
Class HAServiceMBeanSupport
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.ha.jmx.AbstractHAServiceMBeanSupport<org.jboss.ha.framework.interfaces.HAService<Notification>>
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
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 |
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 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.ha.framework.interfaces.HAService |
create, destroy, start, stop |
HAServiceMBeanSupport
public HAServiceMBeanSupport()
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.