public PortLogSubject(Port<?> port) { /** * LOG FORMAT used by the AMQPConnectorActor follows * ChannelLogSubject.CHANNEL_FORMAT : con:{0}({1}@{2}/{3})/ch:{4}. * * Uses a MessageFormat call to insert the required values according to * these indices: * * 0 - Connection ID * 1 - User ID * 2 - IP * 3 - Virtualhost * 4 - Channel ID */ setLogStringWithFormat(PORT_FORMAT, port.getPort()); } }
@Override protected void onOpen() { super.onOpen(); String bindingAddress = getPort().getBindingAddress(); Thread thread = new Thread(new NetworkAddressResolver(), "Network Address Resolver (Port: " + (useAllAddresses(bindingAddress) ? "" : bindingAddress) + ":" + getPort().getPort() +")"); thread.setDaemon(true); thread.start(); }
if (p != this && (p.getPort() == getPort() || p.getBoundPort() == getPort()))