Package net.jini.export

Examples of net.jini.export.Exporter


        " is invalid." + rstUtil.getFailureReason();
    throw new TestException(message);
      }

      // create yet another RemoteEventListener
      Exporter exp = null;
      RememberingRemoteListener newListener =
    new RememberingRemoteListener(getExporter());
      evReg =
    renewalSet[0].setExpirationWarningListener(newListener,
                 1, null);
View Full Code Here


    protected Object exportListener(RemoteEventListener listener)
  throws RemoteException
    {
  // wrap a configuration exception in a RemoteException to avoid having
  // to redefine the constructors for a million subclasses of BasicListener
  Exporter exporter = QAConfig.getDefaultExporter();
  Configuration c = config.getConfiguration();
  if (c instanceof com.sun.jini.qa.harness.QAConfiguration) {
      try {
    exporter = (Exporter) c.getEntry("test",
             "reggieListenerExporter",
             Exporter.class);
      } catch (ConfigurationException e) {
    throw new RemoteException("Configuration problem", e);
      }
  }
  listenerMap.put(listener, exporter);
  return exporter.export(listener);

    }
View Full Code Here

  return exporter.export(listener);

    }

    protected void unexportListener(RemoteEventListener l, boolean force) {
  Exporter exporter = (Exporter) listenerMap.get(l);
  if (exporter != null) {
      exporter.unexport(force);
      listenerMap.remove(l);
  }
    }
View Full Code Here

      throws RemoteException
        {
            super();
            this.regInfo = regInfo;
      Configuration c = getConfig().getConfiguration();
      Exporter exporter = QAConfig.getDefaultExporter();
      registrarPreparer = new BasicProxyPreparer();
      if (c instanceof com.sun.jini.qa.harness.QAConfiguration) {
    try {
        exporter = (Exporter) c.getEntry("test",
                 "fiddlerListenerExporter",
                 Exporter.class);
        registrarPreparer =
      (ProxyPreparer) c.getEntry("test",
               "reggiePreparer",
               ProxyPreparer.class);
    } catch (ConfigurationException e) {
        throw new RemoteException("Configuration error", e);
    }
      }
      proxy = exporter.export(this);
        }//end constructor
View Full Code Here

        /** Simple constructor */
        Listener(Configuration c,
     boolean throwRuntime) throws RemoteException
  {
      try {
    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

     *         If an error occured while trying to export this object.
     */
    public NotifyCounter(Entry template, long leaseTime)
            throws RemoteException {
  Configuration c = getConfiguration();
  Exporter exporter = QAConfig.getDefaultExporter();
  if (c instanceof com.sun.jini.qa.harness.QAConfiguration) {
      try {
    exporter = (Exporter) c.getEntry("test",
             "outriggerListenerExporter",
             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

        }

        /* Handle items and duties related to exporting this service. */
        ServerEndpoint endpoint = TcpServerEndpoint.getInstance(0);
        InvocationLayerFactory ilFactory = new BasicILFactory();
        Exporter defaultExporter = new BasicJeriExporter(endpoint,
                                                         ilFactory,
                                                         false,
                                                         true);
        /* For the activatable server */
        if(activationID != null) {
View Full Code Here

  throws ExportException, UnsupportedConstraintException
    {
  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);
    }
View Full Code Here

  // Get the exporter

  /* What we use for the default (or in the default activatable case
   * what we make the underlying exporter).
   */
  final Exporter basicExporter =
      new BasicJeriExporter(TcpServerEndpoint.getInstance(0),
          new BasicILFactory(), false, true);
  if (activationID == null) {
      exporter = (Exporter)Config.getNonNullEntry(config,
    COMPONENT_NAME,  "serverExporter", Exporter.class,
View Full Code Here

          getPreparer(config, "systemPreparer");
      monPreparer = getPreparer(config,
              "monitorPreparer");
      TcpServerEndpoint se =
          TcpServerEndpoint.getInstance(0);
      Exporter defaultExporter =
          new BasicJeriExporter(se, new AccessILFactory());
      exporter = (Exporter) config.getEntry(
        PHOENIX, "instantiatorExporter",
        Exporter.class, defaultExporter);
      if (exporter == null) {
View Full Code Here

TOP

Related Classes of net.jini.export.Exporter

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.