/** {@inheritDoc} */
@Override
public void setResponder(IResponder resp) {
super.setResponder(resp);
ListenerConfiguration listenerConfig = resp.getListenerConfig();
RemoteNodeConfiguration remoteNodeConfig = listenerConfig.getRemoteNodeConfiguration();
if (remoteNodeConfig == null) {
throw new InvalidConfigurationException("remote host configuration is missing for responder="
+ resp.getListenerConfig().getName());
}
this.remoteHost = remoteNodeConfig.getHost();
this.remotePort = remoteNodeConfig.getPort();
try {
// limit threads to maxIOThreads
this.endpointChannelFactory = new NioServerSocketChannelFactory(Executors.newCachedThreadPool(),
Executors.newCachedThreadPool(), AppContext.getBasicConfiguration().getMaxIOThreads());
this.clientChannelFactory = new NioClientSocketChannelFactory(Executors.newCachedThreadPool(),