Package alluxio.cli

Class LogLevel


  • @NotThreadSafe
    @PublicApi
    public final class LogLevel
    extends java.lang.Object
    Sets or gets the log level for the specified server.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  LogLevel.TargetInfo
      Object that represents a REST endpoint that logLevel sends HTTP request to.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void logLevel​(java.lang.String[] args, alluxio.conf.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, alluxio.conf.AlluxioConfiguration conf)
      Parse the command options to a list of targets endpoints.
      static void printHelp​(java.lang.String message)
      Prints the help message.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.IOException
        Implements log level setting and getting.
        Parameters:
        args - list of arguments contains target, logName and level
        alluxioConf - configurations
        Throws:
        org.apache.commons.cli.ParseException - if there is an error in parsing
        java.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 command
        conf - 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 as LogLevel