Package com.swiftmq.swiftlet.trace
Class TraceSpace
java.lang.Object
com.swiftmq.swiftlet.trace.TraceSpace
A TraceSpace.
- Author:
- IIT GmbH, Bremen/Germany, Copyright (c) 2000-2002, All Rights Reserved
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes the space.protected abstract void
Abstract method which is called duringclose
to close any resources associates with this space (i.Returns the space nameabstract void
Trace a message to the space.
-
Field Details
-
enabled
public boolean enabledStates whether the space is enabled or not. Swiftlets are checking this flag before calling thetrace()
method to avoid unnecessary calls and String operations.
-
-
Constructor Details
-
TraceSpace
Creates a new trace space- Parameters:
spaceName
- space nameenabled
- enabled or not
-
-
Method Details
-
getSpaceName
Returns the space name- Returns:
- space name
-
trace
Trace a message to the space. The subEntity parameter specifies what kind of entity is tracing. A Extension Swiftlet would use the Swiftlet name here.- Parameters:
subEntity
- sub entitymessage
- trace message
-
closeSpaceResources
protected abstract void closeSpaceResources()Abstract method which is called duringclose
to close any resources associates with this space (i. e. output streams). -
close
public void close()Closes the space. After that the space is unusable.
-