Return-Path: X-Original-To: apmail-jmeter-dev-archive@minotaur.apache.org Delivered-To: apmail-jmeter-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1154C938A for ; Wed, 30 Nov 2011 22:17:58 +0000 (UTC) Received: (qmail 8444 invoked by uid 500); 30 Nov 2011 22:17:58 -0000 Delivered-To: apmail-jmeter-dev-archive@jmeter.apache.org Received: (qmail 8418 invoked by uid 500); 30 Nov 2011 22:17:58 -0000 Mailing-List: contact dev-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jmeter.apache.org Delivered-To: mailing list dev@jmeter.apache.org Received: (qmail 8410 invoked by uid 99); 30 Nov 2011 22:17:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Nov 2011 22:17:58 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sebbaz@gmail.com designates 209.85.212.43 as permitted sender) Received: from [209.85.212.43] (HELO mail-vw0-f43.google.com) (209.85.212.43) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Nov 2011 22:17:50 +0000 Received: by vbbfq11 with SMTP id fq11so1098834vbb.2 for ; Wed, 30 Nov 2011 14:17:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=11zVAxRR+JL7RiLGIE9C0UuCbDDS2ZtkciQGjoP4+6U=; b=A2N8UMz8IgzfLC7gffPaxxR2co2JPLIkPFzSqL/StQCP0oPXuSAygjRYwx6/it1KQ3 ee+qvzzsSx883zGv4wOpwKHnSB8AQkvcGynnypjPeMPIny7pKqmXmNZJDrb85+l3YDfh CoPyLxN1JJ2OAs3EwYVejKssmaEv4AqDCmKrk= MIME-Version: 1.0 Received: by 10.52.117.162 with SMTP id kf2mr1209088vdb.43.1322691449107; Wed, 30 Nov 2011 14:17:29 -0800 (PST) Received: by 10.220.47.16 with HTTP; Wed, 30 Nov 2011 14:17:29 -0800 (PST) In-Reply-To: References: Date: Wed, 30 Nov 2011 22:17:29 +0000 Message-ID: Subject: Re: Question about StandardJMeterEngine#engine From: sebb To: dev@jmeter.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On 30 November 2011 21:57, Philippe Mouawad wr= ote: > Thanks for answers, see below > > On Wed, Nov 30, 2011 at 10:53 PM, sebb wrote: > >> On 30 November 2011 20:57, Philippe Mouawad >> wrote: >> > Hello, >> > Do you see any reason for engine field being static ? >> >> As per the comments: >> >> =A0 =A0// Allow engine and threads to be stopped from outside a thread >> =A0 =A0// e.g. from beanshell server >> =A0 =A0// Assumes that there is only one instance of the engine >> =A0 =A0// at any one time so it is not guaranteed to work ... >> >> > =A0 - All static methods that use it are not called anywhere >> >> BeanShell scripts use introspection to get access. >> > Where can I find current users of this ? (to see if I can change it ) Impossible to find all existing uses. Anyone can write a script that uses any public method. Any change in binary compatibility can potentially cause a script to fail. However, check the documentation and sample scripts. That will give an idea as to what users might reasonably expect to be able to use. >> > =A0 - askThreadsToStop could just call stopTest(false) >> >> Yes, I think it could. >> >> > >> > I think field should be removed to make code cleaner. >> >> Only if an alternative way can be found to allow scripts to access the >> engine. >> But would probably still need to keep the static methods, at least for a >> while. >> >> > Regards. >> > Philippe. >> > > > > -- > Cordialement. > Philippe Mouawad.