Package org.apache.hadoop.hbase.ipc.protobuf.generated.TestProtos

Examples of org.apache.hadoop.hbase.ipc.protobuf.generated.TestProtos.EmptyRequestProto


    ProtobufRpcClientEngine clientEngine =
        new ProtobufRpcClientEngine(conf, HConstants.CLUSTER_ID_DEFAULT);
    try {
      TestRpcService client = clientEngine.getProxy(TestRpcService.class, addr, conf, 100000);
      // Test ping method
      EmptyRequestProto emptyRequest = EmptyRequestProto.newBuilder().build();
      client.ping(null, emptyRequest);

      // Test echo method
      EchoRequestProto echoRequest = EchoRequestProto.newBuilder().setMessage("hello").build();
      EchoResponseProto echoResponse = client.echo(null, echoRequest);
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hbase.ipc.protobuf.generated.TestProtos.EmptyRequestProto

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.