User: user57
Date: 01/07/25 20:50:49
Modified: src/main/org/jboss/jmx/interfaces JMXAdaptor.java
Log:
o re-indent and documented (mostly) JMXAdapter
o moved server.invoke() in Deployer to Deployer.invoke(), which will
decode JMX exceptions.
Revision Changes Path
1.3 +96 -41 jboss/src/main/org/jboss/jmx/interfaces/JMXAdaptor.java
Index: JMXAdaptor.java
===================================================================
RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/jmx/interfaces/JMXAdaptor.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- JMXAdaptor.java 2000/12/07 15:44:54 1.2
+++ JMXAdaptor.java 2001/07/26 03:50:49 1.3
@@ -6,6 +6,9 @@
*/
package org.jboss.jmx.interfaces;
+import java.util.Set;
+import java.util.Collection;
+
import java.rmi.Remote;
import java.rmi.RemoteException;
@@ -20,50 +23,102 @@
import javax.management.ReflectionException;
/**
- * <description>
+ * The remote interface of a JMX adapter.
*
- * @see <related>
- * @author <firstname> <lastname> (<email>)
- * @version $Revision: 1.2 $
+ * @author Unknown
+ * @version $Revision: 1.3 $
*/
public interface JMXAdaptor
extends Remote
{
- // Constants -----------------------------------------------------
-
- // Static --------------------------------------------------------
-
- // Public --------------------------------------------------------
- public java.lang.Object invoke(ObjectName name,
- java.lang.String actionName,
- java.lang.Object[] params,
- java.lang.String[] signature)
- throws InstanceNotFoundException,
- MBeanException,
- ReflectionException,
- RemoteException;
-
- public java.util.Set queryMBeans(ObjectName name,
- QueryExp query)
- throws RemoteException;
-
- public java.util.Collection getMBeanInfos()
- throws RemoteException;
-
- public void setAttribute(ObjectName name,
- Attribute attribute)
- throws InstanceNotFoundException,
- AttributeNotFoundException,
- InvalidAttributeValueException,
- MBeanException,
- ReflectionException,
- RemoteException;
-
- public java.lang.Object getAttribute(ObjectName name,
- java.lang.String attribute)
- throws MBeanException,
- AttributeNotFoundException,
- InstanceNotFoundException,
- ReflectionException,
- RemoteException;
+ /**
+ * Invokes an operation on an MBean.
+ *
+ * @param name The object name of the MBean on which the method
+ * is to be invoked.
+ * @param actionName The name of the operation to be
+ * @param params An array containing the parameters to be set when
+ * the operation is invoked.
+ * @param signature An array containing the signature of the operation.
+ * @return The object returned by the operation, which
+ * represents the result ofinvoking the operation on
+ * the MBean specified.
+ *
+ * @throws InstanceNotFoundException
+ * @throws MBeanException
+ * @throws ReflectionException
+ * @throws RemoteException
+ */
+ Object invoke(ObjectName name,
+ String actionName,
+ Object[] params,
+ String[] signature)
+ throws InstanceNotFoundException, MBeanException, ReflectionException,
+ RemoteException;
+
+ /**
+ * Gets MBeans controlled by the MBean server.
+ *
+ * @param name The object name pattern identifying the MBeans to be
+ * retrieved. If null or no domain and key properties are
+ * specified, all the MBeans registered will be retrieved.
+ * @param query The query expression to be applied for selecting MBeans.
+ * If null no query expression will be applied for selecting
+ * MBeans.
+ * @return A set containing the ObjectInstance objects for the
+ * selected MBeans. If no MBean satisfies the query an
+ * empty list is returned.
+ *
+ * @throws RemoteException
+ */
+ Set queryMBeans(ObjectName name, QueryExp query) throws RemoteException;
+
+ /**
+ * ???
+ *
+ * @return ???
+ *
+ * @throws RemoteException
+ */
+ Collection getMBeanInfos() throws RemoteException;
+
+ /**
+ * Sets the value of a specific attribute of a named MBean.
+ *
+ * @param name The name of the MBean within which the attribute is
+ * to be set.
+ * @param attribute The identification of the attribute to be set and
+ * the value it is to be set to.
+ *
+ * @throws InstanceNotFoundException
+ * @throws AttributeNotFoundException
+ * @throws InvalidAttributeValueException
+ * @throws MBeanException
+ * @throws ReflectionException
+ * @throws RemoteException
+ */
+ void setAttribute(ObjectName name, Attribute attribute)
+ throws InstanceNotFoundException, AttributeNotFoundException,
+ InvalidAttributeValueException, MBeanException,
+ ReflectionException, RemoteException;
+
+ /**
+ * Gets the value of a specific attribute of a named MBean.
+ *
+ * @param name The object name of the MBean from which the
+ * attribute is to be retrieved.
+ * @param attribute A String specifying the name of the attribute to be
+ * retrieved.
+ *
+ * @throws InstanceNotFoundException
+ * @throws AttributeNotFoundException
+ * @throws InvalidAttributeValueException
+ * @throws MBeanException
+ * @throws ReflectionException
+ * @throws RemoteException
+ */
+ Object getAttribute(ObjectName name, String attribute)
+ throws MBeanException, AttributeNotFoundException,
+ InstanceNotFoundException, ReflectionException,
+ RemoteException;
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development