You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by se...@apache.org on 2007/11/11 21:20:17 UTC

svn commit: r593946 - /jakarta/jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleEvent.java

Author: sebb
Date: Sun Nov 11 12:20:13 2007
New Revision: 593946

URL: http://svn.apache.org/viewvc?rev=593946&view=rev
Log:
Allow hostname to be specified so can use the hostname loaded from a results file

Modified:
    jakarta/jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleEvent.java

Modified: jakarta/jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleEvent.java
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleEvent.java?rev=593946&r1=593945&r2=593946&view=diff
==============================================================================
--- jakarta/jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleEvent.java (original)
+++ jakarta/jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleEvent.java Sun Nov 11 12:20:13 2007
@@ -46,7 +46,7 @@
 
 	SampleResult result;
 
-	String threadGroup;
+	String threadGroup; // TODO appears to duplicate the threadName field in SampleResult
 
 	String hostname;
 
@@ -57,6 +57,19 @@
 		this.result = result;
 		this.threadGroup = threadGroup;
 		this.hostname = HOSTNAME;
+	}
+
+	/**
+	 * Only intended for use when loading results from a file.
+	 * 
+	 * @param result
+	 * @param threadGroup
+	 * @param hostname
+	 */
+	public SampleEvent(SampleResult result, String threadGroup, String hostname) {
+		this.result = result;
+		this.threadGroup = threadGroup;
+		this.hostname = hostname;
 	}
 
 	public SampleResult getResult() {



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