Package com.facebook.nifty.client

Examples of com.facebook.nifty.client.FramedClientConnector


        int port = serverSocket.getLocalPort();

        final NiftyClient client = new NiftyClient();
        try {
            ListenableFuture<FramedClientChannel> future =
                            client.connectAsync(new FramedClientConnector(new InetSocketAddress(port)),
                                                TEST_CONNECT_TIMEOUT,
                                                TEST_READ_TIMEOUT,
                                                TEST_WRITE_TIMEOUT,
                                                TEST_MAX_FRAME_SIZE);
            // Wait while NiftyClient attempts to connect the channel
View Full Code Here


      directClientProxyProtocol = RPC.getProxy(ClientProxyProtocol.class,
          ClientProxyProtocol.versionID, nameNodeAddr, conf);

      clientManager = new ThriftClientManager();
      FramedClientConnector connector = new FramedClientConnector(HostAndPort.fromParts(
          proxyHostname, proxyPortThrift));
      proxyTClientProxyProtocol = clientManager.createClient(connector, TClientProxyProtocol.class)
          .get();

      proxyClientProxyProtocol = RPC.getProxy(ClientProxyProtocol.class,
View Full Code Here

          FSConstants.DFS_CLUSTER_NAME)));
      conf.setInt(StorageServiceConfigKeys.PROXY_THRIFT_PORT_KEY, proxy.getThriftPort());
      conf.setInt(StorageServiceConfigKeys.PROXY_RPC_PORT_KEY, proxy.getRPCPort());

      clientManager = new ThriftClientManager();
      FramedClientConnector connector = new FramedClientConnector(
          StorageServiceConfigKeys.getProxyThriftAddress(conf));
      clientThrift = clientManager.createClient(connector, TClientProxyProtocol.class).get();

      clientRPC = RPC.getProxy(ClientProxyProtocol.class, ClientProxyProtocol.versionID,
          StorageServiceConfigKeys.getProxyRPCAddress(conf), conf);
View Full Code Here

TOP

Related Classes of com.facebook.nifty.client.FramedClientConnector

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.