Package org.apache.etch.bindings.java.support

Examples of org.apache.etch.bindings.java.support.ServerFactory.transportControl()


    final String uri = "tcp://localhost:4004";
   
    ServerFactory listener = PerfHelper.newListener( uri, null,
      new MainPerfListener() );

    listener.transportControl( Transport.START_AND_WAIT_UP, 4000 );
   
    System.out.println( "ready" );
  }

  public PerfServer newPerfServer( RemotePerfClient client )
View Full Code Here


    final ServerFactory listener;

    if (startListener)
    {
      listener = PerfHelper.newListener( uri, null, implFactory );
      listener.transportControl( Transport.START_AND_WAIT_UP, maxWaitTime );
    }
    else
    {
      listener = null;
    }
View Full Code Here

        perfReport2( nThreads );
      }
    }

    if (listener != null)
      listener.transportControl( Transport.STOP_AND_WAIT_DOWN, maxWaitTime );
  }

  private static void perfReport2( int threads ) throws Exception
  {
    new PerfTest( "report2", runtime, trials, threads )
View Full Code Here

   
    ServerFactory listener = ExampleHelper.newListener( uri, null,
      new MainExampleListener() );

    // Start the Listener
    listener.transportControl( Transport.START_AND_WAIT_UP, 4000 );
  }

  public ExampleServer newExampleServer( RemoteExampleClient client )
  {
    return new ImplExampleServer( client );
View Full Code Here

    String uri = "tcp://0.0.0.0:4007";
   
    ServerFactory listener = DistributedHashTableHelper.newListener( uri, null,
      new MainDistributedHashTableListener() );

    listener.transportControl( Transport.START_AND_WAIT_UP, 4000 );
  }
 
  private final Map<String, Object> map =
    Collections.synchronizedMap( new HashMap<String, Object>() );
View Full Code Here

   
    ServerFactory listener = ExampleHelper.newListener( uri, null,
      new MainExampleListener() );

    // Start the Listener
    listener.transportControl( Transport.START_AND_WAIT_UP, 4000 );
  }

  public ExampleServer newExampleServer( RemoteExampleClient client )
  {
    return new ImplExampleServer( client );
View Full Code Here

    String uri = "tcp://0.0.0.0:4001";
   
    ServerFactory listener = TypesHelper.newListener( uri, null,
      new MainTypesListener() );

    listener.transportControl( Transport.START_AND_WAIT_UP, 4000 );
  }

  public TypesServer newTypesServer( RemoteTypesClient client )
  {
    return new ImplTypesServer( client );
View Full Code Here

  {
    String uri = "tcp://0.0.0.0:4006";
   
    ServerFactory listener = ClosingHelper.newListener( uri, null, new MainClosingListener() );

    listener.transportControl( Transport.START_AND_WAIT_UP, 4000 );
   
    InetSocketAddress localAddr = (InetSocketAddress) listener.transportQuery( TcpListener.LOCAL_ADDRESS );
    URL u = new URL( "tcp:" );
    u.setHost( localAddr.getHostName() );
    u.setPort( localAddr.getPort() );
View Full Code Here

   
    ServerFactory listener = HelloWorldHelper.newListener( uri, null,
      new MainHelloWorldListener() );

    // Start the Listener
    listener.transportControl( Transport.START_AND_WAIT_UP, 4000 );
  }

  public HelloWorldServer newHelloWorldServer( RemoteHelloWorldClient client )
  {
    return new ImplHelloWorldServer( client );
View Full Code Here

  {
    String uri = "tcp://0.0.0.0:4001";

    ServerFactory listener = FooHelper.newListener( uri, null, new MainFooListener() );

    listener.transportControl( Transport.START_AND_WAIT_UP, 4000 );
  }

  /**
   * Constructs the MainFooListener.
   */
 
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.