Class LogSwiftletImpl

java.lang.Object
com.swiftmq.swiftlet.Swiftlet
com.swiftmq.swiftlet.log.LogSwiftlet
com.swiftmq.impl.log.standard.LogSwiftletImpl

public class LogSwiftletImpl extends com.swiftmq.swiftlet.log.LogSwiftlet
  • Field Summary

    Fields inherited from class com.swiftmq.swiftlet.Swiftlet

    STATE_ACTIVE, STATE_INACTIVE, STATE_STANDBY
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.swiftmq.swiftlet.log.LogSink
     
    void
    logError(String source, String message)
    Log an error message
    void
    logInformation(String source, String message)
    Log an information message
    void
    logWarning(String source, String message)
    Log a warning message
    protected void
    Shutdown the swiftlet.
    protected void
    startup(com.swiftmq.mgmt.Configuration config)
    Startup the swiftlet.

    Methods inherited from class com.swiftmq.swiftlet.Swiftlet

    getName, getStartupTime, getState, isSnapshotAvailable, resume, setStartupTime, standby

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LogSwiftletImpl

      public LogSwiftletImpl()
  • Method Details

    • logInformation

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

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

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

      public com.swiftmq.swiftlet.log.LogSink createLogSink(String s)
      Specified by:
      createLogSink in class com.swiftmq.swiftlet.log.LogSwiftlet
    • startup

      protected void startup(com.swiftmq.mgmt.Configuration config) throws com.swiftmq.swiftlet.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 com.swiftmq.swiftlet.Swiftlet
      Throws:
      com.swiftmq.swiftlet.SwiftletException
    • shutdown

      protected void shutdown() throws com.swiftmq.swiftlet.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 com.swiftmq.swiftlet.Swiftlet
      Throws:
      com.swiftmq.swiftlet.SwiftletException