Package net.jini.export

Examples of net.jini.export.Exporter


    public boolean received = false;
    private Object proxy;

    public LeasedSpaceListener(Configuration c) 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);
  }
    }
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

    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

    public MonitoredSpaceListener(Configuration c, Entry tmpl, RemoteEventListener client,
            MarshalledObject regObject)
            throws IllegalAccessException, IOException
    {
  try {
      Exporter exporter = QAConfig.getDefaultExporter();
      if (c instanceof com.sun.jini.qa.harness.QAConfiguration) {
    exporter =
    (Exporter) c.getEntry("test", "outriggerListenerExporter", Exporter.class);
          context = (LoginContext) c.getEntry("test",
                    "spaceLoginContext",
                    LoginContext.class);
      }
      proxy = exporter.export(this);
      if (context != null) {
    context.login();
      }
  } catch (ConfigurationException e) {
      throw new RuntimeException("Bad configuration", e);
View Full Code Here

    public TrustVerifier getProxyVerifier() {
  return new TesterTransactionManagerProxyVerifier((TransactionManager) myRef);
    }

    private void doExport(Configuration c) throws RemoteException {
  Exporter exporter = QAConfig.getDefaultExporter();
  if (c instanceof com.sun.jini.qa.harness.QAConfiguration) {
      try {
    exporter = (Exporter) c.getEntry("test",
             "testerTransactionManagerExporter",
             Exporter.class);
      } catch (ConfigurationException e) {
    throw new RemoteException("Configuration error", e);
      }
  }
  myRef = exporter.export(this);
  proxy = TesterTransactionManagerProxy.getInstance(
         (TransactionManager) myRef, serviceID++);
    }
View Full Code Here

  lock       = new Integer(0);
  lock2      = new Integer(1);
  crashcount = System.currentTimeMillis();
  behavior   = new BitSet(OPERATION_COUNT);
  Configuration c = QAConfig.getConfig().getConfiguration();
  Exporter exporter = QAConfig.getDefaultExporter();
  if (c instanceof com.sun.jini.qa.harness.QAConfiguration) {
      try {
    exporter = (Exporter) c.getEntry("test",
             "transactionParticipantExporter",
             Exporter.class);
      } catch (ConfigurationException e) {
    throw new RemoteException("Configuration Error", e);
      }
  }
  proxy = (TransactionParticipant)exporter.export(this);
    }
View Full Code Here

    public void run() throws Exception {
        FakeActivationGroup.setLogger(logger);
        ActivationSystem system = new FakeActivationSystem(logger);
        ActivationGroupID agid = new FakeActivationGroupID(logger, system);
        ActivationID aid;
        Exporter exporter;
        try {
            aid = new ActivationID(null);
            ActivationGroup.inactive(aid, null);
            throw new TestException(
                    "ActivationException should be thrown"
View Full Code Here

     * @throws RemoteException if there is a problem exporting the object
     */
    public LeaseBackEndImpl(int leaseCount) throws RemoteException {
  owners = new LeaseOwner[leaseCount];
  leases = new TestLease[leaseCount];
  Exporter exporter = QAConfig.getDefaultExporter();
        try {
      Configuration c = QAConfig.getConfig().getConfiguration();
      if (c instanceof com.sun.jini.qa.harness.QAConfiguration) {
    exporter = (Exporter) c.getEntry("test",
             "leaseExporter",
             Exporter.class);
      }
  } catch (ConfigurationException e) {
      throw new RemoteException("Configuration problem", e);
  }
  stub = (LeaseBackEnd)exporter.export(this);
    }
View Full Code Here

     * @throws RemoteException if there is a problem exporting the object
     */
    public LeaseBackEndImpl(int leaseCount) throws RemoteException {
  owners = new LeaseOwner[leaseCount];
  leases = new TestLease[leaseCount];
  Exporter exporter = QAConfig.getDefaultExporter();
        try {
      Configuration c = QAConfig.getConfig().getConfiguration();
      if (c instanceof com.sun.jini.qa.harness.QAConfiguration) {
    exporter = (Exporter) c.getEntry("test",
             "leaseExporter",
             Exporter.class);
      }
  } catch (ConfigurationException e) {
      throw new RemoteException("Configuration problem", e);
  }
  stub = (LeaseBackEnd)exporter.export(this);
    }
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.