public class BinaryTrace extends Object
Modifier and Type | Field and Description |
---|---|
static String[] |
monthNames
The month names.
|
Constructor and Description |
---|
BinaryTrace() |
Modifier and Type | Method and Description |
---|---|
static void |
dump(ClientConnectionData client,
byte[] buf) |
static void |
dump(ClientConnectionData client,
byte[] buf,
boolean isEBCDIC) |
static void |
dump(ClientConnectionData client,
byte[] buf,
int length) |
static void |
dump(ClientConnectionData client,
byte[] buf,
int length,
boolean isEBCDIC) |
static void |
dump(ClientConnectionData client,
byte[] buf,
int startingPosition,
int length) |
static void |
dump(ClientConnectionData client,
byte[] buf,
int startingPosition,
int length,
boolean isEBCDIC) |
static void |
dump(ClientConnectionData client,
short[] buf) |
static void |
dump(ClientConnectionData client,
short[] buf,
boolean isEBCDIC) |
static void |
dump(ClientConnectionData client,
short[] buf,
int length) |
static void |
dump(ClientConnectionData client,
short[] buf,
int length,
boolean isEBCDIC) |
static void |
dump(ClientConnectionData client,
short[] buf,
int startingPosition,
int length) |
static void |
dump(ClientConnectionData client,
short[] buf,
int startingPosition,
int length,
boolean isEBCDIC) |
static void |
dump(ClientConnectionData client,
String header) |
static void |
dump(ClientConnectionData client,
String[] headers) |
static void |
dump(ClientConnectionData client,
String header,
byte[] buf) |
static void |
dump(ClientConnectionData client,
String header,
byte[] buf,
boolean isEBCDIC) |
static void |
dump(ClientConnectionData client,
String header,
byte[] buf,
int length) |
static void |
dump(ClientConnectionData client,
String header,
byte[] buf,
int length,
boolean isEBCDIC) |
static void |
dump(ClientConnectionData client,
String header,
byte[] buf,
int startingPosition,
int length) |
static void |
dump(ClientConnectionData client,
String header,
byte[] buf,
int startingPosition,
int length,
boolean isEBCDIC) |
static void |
dump(ClientConnectionData client,
String header,
short[] buf) |
static void |
dump(ClientConnectionData client,
String header,
short[] buf,
boolean isEBCDIC) |
static void |
dump(ClientConnectionData client,
String header,
short[] buf,
int length) |
static void |
dump(ClientConnectionData client,
String header,
short[] buf,
int length,
boolean isEBCDIC) |
static void |
dump(ClientConnectionData client,
String header,
short[] buf,
int startingPosition,
int length) |
static void |
dump(ClientConnectionData client,
String header,
short[] buf,
int startingPosition,
int length,
boolean isEBCDIC) |
static void |
dump(ClientConnectionData client,
String mainHeading,
String[] headers) |
static void |
errPrint(String text)
Prints a line of text to stderr even if redirection is present.
|
static void |
errPrintln(String text)
Prints a line of text to stderr even if redirection is present.
|
static String |
formatDate(Date date)
Formats the
Date instance to a string that is used
by the dump methods in this class as well as other event logs
in NetPhantom. |
static String |
getCurrentTime() |
static long |
getMaximumFileSize()
Gets the maximum file size of a trace file.
|
static String |
getThousandFormattedNumber(int nn)
Gets a thousand-formatted positive number.
|
static String |
getThousandFormattedNumber(long nn)
Gets a thousand-formatted positive number.
|
static long |
getTraceFileLength()
Gets the current trace file length.
|
static String |
getTraceFileName()
The current trace file name.
|
static void |
print(String text)
Prints a line of text to the screen even if redirection is present.
|
static void |
println(String text)
Prints a line of text to the screen even if redirection is present.
|
static boolean |
rotateTraceFiles()
Changes the trace files.
|
static boolean |
setMaximumFileSize(long size)
Sets the maximum file size of a trace file.
|
static void |
setScreenOutputRedirection(boolean redirect)
Redirects stdout and stderr to trace file, or restores the original
settings.
|
static void |
setTraceFileName(String fn)
Sets the trace file name.
|
static void |
setTraceFileName(String fn,
boolean doAppend)
Sets the trace file name.
|
static void |
setupTraceFileNames(String fn1,
String fn2)
Sets up the two file names used when rotating trace files.
|
public static final String[] monthNames
public static String getCurrentTime()
public static void dump(ClientConnectionData client, String header, short[] buf, int startingPosition, int length, boolean isEBCDIC)
public static void dump(ClientConnectionData client, short[] buf, int startingPosition, int length, boolean isEBCDIC)
public static void dump(ClientConnectionData client, String header, short[] buf, int length, boolean isEBCDIC)
public static void dump(ClientConnectionData client, short[] buf, int length, boolean isEBCDIC)
public static void dump(ClientConnectionData client, String header, short[] buf, boolean isEBCDIC)
public static void dump(ClientConnectionData client, short[] buf, boolean isEBCDIC)
public static void dump(ClientConnectionData client, String header, byte[] buf, int startingPosition, int length, boolean isEBCDIC)
public static void dump(ClientConnectionData client, byte[] buf, int startingPosition, int length, boolean isEBCDIC)
public static void dump(ClientConnectionData client, String header, byte[] buf, int length, boolean isEBCDIC)
public static void dump(ClientConnectionData client, byte[] buf, int length, boolean isEBCDIC)
public static void dump(ClientConnectionData client, String header, byte[] buf, boolean isEBCDIC)
public static void dump(ClientConnectionData client, byte[] buf, boolean isEBCDIC)
public static void dump(ClientConnectionData client, String header, short[] buf, int startingPosition, int length)
public static void dump(ClientConnectionData client, short[] buf, int startingPosition, int length)
public static void dump(ClientConnectionData client, String header, short[] buf, int length)
public static void dump(ClientConnectionData client, short[] buf, int length)
public static void dump(ClientConnectionData client, String header, short[] buf)
public static void dump(ClientConnectionData client, short[] buf)
public static void dump(ClientConnectionData client, String header, byte[] buf, int startingPosition, int length)
public static void dump(ClientConnectionData client, byte[] buf, int startingPosition, int length)
public static void dump(ClientConnectionData client, String header, byte[] buf, int length)
public static void dump(ClientConnectionData client, byte[] buf, int length)
public static void dump(ClientConnectionData client, String header, byte[] buf)
public static void dump(ClientConnectionData client, byte[] buf)
public static void dump(ClientConnectionData client, String header)
public static void dump(ClientConnectionData client, String[] headers)
public static void dump(ClientConnectionData client, String mainHeading, String[] headers)
public static void setupTraceFileNames(String fn1, String fn2)
Note: No assignment of file name for tracing is done at
this point, call setTraceFileName
in order
to perform this.
public static void setTraceFileName(String fn) throws IOException
IOException
- if an I/O error occurs.public static void setTraceFileName(String fn, boolean doAppend) throws IOException
IOException
- if an I/O error occurs.public static String getTraceFileName()
public static long getTraceFileLength()
public static boolean rotateTraceFiles()
public static boolean setMaximumFileSize(long size)
public static long getMaximumFileSize()
public static String formatDate(Date date)
Date
instance to a string that is used
by the dump methods in this class as well as other event logs
in NetPhantom.public static String getThousandFormattedNumber(int nn)
public static String getThousandFormattedNumber(long nn)
public static void setScreenOutputRedirection(boolean redirect)
public static void print(String text)
public static void println(String text)
public static void errPrint(String text)
public static void errPrintln(String text)
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.