Author: sebb Date: Wed Jan 28 23:29:22 2009 New Revision: 738670 URL: http://svn.apache.org/viewvc?rev=738670&view=rev Log: Javadoc Canonical qualifier order
Modified: jakarta/jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterContextService.java Modified: jakarta/jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterContextService.java URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterContextService.java?rev=738670&r1=738669&r2=738670&view=diff ============================================================================== --- jakarta/jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterContextService.java (original) +++ jakarta/jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterContextService.java Wed Jan 28 23:29:22 2009 @@ -46,11 +46,21 @@ private JMeterContextService() { } - static public JMeterContext getContext() { + /** + * Gives access to the current thread context. + * + * @return the current thread Context + */ + public static JMeterContext getContext() { return (JMeterContext) threadContext.get(); } - static public synchronized void startTest() { + /** + * Method is called by the JMeterEngine class when a test run is started. + * Zeroes numberOfActiveThreads. + * Saves current time in a field and in the JMeter property "TESTSTART.MS" + */ + public static synchronized void startTest() { if (testStart == 0) { numberOfActiveThreads = 0; testStart = System.currentTimeMillis(); @@ -76,16 +86,20 @@ * Get the number of currently active threads * @return active thread count */ - static public synchronized int getNumberOfThreads() { + public static synchronized int getNumberOfThreads() { return numberOfActiveThreads; } - static public synchronized void endTest() { + /** + * Called by MainFrame#testEnded(). + * Clears number of active threads and start time field. + */ + public static synchronized void endTest() { testStart = 0; numberOfActiveThreads = 0; } - static public synchronized long getTestStartTime() {// NOT USED + public static synchronized long getTestStartTime() {// NOT USED return testStart; } --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-dev-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-dev-h...@jakarta.apache.org