Package alluxio.cli
Class LogLevel
- java.lang.Object
-
- alluxio.cli.LogLevel
-
@NotThreadSafe @PublicApi public final class LogLevel extends java.lang.ObjectSets or gets the log level for the specified server.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLogLevel.TargetInfoObject that represents a REST endpoint that logLevel sends HTTP request to.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringLOG_LEVELstatic java.lang.StringROLE_FUSEstatic java.lang.StringROLE_JOB_MASTERstatic java.lang.StringROLE_JOB_MASTERSstatic java.lang.StringROLE_JOB_WORKERstatic java.lang.StringROLE_JOB_WORKERSstatic java.lang.StringROLE_MASTERstatic java.lang.StringROLE_MASTERSstatic java.lang.StringROLE_WORKERstatic java.lang.StringROLE_WORKERSstatic java.lang.StringTARGET_OPTION_NAMEstatic java.lang.StringTARGET_SEPARATOR
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidlogLevel(java.lang.String[] args, alluxio.conf.AlluxioConfiguration alluxioConf)Implements log level setting and getting.static voidmain(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, alluxio.conf.AlluxioConfiguration conf)Parse the command options to a list of targets endpoints.static voidprintHelp(java.lang.String message)Prints the help message.
-
-
-
Field Detail
-
LOG_LEVEL
public static final java.lang.String LOG_LEVEL
- See Also:
- Constant Field Values
-
ROLE_WORKERS
public static final java.lang.String ROLE_WORKERS
- See Also:
- Constant Field Values
-
ROLE_MASTER
public static final java.lang.String ROLE_MASTER
- See Also:
- Constant Field Values
-
ROLE_MASTERS
public static final java.lang.String ROLE_MASTERS
- See Also:
- Constant Field Values
-
ROLE_WORKER
public static final java.lang.String ROLE_WORKER
- See Also:
- Constant Field Values
-
ROLE_JOB_MASTER
public static final java.lang.String ROLE_JOB_MASTER
- See Also:
- Constant Field Values
-
ROLE_JOB_MASTERS
public static final java.lang.String ROLE_JOB_MASTERS
- See Also:
- Constant Field Values
-
ROLE_JOB_WORKER
public static final java.lang.String ROLE_JOB_WORKER
- See Also:
- Constant Field Values
-
ROLE_JOB_WORKERS
public static final java.lang.String ROLE_JOB_WORKERS
- See Also:
- Constant Field Values
-
ROLE_FUSE
public static final java.lang.String ROLE_FUSE
- See Also:
- Constant Field Values
-
TARGET_SEPARATOR
public static final java.lang.String TARGET_SEPARATOR
- See Also:
- Constant Field Values
-
TARGET_OPTION_NAME
public static final java.lang.String TARGET_OPTION_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
printHelp
public static void printHelp(java.lang.String message)
Prints the help message.- Parameters:
message- message before standard usage information
-
logLevel
public static void logLevel(java.lang.String[] args, alluxio.conf.AlluxioConfiguration alluxioConf) throws org.apache.commons.cli.ParseException, java.io.IOExceptionImplements log level setting and getting.- Parameters:
args- list of arguments contains target, logName and levelalluxioConf- configurations- Throws:
org.apache.commons.cli.ParseException- if there is an error in parsingjava.io.IOException
-
parseOptTarget
public static java.util.List<LogLevel.TargetInfo> parseOptTarget(org.apache.commons.cli.CommandLine cmd, alluxio.conf.AlluxioConfiguration conf) throws java.io.IOException
Parse the command options to a list of targets endpoints.- Parameters:
cmd- the commandconf- Alluxio configuration- Returns:
- a list of
LogLevel.TargetInfo - Throws:
java.io.IOException
-
main
public static void main(java.lang.String[] args)
Sets or gets log level of master and worker through their REST API.- Parameters:
args- same arguments asLogLevel
-
-