diff options
Diffstat (limited to 'node-maintainer/src/main/java/com/yahoo/vespa/hosted/node/verification/commons/HostURLGenerator.java')
-rw-r--r-- | node-maintainer/src/main/java/com/yahoo/vespa/hosted/node/verification/commons/HostURLGenerator.java | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/node-maintainer/src/main/java/com/yahoo/vespa/hosted/node/verification/commons/HostURLGenerator.java b/node-maintainer/src/main/java/com/yahoo/vespa/hosted/node/verification/commons/HostURLGenerator.java index b43c9caed54..7e8b198428f 100644 --- a/node-maintainer/src/main/java/com/yahoo/vespa/hosted/node/verification/commons/HostURLGenerator.java +++ b/node-maintainer/src/main/java/com/yahoo/vespa/hosted/node/verification/commons/HostURLGenerator.java @@ -5,10 +5,13 @@ import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.util.ArrayList; +import java.util.List; /** - * Created by olaa on 14/07/2017. * Makes the URL used to retrieve the JSON from the node repository with information about the node's spec. + * + * @author olaaun + * @author sgrostad */ public class HostURLGenerator { @@ -18,8 +21,8 @@ public class HostURLGenerator { private static final String PARSE_ALL_HOSTNAMES_REGEX = ","; private static final String PROTOCOL_REGEX = "^(https?|file)://.*$"; - public static ArrayList<URL> generateNodeInfoUrl(CommandExecutor commandExecutor, String commaSeparatedUrls) throws IOException { - ArrayList<URL> nodeInfoUrls = new ArrayList<>(); + public static List<URL> generateNodeInfoUrl(CommandExecutor commandExecutor, String commaSeparatedUrls) throws IOException { + List<URL> nodeInfoUrls = new ArrayList<>(); String[] configServerHostNames = commaSeparatedUrls.split(PARSE_ALL_HOSTNAMES_REGEX); String nodeHostName = generateNodeHostName(commandExecutor); for (String configServerHostName : configServerHostNames) { @@ -34,7 +37,7 @@ public class HostURLGenerator { } protected static String getEnvironmentVariable(CommandExecutor commandExecutor) throws IOException { - ArrayList<String> output = commandExecutor.executeCommand("hostname"); + List<String> output = commandExecutor.executeCommand("hostname"); if (output.size() == 1) { return output.get(0); } |