Class FileServerDebugInterface

  • All Implemented Interfaces:
    org.alfresco.jlan.debug.DebugInterface

    public class FileServerDebugInterface
    extends Object
    implements org.alfresco.jlan.debug.DebugInterface
    Alfresco File Server Debug Interface Class Adapts JLAN's debug information out to Alfresco's logging
    Author:
    gkspencer
    • Constructor Detail

      • FileServerDebugInterface

        public FileServerDebugInterface()
        Class constructor
    • Method Detail

      • debugPrint

        public void debugPrint​(String str,
                               int level)
        Output a debug string.
        Specified by:
        debugPrint in interface org.alfresco.jlan.debug.DebugInterface
        Parameters:
        str - String
      • debugPrintln

        public void debugPrintln​(String str,
                                 int level)
        Output a debug string, and a newline.
        Specified by:
        debugPrintln in interface org.alfresco.jlan.debug.DebugInterface
        Parameters:
        str - String
      • debugPrintln

        public void debugPrintln​(Throwable ex,
                                 int level)
        Output an exception
        Parameters:
        ex - Throwable
        level - int
      • logOutput

        protected void logOutput​(String str,
                                 int level)
        Output to the logger at the appropriate log level
        Parameters:
        str - String
        level - int
      • initialize

        public void initialize​(org.springframework.extensions.config.ConfigElement params)
                        throws Exception
        Initialize the debug interface using the specified named parameters.
        Parameters:
        params - ConfigElement
        Throws:
        Exception
      • getLogLevel

        public int getLogLevel()
        Map logger level to JLAN debug level
        Specified by:
        getLogLevel in interface org.alfresco.jlan.debug.DebugInterface
      • close

        public void close()
        Specified by:
        close in interface org.alfresco.jlan.debug.DebugInterface
      • debugPrint

        public void debugPrint​(String str)
        Specified by:
        debugPrint in interface org.alfresco.jlan.debug.DebugInterface
      • debugPrintln

        public void debugPrintln​(String str)
        Specified by:
        debugPrintln in interface org.alfresco.jlan.debug.DebugInterface
      • debugPrintln

        public void debugPrintln​(Exception ex,
                                 int level)
        Specified by:
        debugPrintln in interface org.alfresco.jlan.debug.DebugInterface
      • initialize

        public void initialize​(org.springframework.extensions.config.ConfigElement params,
                               org.alfresco.jlan.server.config.ServerConfiguration config)
                        throws Exception
        Specified by:
        initialize in interface org.alfresco.jlan.debug.DebugInterface
        Throws:
        Exception