Class TraceSwiftlet

java.lang.Object
com.swiftmq.swiftlet.Swiftlet
com.swiftmq.swiftlet.trace.TraceSwiftlet

public abstract class TraceSwiftlet extends Swiftlet
The TraceSwiftlet manages trace spaces. A trace space is a destination for trace output and can be dynamically switched on/off. Therefore, every Swiftlet should place trace call into their code at relevant places to enable live tracing if necessary.
Author:
IIT GmbH, Bremen/Germany, Copyright (c) 2000-2002, All Rights Reserved
  • Field Details

  • Constructor Details

    • TraceSwiftlet

      public TraceSwiftlet()
  • Method Details

    • getTraceSpace

      public TraceSpace getTraceSpace(String spaceName)
      Get a trace space with that name.
      Parameters:
      spaceName - space name
      Returns:
      always returns a valid trace space
    • setTraceEnabled

      public void setTraceEnabled(String spaceName, boolean b)
      Enabled/Disables the trace space. If the space does not exists a new one is created.
      Parameters:
      spaceName - space name
      b - true or false
    • createTraceSpace

      protected abstract TraceSpace createTraceSpace(String spaceName)
      Abstract factory method to create a trace space. In every case it has to return a valid trace space object
      Parameters:
      spaceName - space name
      Returns:
      a valid trace space object
    • shutdown

      protected void shutdown() throws SwiftletException
      Description copied from class: Swiftlet
      Stop this Swiftlet. Called from the SwiftletManager during router shutdown.
      Specified by:
      shutdown in class Swiftlet
      Throws:
      SwiftletException - on error during shutdown.