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/05/19 12:34:20 UTC

svn commit: r539726 - /jakarta/jmeter/branches/rel-2-2/src/core/org/apache/jmeter/samplers/SampleSaveConfiguration.java

Author: sebb
Date: Sat May 19 03:34:17 2007
New Revision: 539726

URL: http://svn.apache.org/viewvc?view=rev&rev=539726
Log:
Implement readResolve for transient formatter
Add constructor for use by OldSaveService (and testing)

Modified:
    jakarta/jmeter/branches/rel-2-2/src/core/org/apache/jmeter/samplers/SampleSaveConfiguration.java

Modified: jakarta/jmeter/branches/rel-2-2/src/core/org/apache/jmeter/samplers/SampleSaveConfiguration.java
URL: http://svn.apache.org/viewvc/jakarta/jmeter/branches/rel-2-2/src/core/org/apache/jmeter/samplers/SampleSaveConfiguration.java?view=diff&rev=539726&r1=539725&r2=539726
==============================================================================
--- jakarta/jmeter/branches/rel-2-2/src/core/org/apache/jmeter/samplers/SampleSaveConfiguration.java (original)
+++ jakarta/jmeter/branches/rel-2-2/src/core/org/apache/jmeter/samplers/SampleSaveConfiguration.java Sat May 19 03:34:17 2007
@@ -21,6 +21,7 @@
  */
 package org.apache.jmeter.samplers;
 
+import java.io.ObjectStreamException;
 import java.io.Serializable;
 import java.text.SimpleDateFormat;
 import java.util.Properties;
@@ -354,12 +355,46 @@
 	public SampleSaveConfiguration() {
 	}
 
+	/**
+	 * Alternate constructor for use by OldSaveService
+	 * 
+	 * @param value initial setting for boolean fields used in Config dialogue
+	 */
+	public SampleSaveConfiguration(boolean value) {
+		assertions = value;
+		bytes = value;
+		code = value;
+		dataType = value;
+		encoding = value;
+		fieldNames = value;
+		fileName = value;
+		label = value;
+		latency = value;
+		message = value;
+		//printMilliseconds is derived from properties only
+		requestHeaders = value;
+		responseData = value;
+		responseDataOnError = value;
+		responseHeaders = value;
+		samplerData = value;
+		saveAssertionResultsFailureMessage = value;
+		subresults = value;
+		success = value;
+		threadCounts = value;
+		threadName = value;
+		time = value;
+		timestamp = value;
+		url = value;
+		xml = value;
+	}
+
 // TODO: may need to implement this to allow for adding new attributes to the config,
 // otherwise XStream will not populate the missing attributes
  
-//    private Object readResolve() throws ObjectStreamException{
-//       return this;
-//    }
+    private Object readResolve() throws ObjectStreamException{
+	   formatter = _formatter;
+       return this;
+    }
 
     public Object clone() {
         try {



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