public class IlrMonitorModelPrinter
extends java.lang.Object
java.io.PrintWriter.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
AT |
static java.lang.String |
CAUSEDBY |
static java.lang.String |
CLASSDESCFOOTER |
static java.lang.String |
CLASSDESCHEADER |
static java.lang.String |
CLASSDESCSETHEADER |
static java.lang.String |
CODELOCFOOTER |
static java.lang.String |
CODELOCHEADER |
static java.lang.String |
EXECPOINTHEADER |
static java.lang.String |
LINE |
static java.lang.String |
NATIVE |
static java.lang.String |
NBOFCONTENTION |
static java.lang.String |
NEWLINE |
static java.lang.String |
ON |
protected IlrStackElementFilter |
stackElementfilter |
static java.lang.String |
STACKMARGING |
static java.lang.String |
THREADB |
static java.lang.String |
THREADE |
static java.lang.String |
THREADS |
static java.lang.String |
THREADSTATE |
protected java.io.PrintWriter |
writer |
| Constructor and Description |
|---|
IlrMonitorModelPrinter(java.io.PrintWriter writer)
Constructs an instance, that will be able to serialize a model in a text format.
|
IlrMonitorModelPrinter(java.io.PrintWriter writer,
IlrStackElementFilter stackElementfilter)
Constructs an instance that will be able to serialize a model in a text format whose stact trace will be filtered
according to the filter given.
|
| Modifier and Type | Method and Description |
|---|---|
void |
print(IlrClassDescription classDescription)
Prints a class description.
|
void |
print(IlrClassDescriptionSet classDescriptionSet)
Prints a model instance in the
PrintWriter. |
void |
print(IlrCodeLocation codeLoc)
Prints a code location.
|
void |
print(IlrExecutionPoint execPoint)
Prints an execution point.
|
void |
print(IlrExecutionPointHistory execPointH)
Prints a ordered set of execution point.
|
void |
print(IlrStackElement stackElement)
Prints or not a stack trace element according to the filter if any.
|
void |
print(IlrThread thread)
Prints a thread description.
|
public static final java.lang.String NEWLINE
public static final java.lang.String CLASSDESCSETHEADER
public static final java.lang.String CLASSDESCHEADER
public static final java.lang.String CLASSDESCFOOTER
public static final java.lang.String CODELOCHEADER
public static final java.lang.String THREADSTATE
public static final java.lang.String CODELOCFOOTER
public static final java.lang.String EXECPOINTHEADER
public static final java.lang.String STACKMARGING
public static final java.lang.String LINE
public static final java.lang.String NBOFCONTENTION
public static final java.lang.String THREADB
public static final java.lang.String THREADS
public static final java.lang.String THREADE
public static final java.lang.String CAUSEDBY
public static final java.lang.String AT
public static final java.lang.String ON
public static final java.lang.String NATIVE
protected java.io.PrintWriter writer
protected IlrStackElementFilter stackElementfilter
public IlrMonitorModelPrinter(java.io.PrintWriter writer)
IlrMonitorModelPrinter(writer, null) writer - an instance of java.io.PrintWriter.public IlrMonitorModelPrinter(java.io.PrintWriter writer,
IlrStackElementFilter stackElementfilter)
writer - an instance of java.io.PrintWriter.stackElementfilter - instance of IlrStackElementFilter, if null there will
be no filtering.public void print(IlrClassDescriptionSet classDescriptionSet)
PrintWriter. This is the only method to invoke to print the whole
model.classDescriptionSet - instance of IlrClassDescriptionSet.public void print(IlrClassDescription classDescription)
classDescription - instance of IlrClassDescriptionpublic void print(IlrCodeLocation codeLoc)
codeLoc - instance of IlrCodeLocationpublic void print(IlrExecutionPointHistory execPointH)
execPointH - instance of IlrExecutionPointHistorypublic void print(IlrExecutionPoint execPoint)
execPoint - instance of IlrExecutionPoint.public void print(IlrStackElement stackElement)
stackElement - instance of IlrStackElement.IlrStackElementFilter© Copyright IBM Corp. 1987, 2017