Package com.kurento.kmf.thrift

Examples of com.kurento.kmf.thrift.ThriftInterfaceConfiguration


  }

  public JsonRpcClientThrift(String serverAddress, int serverPort,
      String localAddress, int localPort) {

    this(new ThriftClientPoolService(new ThriftInterfaceConfiguration(
        serverAddress, serverPort)),
        new ThriftInterfaceExecutorService(
            new ThriftInterfaceConfiguration(serverAddress,
                serverPort)), new InetSocketAddress(
            localAddress, localPort));
  }
View Full Code Here


    if (thriftAddress != null) {

      long startWaiting = System.currentTimeMillis();

      ThriftClientPoolService clientPool = new ThriftClientPoolService(
          new ThriftInterfaceConfiguration(thriftAddress.getHost(),
              thriftAddress.getPort()));

      // Wait for a max of 20 seconds
      long timeout = System.currentTimeMillis() + 20000;
      while (true) {
View Full Code Here

  public JsonRpcServerThrift(JsonRpcHandler<?> jsonRpcHandler,
      String serverAddress, int serverPort) {

    this(jsonRpcHandler, new ThriftInterfaceExecutorService(
        new ThriftInterfaceConfiguration(serverAddress, serverPort)),
        new InetSocketAddress(serverAddress, serverPort));
  }
View Full Code Here

      });

  @Test
  public void test() throws TException {

    ThriftInterfaceConfiguration cfg = new ThriftInterfaceConfiguration();
    cfg.setServerAddress("127.0.0.1");
    cfg.setServerPort(19191);

    ThriftClientPoolService clientPool = new ThriftClientPoolService(
        cfg);

    ThriftInterfaceExecutorService executorService = new ThriftInterfaceExecutorService(
View Full Code Here

TOP

Related Classes of com.kurento.kmf.thrift.ThriftInterfaceConfiguration

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.