IBM DB2 Manual page 373

Table of Contents

Advertisement

enable
Format:
public void enable(boolean on)
throws java.sql.SQLException
Enables the system monitor that is associated with a connection. This method
cannot be called during monitoring. All times are reset when enable is
invoked.
getApplicationTimeMillis
Format:
public long getApplicationTimeMillis()
throws java.sql.SQLException
Returns the sum of the application, JDBC driver, network I/O, and database
server elapsed times. The time is in milliseconds.
A monitored elapsed time interval is the difference, in milliseconds, between
these points in the JDBC driver processing:
Interval beginning
When start is called.
Interval end
When stop is called.
getApplicationTimeMillis returns 0 if system monitoring is disabled. Calling
this method without first calling the stop method results in an SQLException.
getCoreDriverTimeMicros
Format:
public long getCoreDriverTimeMicros()
throws java.sql.SQLException
Returns the sum of elapsed monitored API times that were collected while
system monitoring was enabled. The time is in microseconds.
A monitored API is a JDBC driver method for which processing time is
collected. In general, elapsed times are monitored only for APIs that might
result in network I/O or database server interaction. For example,
PreparedStatement.setXXX methods and ResultSet.getXXX methods are not
monitored.
Monitored API elapsed time includes the total time that is spent in the driver
for a method call. This time includes any network I/O time and database
server elapsed time.
A monitored API elapsed time interval is the difference, in microseconds,
between these points in the JDBC driver processing:
Interval beginning
When a monitored API is called by the application.
Interval end
Immediately before the monitored API returns control to the application.
getCoreDriverTimeMicros returns 0 if system monitoring is disabled. Calling
this method without first calling the stop method, or calling this method when
the underlying JVM does not support reporting times in microseconds results
in an SQLException.
Chapter 7. JDBC and SQLJ reference information
357

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents