|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.softwareag.tamino.db.api.logging.TTimeLogger
public class TTimeLogger
This is the central class to offer time logging of the API. Objects that want to trace periods of time require TTimekeeper objects from the TTimeLogger. This class implements the singleton pattern, i.e. there is always only one instance of this class available.
Field Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int FULL_OUTPUT
public static final int COMPACT_OUTPUT
public static final int UNIVERSAL_OUTPUT
Method Detail |
---|
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 description
public TTimekeeper getTimekeeper()
public TTimekeeper getParserTimekeeper()
public TTimekeeper getServerTimekeeper(java.lang.String duration)
duration
- the total time for the processing in the Tamino Server
public TTimekeeper getCommunicationTimekeeper()
public TTimekeeper getTopTimekeeper(java.lang.String message)
message
- a description
public TTimekeeper getUniversalTimekeeper(java.lang.String message)
message
- a description
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |