IBM DB2 Manual page 374

Table of Contents

Advertisement

|
|
|
|
|
|
|
|
|
|
|
358
Application Programming Guide and Reference for Java
getNetworkIOTimeMicros
Format:
public long getNetworkIOTimeMicros()
throws java.sql.SQLException
Returns the sum of elapsed network I/O times that were collected while
system monitoring was enabled. The time is in microseconds.
Elapsed network I/O time includes the time to write and read DRDA data
from network I/O streams. A network I/O elapsed time interval is the time
interval to perform the following operations in the JDBC driver:
v Issue a TCP/IP command to send a DRDA message to the database server.
This time interval is the difference, in microseconds, between points
immediately before and after a write and flush to the network I/O stream is
performed.
v Issue a TCP/IP command to receive DRDA reply messages from the
database server. This time interval is the difference, in microseconds,
between points immediately before and after a read on the network I/O
stream is performed.
Network I/O time intervals are captured for all send and receive operations,
including the sending of messages for commits and rollbacks.
The time spent waiting for network I/O might be impacted by delays in CPU
dispatching at the database server for low-priority SQL requests.
getNetworkIOTimeMicros 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.
getServerTimeMicros
Format:
public long getServerTimeMicros()
throws java.sql.SQLException
Returns the sum of all reported database server elapsed times that were
collected while system monitoring was enabled. The time is in microseconds.
The database server reports elapsed times under these conditions:
v The database server supports returning elapsed time data to the client.
DB2 Database for Linux, UNIX, and Windows Version 9.5 and later and DB2
for z/OS support this function.
v The database server performs operations that can be monitored. For
example, database server elapsed time is not returned for commits or
rollbacks.
For IBM Data Server Driver for JDBC and SQLJ type 2 connectivity to DB2
Database for Linux, UNIX, and Windows, and IBM Data Server Driver for JDBC and
SQLJ type 4 connectivity: The database server elapsed time is defined as the
elapsed time to parse the request data stream, process the command, and
generate the reply data stream at the database server. Network time to receive
or send the data stream is not included. The database server elapsed time
interval is the difference, in microseconds, between these points in the database
server processing:
Interval beginning
When the operating system dispatches the database server to process a
TCP/IP message that is received from the JDBC driver.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents