Package org.apache.tajo.rpc.test.DummyProtocol.DummyProtocolService

Examples of org.apache.tajo.rpc.test.DummyProtocol.DummyProtocolService.Interface


  @Test
  public void testUnresolvedAddress() throws Exception {
    String hostAndPort = NetUtils.normalizeInetSocketAddress(server.getListenAddress());
    AsyncRpcClient client = new AsyncRpcClient(DummyProtocol.class, NetUtils.createUnresolved(hostAndPort));
    Interface stub = client.getStub();
    EchoMessage echoMessage = EchoMessage.newBuilder()
        .setMessage(MESSAGE).build();
    CallFuture<EchoMessage> future = new CallFuture<EchoMessage>();
    stub.deley(null, echoMessage, future);

    assertFalse(future.isDone());
    assertEquals(future.get(), echoMessage);
    assertTrue(future.isDone());
    client.close();
View Full Code Here

TOP

Related Classes of org.apache.tajo.rpc.test.DummyProtocol.DummyProtocolService.Interface

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.