Package java.rmi

Examples of java.rmi.MarshalledObject$MarshalledObjectInputStream


         // The cl on the thread should be set in another interceptor
         Object obj = getServer().invoke(mbean,
                                         "invoke",
                                         new Object[]{invocation},
                                         Invocation.INVOKE_SIGNATURE);
         return new MarshalledObject(obj);
      }
      catch(Exception e)
      {
         Throwable th = JMXExceptionDecoder.decode(e);
         if(log.isTraceEnabled())
View Full Code Here


         // Return the naming server stub
         try
         {
            OutputStream os = this.socket.getOutputStream();
            ObjectOutputStream out = new ObjectOutputStream(os);
            MarshalledObject replyStub = new MarshalledObject(DetachedHANamingService.this.stub);
            out.writeObject(replyStub);
            out.close();
         }
         catch (IOException ex)
         {
View Full Code Here

  public SignedAspect(Aspect extension, KeyPair keys) {
    publicKey = keys.getPublic();

    try {
      Signature signingEngine = Signature.getInstance(getSigningAlgorithm());
      signedExtension = new SignedObject(new MarshalledObject(extension), keys.getPrivate(), signingEngine);
    } catch (Exception e) {
      throw new IllegalArgumentException("failed to sign extension ("+e+")");
    }
  }
View Full Code Here

   {
      ArrayList ids = new ArrayList();
      for (int i = 0; i < names.length; ++i)
      {
         ObjectName name = names[i];
         MarshalledObject filter = filters[i];
         NotificationFilter f = (NotificationFilter)RMIMarshaller.unmarshal(filter, server.getClassLoaderFor(name), defaultLoader);
         Integer id = notificationHandler.generateListenerID(name, f);
         NotificationListener listener = notificationHandler.getServerNotificationListener();
         server.addNotificationListener(name, listener, f, id);
         notificationHandler.addNotificationListener(id, new NotificationTuple(name, listener, f, id));
View Full Code Here

         ArrayList ids = new ArrayList();
         for (int i = 0; i < delegates.length; ++i)
         {
            ObjectName name = ((ObjectName[])args[0])[i];
            MarshalledObject filter = ((MarshalledObject[])args[1])[i];
            Subject delegate = delegates[i];
            Object[] newArgs = new Object[] {new ObjectName[] {name}, new MarshalledObject[] {filter}, new Subject[] {delegate}};
            Integer id = ((Integer[])subjectInvoke(proxy, method, newArgs, delegate))[0];
            ids.add(id);
         }
View Full Code Here

           throws InstanceNotFoundException, IOException
   {
      NotificationTuple tuple = new NotificationTuple(observed, listener, filter, handback);
      if (notificationHandler.contains(tuple)) return;

      MarshalledObject f = null;
      try
      {
         f = RMIMarshaller.marshal(filter);
      }
      catch (NotSerializableException x)
View Full Code Here

   }

   public void addNotificationListener(ObjectName observed, ObjectName listener, NotificationFilter filter, Object handback)
           throws InstanceNotFoundException, IOException
   {
      MarshalledObject f = RMIMarshaller.marshal(filter);
      MarshalledObject h = RMIMarshaller.marshal(handback);
      connection.addNotificationListener(observed, listener, f, h, delegate);
   }
View Full Code Here

   }

   public void removeNotificationListener(ObjectName observed, ObjectName listener, NotificationFilter filter, Object handback)
           throws InstanceNotFoundException, ListenerNotFoundException, IOException
   {
      MarshalledObject f = RMIMarshaller.marshal(filter);
      MarshalledObject h = RMIMarshaller.marshal(handback);
      connection.removeNotificationListener(observed, listener, f, h, delegate);
   }
View Full Code Here

   }

   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

   }

   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

TOP

Related Classes of java.rmi.MarshalledObject$MarshalledObjectInputStream

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.