private String getHostsList() { StringBuilder hostsLists = new StringBuilder(); for (String host : atsAgents) { if (host.startsWith(HostUtils.LOCAL_HOST_IPv4)) { host = host.replace(HostUtils.LOCAL_HOST_IPv4, HostUtils.getLocalHostIP()); } else if (host.startsWith(HostUtils.LOCAL_HOST_NAME)) { host = host.replace(HostUtils.LOCAL_HOST_NAME, HostUtils.getLocalHostIP()); } else if (host.startsWith(HostUtils.LOCAL_HOST_IPv6)) { host = host.replace(HostUtils.LOCAL_HOST_IPv6, HostUtils.getLocalHostIP()); } hostsLists.append( (hostsLists.length() > 0 ? ", " : "") + host); } return hostsLists.toString(); } }
/** * Log all jars found in the classpath. * If a jar is found more than once, then we list these one after another */ public void logClassPath() { log.info("Classpath of JVM on " + HostUtils.getLocalHostIP() + ": \n" + getClassPathDescription()); }
faultInfo.getExceptionMessage() + "\n[" + HostUtils.getLocalHostIP() + " stacktrace]", atsAgent);
: "")); int queueId = retrieveQueueId(queueSequence, HostUtils.getLocalHostIP());