public final class EnvironmentUtils extends Object
| Constructor and Description |
|---|
EnvironmentUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <P extends Param> |
addAll(ConfigurationModule config,
P param,
Iterable<String> values)
Deprecated.
in 0.2 this really should be in Tang.
|
static ConfigurationModule |
addClasspath(ConfigurationModule config,
OptionalParameter<String> param)
Deprecated.
Using this method is inherently non-deterministic as it depends on environment variables on your local
machine.
|
static boolean |
areAssertionsEnabled()
Check whether assert() statements are evaluated.
|
static Set<String> |
getAllClasspathJars()
Get a set of all classpath entries EXCEPT of those under
$JAVA_HOME, $YARN_HOME, and $HADOOP_HOME.
|
static Set<String> |
getAllClasspathJars(String... excludeEnv)
Get a set of all classpath entries EXCEPT of those under excludeEnv directories.
|
static String |
getClassLocation(Class<?> clazz) |
public EnvironmentUtils()
public static Set<String> getAllClasspathJars()
public static Set<String> getAllClasspathJars(String... excludeEnv)
@Deprecated public static <P extends Param> ConfigurationModule addAll(ConfigurationModule config, P param, Iterable<String> values)
P - config - param - values - @Deprecated public static ConfigurationModule addClasspath(ConfigurationModule config, OptionalParameter<String> param)
config - param - public static boolean areAssertionsEnabled()
public static String getClassLocation(Class<?> clazz)
clazz - Copyright © 2015 The Apache Software Foundation. All rights reserved.