User: andreas 
  Date: 00/12/11 08:11:55

  Modified:    src/main/org/jboss/jmx/interfaces JMXConnector.java
                        RMIConnector.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       +11 -5     jboss/src/main/org/jboss/jmx/interfaces/JMXConnector.java
  
  Index: JMXConnector.java
  ===================================================================
  RCS file: 
/products/cvs/ejboss/jboss/src/main/org/jboss/jmx/interfaces/JMXConnector.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- JMXConnector.java 2000/12/07 15:44:54     1.2
  +++ JMXConnector.java 2000/12/11 16:11:55     1.3
  @@ -117,7 +117,7 @@
        **/
        public Object instantiate(
                String pClassName,
  -             String[] pParams,
  +             Object[] pParams,
                String[] pSignature
        ) throws
                ReflectionException,
  @@ -126,7 +126,7 @@
        public Object instantiate(
                String pClassName,
                ObjectName pLoaderName,
  -             String[] pParams,
  +             Object[] pParams,
                String[] pSignature
        ) throws
                ReflectionException,
  @@ -180,7 +180,7 @@
        public ObjectInstance createMBean(
                String pClassName,
                ObjectName pNameToAssign,
  -             String[] pParams,
  +             Object[] pParams,
                String[] pSignature
        ) throws
                ReflectionException,
  @@ -193,7 +193,7 @@
                String pClassName,
                ObjectName pName,
                ObjectName pLoaderName,
  -             String[] pParams,
  +             Object[] pParams,
                String[] pSignature
        ) throws
                ReflectionException,
  @@ -245,6 +245,12 @@
        public boolean isRegistered(
                ObjectName pName
        );
  +    
  +     public boolean isInstanceOf(
  +             ObjectName pName,
  +     String pClassName
  +     ) throws
  +             InstanceNotFoundException;
   
        public Integer getMBeanCount(
        );
  @@ -275,7 +281,7 @@
                MBeanException,
                ReflectionException;
   
  -     public void setAttributes(
  +     public AttributeList setAttributes(
                ObjectName pName,
                AttributeList pAttributes
        ) throws
  
  
  
  1.3       +13 -5     jboss/src/main/org/jboss/jmx/interfaces/RMIConnector.java
  
  Index: RMIConnector.java
  ===================================================================
  RCS file: 
/products/cvs/ejboss/jboss/src/main/org/jboss/jmx/interfaces/RMIConnector.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- RMIConnector.java 2000/12/07 15:44:54     1.2
  +++ RMIConnector.java 2000/12/11 16:11:55     1.3
  @@ -81,7 +81,7 @@
   
        public Object instantiate(
                String pClassName,
  -             String[] pParams,
  +             Object[] pParams,
                String[] pSignature
        ) throws
                ReflectionException,
  @@ -91,7 +91,7 @@
        public Object instantiate(
                String pClassName,
                ObjectName pLoaderName,
  -             String[] pParams,
  +             Object[] pParams,
                String[] pSignature
        ) throws
                ReflectionException,
  @@ -126,7 +126,7 @@
        public ObjectInstance createMBean(
                String pClassName,
                ObjectName pName,
  -             String[] pParams,
  +             Object[] pParams,
                String[] pSignature
        ) throws
                ReflectionException,
  @@ -140,7 +140,7 @@
                String pClassName,
                ObjectName pName,
                ObjectName pLoaderName,
  -             String[] pParams,
  +             Object[] pParams,
                String[] pSignature
        ) throws
                ReflectionException,
  @@ -190,6 +190,13 @@
        ) throws
                RemoteException;
   
  +     public boolean isInstanceOf(
  +             ObjectName pName,
  +             String pClassName
  +     ) throws
  +             InstanceNotFoundException,
  +             RemoteException;
  +
        public Integer getMBeanCount(
        ) throws
                RemoteException;
  @@ -223,7 +230,7 @@
                ReflectionException,
                RemoteException;
   
  -     public void setAttributes(
  +     public AttributeList setAttributes(
                ObjectName pName,
                AttributeList pAttributes
        ) throws
  @@ -272,3 +279,4 @@
                RemoteException;
   
   }
  +
  
  
  

Reply via email to