Package com.googlecode.protobuf.socketrpc.TestProtos.TestService

Examples of com.googlecode.protobuf.socketrpc.TestProtos.TestService.BlockingInterface


      ServiceException, IOException {
    BlockingRpcChannel blockingChannel = RpcChannels
        .newBlockingRpcChannel(clientConnectionFactory);
    RpcChannel channel = RpcChannels.newRpcChannel(clientConnectionFactory,
        threadPool);
    BlockingInterface blockingStub = TestService
        .newBlockingStub(blockingChannel);
    TestService stub = TestService.newStub(channel);

    try {
      rpcServer.startServer();
View Full Code Here


    return callback;
  }

  private Response callBlockingRpc(Request request, ErrorReason reason) {
    SocketRpcController controller = new SocketRpcController();
    BlockingInterface service = TestService.newBlockingStub(rpcChannel);
    try {
      Response response = service.testMethod(controller, request);
      assertNull(reason);
      return response;
    } catch (ServiceException e) {
      assertEquals(reason, controller.errorReason());
      return null;
View Full Code Here

  }

  private Response callSync(SocketRpcChannel rpcChannel,
      Request request, ErrorReason reason) {
    SocketRpcController controller = rpcChannel.newRpcController();
    BlockingInterface service = TestService.newBlockingStub(rpcChannel);
    try {
      Response response = service.testMethod(controller, request);
      assertNull(reason);
      return response;
    } catch (ServiceException e) {
      assertEquals(reason, controller.errorReason());
      return null;
View Full Code Here

TOP

Related Classes of com.googlecode.protobuf.socketrpc.TestProtos.TestService.BlockingInterface

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.