public class TraceRecordFormatter extends Object
| Constructor and Description |
|---|
TraceRecordFormatter() |
| Modifier and Type | Method and Description |
|---|---|
static String |
convertPropsToString(Properties prop)
Helper method to convert properties to string.
|
static String |
convertToString(byte[] byteArray)
Helper method to convert a byte arror to string.
|
static String |
convertXidArrayToString(Xid[] xidArray)
Converts an array of xids to string that can be printed.
|
static String |
createTraceRecord(Object tid,
Object origin,
String message)
Returns the formatted record, by accepting the simple string
message, tid and originator, which can be written to OutputStream
|
static String |
getTraceRecordScheme()
Returns the scheme used to format the record.
|
public static String createTraceRecord(Object tid, Object origin, String message)
tid - an Object valueorigin - an Object valuemessage - a String valueString valuepublic static String getTraceRecordScheme()
String valuepublic static String convertToString(byte[] byteArray)
byteArray - a byte[] valueString valuepublic static String convertXidArrayToString(Xid[] xidArray)
xidArray - a Xid[] valueString valuepublic static String convertPropsToString(Properties prop)
prop - a Properties valueString valueCopyright © 2019. All rights reserved.