Author: sebb
Date: Sun Apr 30 14:17:13 2006
New Revision: 398438

URL: http://svn.apache.org/viewcvs?rev=398438&view=rev
Log:
Save ThreadGroup in the context

Modified:
    
jakarta/jmeter/branches/rel-2-1/src/core/org/apache/jmeter/threads/JMeterContext.java

Modified: 
jakarta/jmeter/branches/rel-2-1/src/core/org/apache/jmeter/threads/JMeterContext.java
URL: 
http://svn.apache.org/viewcvs/jakarta/jmeter/branches/rel-2-1/src/core/org/apache/jmeter/threads/JMeterContext.java?rev=398438&r1=398437&r2=398438&view=diff
==============================================================================
--- 
jakarta/jmeter/branches/rel-2-1/src/core/org/apache/jmeter/threads/JMeterContext.java
 (original)
+++ 
jakarta/jmeter/branches/rel-2-1/src/core/org/apache/jmeter/threads/JMeterContext.java
 Sun Apr 30 14:17:13 2006
@@ -1,6 +1,5 @@
-// $Header$
 /*
- * Copyright 2000-2004 The Apache Software Foundation.
+ * Copyright 2000-2004,2006 The Apache Software Foundation.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -23,7 +22,7 @@
 import org.apache.jmeter.engine.StandardJMeterEngine;
 
 /**
- * @version $Revision$
+ * Holds context for a thread
  */
 public class JMeterContext {
        JMeterVariables variables;
@@ -40,8 +39,9 @@
 
        private JMeterThread thread;
 
-       // NOTUSED private ThreadGroup threadGroup;
-       private int threadNum;
+       private ThreadGroup threadGroup;
+       
+    private int threadNum;
 
        private byte[] readBuffer = null;
 
@@ -139,6 +139,14 @@
        public void setThread(JMeterThread thread) {
                this.thread = thread;
        }
+
+    public ThreadGroup getThreadGroup() {
+        return this.threadGroup;
+    }
+
+    public void setThreadGroup(ThreadGroup threadgrp) {
+        this.threadGroup = threadgrp;
+    }
 
        public StandardJMeterEngine getEngine() {
                return engine;



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to