@Test public void testAboutThisJvm() throws Exception { }
public static String aboutThisJvm() { StringBuffer sb = new StringBuffer(); sb.append(getLocalHost()); String name = ManagementFactory.getRuntimeMXBean().getName(); sb.append("_").append(name.split("@")[0]); sb.append("_").append(new Random().nextInt(100)); return sb.toString(); }
HostUtils { public static String aboutThisJvm() { StringBuffer sb = new StringBuffer(); sb.append(getLocalHost()); String name = ManagementFactory.getRuntimeMXBean().getName(); sb.append("_").append(name.split("@")[0]); sb.append("_").append(new Random().nextInt(100)); return sb.toString(); } }
HostUtils { public static String aboutThisJvm() { StringBuffer sb = new StringBuffer(); sb.append(getLocalHost()); String name = ManagementFactory.getRuntimeMXBean().getName(); sb.append("_").append(name.split("@")[0]); sb.append("_").append(new Random().nextInt(100)); return sb.toString(); }  }
HostUtils { public static String aboutThisJvm() { StringBuffer sb = new StringBuffer(); sb.append(getLocalHost()); String name = ManagementFactory.getRuntimeMXBean().getName(); sb.append("_").append(name.split("@")[0]); sb.append("_").append(new Random().nextInt(100)); return sb.toString(); }  static String aboutThisJvm(); static String getLocalHost(); static boolean isValidNetAddress(String ipAddress); static boolean isValidIpAddress(String ipAddress); }
HostUtils { public static String aboutThisJvm() { StringBuffer sb = new StringBuffer(); sb.append(getLocalHost()); String name = ManagementFactory.getRuntimeMXBean().getName(); sb.append("_").append(name.split("@")[0]); sb.append("_").append(new Random().nextInt(100)); return sb.toString(); }  static String aboutThisJvm(); static String getLocalHost(); static boolean isValidNetAddress(String ipAddress); static boolean isValidIpAddress(String ipAddress); static final String LOCALHOST; static final String ANYHOST; }