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 2006/02/22 01:04:56 UTC
svn commit: r379632 -
/jakarta/jmeter/branches/rel-2-1/src/functions/org/apache/jmeter/functions/FileWrapper.java
Author: sebb
Date: Tue Feb 21 16:04:55 2006
New Revision: 379632
URL: http://svn.apache.org/viewcvs?rev=379632&view=rev
Log:
Document usage of Maps
Modified:
jakarta/jmeter/branches/rel-2-1/src/functions/org/apache/jmeter/functions/FileWrapper.java
Modified: jakarta/jmeter/branches/rel-2-1/src/functions/org/apache/jmeter/functions/FileWrapper.java
URL: http://svn.apache.org/viewcvs/jakarta/jmeter/branches/rel-2-1/src/functions/org/apache/jmeter/functions/FileWrapper.java?rev=379632&r1=379631&r2=379632&view=diff
==============================================================================
--- jakarta/jmeter/branches/rel-2-1/src/functions/org/apache/jmeter/functions/FileWrapper.java (original)
+++ jakarta/jmeter/branches/rel-2-1/src/functions/org/apache/jmeter/functions/FileWrapper.java Tue Feb 21 16:04:55 2006
@@ -48,8 +48,12 @@
private static String defaultFile = ""; // for omitted file names
- private static Map fileContainers = new HashMap(); // Map file names to
- // containers
+ /*
+ * This Map serves two purposes:
+ * - maps file names to containers
+ * - ensures only one container per file across all threads
+ */
+ private static Map fileContainers = new HashMap();
/*
* Only needed locally
@@ -60,7 +64,7 @@
currentRow = -1;
}
- /* The cache of file packs */
+ /* The cache of file packs - used to improve thread access */
private static ThreadLocal filePacks = new ThreadLocal() {
protected Object initialValue() {
return new HashMap();
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org