public enum YarnRuntimeType extends Enum<YarnRuntimeType>
DevicePlugin
.
It's passed into onDevicesAllocated
.
Device plugin could populate DeviceRuntimeSpec
based on which YARN container runtime will use.Enum Constant and Description |
---|
RUNTIME_DEFAULT |
RUNTIME_DOCKER |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
static YarnRuntimeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static YarnRuntimeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final YarnRuntimeType RUNTIME_DEFAULT
public static final YarnRuntimeType RUNTIME_DOCKER
public static YarnRuntimeType[] values()
for (YarnRuntimeType c : YarnRuntimeType.values()) System.out.println(c);
public static YarnRuntimeType 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 String getName()
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.