@Override public void initChannel(SocketChannel channel) throws Exception { // SSL handler should be added first in the pipeline if (clientSSLContext != null) { SSLEngine sslEngine = clientSSLContext.createSSLEngine( serverSocketAddress.getAddress().getHostAddress(), serverSocketAddress.getPort()); sslEngine.setUseClientMode(true); // Enable hostname verification for remote SSL connections if (!serverSocketAddress.getAddress().isLoopbackAddress()) { SSLParameters newSSLParameters = sslEngine.getSSLParameters(); config.setSSLVerifyHostname(newSSLParameters); sslEngine.setSSLParameters(newSSLParameters); } channel.pipeline().addLast("ssl", new SslHandler(sslEngine)); } channel.pipeline().addLast(protocol.getClientChannelHandlers()); } });
public void start() throws IOException { TaskEventDispatcher taskEventDispatcher = new TaskEventDispatcher(); NettyProtocol protocol = new NettyProtocol( partitionProvider, taskEventDispatcher, true); server.init(protocol, bufferPool); }
@Override public void initChannel(SocketChannel channel) throws Exception { if (serverSSLContext != null) { SSLEngine sslEngine = serverSSLContext.createSSLEngine(); config.setSSLVerAndCipherSuites(sslEngine); sslEngine.setUseClientMode(false); channel.pipeline().addLast("ssl", new SslHandler(sslEngine)); } channel.pipeline().addLast(protocol.getServerChannelHandlers()); } });
@Override public void initChannel(SocketChannel channel) throws Exception { // SSL handler should be added first in the pipeline if (clientSSLFactory != null) { SslHandler sslHandler = clientSSLFactory.createNettySSLHandler( serverSocketAddress.getAddress().getCanonicalHostName(), serverSocketAddress.getPort()); channel.pipeline().addLast("ssl", sslHandler); } channel.pipeline().addLast(protocol.getClientChannelHandlers()); } });
@Override public void start(ResultPartitionProvider partitionProvider, TaskEventDispatcher taskEventDispatcher) throws IOException { NettyProtocol partitionRequestProtocol = new NettyProtocol( partitionProvider, taskEventDispatcher, client.getConfig().isCreditBasedEnabled()); client.init(partitionRequestProtocol, bufferPool); server.init(partitionRequestProtocol, bufferPool); }
@Override public void initChannel(SocketChannel channel) throws Exception { if (serverSSLContext != null) { SSLEngine sslEngine = serverSSLContext.createSSLEngine(); config.setSSLVerAndCipherSuites(sslEngine); sslEngine.setUseClientMode(false); channel.pipeline().addLast("ssl", new SslHandler(sslEngine)); } channel.pipeline().addLast(protocol.getServerChannelHandlers()); } });
@Override public void initChannel(SocketChannel channel) throws Exception { // SSL handler should be added first in the pipeline if (clientSSLFactory != null) { SslHandler sslHandler = clientSSLFactory.createNettySSLHandler( serverSocketAddress.getAddress().getCanonicalHostName(), serverSocketAddress.getPort()); channel.pipeline().addLast("ssl", sslHandler); } channel.pipeline().addLast(protocol.getClientChannelHandlers()); } });
@Override public void start(ResultPartitionProvider partitionProvider, TaskEventDispatcher taskEventDispatcher) throws IOException { NettyProtocol partitionRequestProtocol = new NettyProtocol( partitionProvider, taskEventDispatcher, client.getConfig().isCreditBasedEnabled()); client.init(partitionRequestProtocol, bufferPool); server.init(partitionRequestProtocol, bufferPool); }
@Override public void initChannel(SocketChannel channel) throws Exception { // SSL handler should be added first in the pipeline if (clientSSLContext != null) { SSLEngine sslEngine = clientSSLContext.createSSLEngine( serverSocketAddress.getAddress().getCanonicalHostName(), serverSocketAddress.getPort()); sslEngine.setUseClientMode(true); // Enable hostname verification for remote SSL connections if (!serverSocketAddress.getAddress().isLoopbackAddress()) { SSLParameters newSSLParameters = sslEngine.getSSLParameters(); config.setSSLVerifyHostname(newSSLParameters); sslEngine.setSSLParameters(newSSLParameters); } channel.pipeline().addLast("ssl", new SslHandler(sslEngine)); } channel.pipeline().addLast(protocol.getClientChannelHandlers()); } });
@Override public void start(ResultPartitionProvider partitionProvider, TaskEventDispatcher taskEventDispatcher) throws IOException { NettyProtocol partitionRequestProtocol = new NettyProtocol( partitionProvider, taskEventDispatcher, client.getConfig().isCreditBasedEnabled()); client.init(partitionRequestProtocol, bufferPool); server.init(partitionRequestProtocol, bufferPool); }