public final class EnvironmentUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
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 static Set<String> getAllClasspathJars()
public static Set<String> getAllClasspathJars(String... excludeEnv)
excludeEnv - A set of environments to be excluded.public static boolean areAssertionsEnabled()
public static String getClassLocation(Class<?> clazz)
clazz - classCopyright © 2017 The Apache Software Foundation. All rights reserved.