|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
org.jboss.system.ServiceMBeanSupport (src)
org.jboss.management.j2ee.cluster.HAManagementService
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 |
| Fields inherited from class org.jboss.system.ServiceMBeanSupport (src) |
log, server, SERVICE_CONTROLLER_SIG, serviceName |
| Fields inherited from interface org.jboss.system.ServiceMBean (src) |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
| Constructor Summary | |
HAManagementService()
Creates a undefined clustering management service. |
|
| Method Summary | |
java.lang.Object |
_createMBean(java.lang.String pClass,
ObjectName (src) pName,
java.lang.Object[] pParameters,
java.lang.String[] pSignature)
|
java.lang.Object |
_getAttribute(ObjectName (src) pName,
java.lang.String pAttribute)
|
AttributeList (src) |
_getAttributes(ObjectName (src) pName,
java.lang.String[] pAttributes)
|
java.lang.Object |
_invoke(ObjectName (src) pName,
java.lang.String pOperationName,
java.lang.Object[] pParams,
java.lang.String[] pSignature)
|
java.lang.Object |
_setAttribute(ObjectName (src) pName,
Attribute (src) pAttribute)
|
java.lang.Object |
_setAttributes(ObjectName (src) pName,
AttributeList (src) pAttributes)
|
java.lang.Object |
_unregisterMBean(ObjectName (src) pName)
|
void |
addNotificationListener(ObjectName (src) pBroadcaster,
ObjectName (src) pListener,
NotificationFilter (src) pFilter,
java.lang.Object pHandback)
|
ObjectInstance (src) |
createMBean(java.lang.String pClass,
ObjectName (src) pName,
java.lang.Object[] pParameters,
java.lang.String[] pSignature)
|
protected void |
createService()
Looks up the Server Config instance to figure out the temp-directory and the farm-deploy-directory |
java.lang.Object |
getAttribute(ObjectName (src) pName,
java.lang.String pAttribute)
|
AttributeList (src) |
getAttributes(ObjectName (src) pName,
java.lang.String[] pAttributes)
|
java.lang.String |
getDefaultDomain()
|
ListenerRegistration (src) |
getListenerRegistry()
|
java.lang.Integer |
getMBeanCount()
|
MBeanInfo (src) |
getMBeanInfo(ObjectName (src) pName)
|
java.lang.String |
getName()
Use the short class name as the default for the service name. |
java.lang.Object |
invoke(ObjectName (src) pName,
java.lang.String pOperationName,
java.lang.Object[] pParams,
java.lang.String[] pSignature)
|
boolean |
isRegistered(ObjectName (src) pName)
|
void |
preDeregister()
Removes the Notification Listener |
ObjectName (src) |
preRegister(MBeanServer (src) pServer,
ObjectName (src) pName)
Saves the MBeanServer reference |
java.util.Set |
queryNames(ObjectName (src) pName,
QueryExp (src) pQuery)
|
void |
removeNotificationListener(ObjectName (src) pBroadcaster,
ObjectName (src) pListener)
|
void |
setAttribute(ObjectName (src) pName,
Attribute (src) pAttribute)
|
AttributeList (src) |
setAttributes(ObjectName (src) pName,
AttributeList (src) pAttributes)
|
protected void |
startService()
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 |
void |
unregisterMBean(ObjectName (src) pName)
|
| Methods inherited from class org.jboss.system.ServiceMBeanSupport (src) |
create, destroy, destroyService, getLog, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, start, stop |
| Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport (src) |
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HAManagementService()
| Method Detail |
public java.lang.Object _getAttribute(ObjectName (src) pName,
java.lang.String pAttribute)
public java.lang.Object getAttribute(ObjectName (src) pName,
java.lang.String pAttribute)
throws MBeanException (src) ,
AttributeNotFoundException (src) ,
InstanceNotFoundException (src) ,
ReflectionException (src) ,
java.rmi.RemoteException
MBeanException (src)
AttributeNotFoundException (src)
InstanceNotFoundException (src)
ReflectionException (src)
java.rmi.RemoteException
public AttributeList (src) _getAttributes(ObjectName (src) pName,
java.lang.String[] pAttributes)
public AttributeList (src) getAttributes(ObjectName (src) pName,
java.lang.String[] pAttributes)
throws InstanceNotFoundException (src) ,
ReflectionException (src) ,
java.rmi.RemoteException
InstanceNotFoundException (src)
ReflectionException (src)
java.rmi.RemoteException
public java.lang.String getDefaultDomain()
throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.Integer getMBeanCount()
throws java.rmi.RemoteException
java.rmi.RemoteException
public MBeanInfo (src) getMBeanInfo(ObjectName (src) pName)
throws IntrospectionException (src) ,
InstanceNotFoundException (src) ,
ReflectionException (src) ,
java.rmi.RemoteException
IntrospectionException (src)
InstanceNotFoundException (src)
ReflectionException (src)
java.rmi.RemoteException
public ListenerRegistration (src) getListenerRegistry()
throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.Object _invoke(ObjectName (src) pName,
java.lang.String pOperationName,
java.lang.Object[] pParams,
java.lang.String[] pSignature)
public java.lang.Object invoke(ObjectName (src) pName,
java.lang.String pOperationName,
java.lang.Object[] pParams,
java.lang.String[] pSignature)
throws InstanceNotFoundException (src) ,
MBeanException (src) ,
ReflectionException (src) ,
java.rmi.RemoteException
InstanceNotFoundException (src)
MBeanException (src)
ReflectionException (src)
java.rmi.RemoteException
public boolean isRegistered(ObjectName (src) pName)
throws java.rmi.RemoteException
java.rmi.RemoteException
public java.util.Set queryNames(ObjectName (src) pName,
QueryExp (src) pQuery)
throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.Object _setAttribute(ObjectName (src) pName,
Attribute (src) pAttribute)
public void setAttribute(ObjectName (src) pName,
Attribute (src) pAttribute)
throws AttributeNotFoundException (src) ,
InstanceNotFoundException (src) ,
InvalidAttributeValueException (src) ,
MBeanException (src) ,
ReflectionException (src) ,
java.rmi.RemoteException
AttributeNotFoundException (src)
InstanceNotFoundException (src)
InvalidAttributeValueException (src)
MBeanException (src)
ReflectionException (src)
java.rmi.RemoteException
public java.lang.Object _setAttributes(ObjectName (src) pName,
AttributeList (src) pAttributes)
public AttributeList (src) setAttributes(ObjectName (src) pName,
AttributeList (src) pAttributes)
throws InstanceNotFoundException (src) ,
ReflectionException (src) ,
java.rmi.RemoteException
InstanceNotFoundException (src)
ReflectionException (src)
java.rmi.RemoteException
public java.lang.Object _createMBean(java.lang.String pClass,
ObjectName (src) pName,
java.lang.Object[] pParameters,
java.lang.String[] pSignature)
public ObjectInstance (src) createMBean(java.lang.String pClass,
ObjectName (src) pName,
java.lang.Object[] pParameters,
java.lang.String[] pSignature)
throws InstanceAlreadyExistsException (src) ,
MBeanException (src) ,
MBeanRegistrationException (src) ,
NotCompliantMBeanException (src) ,
ReflectionException (src) ,
java.rmi.RemoteException
InstanceAlreadyExistsException (src)
MBeanException (src)
MBeanRegistrationException (src)
NotCompliantMBeanException (src)
ReflectionException (src)
java.rmi.RemoteExceptionpublic java.lang.Object _unregisterMBean(ObjectName (src) pName)
public void unregisterMBean(ObjectName (src) pName)
throws InstanceNotFoundException (src) ,
MBeanRegistrationException (src) ,
java.rmi.RemoteException
InstanceNotFoundException (src)
MBeanRegistrationException (src)
java.rmi.RemoteException
public void addNotificationListener(ObjectName (src) pBroadcaster,
ObjectName (src) pListener,
NotificationFilter (src) pFilter,
java.lang.Object pHandback)
throws InstanceNotFoundException (src) ,
java.rmi.RemoteException
InstanceNotFoundException (src)
java.rmi.RemoteException
public void removeNotificationListener(ObjectName (src) pBroadcaster,
ObjectName (src) pListener)
throws InstanceNotFoundException (src) ,
ListenerNotFoundException (src) ,
java.rmi.RemoteException
InstanceNotFoundException (src)
ListenerNotFoundException (src)
java.rmi.RemoteException
public ObjectName (src) preRegister(MBeanServer (src) pServer,
ObjectName (src) pName)
throws java.lang.Exception
preRegister in interface MBeanRegistration (src) preRegister in class ServiceMBeanSupport (src) pServer - Reference to the JMX Agent this MBean is registered onpName - Name specified by the creator of the MBean. Note that you can
overwrite it when the given ObjectName is null otherwise the
change is discarded (maybe a bug in JMX-RI).
java.lang.Exception
public void preDeregister()
throws java.lang.Exception
preDeregister in interface MBeanRegistration (src) preDeregister in class ServiceMBeanSupport (src) java.lang.Exceptionpublic java.lang.String getName()
ServiceMBeanSupport (src)
getName in interface ServiceMBean (src) getName in class ServiceMBeanSupport (src)
protected void createService()
throws java.lang.Exception
createService in class ServiceMBeanSupport (src) java.lang.Exception
protected void startService()
throws java.lang.Exception
startService in class ServiceMBeanSupport (src) java.lang.Exceptionprotected void stopService()
stopService in class ServiceMBeanSupport (src)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||