Get a configuration as list of Longs. Return {@code null} if missing or wrong type.

@param config
@param path
@return
184485
public static Optional<List<Long>> getLongListOptional(Config config, String path) {
        return Optional.ofNullable(getLongList(config, path));
    }
699032
private final Long getLong(NamedList<Object> response, String... args) {
    Object objectItem = response.findRecursive(args);
    if (objectItem != null && objectItem instanceof Long) {
      return (Long) objectItem;
    } else {
      return null;
    }
  }
1182057
protected List<String> getSiteConfigPaths(String path) {

        String normalizedPath = CmsStringUtil.joinPaths("/", path, "/");
        List<String> prefixes = new ArrayList<String>();

        List<String> parents = new ArrayList<String>();
        String currentPath = normalizedPath;
        while (currentPath != null) {
            parents.add(currentPath);
            currentPath = CmsResource.getParentFolder(currentPath);
        }

        for (String parent : parents) {
            if (m_siteConfigurationsByPath.containsKey(parent)) {
                prefixes.add(parent);
            }
        }
        Collections.sort(prefixes);
        return prefixes;
    }
491119
public static Iterable<SplitPath> getSplits(final Configuration config, Path[] paths) {
        final int splitSize = getSplitSize(config);

        return FluentIterable.from(Arrays.asList(paths))
                .transformAndConcat(new Function<Path, Iterable<? extends SplitPath>>() {
                    @Override
                    public Iterable<? extends SplitPath> apply(Path path) {
                        try {
                            EmoInputSplittable emoFs = (EmoInputSplittable) path.getFileSystem(config);
                            return emoFs.getInputSplits(config, path, splitSize);
                        } catch (IOException e) {
                            throw Throwables.propagate(e);
                        }
                    }
                });
    }
207203
public static Duration getDuration(Config config, String path) {
        try {
            return config.getDuration(path);
        } catch (ConfigException.Missing | ConfigException.WrongType | ConfigException.BadValue e) {
            if (e instanceof ConfigException.WrongType || e instanceof ConfigException.BadValue) {
                LOGGER.warn(e.getMessage(), e);
            }
            return null;
        }
    }
433598
public static List<Object> getListConfigProperty(String configProperty) {
        checkArgument(configProperty != null, "Config property cannot be null");
        return getConfig().getList(configProperty);
    }
5865
public static Optional<Long> getBytesOptional(Config config, String path) {
        return Optional.ofNullable(getBytes(config, path));
    }
1334548
public List<ConfigPath> findAllRootPaths() {
        return paths.stream()
                .filter(it -> !it.getPath().contains(DOT))
                .collect(Collectors.toList());
    }
94522
public static Optional<Integer> getIntegerOptional(Config config, String path) {
        return Optional.ofNullable(getInteger(config, path));
    }
1069296
public static Optional<List<Boolean>> getBooleanListOptional(Config config, String path) {
        return Optional.ofNullable(getBooleanList(config, path));
    }
549639
private static boolean couldBeYarnConfigurationPath(final String path) {
    return path.contains("conf") ||
            path.contains("etc") ||
            path.contains(HadoopEnvironment.HADOOP_CONF_DIR);
  }
124325
protected List<String> getRoles(String path) {
        List<String> defaultRoles = new ArrayList<String>();
        defaultRoles.add(Workgroup.SITE_ADMIN_GROUP);
        return defaultRoles;
    }
1240408
public static Optional<List<Double>> getDoubleListOptional(Config config, String path) {
        return Optional.ofNullable(getDoubleList(config, path));
    }
25039
public static List<URL> urls(AbstractConfig config, String key) {
    List<URL> result = new ArrayList<>();
    List<String> input = config.getList(key);
    for (String s : input) {
      result.add(url(key, s));
    }
    return ImmutableList.copyOf(result);
  }
1036671
@Override
    public Configuration getInstance(String configTreePath) {
        PropertyConfiguration conf = new PropertyConfiguration(configTreePath);
        conf.dumpConfiguration();
        return conf;
    }
608095
public Long getLong(String key, String group) {
		return getLong(key, group, null);
	}
1297542
public String getConfigurationContentStringValue(String path) {

        if (getConfigurationContent() != null) {
            return getConfigurationContent().getStringValue(getCms(), path, getLocale());
        }
        return "";
    }