@NotThreadSafe @PublicApi public final class LogLevel extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
LogLevel.TargetInfo
Object that represents a REST endpoint that logLevel sends HTTP request to.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
LOG_LEVEL |
static java.lang.String |
ROLE_JOB_MASTER |
static java.lang.String |
ROLE_JOB_MASTERS |
static java.lang.String |
ROLE_JOB_WORKER |
static java.lang.String |
ROLE_JOB_WORKERS |
static java.lang.String |
ROLE_MASTER |
static java.lang.String |
ROLE_MASTERS |
static java.lang.String |
ROLE_WORKER |
static java.lang.String |
ROLE_WORKERS |
static java.lang.String |
TARGET_OPTION_NAME |
static java.lang.String |
TARGET_SEPARATOR |
| Modifier and Type | Method and Description |
|---|---|
static void |
logLevel(java.lang.String[] args,
AlluxioConfiguration alluxioConf)
Implements log level setting and getting.
|
static void |
main(java.lang.String[] args)
Sets or gets log level of master and worker through their REST API.
|
static java.util.List<LogLevel.TargetInfo> |
parseOptTarget(org.apache.commons.cli.CommandLine cmd,
AlluxioConfiguration conf)
Parse the command options to a list of targets endpoints.
|
static void |
printHelp(java.lang.String message)
Prints the help message.
|
public static final java.lang.String LOG_LEVEL
public static final java.lang.String ROLE_WORKERS
public static final java.lang.String ROLE_MASTER
public static final java.lang.String ROLE_MASTERS
public static final java.lang.String ROLE_WORKER
public static final java.lang.String ROLE_JOB_MASTER
public static final java.lang.String ROLE_JOB_MASTERS
public static final java.lang.String ROLE_JOB_WORKER
public static final java.lang.String ROLE_JOB_WORKERS
public static final java.lang.String TARGET_SEPARATOR
public static final java.lang.String TARGET_OPTION_NAME
public static void printHelp(java.lang.String message)
message - message before standard usage informationpublic static void logLevel(java.lang.String[] args,
AlluxioConfiguration alluxioConf)
throws org.apache.commons.cli.ParseException,
java.io.IOException
args - list of arguments contains target, logName and levelalluxioConf - configurationsorg.apache.commons.cli.ParseException - if there is an error in parsingjava.io.IOExceptionpublic static java.util.List<LogLevel.TargetInfo> parseOptTarget(org.apache.commons.cli.CommandLine cmd, AlluxioConfiguration conf) throws java.io.IOException
cmd - the commandconf - Alluxio configurationLogLevel.TargetInfojava.io.IOExceptionpublic static void main(java.lang.String[] args)
args - same arguments as LogLevelCopyright © 2022. All Rights Reserved.