Package org.apache.druid.common.config
Class Log4jShutdown
java.lang.Object
org.apache.druid.common.config.Log4jShutdown
- All Implemented Interfaces:
org.apache.logging.log4j.core.LifeCycle,org.apache.logging.log4j.core.util.ShutdownCallbackRegistry
public class Log4jShutdown
extends Object
implements org.apache.logging.log4j.core.util.ShutdownCallbackRegistry, org.apache.logging.log4j.core.LifeCycle
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.logging.log4j.core.LifeCycle
org.apache.logging.log4j.core.LifeCycle.State -
Field Summary
Fields inherited from interface org.apache.logging.log4j.core.util.ShutdownCallbackRegistry
SHUTDOWN_CALLBACK_REGISTRY, SHUTDOWN_HOOK_ENABLED, SHUTDOWN_HOOK_MARKER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.logging.log4j.core.util.CancellableaddShutdownCallback(Runnable callback) org.apache.logging.log4j.core.LifeCycle.StategetState()voidbooleanbooleanvoidstart()voidstop()
-
Constructor Details
-
Log4jShutdown
public Log4jShutdown()
-
-
Method Details
-
addShutdownCallback
- Specified by:
addShutdownCallbackin interfaceorg.apache.logging.log4j.core.util.ShutdownCallbackRegistry
-
getState
public org.apache.logging.log4j.core.LifeCycle.State getState()- Specified by:
getStatein interfaceorg.apache.logging.log4j.core.LifeCycle
-
initialize
public void initialize()- Specified by:
initializein interfaceorg.apache.logging.log4j.core.LifeCycle
-
start
public void start()- Specified by:
startin interfaceorg.apache.logging.log4j.core.LifeCycle
-
stop
public void stop()- Specified by:
stopin interfaceorg.apache.logging.log4j.core.LifeCycle
-
isStarted
public boolean isStarted()- Specified by:
isStartedin interfaceorg.apache.logging.log4j.core.LifeCycle
-
isStopped
public boolean isStopped()- Specified by:
isStoppedin interfaceorg.apache.logging.log4j.core.LifeCycle
-