jakarta-jmeter-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r582435 - /jakarta/jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/sampler/JDBCSampler.java
Date Sat, 06 Oct 2007 02:34:52 GMT
Author: sebb
Date: Fri Oct  5 19:34:51 2007
New Revision: 582435

URL: http://svn.apache.org/viewvc?rev=582435&view=rev
Log:
Use latency for time to establish the connection

Modified:
    jakarta/jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/sampler/JDBCSampler.java

Modified: jakarta/jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/sampler/JDBCSampler.java
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/sampler/JDBCSampler.java?rev=582435&r1=582434&r2=582435&view=diff
==============================================================================
--- jakarta/jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/sampler/JDBCSampler.java
(original)
+++ jakarta/jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/sampler/JDBCSampler.java
Fri Oct  5 19:34:51 2007
@@ -148,8 +148,9 @@
 
 		try {
 
-			// TODO: Consider creating a sub-result with the time to get the connection.
 			conn = DataSourceElement.getConnection(getDataSource());
+			res.latencyEnd(); // use latency to measure connection time
+			res.setResponseHeaders(conn.toString());
 
             // Based on query return value, get results
             String _queryType = getQueryType();
@@ -217,6 +218,7 @@
 			close(conn);
 		}
 
+		// TODO: process warnings? Set Code and Message to success?
 		res.sampleEnd();
 		return res;
 	}



---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org


Mime
View raw message