|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.mqe.trace.MQeTraceToReadable
A trace handler which outputs readable trace to a specified output stream.
An instance of this class can be used to collect trace from the mechanism
provided by the MQeTrace
class.
Use the MQeTrace.setHandler(com.ibm.mqe.MQeTraceHandler)
method to cause trace
information to flow into an instance of this class, and from there into a
java.io.PrintStream object.
MQeTrace
,
MQeTrace.setHandler(com.ibm.mqe.MQeTraceHandler)
Constructor Summary | |
MQeTraceToReadable()
Creates a trace handler which outputs readable information to System.out, using a default trace renderer object. |
|
MQeTraceToReadable(java.io.PrintStream outStream,
MQeTraceRenderer renderer)
Creates a trace handler which will output readable information to the specified output stream. |
Method Summary | |
void |
setOutputStream(java.io.PrintStream newStream)
Sets up the print stream to which readable trace information will be written. |
void |
setRenderer(MQeTraceRenderer renderer)
Sets, or re-sets the trace renderer to be used to map from a trace message number to a set of associated properties. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.mqe.MQeTraceHandler |
setFilter, traceMessage, traceMessage, traceMessage, traceMessage, traceMessage |
Constructor Detail |
public MQeTraceToReadable(java.io.PrintStream outStream, MQeTraceRenderer renderer)
Use the setOutputStream(java.io.PrintStream)
method to change the output
stream specified by this constructor.
outStream
- The open output stream to which readable trace output should
be directed. This might be a file for example, or System.out.
Specify null here if you want to suppress output for now.renderer
- An MQeTraceRenderer object, capable of mapping from a trace point
number to a set of associated data.
Specifying null here will cause a cut-down, less meaningful output to be generated.public MQeTraceToReadable()
Output from this trace handler is deposited on the System.out stream.
A new instance of the MQeTraceRenderer
class is created
and used to map from trace point numbers, to decoded strings.
Method Detail |
public void setRenderer(MQeTraceRenderer renderer)
renderer
- The new renderer to use. Null will cause a cut-down, less meaningful
output to be generated.
public void setOutputStream(java.io.PrintStream newStream)
newStream
- The new output stream to which output will be directed.
A null value will suppress any trace output until an output stream is set.
|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |