/** * @param cfg Grid configuration. * @return Components provided in configuration which can implement {@link LifecycleAware} interface. */ private Iterable<Object> lifecycleAwares(IgniteConfiguration cfg) { Collection<Object> objs = new ArrayList<>(); if (cfg.getLifecycleBeans() != null) Collections.addAll(objs, cfg.getLifecycleBeans()); if (cfg.getSegmentationResolvers() != null) Collections.addAll(objs, cfg.getSegmentationResolvers()); if (cfg.getConnectorConfiguration() != null) { objs.add(cfg.getConnectorConfiguration().getMessageInterceptor()); objs.add(cfg.getConnectorConfiguration().getSslContextFactory()); } objs.add(cfg.getMarshaller()); objs.add(cfg.getGridLogger()); objs.add(cfg.getMBeanServer()); if (cfg.getCommunicationFailureResolver() != null) objs.add(cfg.getCommunicationFailureResolver()); return objs; }
ConnectorMessageInterceptor interceptor = config().getMessageInterceptor();
ConnectorMessageInterceptor interceptor = config().getMessageInterceptor();
sslFactory = compactClass(conCfg.getSslFactory()); portRange = conCfg.getPortRange(); msgInterceptor = compactClass(conCfg.getMessageInterceptor());
/** * 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 cfg Grid configuration. * @return Components provided in configuration which can implement {@link LifecycleAware} interface. */ private Iterable<Object> lifecycleAwares(IgniteConfiguration cfg) { Collection<Object> objs = new ArrayList<>(); if (cfg.getLifecycleBeans() != null) Collections.addAll(objs, cfg.getLifecycleBeans()); if (cfg.getSegmentationResolvers() != null) Collections.addAll(objs, cfg.getSegmentationResolvers()); if (cfg.getConnectorConfiguration() != null) { objs.add(cfg.getConnectorConfiguration().getMessageInterceptor()); objs.add(cfg.getConnectorConfiguration().getSslContextFactory()); } objs.add(cfg.getMarshaller()); objs.add(cfg.getGridLogger()); objs.add(cfg.getMBeanServer()); if (cfg.getCommunicationFailureResolver() != null) objs.add(cfg.getCommunicationFailureResolver()); return objs; }
ConnectorMessageInterceptor interceptor = config().getMessageInterceptor();
ConnectorMessageInterceptor interceptor = config().getMessageInterceptor();
sslFactory = compactClass(conCfg.getSslFactory()); portRange = conCfg.getPortRange(); msgInterceptor = compactClass(conCfg.getMessageInterceptor());
/** * 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(); }