User: andreas
Date: 00/12/11 08:11:54
Modified: src/main/org/jboss/jmx/client RMIClientConnectorImpl.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.5 +24 -6 jboss/src/main/org/jboss/jmx/client/RMIClientConnectorImpl.java
Index: RMIClientConnectorImpl.java
===================================================================
RCS file:
/products/cvs/ejboss/jboss/src/main/org/jboss/jmx/client/RMIClientConnectorImpl.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- RMIClientConnectorImpl.java 2000/12/07 15:44:53 1.4
+++ RMIClientConnectorImpl.java 2000/12/11 16:11:54 1.5
@@ -177,7 +177,7 @@
public Object instantiate(
String pClassName,
- String[] pParams,
+ Object[] pParams,
String[] pSignature
) throws
ReflectionException,
@@ -195,7 +195,7 @@
public Object instantiate(
String pClassName,
ObjectName pLoaderName,
- String[] pParams,
+ Object[] pParams,
String[] pSignature
) throws
ReflectionException,
@@ -254,7 +254,7 @@
public ObjectInstance createMBean(
String pClassName,
ObjectName pName,
- String[] pParams,
+ Object[] pParams,
String[] pSignature
) throws
ReflectionException,
@@ -276,7 +276,7 @@
String pClassName,
ObjectName pName,
ObjectName pLoaderName,
- String[] pParams,
+ Object[] pParams,
String[] pSignature
) throws
ReflectionException,
@@ -378,6 +378,21 @@
}
}
+ public boolean isInstanceOf(
+ ObjectName pName,
+ String pClassName
+ ) throws
+ InstanceNotFoundException
+ {
+ try {
+ return mRemoteConnector.isInstanceOf( pName, pClassName );
+ }
+ catch( RemoteException re ) {
+ //AS Not a good style but for now
+ return false;
+ }
+ }
+
public Integer getMBeanCount(
) {
try {
@@ -440,7 +455,7 @@
}
}
- public void setAttributes(
+ public AttributeList setAttributes(
ObjectName pName,
AttributeList pAttributes
) throws
@@ -448,9 +463,11 @@
ReflectionException
{
try {
- mRemoteConnector.setAttributes( pName, pAttributes );
+ return mRemoteConnector.setAttributes( pName, pAttributes );
}
catch( RemoteException re ) {
+ //AS Not a good style but for now
+ return null;
}
}
@@ -728,3 +745,4 @@
}
}
}
+