/// <exception cref="System.IO.IOException"/> public HAServiceProtocolClientSideTranslatorPB(IPEndPoint addr, Configuration conf , SocketFactory socketFactory, int timeout) { RPC.SetProtocolEngine(conf, typeof(HAServiceProtocolPB), typeof(ProtobufRpcEngine )); rpcProxy = RPC.GetProxy <HAServiceProtocolPB>(RPC.GetProtocolVersion(typeof(HAServiceProtocolPB )), addr, UserGroupInformation.GetCurrentUser(), conf, socketFactory, timeout); }
/// <exception cref="System.IO.IOException"/> public HAServiceProtocolClientSideTranslatorPB(IPEndPoint addr, Configuration conf ) { RPC.SetProtocolEngine(conf, typeof(HAServiceProtocolPB), typeof(ProtobufRpcEngine )); rpcProxy = RPC.GetProxy <HAServiceProtocolPB>(RPC.GetProtocolVersion(typeof(HAServiceProtocolPB )), addr, conf); }