Package wt.log4j.jmx

Interface AppenderAttachableMonitorMBean

All Known Subinterfaces:
AsyncAppenderMonitorMBean, LoggerMonitorMBean

public interface AppenderAttachableMonitorMBean
Mix-in interface defining attributes and operations common to all log4j AppenderAttachable objects

See AppenderAttachableUtilities for utilities for use in implementation of these methods.

Supported API: true

Extendable: true

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addAppender(String appenderName)
    Add an existing appender to this object

    Supported API: true
    void
    addAppender(String appenderClassname, String appenderName)
    Add an appender to this object; creating it if necessary

    Supported API: true
    Names of appenders attached to this object

    Supported API: true
    void
    Remove all appenders from this object

    Supported API: true
    void
    removeAppender(String appenderName)
    Remove an appender from this object

    Supported API: true
  • Method Details

    • getAppenderNames

      String[] getAppenderNames()
      Names of appenders attached to this object

      Supported API: true
    • addAppender

      @MBeanOperationImpact(1) void addAppender(String appenderName)
      Add an existing appender to this object

      Supported API: true
      Parameters:
      appenderName - Name of appender
    • addAppender

      @MBeanOperationImpact(1) void addAppender(String appenderClassname, String appenderName)
      Add an appender to this object; creating it if necessary

      Supported API: true
      Parameters:
      appenderClassname - Classname of appender
      appenderName - Name of appender
    • removeAppender

      @MBeanOperationImpact(1) void removeAppender(String appenderName)
      Remove an appender from this object

      Supported API: true
      Parameters:
      appenderName - Name of appender
    • removeAllAppenders

      @MBeanOperationImpact(1) void removeAllAppenders()
      Remove all appenders from this object

      Supported API: true