@Internal public enum YarnDeploymentTarget extends Enum<YarnDeploymentTarget>
Enum Constant and Description |
---|
APPLICATION |
PER_JOB
Deprecated.
|
SESSION |
Modifier and Type | Field and Description |
---|---|
static String |
ERROR_MESSAGE |
Modifier and Type | Method and Description |
---|---|
static YarnDeploymentTarget |
fromConfig(Configuration configuration) |
String |
getName() |
static boolean |
isValidYarnTarget(String configValue) |
static YarnDeploymentTarget |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static YarnDeploymentTarget[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final YarnDeploymentTarget SESSION
public static final YarnDeploymentTarget APPLICATION
@Deprecated public static final YarnDeploymentTarget PER_JOB
public static final String ERROR_MESSAGE
public static YarnDeploymentTarget[] values()
for (YarnDeploymentTarget c : YarnDeploymentTarget.values()) System.out.println(c);
public static YarnDeploymentTarget valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static YarnDeploymentTarget fromConfig(Configuration configuration)
public String getName()
public static boolean isValidYarnTarget(String configValue)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.