/** * @param ctx Context. */ protected GridRestProtocolAdapter(GridKernalContext ctx) { assert ctx != null; assert ctx.config().getConnectorConfiguration() != null; this.ctx = ctx; log = ctx.log(getClass()); secretKey = ctx.config().getConnectorConfiguration().getSecretKey(); }
tcpPort = conCfg.getPort(); tcpSslCtxFactory = compactClass(conCfg.getSslContextFactory()); secretKey = conCfg.getSecretKey(); noDelay = conCfg.isNoDelay(); directBuf = conCfg.isDirectBuffer();
/** * Creates client connection configuration by copying all properties from * given configuration. * * @param cfg Client configuration. */ public ConnectorConfiguration(ConnectorConfiguration cfg) { assert cfg != null; msgInterceptor = cfg.getMessageInterceptor(); threadPoolSize = cfg.getThreadPoolSize(); idleTimeout = cfg.getIdleTimeout(); jettyPath = cfg.getJettyPath(); portRange = cfg.getPortRange(); secretKey = cfg.getSecretKey(); directBuf = cfg.isDirectBuffer(); host = cfg.getHost(); noDelay = cfg.isNoDelay(); port = cfg.getPort(); rcvBufSize = cfg.getReceiveBufferSize(); selectorCnt = cfg.getSelectorCount(); sndBufSize = cfg.getSendBufferSize(); sndQueueLimit = cfg.getSendQueueLimit(); sslClientAuth = cfg.isSslClientAuth(); sslCtxFactory = cfg.getSslContextFactory(); sslEnabled = cfg.isSslEnabled(); sslFactory = cfg.getSslFactory(); idleQryCurTimeout = cfg.getIdleQueryCursorTimeout(); idleQryCurCheckFreq = cfg.getIdleQueryCursorCheckFrequency(); }
/** * @param ctx Context. */ @SuppressWarnings({"OverriddenMethodCallDuringObjectConstruction"}) protected GridRestProtocolAdapter(GridKernalContext ctx) { assert ctx != null; assert ctx.config().getConnectorConfiguration() != null; this.ctx = ctx; log = ctx.log(getClass()); secretKey = ctx.config().getConnectorConfiguration().getSecretKey(); }
tcpPort = conCfg.getPort(); tcpSslCtxFactory = compactClass(conCfg.getSslContextFactory()); secretKey = conCfg.getSecretKey(); noDelay = conCfg.isNoDelay(); directBuf = conCfg.isDirectBuffer();
/** * Creates client connection configuration by copying all properties from * given configuration. * * @param cfg Client configuration. */ public ConnectorConfiguration(ConnectorConfiguration cfg) { assert cfg != null; msgInterceptor = cfg.getMessageInterceptor(); threadPoolSize = cfg.getThreadPoolSize(); idleTimeout = cfg.getIdleTimeout(); jettyPath = cfg.getJettyPath(); portRange = cfg.getPortRange(); secretKey = cfg.getSecretKey(); directBuf = cfg.isDirectBuffer(); host = cfg.getHost(); noDelay = cfg.isNoDelay(); port = cfg.getPort(); rcvBufSize = cfg.getReceiveBufferSize(); selectorCnt = cfg.getSelectorCount(); sndBufSize = cfg.getSendBufferSize(); sndQueueLimit = cfg.getSendQueueLimit(); sslClientAuth = cfg.isSslClientAuth(); sslCtxFactory = cfg.getSslContextFactory(); sslEnabled = cfg.isSslEnabled(); sslFactory = cfg.getSslFactory(); idleQryCurTimeout = cfg.getIdleQueryCursorTimeout(); idleQryCurCheckFreq = cfg.getIdleQueryCursorCheckFrequency(); }