org.apache.hadoop.yarn.util
Class Apps

java.lang.Object
  extended by org.apache.hadoop.yarn.util.Apps

@InterfaceAudience.Private
public class Apps
extends Object

Yarn internal application-related utilities


Field Summary
static String APP
           
static String ID
           
 
Constructor Summary
Apps()
           
 
Method Summary
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 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

APP

public static final String APP
See Also:
Constant Field Values

ID

public static final String ID
See Also:
Constant Field Values
Constructor Detail

Apps

public Apps()
Method Detail

toAppID

public static org.apache.hadoop.yarn.api.records.ApplicationId toAppID(String aid)

toAppID

public static org.apache.hadoop.yarn.api.records.ApplicationId toAppID(String prefix,
                                                                       String s,
                                                                       Iterator<String> it)

shouldHaveNext

public static void shouldHaveNext(String prefix,
                                  String s,
                                  Iterator<String> it)

throwParseException

public static void throwParseException(String name,
                                       String s)

setEnvFromInputString

public static void setEnvFromInputString(Map<String,String> env,
                                         String envString,
                                         String classPathSeparator)

setEnvFromInputString

@Deprecated
public static void setEnvFromInputString(Map<String,String> env,
                                                    String envString)
Deprecated. 

This older version of this method is kept around for compatibility because downstream frameworks like Spark and Tez have been using it. Downstream frameworks are expected to move off of it.


addToEnvironment

@InterfaceAudience.Public
@InterfaceStability.Unstable
public static void addToEnvironment(Map<String,String> environment,
                                                                                         String variable,
                                                                                         String value,
                                                                                         String classPathSeparator)

addToEnvironment

@Deprecated
public static void addToEnvironment(Map<String,String> environment,
                                               String variable,
                                               String value)
Deprecated. 

This older version of this method is kept around for compatibility because downstream frameworks like Spark and Tez have been using it. Downstream frameworks are expected to move off of it.


crossPlatformify

public static String crossPlatformify(String var)


Copyright © 2014 Apache Software Foundation. All Rights Reserved.