mirror of https://github.com/apache/activemq.git
Reformat some code
This commit is contained in:
parent
7480c66031
commit
252dda94a3
|
@ -291,27 +291,30 @@ public class MulticastDiscoveryAgent implements DiscoveryAgent, Runnable {
|
||||||
discoveryURI = new URI(DEFAULT_DISCOVERY_URI_STRING);
|
discoveryURI = new URI(DEFAULT_DISCOVERY_URI_STRING);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (LOG.isTraceEnabled())
|
if (LOG.isTraceEnabled()) {
|
||||||
LOG.trace("start - discoveryURI = " + discoveryURI);
|
LOG.trace("start - discoveryURI = " + discoveryURI);
|
||||||
|
}
|
||||||
String myHost = discoveryURI.getHost();
|
|
||||||
int myPort = discoveryURI.getPort();
|
String myHost = discoveryURI.getHost();
|
||||||
|
int myPort = discoveryURI.getPort();
|
||||||
if( DEFAULT_HOST_STR.equals(myHost) )
|
|
||||||
myHost = DEFAULT_HOST_IP;
|
if (DEFAULT_HOST_STR.equals(myHost)) {
|
||||||
|
myHost = DEFAULT_HOST_IP;
|
||||||
if(myPort < 0 )
|
}
|
||||||
myPort = DEFAULT_PORT;
|
|
||||||
|
if (myPort < 0) {
|
||||||
if (LOG.isTraceEnabled()) {
|
myPort = DEFAULT_PORT;
|
||||||
LOG.trace("start - myHost = " + myHost);
|
}
|
||||||
LOG.trace("start - myPort = " + myPort);
|
|
||||||
LOG.trace("start - group = " + group );
|
if (LOG.isTraceEnabled()) {
|
||||||
LOG.trace("start - interface = " + mcInterface );
|
LOG.trace("start - myHost = " + myHost);
|
||||||
LOG.trace("start - network interface = " + mcNetworkInterface );
|
LOG.trace("start - myPort = " + myPort);
|
||||||
LOG.trace("start - join network interface = " + mcJoinNetworkInterface );
|
LOG.trace("start - group = " + group);
|
||||||
}
|
LOG.trace("start - interface = " + mcInterface);
|
||||||
|
LOG.trace("start - network interface = " + mcNetworkInterface);
|
||||||
|
LOG.trace("start - join network interface = " + mcJoinNetworkInterface);
|
||||||
|
}
|
||||||
|
|
||||||
this.inetAddress = InetAddress.getByName(myHost);
|
this.inetAddress = InetAddress.getByName(myHost);
|
||||||
this.sockAddress = new InetSocketAddress(this.inetAddress, myPort);
|
this.sockAddress = new InetSocketAddress(this.inetAddress, myPort);
|
||||||
mcast = new MulticastSocket(myPort);
|
mcast = new MulticastSocket(myPort);
|
||||||
|
|
Loading…
Reference in New Issue