if (!cliConnCfg.isThinClientEnabled()) throw new IgniteCheckedException("Thin client connection is not allowed, " + "see ClientConnectorConfiguration.thinClientEnabled.");
/** * 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()); }
/** * Writes the client connector configuration. * * @param w Writer. */ private static void writeClientConnectorConfiguration(BinaryRawWriter w, ClientConnectorConfiguration cfg) { assert w != null; if (cfg != null) { w.writeBoolean(true); w.writeString(cfg.getHost()); w.writeInt(cfg.getPort()); w.writeInt(cfg.getPortRange()); w.writeInt(cfg.getSocketSendBufferSize()); w.writeInt(cfg.getSocketReceiveBufferSize()); w.writeBoolean(cfg.isTcpNoDelay()); w.writeInt(cfg.getMaxOpenCursorsPerConnection()); w.writeInt(cfg.getThreadPoolSize()); w.writeLong(cfg.getIdleTimeout()); w.writeBoolean(cfg.isThinClientEnabled()); w.writeBoolean(cfg.isOdbcEnabled()); w.writeBoolean(cfg.isJdbcEnabled()); } else { w.writeBoolean(false); } }
if (!cliConnCfg.isThinClientEnabled()) throw new IgniteCheckedException("Thin client connection is not allowed, " + "see ClientConnectorConfiguration.thinClientEnabled.");
/** * 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()); }
/** * Writes the client connector configuration. * * @param w Writer. */ private static void writeClientConnectorConfiguration(BinaryRawWriter w, ClientConnectorConfiguration cfg) { assert w != null; if (cfg != null) { w.writeBoolean(true); w.writeString(cfg.getHost()); w.writeInt(cfg.getPort()); w.writeInt(cfg.getPortRange()); w.writeInt(cfg.getSocketSendBufferSize()); w.writeInt(cfg.getSocketReceiveBufferSize()); w.writeBoolean(cfg.isTcpNoDelay()); w.writeInt(cfg.getMaxOpenCursorsPerConnection()); w.writeInt(cfg.getThreadPoolSize()); w.writeLong(cfg.getIdleTimeout()); w.writeBoolean(cfg.isThinClientEnabled()); w.writeBoolean(cfg.isOdbcEnabled()); w.writeBoolean(cfg.isJdbcEnabled()); } else { w.writeBoolean(false); } }