Factory<SSLContext> sslCtxFactory = cliConnCfg.isUseIgniteSslContextFactory() ? ctx.config().getSslContextFactory() : cliConnCfg.getSslContextFactory();
/** * Creates SQL connector configuration by copying all properties from given configuration. * * @param cfg Configuration to copy. */ public ClientConnectorConfiguration(ClientConnectorConfiguration cfg) { assert cfg != null; host = cfg.getHost(); maxOpenCursorsPerConn = cfg.getMaxOpenCursorsPerConnection(); port = cfg.getPort(); portRange = cfg.getPortRange(); sockRcvBufSize = cfg.getSocketReceiveBufferSize(); sockSndBufSize = cfg.getSocketSendBufferSize(); tcpNoDelay = cfg.isTcpNoDelay(); threadPoolSize = cfg.getThreadPoolSize(); idleTimeout = cfg.getIdleTimeout(); sslEnabled = cfg.isSslEnabled(); sslClientAuth = cfg.isSslClientAuth(); useIgniteSslCtxFactory = cfg.isUseIgniteSslContextFactory(); sslCtxFactory = cfg.getSslContextFactory(); }
/** * Create data transfer object for Sql connector configuration. * * @param cfg Sql connector configuration. */ public VisorClientConnectorConfiguration(ClientConnectorConfiguration cfg) { host = cfg.getHost(); port = cfg.getPort(); portRange = cfg.getPortRange(); maxOpenCursorsPerConn = cfg.getMaxOpenCursorsPerConnection(); sockSndBufSize = cfg.getSocketSendBufferSize(); sockRcvBufSize = cfg.getSocketReceiveBufferSize(); tcpNoDelay = cfg.isTcpNoDelay(); threadPoolSize = cfg.getThreadPoolSize(); idleTimeout = cfg.getIdleTimeout(); jdbcEnabled = cfg.isJdbcEnabled(); odbcEnabled = cfg.isOdbcEnabled(); thinCliEnabled = cfg.isThinClientEnabled(); sslEnabled = cfg.isSslEnabled(); useIgniteSslCtxFactory = cfg.isUseIgniteSslContextFactory(); sslClientAuth = cfg.isSslClientAuth(); sslCtxFactory = compactClass(cfg.getSslContextFactory()); }
Factory<SSLContext> sslCtxFactory = cliConnCfg.isUseIgniteSslContextFactory() ? ctx.config().getSslContextFactory() : cliConnCfg.getSslContextFactory();
/** * Creates SQL connector configuration by copying all properties from given configuration. * * @param cfg Configuration to copy. */ public ClientConnectorConfiguration(ClientConnectorConfiguration cfg) { assert cfg != null; host = cfg.getHost(); maxOpenCursorsPerConn = cfg.getMaxOpenCursorsPerConnection(); port = cfg.getPort(); portRange = cfg.getPortRange(); sockRcvBufSize = cfg.getSocketReceiveBufferSize(); sockSndBufSize = cfg.getSocketSendBufferSize(); tcpNoDelay = cfg.isTcpNoDelay(); threadPoolSize = cfg.getThreadPoolSize(); idleTimeout = cfg.getIdleTimeout(); sslEnabled = cfg.isSslEnabled(); sslClientAuth = cfg.isSslClientAuth(); useIgniteSslCtxFactory = cfg.isUseIgniteSslContextFactory(); sslCtxFactory = cfg.getSslContextFactory(); }
/** * Create data transfer object for Sql connector configuration. * * @param cfg Sql connector configuration. */ public VisorClientConnectorConfiguration(ClientConnectorConfiguration cfg) { host = cfg.getHost(); port = cfg.getPort(); portRange = cfg.getPortRange(); maxOpenCursorsPerConn = cfg.getMaxOpenCursorsPerConnection(); sockSndBufSize = cfg.getSocketSendBufferSize(); sockRcvBufSize = cfg.getSocketReceiveBufferSize(); tcpNoDelay = cfg.isTcpNoDelay(); threadPoolSize = cfg.getThreadPoolSize(); idleTimeout = cfg.getIdleTimeout(); jdbcEnabled = cfg.isJdbcEnabled(); odbcEnabled = cfg.isOdbcEnabled(); thinCliEnabled = cfg.isThinClientEnabled(); sslEnabled = cfg.isSslEnabled(); useIgniteSslCtxFactory = cfg.isUseIgniteSslContextFactory(); sslClientAuth = cfg.isSslClientAuth(); sslCtxFactory = compactClass(cfg.getSslContextFactory()); }