public class TTimeLogger
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
COMPACT_OUTPUT
Display the time keeper information in a summarized form.
|
static int |
FULL_OUTPUT
Display the time keeper information completely.
|
static int |
UNIVERSAL_OUTPUT
Display the time keeper information for internal performance measurements.
|
Modifier and Type | Method and Description |
---|---|
TTimekeeper |
getCommunicationTimekeeper()
Get a communication timekeeper used to measure the time
from sending a request to Tamino until the whole answer is received.
|
static TTimeLogger |
getInstance()
Gets the singleton TTimeLogger instance.
|
TTimekeeper |
getParserTimekeeper()
Get a parser timekeeper used to measure the time
for the parsing of a document.
|
TTimekeeper |
getServerTimekeeper(java.lang.String duration)
Get a server timekeeper used to measure the total time
for the processing in the Tamino Server - "ino:duration".
|
TTimekeeper |
getTimekeeper()
Get a unspecified timekeeper
|
TTimekeeper |
getTimekeeper(java.lang.String message)
Get a unspecified timekeeper
|
TTimekeeper |
getTopTimekeeper(java.lang.String message)
Get a top level timekeeper
|
TTimekeeper |
getUniversalTimekeeper(java.lang.String message)
Get a universal timekeeper
|
boolean |
isLoggingOn()
Test if time logging is enabled.
|
void |
setLoggingOn(boolean enable)
Sets whether or not time logging is on.
|
void |
setOutputForm(int value)
Which form will be used to output the time keeper information.
|
public static final int FULL_OUTPUT
public static final int COMPACT_OUTPUT
public static final int UNIVERSAL_OUTPUT
public static TTimeLogger getInstance()
public boolean isLoggingOn()
public void setLoggingOn(boolean enable)
If
- true, time logging is enabled; otherwise it is disabled.public void setOutputForm(int value)
value
- the form that will be used to output the time keeper information.public TTimekeeper getTimekeeper(java.lang.String message)
message
- a descriptionpublic TTimekeeper getTimekeeper()
public TTimekeeper getParserTimekeeper()
public TTimekeeper getServerTimekeeper(java.lang.String duration)
duration
- the total time for the processing in the Tamino Serverpublic TTimekeeper getCommunicationTimekeeper()
public TTimekeeper getTopTimekeeper(java.lang.String message)
message
- a descriptionpublic TTimekeeper getUniversalTimekeeper(java.lang.String message)
message
- a descriptionCopyright (c) 2015 Software AG. All Rights Reserved.