User: andreas
Date: 00/12/11 08:11:56
Modified: src/main/org/jboss/jmx/server JMXAdaptorImpl.java
RMIConnectorImpl.java
Log:
Adjusted the JMX RMI-Connector to the actual MBean-
Server interface (setAttributes() does not return Attribute-
List and some parameter are not of the right type).
Revision Changes Path
1.3 +6 -6 jboss/src/main/org/jboss/jmx/server/JMXAdaptorImpl.java
Index: JMXAdaptorImpl.java
===================================================================
RCS file:
/products/cvs/ejboss/jboss/src/main/org/jboss/jmx/server/JMXAdaptorImpl.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- JMXAdaptorImpl.java 2000/12/07 15:44:56 1.2
+++ JMXAdaptorImpl.java 2000/12/11 16:11:55 1.3
@@ -31,12 +31,12 @@
import org.jboss.jmx.interfaces.JMXAdaptor;
/**
- * <description>
- *
- * @see <related>
- * @author Rickard �berg ([EMAIL PROTECTED])
- * @version $Revision: 1.2 $
- */
+* <description>
+*
+* @see <related>
+* @author Rickard �berg ([EMAIL PROTECTED])
+* @version $Revision: 1.3 $
+*/
public class JMXAdaptorImpl
extends UnicastRemoteObject
implements JMXAdaptor
1.3 +17 -6 jboss/src/main/org/jboss/jmx/server/RMIConnectorImpl.java
Index: RMIConnectorImpl.java
===================================================================
RCS file:
/products/cvs/ejboss/jboss/src/main/org/jboss/jmx/server/RMIConnectorImpl.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- RMIConnectorImpl.java 2000/12/07 15:44:56 1.2
+++ RMIConnectorImpl.java 2000/12/11 16:11:56 1.3
@@ -125,7 +125,7 @@
public Object instantiate(
String pClassName,
- String[] pParams,
+ Object[] pParams,
String[] pSignature
) throws
ReflectionException,
@@ -150,7 +150,7 @@
public Object instantiate(
String pClassName,
ObjectName pLoaderName,
- String[] pParams,
+ Object[] pParams,
String[] pSignature
) throws
ReflectionException,
@@ -207,7 +207,7 @@
public ObjectInstance createMBean(
String pClassName,
ObjectName pName,
- String[] pParams,
+ Object[] pParams,
String[] pSignature
) throws
ReflectionException,
@@ -230,7 +230,7 @@
String pClassName,
ObjectName pName,
ObjectName pLoaderName,
- String[] pParams,
+ Object[] pParams,
String[] pSignature
) throws
ReflectionException,
@@ -315,6 +315,16 @@
return mServer.isRegistered( pName );
}
+ public boolean isInstanceOf(
+ ObjectName pName,
+ String pClassName
+ ) throws
+ InstanceNotFoundException,
+ RemoteException
+ {
+ return mServer.isInstanceOf( pName, pClassName );
+ }
+
public Integer getMBeanCount(
) throws
RemoteException
@@ -360,7 +370,7 @@
mServer.setAttribute( pName, pAttribute );
}
- public void setAttributes(
+ public AttributeList setAttributes(
ObjectName pName,
AttributeList pAttributes
) throws
@@ -368,7 +378,7 @@
ReflectionException,
RemoteException
{
- mServer.setAttributes( pName, pAttributes );
+ return mServer.setAttributes( pName, pAttributes );
}
public Object invoke(
@@ -581,3 +591,4 @@
}
}
}
+