Package com.kurento.tool.rom.test

Source Code of com.kurento.tool.rom.test.ThriftRomTest

package com.kurento.tool.rom.test;

import com.kurento.kmf.jsonrpcconnector.client.JsonRpcClient;
import com.kurento.kmf.thrift.jsonrpcconnector.JsonRpcClientThrift;
import com.kurento.kmf.thrift.jsonrpcconnector.JsonRpcServerThrift;
import com.kurento.tool.rom.transport.jsonrpcconnector.RomServerJsonRpcHandler;

public class ThriftRomTest extends AbstractRomTest {

  private JsonRpcServerThrift server;

  @Override
  protected JsonRpcClient createJsonRpcClient() {
    return new JsonRpcClientThrift("127.0.0.1", 6463, "127.0.0.1", 7979);
  }

  @Override
  protected void startJsonRpcServer(RomServerJsonRpcHandler jsonRpcHandler) {
    server = new JsonRpcServerThrift(jsonRpcHandler, "127.0.0.1", 6463);
    server.start();
  }

  @Override
  protected void destroyJsonRpcServer() {
    server.destroy();
  }
}
TOP

Related Classes of com.kurento.tool.rom.test.ThriftRomTest

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.