Save This Page
Home » jboss-5.0.0.CR1-src » org.jboss.ha.framework » server » [javadoc | source]
org.jboss.ha.framework.server
public class: HAManagementService [javadoc | source]
java.lang.Object
   org.jboss.mx.util.JBossNotificationBroadcasterSupport
      org.jboss.system.ServiceMBeanSupport
         org.jboss.ha.framework.server.HAManagementService

All Implemented Interfaces:
    HAManagementServiceMBean, org.jboss.kernel.spi.dependency.KernelControllerContextAware, ServiceMBean, MBeanRegistration, NotificationEmitter

This class enables a client to get a management view (JSR-77) on a JBoss Cluster. It contains the entire logic to map all the {@link org.jboss.management.j2ee.J2EEManagedObject Managed Object (MO) of all the nodes in the cluster to one MO. The same applies to State Management and Performance Statistics.
Field Summary
 ObjectName OBJECT_NAME    The default object name. 
Fields inherited from org.jboss.system.ServiceMBeanSupport:
SERVICE_CONTROLLER_SIG,  log,  server,  serviceName
Constructor:
 public HAManagementService() 
Method from org.jboss.ha.framework.server.HAManagementService Summary:
_createMBean,   _getAttribute,   _getAttributes,   _invoke,   _setAttribute,   _setAttributes,   _unregisterMBean,   addNotificationListener,   createMBean,   createService,   getAttribute,   getAttributes,   getDefaultDomain,   getListenerRegistry,   getMBeanCount,   getMBeanInfo,   getName,   invoke,   isRegistered,   preDeregister,   preRegister,   queryNames,   removeNotificationListener,   setAttribute,   setAttributes,   startService,   stopService,   unregisterMBean
Methods from org.jboss.system.ServiceMBeanSupport:
create,   createService,   destroy,   destroyService,   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,   startService,   stop,   stopService,   unsetKernelControllerContext
Methods from org.jboss.mx.util.JBossNotificationBroadcasterSupport:
addNotificationListener,   getNotificationInfo,   handleNotification,   nextNotificationSequenceNumber,   removeNotificationListener,   removeNotificationListener,   sendNotification
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.ha.framework.server.HAManagementService Detail:
 public Object _createMBean(String pClass,
    ObjectName pName,
    Object[] pParameters,
    String[] pSignature) 
 public Object _getAttribute(ObjectName pName,
    String pAttribute) 
 public AttributeList _getAttributes(ObjectName pName,
    String[] pAttributes) 
 public Object _invoke(ObjectName pName,
    String pOperationName,
    Object[] pParams,
    String[] pSignature) 
 public Object _setAttribute(ObjectName pName,
    Attribute pAttribute) 
 public Object _setAttributes(ObjectName pName,
    AttributeList pAttributes) 
 public Object _unregisterMBean(ObjectName pName) 
 public  void addNotificationListener(ObjectName pBroadcaster,
    ObjectName pListener,
    NotificationFilter pFilter,
    Object pHandback) throws InstanceNotFoundException, RemoteException 
 public ObjectInstance createMBean(String pClass,
    ObjectName pName,
    Object[] pParameters,
    String[] pSignature) throws MBeanRegistrationException, InstanceAlreadyExistsException, NotCompliantMBeanException, ReflectionException, MBeanException, RemoteException 
 protected  void createService() throws Exception 
    Looks up the Server Config instance to figure out the temp-directory and the farm-deploy-directory
 public Object getAttribute(ObjectName pName,
    String pAttribute) throws InstanceNotFoundException, ReflectionException, AttributeNotFoundException, MBeanException, RemoteException 
 public AttributeList getAttributes(ObjectName pName,
    String[] pAttributes) throws InstanceNotFoundException, ReflectionException, RemoteException 
 public String getDefaultDomain() throws RemoteException 
 public ListenerRegistration getListenerRegistry() throws RemoteException 
 public Integer getMBeanCount() throws RemoteException 
 public MBeanInfo getMBeanInfo(ObjectName pName) throws IntrospectionException, InstanceNotFoundException, ReflectionException, RemoteException 
 public String getName() 
 public Object invoke(ObjectName pName,
    String pOperationName,
    Object[] pParams,
    String[] pSignature) throws InstanceNotFoundException, ReflectionException, MBeanException, RemoteException 
 public boolean isRegistered(ObjectName pName) throws RemoteException 
 public  void preDeregister() throws Exception 
    Removes the Notification Listener
 public ObjectName preRegister(MBeanServer pServer,
    ObjectName pName) throws Exception 
    Saves the MBeanServer reference, create the Farm Member Name and add its Notification Listener to listen for Deployment / Undeployment notifications from the MainDeployer .
 public Set queryNames(ObjectName pName,
    QueryExp pQuery) throws RemoteException 
 public  void removeNotificationListener(ObjectName pBroadcaster,
    ObjectName pListener) throws ListenerNotFoundException, InstanceNotFoundException, RemoteException 
 public  void setAttribute(ObjectName pName,
    Attribute pAttribute) throws InstanceNotFoundException, InvalidAttributeValueException, ReflectionException, AttributeNotFoundException, MBeanException, RemoteException 
 public AttributeList setAttributes(ObjectName pName,
    AttributeList pAttributes) throws InstanceNotFoundException, ReflectionException, RemoteException 
 protected  void startService() throws Exception 
    Register itself as RPC-Handler to the HA-Partition and add the farm deployment directory to the scanner
 protected  void stopService() 
    Remove the farm deployment directory from the scanner
 public  void unregisterMBean(ObjectName pName) throws InstanceNotFoundException, MBeanRegistrationException, RemoteException