Examples of MarshalledObject


Examples of java.rmi.MarshalledObject

   }

   public ObjectInstance createMBean(String className, ObjectName objectName, Object[] args, String[] parameters)
           throws ReflectionException, InstanceAlreadyExistsException, MBeanRegistrationException, MBeanException, NotCompliantMBeanException, IOException
   {
      MarshalledObject arguments = RMIMarshaller.marshal(args);
      return connection.createMBean(className, objectName, arguments, parameters, delegate);
   }
View Full Code Here

Examples of java.rmi.MarshalledObject

   }

   public ObjectInstance createMBean(String className, ObjectName objectName, ObjectName loaderName, Object[] args, String[] parameters)
           throws ReflectionException, InstanceAlreadyExistsException, MBeanRegistrationException, MBeanException, NotCompliantMBeanException, InstanceNotFoundException, IOException
   {
      MarshalledObject arguments = RMIMarshaller.marshal(args);
      return connection.createMBean(className, objectName, loaderName, arguments, parameters, delegate);
   }
View Full Code Here

Examples of java.rmi.MarshalledObject

   }

   public void setAttribute(ObjectName objectName, Attribute attribute)
           throws InstanceNotFoundException, AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException, IOException
   {
      MarshalledObject attrib = RMIMarshaller.marshal(attribute);
      connection.setAttribute(objectName, attrib, delegate);
   }
View Full Code Here

Examples of java.rmi.MarshalledObject

   }

   public AttributeList setAttributes(ObjectName objectName, AttributeList attributes)
           throws InstanceNotFoundException, ReflectionException, IOException
   {
      MarshalledObject attribs = RMIMarshaller.marshal(attributes);
      return connection.setAttributes(objectName, attribs, delegate);
   }
View Full Code Here

Examples of java.rmi.MarshalledObject

   }

   public Object invoke(ObjectName objectName, String methodName, Object[] args, String[] parameters)
           throws InstanceNotFoundException, MBeanException, ReflectionException, IOException
   {
      MarshalledObject arguments = RMIMarshaller.marshal(args);
      return connection.invoke(objectName, methodName, arguments, parameters, delegate);
   }
View Full Code Here

Examples of java.rmi.MarshalledObject

   }

   public Set queryMBeans(ObjectName patternName, QueryExp filter)
           throws IOException
   {
      MarshalledObject query = RMIMarshaller.marshal(filter);
      return connection.queryMBeans(patternName, query, delegate);
   }
View Full Code Here

Examples of java.rmi.MarshalledObject

   }

   public Set queryNames(ObjectName patternName, QueryExp filter)
           throws IOException
   {
      MarshalledObject query = RMIMarshaller.marshal(filter);
      return connection.queryNames(patternName, query, delegate);
   }
View Full Code Here

Examples of java.rmi.MarshalledObject

    * Returns a MarshalledObject obtained by marshalling the given object.
    */
   public static MarshalledObject marshal(Object object) throws IOException
   {
      if (object == null) return null;
      return new MarshalledObject(object);
   }
View Full Code Here

Examples of java.rmi.MarshalledObject

        }
        else if (obj instanceof Serializable)
        {
            try
            {
                MarshalledObject mo = new MarshalledObject(obj);
                map.put(name, mo);
            }
            catch (java.io.IOException e)
            {
                throw new NamingException("Unable to serialize object to JNDI: " + e);
View Full Code Here

Examples of java.rmi.MarshalledObject

    public void testEquals() throws Exception {
        String str = new String("TEST");
        String str1 = new String("TEST");
        String str2 = new String("TEST2");

        assertTrue(new MarshalledObject(str).equals(
                new MarshalledObject(str1)));
        assertTrue(! new MarshalledObject(str).equals(
                new MarshalledObject(str2)));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.