@InterfaceAudience.Private public class Apps extends Object
| Constructor and Description | 
|---|
| Apps() | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | addToEnvironment(Map<String,String> environment,
                String variable,
                String value)Deprecated.  | 
| static void | addToEnvironment(Map<String,String> environment,
                String variable,
                String value,
                String classPathSeparator) | 
| static String | crossPlatformify(String var) | 
| static ArrayList<String> | getEnvVarsFromInputString(String envString,
                         String classPathSeparator) | 
| static void | setEnvFromInputProperty(Map<String,String> env,
                       String propName,
                       String defaultPropValue,
                       org.apache.hadoop.conf.Configuration conf,
                       String classPathSeparator)Set environment variables from the given environment input property. | 
| static void | setEnvFromInputString(Map<String,String> env,
                     String envString)Deprecated.  | 
| static void | setEnvFromInputString(Map<String,String> env,
                     String envString,
                     String classPathSeparator) | 
| static void | shouldHaveNext(String prefix,
              String s,
              Iterator<String> it) | 
| static void | throwParseException(String name,
                   String s) | 
| static org.apache.hadoop.yarn.api.records.ApplicationId | toAppID(String aid) | 
| static org.apache.hadoop.yarn.api.records.ApplicationId | toAppID(String prefix,
       String s,
       Iterator<String> it) | 
public static final String APP
public static final String ID
public static org.apache.hadoop.yarn.api.records.ApplicationId toAppID(String aid)
public static org.apache.hadoop.yarn.api.records.ApplicationId toAppID(String prefix, String s, Iterator<String> it)
public static void setEnvFromInputString(Map<String,String> env, String envString, String classPathSeparator)
public static void setEnvFromInputProperty(Map<String,String> env, String propName, String defaultPropValue, org.apache.hadoop.conf.Configuration conf, String classPathSeparator)
env - the environment to updatepropName - the name of the propertydefaultPropValue - the default value for propNameconf - configuration containing propertiesclassPathSeparator - Separator used when appending to an existing varpublic static ArrayList<String> getEnvVarsFromInputString(String envString, String classPathSeparator)
envString - String containing env variable definitionsclassPathSeparator - String that separates the definitions@Deprecated public static void setEnvFromInputString(Map<String,String> env, String envString)
@InterfaceAudience.Public @InterfaceStability.Unstable public static void addToEnvironment(Map<String,String> environment, String variable, String value, String classPathSeparator)
@Deprecated public static void addToEnvironment(Map<String,String> environment, String variable, String value)
Copyright © 2022 Apache Software Foundation. All rights reserved.