Class StatusLoggerAdmin

java.lang.Object
javax.management.NotificationBroadcasterSupport
org.apache.logging.log4j.core.jmx.StatusLoggerAdmin
All Implemented Interfaces:
Closeable, AutoCloseable, EventListener, MBeanRegistration, NotificationBroadcaster, NotificationEmitter, StatusLoggerAdminMBean, StatusListener

Implementation of the StatusLoggerAdminMBean interface.
  • Field Details

    • sequenceNo

      private final AtomicLong sequenceNo
    • objectName

      private final ObjectName objectName
    • contextName

      private final String contextName
    • level

      private Level level
    • statusListenerRegistered

      private boolean statusListenerRegistered
    • statusListenerRegistrationGuard

      private final Lock statusListenerRegistrationGuard
  • Constructor Details

    • StatusLoggerAdmin

      public StatusLoggerAdmin(String contextName, Executor executor)
      Constructs a new StatusLoggerAdmin with the Executor to be used for sending Notifications asynchronously to listeners.
      Parameters:
      contextName - name of the LoggerContext under which to register this StatusLoggerAdmin. Note that the StatusLogger may be registered multiple times, once for each LoggerContext. In web containers, each web application has its own LoggerContext and by associating the StatusLogger with the LoggerContext, all associated MBeans can be unloaded when the web application is undeployed.
      executor - used to send notifications asynchronously
  • Method Details