Ejemplo n.º 1
0
        /// <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));
        }
Ejemplo n.º 2
0
 /// <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);
 }
Ejemplo n.º 3
0
 /// <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;
 }
Ejemplo n.º 4
0
 /// <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");
 }