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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]