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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.logging.log4j.core.util.Cancellable
     
    org.apache.logging.log4j.core.LifeCycle.State
     
    void
     
    boolean
     
    boolean
     
    void
     
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Log4jShutdown

      public Log4jShutdown()
  • Method Details

    • addShutdownCallback

      public org.apache.logging.log4j.core.util.Cancellable addShutdownCallback(Runnable callback)
      Specified by:
      addShutdownCallback in interface org.apache.logging.log4j.core.util.ShutdownCallbackRegistry
    • getState

      public org.apache.logging.log4j.core.LifeCycle.State getState()
      Specified by:
      getState in interface org.apache.logging.log4j.core.LifeCycle
    • initialize

      public void initialize()
      Specified by:
      initialize in interface org.apache.logging.log4j.core.LifeCycle
    • start

      public void start()
      Specified by:
      start in interface org.apache.logging.log4j.core.LifeCycle
    • stop

      public void stop()
      Specified by:
      stop in interface org.apache.logging.log4j.core.LifeCycle
    • isStarted

      public boolean isStarted()
      Specified by:
      isStarted in interface org.apache.logging.log4j.core.LifeCycle
    • isStopped

      public boolean isStopped()
      Specified by:
      isStopped in interface org.apache.logging.log4j.core.LifeCycle