Package net.jini.export

Examples of net.jini.export.Exporter.export()


      } catch (ConfigurationException e) {
    throw new RemoteException("Configuration problem", e);
      }
  }
  listenerMap.put(listener, exporter);
  return exporter.export(listener);

    }

    protected void unexportListener(RemoteEventListener l, boolean force) {
  Exporter exporter = (Exporter) listenerMap.get(l);
View Full Code Here


               ProxyPreparer.class);
    } catch (ConfigurationException e) {
        throw new RemoteException("Configuration error", e);
    }
      }
      proxy = exporter.export(this);
        }//end constructor

  public Object writeReplace() throws ObjectStreamException {
      return proxy;
  }
View Full Code Here

    Exporter exporter = QAConfig.getDefaultExporter();
    if (c instanceof com.sun.jini.qa.harness.QAConfiguration) {
        exporter =
        (Exporter) c.getEntry("test", "outriggerListenerExporter", Exporter.class);
    }
    proxy = exporter.export(this);
      } catch (ConfigurationException e) {
    throw new RemoteException("Bad configuration", e);
      }
            this.throwRuntime = throwRuntime;
        }
View Full Code Here

             Exporter.class);
      } catch (ConfigurationException e) {
    throw new RemoteException("Configuration Error", e);
      }
  }
  proxy = exporter.export(this);
        maxEvNum = 0;
        this.template = template;
        this.leaseTime = leaseTime;
    }
View Full Code Here

    {
  ServerEndpoint se = getServerEndpoint(host, port, new SF(), null);
  InvocationLayerFactory ilf =
      new BasicILFactory(null, null, PingImpl.class.getClassLoader());
  Exporter exporter = new BasicJeriExporter(se, ilf, false, false);
  return (Ping) exporter.export(impl);
    }

    private static void tryWithAcc(AccessControlContext acc,
           final Ping proxy,
           int expectation)
View Full Code Here

  ServerEndpoint se2 = SslServerEndpoint.getInstance(HOST, PORT);
  InvocationLayerFactory ilf = new BasicILFactory();
  Exporter e1 = new BasicJeriExporter(se1, ilf);
  Exporter e2 = new BasicJeriExporter(se2, ilf);
  e1.export(new Remote() { });
  e2.export(new Remote() { });

  Thread.currentThread().sleep(5000);

  // If we got here, success. Otherwise an exception should
  // have been thrown. (IllegalArgumentException)
View Full Code Here

   *
   * - DGC call to A should fail.
   */
  Remote implA0 = new Remote() { };
  Exporter expA0 = new BasicJeriExporter(seA, ilf, false, false);
  expA0.export(implA0);
  System.err.println("\t{A0}");

  System.err.print("DGC call to A ");
  verifyFailure(dgcA);

View Full Code Here

   * - DGC call to B should succeed.
   * - DGC call to B with foreign UUID class should fail.
   */
  Remote implB1 = new Remote() { };
  Exporter expB1 = new BasicJeriExporter(seB, ilf, true, false);
  expB1.export(implB1);
  System.err.println("\t{A0}\t{B1}");

  System.err.print("DGC call to A ");
  verifyFailure(dgcA);
  System.err.print("DGC call to B ");
View Full Code Here

   *
   * - DGC call to A should now succeed.
   */
  Remote implA1 = new Remote() { };
  Exporter expA1 = new BasicJeriExporter(seA, ilf, true, false);
  expA1.export(implA1);
  System.err.println("\t{A0,A1}\t{B1}");

  System.err.print("DGC call to A ");
  verifySuccess(dgcA);

View Full Code Here

   * - DGC call to B should now fail.
   */

  Remote implB0 = new Remote() { };
  Exporter expB0 = new BasicJeriExporter(seB, ilf, false, false);
  expB0.export(implB0);
  System.err.println("\t{A0}\t{B0,B1}");

  implB1 = null;
  System.gc();
  Thread.sleep(3000);
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.