/// <exception cref="System.IO.IOException"/> public virtual ProtocolProxy <ProtocolMetaInfoPB> GetProtocolMetaInfoProxy(Client.ConnectionId connId, Configuration conf, SocketFactory factory) { Type protocol = typeof(ProtocolMetaInfoPB); return(new ProtocolProxy <ProtocolMetaInfoPB>(protocol, (ProtocolMetaInfoPB)Proxy. NewProxyInstance(protocol.GetClassLoader(), new Type[] { protocol }, new ProtobufRpcEngine.Invoker (protocol, connId, conf, factory)), false)); }
/// <summary>This constructor takes a connectionId, instead of creating a new one.</summary> private Invoker(Type protocol, Client.ConnectionId connId, Configuration conf, SocketFactory factory) { this.remoteId = connId; this.client = Clients.GetClient(conf, factory, typeof(ProtobufRpcEngine.RpcResponseWrapper )); this.protocolName = RPC.GetProtocolName(protocol); this.clientProtocolVersion = RPC.GetProtocolVersion(protocol); }
/// <exception cref="System.IO.IOException"/> public Invoker(Type protocol, IPEndPoint address, UserGroupInformation ticket, Configuration conf, SocketFactory factory, int rpcTimeout, AtomicBoolean fallbackToSimpleAuth ) { this.remoteId = Client.ConnectionId.GetConnectionId(address, protocol, ticket, rpcTimeout , conf); this.client = Clients.GetClient(conf, factory); this.fallbackToSimpleAuth = fallbackToSimpleAuth; }
/// <exception cref="System.IO.IOException"/> public virtual ProtocolProxy <ProtocolMetaInfoPB> GetProtocolMetaInfoProxy(Client.ConnectionId connId, Configuration conf, SocketFactory factory) { throw new NotSupportedException("This proxy is not supported"); }