Package com.swiftmq.swiftlet.trace
Class TraceSwiftlet
java.lang.Object
com.swiftmq.swiftlet.Swiftlet
com.swiftmq.swiftlet.trace.TraceSwiftlet
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
Fields inherited from class com.swiftmq.swiftlet.Swiftlet
STATE_ACTIVE, STATE_INACTIVE, STATE_STANDBY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract TraceSpace
createTraceSpace
(String spaceName) Abstract factory method to create a trace space.getTraceSpace
(String spaceName) Get a trace space with that name.void
setTraceEnabled
(String spaceName, boolean b) Enabled/Disables the trace space.protected void
shutdown()
Stop this Swiftlet.Methods inherited from class com.swiftmq.swiftlet.Swiftlet
getName, getStartupTime, getState, isSnapshotAvailable, resume, setStartupTime, standby, startup
-
Field Details
-
SPACE_KERNEL
- See Also:
-
SPACE_SWIFTLET
- See Also:
-
SPACE_QUEUE
- See Also:
-
SPACE_PROTOCOL
- See Also:
-
-
Constructor Details
-
TraceSwiftlet
public TraceSwiftlet()
-
-
Method Details
-
getTraceSpace
Get a trace space with that name.- Parameters:
spaceName
- space name- Returns:
- always returns a valid trace space
-
setTraceEnabled
Enabled/Disables the trace space. If the space does not exists a new one is created.- Parameters:
spaceName
- space nameb
- true or false
-
createTraceSpace
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
Description copied from class:Swiftlet
Stop this Swiftlet. Called from the SwiftletManager during router shutdown.- Specified by:
shutdown
in classSwiftlet
- Throws:
SwiftletException
- on error during shutdown.
-