Author: sebb
Date: Wed Jan 28 23:28:39 2009
New Revision: 738669
URL: http://svn.apache.org/viewvc?rev=738669&view=rev
Log:
Javadoc
Privatise fields
Modified:
jakarta/jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterContext.java
Modified:
jakarta/jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterContext.java
URL:
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterContext.java?rev=738669&r1=738668&r2=738669&view=diff
==============================================================================
--- jakarta/jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterContext.java
(original)
+++ jakarta/jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterContext.java
Wed Jan 28 23:28:39 2009
@@ -23,18 +23,19 @@
import org.apache.jmeter.engine.StandardJMeterEngine;
/**
- * Holds context for a thread
+ * Holds context for a thread.
+ * Generated by JMeterContextService.
*/
public class JMeterContext {
- JMeterVariables variables;
+ private JMeterVariables variables;
- SampleResult previousResult;
+ private SampleResult previousResult;
- Sampler currentSampler;
+ private Sampler currentSampler;
- Sampler previousSampler;
+ private Sampler previousSampler;
- boolean samplingStarted;
+ private boolean samplingStarted;
private StandardJMeterEngine engine;
@@ -63,10 +64,20 @@
readBuffer = null;
}
+ /**
+ * Gives access to the JMeter variables for the current thread.
+ *
+ * @return a pointer to the JMeter variables.
+ */
public JMeterVariables getVariables() {
return variables;
}
+ /**
+ * A temporary buffer that can be shared between samplers in a thread.
+ *
+ * @return the shared read buffer
+ */
public byte[] getReadBuffer() {
if (readBuffer == null) {
readBuffer = new byte[8192];
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]