String output = runResolveCommand(names, scriptName); if (output != null) { StringTokenizer allSwitchInfo = new StringTokenizer(output);
public List<String> resolve(List<String> names) { List <String> m = new ArrayList<String>(names.size()); if (names.isEmpty()) { return m; } if (scriptName == null) { for (int i = 0; i < names.size(); i++) { m.add(NetworkTopology.DEFAULT_RACK); } return m; } String output = runResolveCommand(names); if (output != null) { StringTokenizer allSwitchInfo = new StringTokenizer(output); while (allSwitchInfo.hasMoreTokens()) { String switchInfo = allSwitchInfo.nextToken(); m.add(switchInfo); } } return m; }
String output = runResolveCommand(names); if (output != null) { StringTokenizer allSwitchInfo = new StringTokenizer(output);
String output = runResolveCommand(names, scriptName); if (output != null) { StringTokenizer allSwitchInfo = new StringTokenizer(output);
String output = runResolveCommand(names, scriptName); if (output != null) { StringTokenizer allSwitchInfo = new StringTokenizer(output);
String output = runResolveCommand(names, scriptName); if (output != null) { StringTokenizer allSwitchInfo = new StringTokenizer(output);
String output = runResolveCommand(names, scriptName); if (output != null) { StringTokenizer allSwitchInfo = new StringTokenizer(output);