private static String getHostnamesFromInstances(Iterable<TaskManagerLocation> locations) {
		StringBuilder bld = new StringBuilder();

		boolean successive = false;
		for (TaskManagerLocation loc : locations) {
			if (successive) {
				bld.append(", ");
			} else {
				successive = true;
			}
			bld.append(loc.getHostname());
		}

		return bld.toString();
	}
private static String getHostnamesFromInstances ( Iterable < TaskManagerLocation > locations ) { StringBuilder bld = new StringBuilder ( ) ; boolean successive = false ; for ( TaskManagerLocation loc : locations ) { if ( successive ) { bld . append ( ", " ) ; } else { successive = true ; } bld . append ( loc . getHostname ( ) ) ; } return bld . toString ( ) ; }
------------------------------------------------------------------------