Package com.kurento.kms.thrift.api.KmsMediaServerService

Examples of com.kurento.kms.thrift.api.KmsMediaServerService.Client


   *             problem in the transport
   */
  public <P, R> Response<R> internalSendRequestThrift(Request<P> request,
      Class<R> resultClass) throws ThriftTransportException {

    Client client = clientPool.acquireSync();

    try {

      log.debug("Req-> {}", request);

      processRequest(request);

      String responseStr = client.invokeJsonRpc(request.toString());

      log.debug("<-Res {}", responseStr.trim());

      Response<R> response = JsonUtils.fromJsonResponse(responseStr,
          resultClass);
View Full Code Here


    ThriftServer server = new ThriftServer(serverProcessor,
        executorService, new InetSocketAddress("127.0.0.1", 19191));
    server.start();

    Client client = clientPool.acquireSync();

    String message = "Test echo message";

    String result = client.invokeJsonRpc(message);

    Assert.assertEquals(message, result);

    clientServer.destroy();
    server.destroy();
View Full Code Here

TOP

Related Classes of com.kurento.kms.thrift.api.KmsMediaServerService.Client

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.