org.objectweb.jonas.jmx.RMIConnectorImpl Class Reference

Inherits org.objectweb.jonas.jmx.RMIConnector.

Inheritance diagram for org.objectweb.jonas.jmx.RMIConnectorImpl:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.jonas.jmx.RMIConnectorImpl:

Collaboration graph
[legend]
List of all members.

Public Member Functions

java.util.Set queryNames (ObjectName name, QueryExp query) throws RemoteException
boolean isRegistered (ObjectName name) throws RemoteException
java.lang.Object getAttribute (ObjectName name, java.lang.String attribute) throws MBeanException, AttributeNotFoundException, InstanceNotFoundException, ReflectionException, RemoteException
void setAttribute (ObjectName name, Attribute attribute) throws InstanceNotFoundException, AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException, RemoteException
Object invoke (ObjectName name, java.lang.String operationName, java.lang.Object[] params, java.lang.String[] signature) throws InstanceNotFoundException, MBeanException, ReflectionException, RemoteException
MBeanInfo getMBeanInfo (ObjectName name) throws InstanceNotFoundException, IntrospectionException, ReflectionException, RemoteException
void addNotificationListener (ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) throws InstanceNotFoundException, RemoteException
void addNotificationListener (ObjectName name, ObjectName listener, NotificationFilter filter, Object handback) throws InstanceNotFoundException, RemoteException

Detailed Description

Implements RMIConnector, the interface for JMX Remote Calls used by thr management applications. Uses a simple remote delegation of the JMX methods called by the management applications.

Author:
Michel Bruno and Guillaume Riviere

Definition at line 51 of file RMIConnectorImpl.java.


Member Function Documentation

void org.objectweb.jonas.jmx.RMIConnectorImpl.addNotificationListener ObjectName  name,
ObjectName  listener,
NotificationFilter  filter,
Object  handback
throws InstanceNotFoundException, RemoteException
 

Adds a listener to a registered MBean.

Parameters:
name - The name of the MBean on which the listener should be added.
listener - The object name of the listener which will handle the notifications emitted by the registered MBean.
listener - The listener object which will handle the notifications emitted by the registered MBean.
filter - The filter object. If filter is null, no filtering will be performed before handling notifications.
handback - The context to be sent to the listener when a notification is emitted.

Implements org.objectweb.jonas.jmx.RMIConnector.

Definition at line 192 of file RMIConnectorImpl.java.

void org.objectweb.jonas.jmx.RMIConnectorImpl.addNotificationListener ObjectName  name,
NotificationListener  listener,
NotificationFilter  filter,
Object  handback
throws InstanceNotFoundException, RemoteException
 

Adds a listener to a registered MBean.

Parameters:
name - The name of the MBean on which the listener should be added.
listener - The listener object which will handle the notifications emitted by the registered MBean.
listener - The listener object which will handle the notifications emitted by the registered MBean.
filter - The filter object. If filter is null, no filtering will be performed before handling notifications.
handback - The context to be sent to the listener when a notification is emitted.

Implements org.objectweb.jonas.jmx.RMIConnector.

Definition at line 174 of file RMIConnectorImpl.java.

java.lang.Object org.objectweb.jonas.jmx.RMIConnectorImpl.getAttribute ObjectName  name,
java.lang.String  attribute
throws MBeanException, AttributeNotFoundException, InstanceNotFoundException, ReflectionException, RemoteException
 

Gets the value of a specific attribute of a named MBean.

Parameters:
name - The name of the MBean
attribute - the name of the attribute to be retrieved.
Returns:
The value of the retrieved attribute.

Definition at line 89 of file RMIConnectorImpl.java.

MBeanInfo org.objectweb.jonas.jmx.RMIConnectorImpl.getMBeanInfo ObjectName  name  )  throws InstanceNotFoundException, IntrospectionException, ReflectionException, RemoteException
 

This method discovers the attributes and operations that an MBean exposes for management.

Parameters:
name - The name of the MBean to analyze
Returns:
An instance of MBeanInfo allowing the retrieval of all attributes and operations of this MBean.

Implements org.objectweb.jonas.jmx.RMIConnector.

Definition at line 157 of file RMIConnectorImpl.java.

Object org.objectweb.jonas.jmx.RMIConnectorImpl.invoke ObjectName  name,
java.lang.String  operationName,
java.lang.Object[]  params,
java.lang.String[]  signature
throws InstanceNotFoundException, MBeanException, ReflectionException, RemoteException
 

Invokes an operation on an MBean.

Parameters:
name - The name of the MBean
operationName - The name of the operation to be invoked.
params - An array containing the parameters to be set when the operation is invoked
signature - An array containing the signature of the operation. The class objects will be loaded using the same class loader as the one used for loading the MBean on which the operation was invoked.
Returns:
The object returned by the operation

Definition at line 138 of file RMIConnectorImpl.java.

boolean org.objectweb.jonas.jmx.RMIConnectorImpl.isRegistered ObjectName  name  )  throws RemoteException
 

Checks whether an MBean, identified by its object name, is already registered with the MBean server.

Parameters:
name - The object name pattern identifying the MBeans

Implements org.objectweb.jonas.jmx.RMIConnector.

Definition at line 77 of file RMIConnectorImpl.java.

java.util.Set org.objectweb.jonas.jmx.RMIConnectorImpl.queryNames ObjectName  name,
QueryExp  query
throws RemoteException
 

Gets the names of MBeans controlled by the MBean server.

Parameters:
name - The object name pattern identifying the MBeans to be retrieved.
query - The query expression to be applied for selecting MBeans.
Returns:
A set containing the ObjectNames for the MBeans selected. If no MBean satisfies the query, an empty list is returned.

Implements org.objectweb.jonas.jmx.RMIConnector.

Definition at line 66 of file RMIConnectorImpl.java.

void org.objectweb.jonas.jmx.RMIConnectorImpl.setAttribute ObjectName  name,
Attribute  attribute
throws InstanceNotFoundException, AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException, RemoteException
 

Sets the value of a specific attribute of a named MBean.

Parameters:
name - The name of the MBean

Implements org.objectweb.jonas.jmx.RMIConnector.

Definition at line 110 of file RMIConnectorImpl.java.


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:07:02 2005 for JOnAS by  doxygen 1.3.9.1