Package org.apache.hadoop.ipc

Examples of org.apache.hadoop.ipc.GenericRefreshProtocol


    RPC.setProtocolEngine(conf, xface, ProtobufRpcEngine.class);
    GenericRefreshProtocolPB proxy = (GenericRefreshProtocolPB)
      RPC.getProxy(xface, RPC.getProtocolVersion(xface), address,
        ugi, conf, NetUtils.getDefaultSocketFactory(conf), 0);

    GenericRefreshProtocol xlator =
      new GenericRefreshProtocolClientSideTranslatorPB(proxy);

    // Refresh
    Collection<RefreshResponse> responses = xlator.refresh(identifier, args);

    int returnCode = 0;

    // Print refresh responses
    System.out.println("Refresh Responses:\n");
View Full Code Here

TOP

Related Classes of org.apache.hadoop.ipc.GenericRefreshProtocol

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.