|
CICS® Transaction Gateway Base API Programming Reference v8.1.0.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.ctg.client.T
public class T
This class controls CICS Transaction Gateway application trace. Tracing can be
activated using the API calls in this class. Alternatively tracing can be activated
via Java system directives. The Java directives are processed when this class
is loaded. The relevant directives are listed below. The first column represents
the directive name, the second column the possible parameters and the third the
equivalent API call.
Directive | Parameter | API call |
gateway.T | on/off | setDebugOn(boolean) |
gateway.T.stack | on/off | setStackOn(boolean) |
gateway.T.trace | on/off | setOn(boolean) |
gateway.T.timing | on/off | setTimingOn(boolean) |
gateway.T.fullDataDump | on/off | setfullDataDumpOn(boolean) |
gateway.T.setTruncationSize | integer | setTruncationSize(int) |
gateway.T.setDumpOffset | integer | setDumpOffset(int) |
gateway.T.setTFile | file name | setTFile(boolean, String) |
gateway.T.setJNITFile | file name | setJNITFile(int, String) |
Field Summary | |
---|---|
static int |
JNI_TRACE_OFF
Turn JNI trace off. |
static int |
JNI_TRACE_ON
Turn JNI trace on. |
Method Summary | |
---|---|
static void |
setDebugOn(boolean bOn)
Turns all levels of tracing on or off. Note: In addition to activating all trace points setDebugOn switches
off dump truncation and dump offsets causing the entire data dump to be output to trace. |
static void |
setDumpOffset(int dOffset)
Sets the offset that tracing will start hex dumps of the commarea and data flows from. |
static void |
setfullDataDumpOn(boolean bOn)
Turns full commarea tracing on or off. |
static boolean |
setJNITFile(int iOn,
java.lang.String strJNITFile)
Set the JNI trace file. |
static boolean |
setJNITrace(int iOn)
Enables or disables JNI tracing. |
static void |
setOn(boolean bOn)
Turns product tracing on or off |
static void |
setOutput(java.io.PrintStream prsNew)
Sets the PrintStream object that the extra tracing messages are sent to. |
static void |
setStackOn(boolean bOn)
Turns stack tracing on or off. |
static void |
setTFile(boolean bOn,
java.lang.String strTFile)
Turns on tracefile option with no wrapping, filename = strTFile. |
static void |
setTFile(boolean bOn,
java.lang.String strTFile,
long traceSize)
Turns Tracing on or off. |
static void |
setTimingOn(boolean bOn)
Deprecated. |
static void |
setTruncationSize(int truncSize)
Sets the size that tracing will truncate hex dumps of the commarea and data flows. Note: the setDebugOn(true) and setfullDataDumpOn(true)
API calls disable data dump truncation, and cause entire data blocks to
be output to trace. |
static void |
writeLogToTrace(java.lang.String traceMsg)
Write log messages to trace. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int JNI_TRACE_ON
setJNITFile(int, String)
or setJNITrace(int)
.
public static final int JNI_TRACE_OFF
setJNITrace(int)
.
Method Detail |
---|
public static void setOn(boolean bOn)
bOn
- true to turn tracing on, false to turn offpublic static void setDebugOn(boolean bOn)
setDebugOn
switches
off dump truncation and dump offsets causing the entire data dump to be output to trace.
Calls to setTruncationSize(int)
and setDumpOffset(int)
should be made after the setDebugOn
call.
bOn
- true to turn tracing on, false to turn offpublic static void setStackOn(boolean bOn)
bOn
- true to turn stack tracing on, false to turn off@Deprecated public static void setTimingOn(boolean bOn)
bOn
- true to turn timing on, false to turn timing offpublic static void setOutput(java.io.PrintStream prsNew)
prsNew
- The new PrintStream to use for tracingpublic static void setfullDataDumpOn(boolean bOn)
bOn
- true disables the dump offset and dump truncation settings.
The entire data block will be output in the trace.public static void setTruncationSize(int truncSize) throws java.lang.IllegalArgumentException
setDebugOn(true)
and setfullDataDumpOn(true)
API calls disable data dump truncation, and cause entire data blocks to
be output to trace. To specify a truncation size for debug trace the
T.setTruncationSize
call should be made after the
setDebugOn(boolean)
call.
truncSize
- with a minimum value of 0
The truncation size and full data dump flag are unchanged and an
IllegalArgumentException is thrown if the input parameter is out of range.
java.lang.IllegalArgumentException
public static void setDumpOffset(int dOffset) throws java.lang.IllegalArgumentException
setDebugOn(true)
and setfullDataDumpOn(true)
will cause the entire data dump to be output to the trace. In order to
change the dump offset in a debug trace the setDumpOffset
call should be made after the setDebugOn(boolean)
call.
dOffset
- with a minimum value of 0
If the total length of data to be dumped is less than the offset in any
instance, the offset value will be ignored and it will behave as if
an offset of 0 had been specified.
If the offset specified is negative then an IllegalArgumentException
will be thrown and the dumpOffset value will be unchanged.
java.lang.IllegalArgumentException
public static void setTFile(boolean bOn, java.lang.String strTFile)
bOn
- true to turn tracefile onstrTFile
- filenamepublic static void setTFile(boolean bOn, java.lang.String strTFile, long traceSize)
bOn
- true to turn tracefile onstrTFile
- filenametraceSize
- wrapping sizepublic static boolean setJNITFile(int iOn, java.lang.String strJNITFile) throws java.io.IOException, java.lang.IllegalArgumentException
iOn
- T.JNI_TRACE_ON to turn JNI tracing on, T.JNI_TRACE_OFF to
turn JNI tracing offstrJNITFile
- The filename to trace to
java.io.IOException
- if the trace file could not be created due to a file
system issue.
java.lang.IllegalArgumentException
public static boolean setJNITrace(int iOn) throws java.lang.IllegalArgumentException
iOn
- T.JNI_TRACE_ON to turn JNI tracing on, T.JNI_TRACE_OFF to
turn JNI tracing off. If the parameter is neither T.JNI_TRACE_ON or
T.JNI_TRACE_OFF then an IllegalArgumentException will be thrown and the
trace settings will not be changed
java.lang.IllegalArgumentException
public static void writeLogToTrace(java.lang.String traceMsg)
traceMsg
- Preformatted message to write.
|
©Copyright IBM Corp. 1994, 2012 Legal |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |