Class LogSwiftletImpl

    • Constructor Detail

      • LogSwiftletImpl

        public LogSwiftletImpl()
    • Method Detail

      • logInformation

        public void logInformation​(java.lang.String source,
                                   java.lang.String message)
        Log an information message
        Specified by:
        logInformation in class LogSwiftlet
        Parameters:
        source - usually the swiftlet name
        message - the message to log
      • logWarning

        public void logWarning​(java.lang.String source,
                               java.lang.String message)
        Log a warning message
        Specified by:
        logWarning in class LogSwiftlet
        Parameters:
        source - usually the swiftlet name
        message - the message to log
      • logError

        public void logError​(java.lang.String source,
                             java.lang.String message)
        Log an error message
        Specified by:
        logError in class LogSwiftlet
        Parameters:
        source - usually the swiftlet name
        message - the message to log
      • createLogSink

        public LogSink createLogSink​(java.lang.String s)
        Description copied from class: LogSwiftlet
        Creates a log sink under a specific name.
        Specified by:
        createLogSink in class LogSwiftlet
        Parameters:
        s - log sink name
        Returns:
        log sink
      • startup

        protected void startup​(Configuration config)
                        throws SwiftletException
        Startup the swiftlet. Check if all required properties are defined and all other startup conditions are met. Do startup work (i. e. start working thread, get/open resources). If any condition prevends from startup fire a SwiftletException.
        Specified by:
        startup in class Swiftlet
        Parameters:
        config - Swiftlet configuration.
        Throws:
        SwiftletException
      • shutdown

        protected void shutdown()
                         throws SwiftletException
        Shutdown the swiftlet. Check if all shutdown conditions are met. Do shutdown work (i. e. stop working thread, close resources). If any condition prevends from shutdown fire a SwiftletException.
        Specified by:
        shutdown in class Swiftlet
        Throws:
        SwiftletException