Package java.rmi

Examples of java.rmi.MarshalledObject$MarshalledObjectOutputStream


    *              for no query
    * @throws java.io.IOException for a communication problem during this operation
    */
   public Set queryNames(ObjectName name, QueryExp query) throws IOException
   {
      MarshalledObject args = new MarshalledObject(query);
      final ClassLoader current = activateDefaultClassLoader();

      try
      {
         return connection.queryNames(name, args, subject);
View Full Code Here


    */
   public void setAttribute(ObjectName name, Attribute attribute)
         throws InstanceNotFoundException, AttributeNotFoundException,
                InvalidAttributeValueException, MBeanException, ReflectionException, IOException
   {
      MarshalledObject args = new MarshalledObject(attribute);
      final ClassLoader current = activateDefaultClassLoader();

      try
      {
         connection.setAttribute(name, args, subject);
View Full Code Here

    * @throws java.io.IOException for a communication problem during this operation
    */
   public AttributeList setAttributes(ObjectName name, AttributeList attributes)
         throws InstanceNotFoundException, ReflectionException, IOException
   {
      MarshalledObject args = new MarshalledObject(attributes);
      final ClassLoader current = activateDefaultClassLoader();

      try
      {
         return connection.setAttributes(name, args, subject);
View Full Code Here

    * @throws java.io.IOException for a communication problem during this operation
    */
   public Object invoke(ObjectName name, String operationName, Object[] params, String[] signature)
         throws InstanceNotFoundException, MBeanException, ReflectionException, IOException
   {
      MarshalledObject args = new MarshalledObject(params);
      final ClassLoader current = activateDefaultClassLoader();

      try
      {
         return connection.invoke(name, operationName, args, signature, subject);
View Full Code Here

      {
         return;
      }
      else
      {
         MarshalledObject marshalledFilter = null;

         if(filter != null)
         {
            try
            {
               marshalledFilter = new MarshalledObject(filter);
            }
            catch(IOException e)
            {
               holder.setFilterOnClient(true);
            }
View Full Code Here

    */
   public void addNotificationListener(ObjectName name, ObjectName listener,
                                       NotificationFilter filter, Object handback)
         throws InstanceNotFoundException, IOException
   {
      MarshalledObject marshalledFilter = filter != null ? new MarshalledObject(filter) : null;
      MarshalledObject marshalledHandback = handback != null ? new MarshalledObject(handback) : null;
      connection.addNotificationListener(name, listener, marshalledFilter, marshalledHandback, subject);
   }
View Full Code Here

    */
   public void removeNotificationListener(ObjectName name, ObjectName listener,
                                          NotificationFilter filter, Object handback)
         throws InstanceNotFoundException, ListenerNotFoundException, IOException
   {
      MarshalledObject marshalledFilter = filter != null ? new MarshalledObject(filter) : null;
      MarshalledObject marshalledHandback = handback != null ? new MarshalledObject(handback) : null;
      connection.removeNotificationListener(name, listener, marshalledFilter, marshalledHandback, subject);
   }
View Full Code Here

          "className=" + className + ", name="
          + name + ", params="
          + objects(params) + ", signature="
          + strings(signature));

            final MarshalledObject sParams = new MarshalledObject(params);
            final ClassLoader old = pushDefaultClassLoader();
            try {
                return connection.createMBean(className,
               name,
               sParams,
View Full Code Here

    "createMBean(String,ObjectName,ObjectName,Object[],String[])",
    "className=" + className + ", name=" + name + ", loaderName="
    + loaderName + ", params=" + objects(params)
    + ", signature=" + strings(signature));

            final MarshalledObject sParams = new MarshalledObject(params);
            final ClassLoader old = pushDefaultClassLoader();
            try {
                return connection.createMBean(className,
               name,
               loaderName,
View Full Code Here

                               QueryExp query)
            throws IOException {
      if (logger.debugOn()) logger.debug("queryMBeans",
           "name=" + name + ", query=" + query);

            final MarshalledObject sQuery = new MarshalledObject(query);
            final ClassLoader old = pushDefaultClassLoader();
            try {
                return connection.queryMBeans(name, sQuery, delegationSubject);
      } catch (IOException ioe) {
    communicatorAdmin.gotIOException(ioe);
View Full Code Here

TOP

Related Classes of java.rmi.MarshalledObject$MarshalledObjectOutputStream

Copyright © 2018 www.massapicom. 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.