Package net.jini.jeri

Examples of net.jini.jeri.BasicILFactory


  for (int i = 0; i < exporters.length; i++) {
      exporters[i] =
    new BasicJeriExporter((i & 0x1) == 0 ?
              new EvilServerEndpoint() :
              goodServerEndpoint,
              new BasicILFactory(), false, false);
  }
  for (int i = 0; i < exporters.length; i++) {
      System.err.println("Exporting with " + exporters[i] + "...");
      exporters[i].export(new Remote() { });
  }
View Full Code Here


             * configuration.
             */
            try {
                Exporter defaultExporter =
                      new BasicJeriExporter(TcpServerEndpoint.getInstance(0),
                                            new BasicILFactory(),
                                            false, false);
                lookupListenerExporter =
                  (Exporter)thisConfig.getEntry(COMPONENT_NAME,
                                                "eventListenerExporter",
                                                Exporter.class,
View Full Code Here

                START_PACKAGE, "exporter", Exporter.class,
    new ActivationExporter(
        activationID,
        new BasicJeriExporter(
      TcpServerEndpoint.getInstance(0),
      new BasicILFactory(), false, true)),
    activationID);
  if (exporter == null) {
             throw new ConfigurationException(START_PACKAGE
       + ".exporter entry should not be null");
        }
View Full Code Here

    /** Initialization common to both activatable and transient instances. */
    private void doInit(Configuration config) throws Exception {
        exporter = (Exporter) getNonNullEntry(
            config, "exporter", Exporter.class,
            new BasicJeriExporter(TcpServerEndpoint.getInstance(0),
          new BasicILFactory(),
          false,
          true));
        // Export server instance and get its reference
        serverStub = (TestListener)exporter.export(this);
    }
View Full Code Here

    /** Initialization common to both activatable and transient instances. */
    private void doInit(Configuration config) throws Exception {
        Exporter exporter = (Exporter) getNonNullEntry(
            config, "exporter", Exporter.class,
            new BasicJeriExporter(TcpServerEndpoint.getInstance(0),
          new BasicILFactory(),
          false,
          true));
        // Export server instance and get its reference
        serverStub = exporter.export(this);
    }
View Full Code Here

    /** Initialization common to both activatable and transient instances. */
    private void doInit(Configuration config) throws Exception {
        exporter = (Exporter) getNonNullEntry(
            config, "exporter", Exporter.class,
            new BasicJeriExporter(TcpServerEndpoint.getInstance(0),
          new BasicILFactory(),
          false,
          true));
        // Export server instance and get its reference
        serverStub = (TestGenerator)exporter.export(this);
  generatorUuid = UuidFactory.generate();
View Full Code Here

        uuid = net.jini.id.UuidFactory.generate();

        Exporter exporter = (Exporter) Config.getNonNullEntry(
            config, TEST_SERVICE, "exporter", Exporter.class,
            new BasicJeriExporter(
                TcpServerEndpoint.getInstance(0), new BasicILFactory(), false, true));
        System.out.println("service exporter is: "
            +  exporter);
        // Export server instance and get its reference
        serverStub = (TestService)exporter.export(this);
        System.out.println("Service stub is: " + serverStub);
View Full Code Here

  return val;
    }
   
    public static void main(String[] args) throws Exception {
  testExport(new BasicJeriExporter(HttpServerEndpoint.getInstance(0),
           new BasicILFactory()));
 
  CountedSocketFactory csf = new CountedSocketFactory();
  CountedServerSocketFactory cssf = new CountedServerSocketFactory();
  testExport(
      new BasicJeriExporter(
    HttpServerEndpoint.getInstance(null, 0, csf, cssf),
    new BasicILFactory()));
  if (csf.clientSocketsCreated == 0 ||
      cssf.serverSocketsCreated == 0 ||
      cssf.serverSocketsAccepted == 0)
  {
      throw new Error();
View Full Code Here

    /** Initialization common to both activatable and transient instances. */
    private void doInit(Configuration config) throws Exception {
        exporter = (Exporter) getNonNullEntry(
            config, "exporter", Exporter.class,
            new BasicJeriExporter(TcpServerEndpoint.getInstance(0),
          new BasicILFactory(),
          false,
          true));
        // Export server instance and get its reference
        serverStub = (TestPullListener)exporter.export(this);
    }
View Full Code Here

     * Constraints for <code>getProxyVerifier</code> are set to
     * InvocationConstraints.EMPTY to avoid constraint conflicts when
     * obtaining the trust verifier.<p>
     */
    private BasicJeriExporter getExporter() {
        BasicILFactory factory =
            new BasicILFactory(SmartProxy.getMethodConstraints(),
                     SecureServerPermission.class);
        BasicJeriExporter exporter = null;
        try {
            exporter = new BasicJeriExporter(
        ProviderManager.getEndpoint(),
View Full Code Here

TOP

Related Classes of net.jini.jeri.BasicILFactory

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.