Examples of MarshalledInstance


Examples of net.jini.io.MarshalledInstance

  Ping proxy = (Ping) exporter.export(impl);
  /*
   * Create another proxy that will use a different connection
   * than the first (SocketFactory does not override equals).
   */
  Ping proxy2 = (Ping) (new MarshalledInstance(proxy)).get(false);

  Executor systemThreadPool =
      (Executor) (new GetThreadPoolAction(false)).run();
  Executor userThreadPool =
      (Executor) (new GetThreadPoolAction(true)).run();
View Full Code Here

Examples of net.jini.io.MarshalledInstance

  synchronized void activeObject(UID uid, MarshalledObject mobj)
      throws UnknownObjectException
  {
      getObjectEntry(uid).stub =
    new MarshalledWrapper(new MarshalledInstance(mobj));
  }
View Full Code Here

Examples of net.jini.io.MarshalledInstance

      if (removed) {
    throw new UnknownObjectException("object removed");
      } else if (!force && nstub != null) {
    return nstub;
      }
      MarshalledInstance marshalledProxy =
    new MarshalledInstance(inst.newInstance(getAID(uid), desc));
      nstub = new MarshalledWrapper(marshalledProxy);
      stub = nstub;
      return nstub;
  }
View Full Code Here

Examples of net.jini.io.MarshalledInstance

    private static void marshalAttributes(Entry[] attrs,
            ObjectOutputStream out)
  throws IOException
    {
  for (int i=0; i < attrs.length; i++) {
      out.writeObject(new MarshalledInstance(attrs[i]));
  }
  out.writeObject(null);
    }
View Full Code Here

Examples of net.jini.io.MarshalledInstance

     */
    private static Entry[] unmarshalAttributes(ObjectInputStream in)
  throws IOException, ClassNotFoundException
    {
  ArrayList attributes = new ArrayList();
  MarshalledInstance mi = null;
  while ((mi = (MarshalledInstance) in.readObject()) != null) {
      try {
    attributes.add((Entry) mi.get(false));
      } catch (Throwable e) {
    if (e instanceof Error &&
        ThrowableConstants.retryable(e) ==
      ThrowableConstants.BAD_OBJECT)
    {
View Full Code Here

Examples of net.jini.io.MarshalledInstance

    private static void marshalLocators(LookupLocator[] locators,
          ObjectOutputStream out)
  throws IOException
    {
  for (int i = 0; i < locators.length; i++) {
      out.writeObject(new MarshalledInstance(locators[i]));
  }
  out.writeObject(null);
    }
View Full Code Here

Examples of net.jini.io.MarshalledInstance

     */
    private static LookupLocator[] unmarshalLocators(ObjectInputStream in)
  throws IOException, ClassNotFoundException
    {
  List l = new ArrayList();
  MarshalledInstance mi;
  while ((mi = (MarshalledInstance) in.readObject()) != null) {
      try {
    l.add((LookupLocator) mi.get(false));
      } catch (Throwable e) {
    if (e instanceof Error &&
        ThrowableConstants.retryable(e) ==
      ThrowableConstants.BAD_OBJECT)
    {
View Full Code Here

Examples of net.jini.io.MarshalledInstance

   */
  private void writeObject(ObjectOutputStream stream)
      throws IOException
  {
      stream.defaultWriteObject();
      stream.writeObject(new MarshalledInstance(listener));
  }
View Full Code Here

Examples of net.jini.io.MarshalledInstance

   */
  private void readObject(ObjectInputStream stream)
      throws IOException, ClassNotFoundException
  {
      stream.defaultReadObject();
      MarshalledInstance mi = (MarshalledInstance) stream.readObject();
      try {
    listener = (RemoteEventListener) mi.get(false);
      } catch (Throwable e) {
    if (e instanceof Error &&
        ThrowableConstants.retryable(e) ==
      ThrowableConstants.BAD_OBJECT)
    {
View Full Code Here

Examples of net.jini.io.MarshalledInstance

    dout.writeUTF(groups[i]);
      }

      // write LUS proxy
      new ObjectOutputStream(out).writeObject(
    new MarshalledInstance(response.getRegistrar(), context));
  } catch (RuntimeException e) {
      throw new DiscoveryProtocolException(null, e);
  }
    }
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.