@NotThreadSafe @PublicApi public final class LogLevel extends 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 String |
LOG_LEVEL |
static String |
ROLE_JOB_MASTER |
static String |
ROLE_JOB_MASTERS |
static String |
ROLE_JOB_WORKER |
static String |
ROLE_JOB_WORKERS |
static String |
ROLE_MASTER |
static String |
ROLE_MASTERS |
static String |
ROLE_WORKER |
static String |
ROLE_WORKERS |
static String |
TARGET_OPTION_NAME |
static String |
TARGET_SEPARATOR |
Modifier and Type | Method and Description |
---|---|
static void |
logLevel(String[] args,
AlluxioConfiguration alluxioConf)
Implements log level setting and getting.
|
static void |
main(String[] args)
Sets or gets log level of master and worker through their REST API.
|
static 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(String message)
Prints the help message.
|
public static final String LOG_LEVEL
public static final String ROLE_WORKERS
public static final String ROLE_MASTER
public static final String ROLE_MASTERS
public static final String ROLE_WORKER
public static final String ROLE_JOB_MASTER
public static final String ROLE_JOB_MASTERS
public static final String ROLE_JOB_WORKER
public static final String ROLE_JOB_WORKERS
public static final String TARGET_SEPARATOR
public static final String TARGET_OPTION_NAME
public static void printHelp(String message)
message
- message before standard usage informationpublic static void logLevel(String[] args, AlluxioConfiguration alluxioConf) throws org.apache.commons.cli.ParseException, IOException
args
- list of arguments contains target, logName and levelalluxioConf
- configurationsorg.apache.commons.cli.ParseException
- if there is an error in parsingIOException
public static List<LogLevel.TargetInfo> parseOptTarget(org.apache.commons.cli.CommandLine cmd, AlluxioConfiguration conf) throws IOException
cmd
- the commandconf
- Alluxio configurationLogLevel.TargetInfo
IOException
Copyright © 2023. All Rights Reserved.