@InterfaceAudience.Public public enum HistoryLogLevel extends Enum<HistoryLogLevel>
Enum Constant and Description |
---|
ALL |
AM |
DAG |
NONE |
TASK |
TASK_ATTEMPT |
VERTEX |
Modifier and Type | Field and Description |
---|---|
static HistoryLogLevel |
DEFAULT |
Modifier and Type | Method and Description |
---|---|
static HistoryLogLevel |
getLogLevel(org.apache.hadoop.conf.Configuration conf,
HistoryLogLevel defaultValue) |
boolean |
shouldLog(HistoryLogLevel eventLevel) |
static boolean |
validateLogLevel(String logLevel) |
static HistoryLogLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HistoryLogLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HistoryLogLevel NONE
public static final HistoryLogLevel AM
public static final HistoryLogLevel DAG
public static final HistoryLogLevel VERTEX
public static final HistoryLogLevel TASK
public static final HistoryLogLevel TASK_ATTEMPT
public static final HistoryLogLevel ALL
public static final HistoryLogLevel DEFAULT
public static HistoryLogLevel[] values()
for (HistoryLogLevel c : HistoryLogLevel.values()) System.out.println(c);
public static HistoryLogLevel 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 boolean shouldLog(HistoryLogLevel eventLevel)
public static HistoryLogLevel getLogLevel(org.apache.hadoop.conf.Configuration conf, HistoryLogLevel defaultValue)
public static boolean validateLogLevel(String logLevel)
Copyright © 2024 Apache Software Foundation. All rights reserved.