Class LogControllerFactory

java.lang.Object
org.apache.hadoop.fs.s3a.impl.logging.LogControllerFactory

public final class LogControllerFactory extends Object
Factory for creating controllers.

It currently only supports Log4J as a back end.

  • Method Details

    • createController

      public static LogControl createController(String classname)
      Create a controller. Failure to load is logged at debug and null is returned.
      Parameters:
      classname - name of controller to load and create.
      Returns:
      the instantiated controller or null if it failed to load
    • createLog4JController

      public static LogControl createLog4JController()
      Create a Log4J controller.
      Returns:
      the instantiated controller or null if the class can't be instantiated.
    • createController

      public static LogControl createController()
      Create a controller, Log4j or falling back to a stub implementation.
      Returns:
      the instantiated controller or empty() if the class can't be instantiated.