private static List<FenceMethodWithArg> parseMethods(Configuration conf, String spec) throws BadFencingConfigurationException { String[] lines = spec.split("\\s*\n\\s*"); List<FenceMethodWithArg> methods = Lists.newArrayList(); for (String line : lines) { line = HASH_COMMENT_RE.matcher(line).replaceAll(""); line = line.trim(); if (!line.isEmpty()) { methods.add(parseMethod(conf, line)); } } return methods; }
private static List<FenceMethodWithArg> parseMethods(Configuration conf, String spec) throws BadFencingConfigurationException { String[] lines = spec.split("\\s*\n\\s*"); List<FenceMethodWithArg> methods = Lists.newArrayList(); for (String line : lines) { line = HASH_COMMENT_RE.matcher(line).replaceAll(""); line = line.trim(); if (!line.isEmpty()) { methods.add(parseMethod(conf, line)); } } return methods; }
private static List<FenceMethodWithArg> parseMethods(Configuration conf, String spec) throws BadFencingConfigurationException { String[] lines = spec.split("\\s*\n\\s*"); List<FenceMethodWithArg> methods = Lists.newArrayList(); for (String line : lines) { line = HASH_COMMENT_RE.matcher(line).replaceAll(""); line = line.trim(); if (!line.isEmpty()) { methods.add(parseMethod(conf, line)); } } return methods; }
private static List<FenceMethodWithArg> parseMethods(Configuration conf, String spec) throws BadFencingConfigurationException { String[] lines = spec.split("\\s*\n\\s*"); List<FenceMethodWithArg> methods = Lists.newArrayList(); for (String line : lines) { line = HASH_COMMENT_RE.matcher(line).replaceAll(""); line = line.trim(); if (!line.isEmpty()) { methods.add(parseMethod(conf, line)); } } return methods; }
private static List<FenceMethodWithArg> parseMethods(Configuration conf, String spec) throws BadFencingConfigurationException { String[] lines = spec.split("\\s*\n\\s*"); List<FenceMethodWithArg> methods = Lists.newArrayList(); for (String line : lines) { line = HASH_COMMENT_RE.matcher(line).replaceAll(""); line = line.trim(); if (!line.isEmpty()) { methods.add(parseMethod(conf, line)); } } return methods; }