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
-
-
Constructor Summary
Constructors Constructor Description Log4jShutdown()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.logging.log4j.core.util.Cancellable
addShutdownCallback(Runnable callback)
org.apache.logging.log4j.core.LifeCycle.State
getState()
void
initialize()
boolean
isStarted()
boolean
isStopped()
void
start()
void
stop()
-
-
-
Method Detail
-
addShutdownCallback
public org.apache.logging.log4j.core.util.Cancellable addShutdownCallback(Runnable callback)
- Specified by:
addShutdownCallback
in interfaceorg.apache.logging.log4j.core.util.ShutdownCallbackRegistry
-
getState
public org.apache.logging.log4j.core.LifeCycle.State getState()
- Specified by:
getState
in interfaceorg.apache.logging.log4j.core.LifeCycle
-
initialize
public void initialize()
- Specified by:
initialize
in interfaceorg.apache.logging.log4j.core.LifeCycle
-
start
public void start()
- Specified by:
start
in interfaceorg.apache.logging.log4j.core.LifeCycle
-
stop
public void stop()
- Specified by:
stop
in interfaceorg.apache.logging.log4j.core.LifeCycle
-
isStarted
public boolean isStarted()
- Specified by:
isStarted
in interfaceorg.apache.logging.log4j.core.LifeCycle
-
isStopped
public boolean isStopped()
- Specified by:
isStopped
in interfaceorg.apache.logging.log4j.core.LifeCycle
-
-