@Override public InetSocketAddress getRemoteAddress() { // Both host and port may not be null in the model, no need to validate here // Don't do resolving here, let mod_cluster deal with it return new InetSocketAddress(binding.getUnresolvedDestinationAddress(), binding.getDestinationPort()); }
private URI getUri() throws URISyntaxException { OutboundSocketBinding binding = socketBinding.getValue(); return new URI(scheme, null, binding.getUnresolvedDestinationAddress(), binding.getDestinationPort(), path, null, null); }
private InetSocketAddress getServerSocketAddress(ServerConfig server) throws StartException { final String ref = server.getOutgoingSocketBinding(); final OutboundSocketBinding binding = socketBindings.get(ref); if (binding == null) { throw MailLogger.ROOT_LOGGER.outboundSocketBindingNotAvailable(ref); } return new InetSocketAddress(binding.getUnresolvedDestinationAddress(), binding.getDestinationPort()); }
@Override public void accept(RemoteStoreConfigurationBuilder builder) { builder.remoteCacheName(this.remoteCacheName) .socketTimeout(this.socketTimeout) .tcpNoDelay(this.tcpNoDelay) ; for (Supplier<OutboundSocketBinding> bindingDependency : this.bindings) { OutboundSocketBinding binding = bindingDependency.get(); builder.addServer().host(binding.getUnresolvedDestinationAddress()).port(binding.getDestinationPort()); } } }
for (Supplier<OutboundSocketBinding> bindingDependency : bindingDependencies) { OutboundSocketBinding binding = bindingDependency.get(); builder.addServer().host(binding.getUnresolvedDestinationAddress()).port(binding.getDestinationPort()); for (Supplier<OutboundSocketBinding> bindingDependency : bindingDependencies) { OutboundSocketBinding binding = bindingDependency.get(); clusterConfigurationBuilder.addClusterNode(binding.getUnresolvedDestinationAddress(), binding.getDestinationPort());
@Override public InetSocketAddress getRemoteAddress() { // Both host and port may not be null in the model, no need to validate here // Don't do resolving here, let mod_cluster deal with it return new InetSocketAddress(binding.getUnresolvedDestinationAddress(), binding.getDestinationPort()); }
private URI getUri() throws URISyntaxException { OutboundSocketBinding binding = socketBinding.getValue(); return new URI(scheme, null, binding.getUnresolvedDestinationAddress(), binding.getDestinationPort(), path, null, null); }
private URI getUri() throws URISyntaxException { OutboundSocketBinding binding = socketBinding.getValue(); return new URI(scheme, null, binding.getUnresolvedDestinationAddress(), binding.getDestinationPort(), path, null, null); }
@Override public void accept(RemoteStoreConfigurationBuilder builder) { builder.remoteCacheName(this.remoteCacheName) .socketTimeout(this.socketTimeout) .tcpNoDelay(this.tcpNoDelay) ; for (Supplier<OutboundSocketBinding> bindingDependency : this.bindings) { OutboundSocketBinding binding = bindingDependency.get(); builder.addServer().host(binding.getUnresolvedDestinationAddress()).port(binding.getDestinationPort()); } } }
OutboundSocketBinding binding = outboundSocketBindings.get(name).get(); port = binding.getDestinationPort(); host = NetworkUtils.canonize(binding.getUnresolvedDestinationAddress()); if (binding.getSourceAddress() != null) { tc.getParams().put(TransportConstants.LOCAL_ADDRESS_PROP_NAME,
OutboundSocketBinding binding = outboundSocketBindings.get(name).get(); port = binding.getDestinationPort(); host = NetworkUtils.canonize(binding.getUnresolvedDestinationAddress()); if (binding.getSourceAddress() != null) { tc.getParams().put(TransportConstants.LOCAL_ADDRESS_PROP_NAME,
for (Supplier<OutboundSocketBinding> bindingDependency : bindingDependencies) { OutboundSocketBinding binding = bindingDependency.get(); builder.addServer().host(binding.getUnresolvedDestinationAddress()).port(binding.getDestinationPort()); for (Supplier<OutboundSocketBinding> bindingDependency : bindingDependencies) { OutboundSocketBinding binding = bindingDependency.get(); clusterConfigurationBuilder.addClusterNode(binding.getUnresolvedDestinationAddress(), binding.getDestinationPort());
public void start(final StartContext context) throws StartException { final OutboundSocketBinding binding = destinationOutboundSocketBindingInjectedValue.getValue(); final String hostName = NetworkUtils.formatPossibleIpv6Address(binding.getUnresolvedDestinationAddress()); final int port = binding.getDestinationPort(); URI uri;