public void start() throws Exception { super.start(); boolean is_udp_transport=getTransport().isMulticastCapable(); if(is_udp_transport && frag_size <= 0) log.warn("No fragmentation protocol was found. When flow control is used, we recommend " + "a fragmentation protocol, due to http://jira.jboss.com/jira/browse/JGRP-590"); if(frag_size > 0 && frag_size >= min_credits) { log.warn("The fragmentation size of the fragmentation protocol is %d, which is greater than min_credits (%d). " + "This can lead to blockings (https://issues.jboss.org/browse/JGRP-1659)", frag_size, min_credits); } running=true; }
public void start() throws Exception { super.start(); boolean is_udp_transport=getTransport().isMulticastCapable(); if(is_udp_transport && frag_size <= 0) log.warn("No fragmentation protocol was found. When flow control is used, we recommend " + "a fragmentation protocol, due to http://jira.jboss.com/jira/browse/JGRP-590"); if(frag_size > 0 && frag_size >= min_credits) { log.warn("The fragmentation size of the fragmentation protocol is %d, which is greater than min_credits (%d). " + "This can lead to blockings (https://issues.jboss.org/browse/JGRP-1659)", frag_size, min_credits); } running=true; }
@Override public JChannel createChannel(String id) throws Exception { JGroupsLogger.ROOT_LOGGER.debugf("Creating fork channel %s from channel %s", id, this.channel.getClusterName()); String stackName = this.protocols.isEmpty() ? this.channel.getClusterName() : id; ProtocolStackConfiguration forkStack = new ForkProtocolStackConfiguration(stackName, this.parentFactory.getProtocolStackConfiguration(), this.protocols); List<Protocol> protocols = Configurator.createProtocols(JChannelFactory.createProtocols(forkStack, this.channel.getProtocolStack().getTransport().isMulticastCapable()), new ProtocolStack()); return new ForkChannel(this.channel, stackName, id, protocols.toArray(new Protocol[protocols.size()])); }
PrivilegedExceptionAction<TP> action = transportClass::newInstance; try { stack.addAll(createProtocols(this.configuration, WildFlySecurityManager.doChecked(action).isMulticastCapable())); } catch (PrivilegedActionException e) { throw new IllegalStateException(e.getCause());