Class LoggingImpl

  • All Implemented Interfaces:
    DynamicMBean, MBeanRegistration, NotificationBroadcaster, NotificationEmitter, AMX_SPI, NotificationSender

    public final class LoggingImpl
    extends AMXImplBase
    Deprecated.
    from Payara 5.193 as does not appear to be used
    Implementation of Logging.

    The following is a GlassFish V2 comment, and needs work for v3:
    AMX Logging MBean is hooked directly into the logging subsystem via com.sun.enterprise.server.logging.FileandSyslogHandler which uses com.sun.enterprise.server.logging.AMXLoggingHook to instantiate and call an instance of LoggingImpl.

    • Constructor Detail

      • LoggingImpl

        public LoggingImpl​(ObjectName parent,
                           String serverName)
        Deprecated.
    • Method Detail

      • getObjectName

        public static ObjectName getObjectName​(String serverName)
        Deprecated.
        Used internally to get the Logging ObjectName for a particular server Logging MBean is a special-case because it needs to load as early as possible.
      • setModuleLogLevel

        public void setModuleLogLevel​(String module,
                                      String level)
        Deprecated.
      • getModuleLogLevel

        public String getModuleLogLevel​(String module)
        Deprecated.
      • getLoggingProperties

        public Map<String,​String> getLoggingProperties()
        Deprecated.
      • updateLoggingProperties

        public void updateLoggingProperties​(Map<String,​String> properties)
        Deprecated.
      • getLogLevelListenerCount

        public int getLogLevelListenerCount​(Level logLevel)
        Deprecated.
      • getLogFileKeys

        public String[] getLogFileKeys()
        Deprecated.
      • getLogFileNames

        public String[] getLogFileNames​(String key)
        Deprecated.
      • getLoggingAttributes

        public Map<String,​String> getLoggingAttributes()
        Deprecated.
      • updateLoggingAttributes

        public void updateLoggingAttributes​(Map<String,​String> properties)
        Deprecated.
      • rotateAllLogFiles

        public void rotateAllLogFiles()
        Deprecated.
      • rotateLogFile

        public void rotateLogFile​(String key)
        Deprecated.
      • getErrorDistribution

        public Map<String,​Integer> getErrorDistribution​(long timestamp,
                                                              String level)
        Deprecated.
      • setKeepErrorStatisticsForIntervals

        public void setKeepErrorStatisticsForIntervals​(int num)
        Deprecated.
      • getKeepErrorStatisticsForIntervals

        public int getKeepErrorStatisticsForIntervals()
        Deprecated.
      • setErrorStatisticsIntervalMinutes

        public void setErrorStatisticsIntervalMinutes​(long minutes)
        Deprecated.
      • getErrorStatisticsIntervalMinutes

        public long getErrorStatisticsIntervalMinutes()
        Deprecated.
      • getLoggerNames

        public String[] getLoggerNames()
        Deprecated.
      • getLoggerNamesUnder

        public String[] getLoggerNamesUnder​(String loggerName)
        Deprecated.
      • getDiagnosticCauses

        public String[] getDiagnosticCauses​(String messageID,
                                            String moduleName)
        Deprecated.
      • getDiagnosticChecks

        public String[] getDiagnosticChecks​(String messageID,
                                            String moduleName)
        Deprecated.
      • getDiagnosticURI

        public String getDiagnosticURI​(String messageID)
        Deprecated.
      • privateLoggingHook

        public void privateLoggingHook​(LogRecord logRecord,
                                       Formatter formatter)
        Deprecated.
        Internal use only, called by com.sun.enterprise.server.logging.AMXLoggingHook.
      • testEmitLogMessage

        public void testEmitLogMessage​(String level,
                                       String message)
        Deprecated.