Class LogControllerFactory
java.lang.Object
org.apache.hadoop.fs.s3a.impl.logging.LogControllerFactory
Factory for creating controllers.
It currently only supports Log4J as a back end.
-
Method Summary
Modifier and TypeMethodDescriptionstatic LogControlCreate a controller, Log4j or falling back to a stub implementation.static LogControlcreateController(String classname) Create a controller.static LogControlCreate a Log4J controller.
-
Method Details
-
createController
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
Create a Log4J controller.- Returns:
- the instantiated controller or null if the class can't be instantiated.
-
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.
-