Re: grinder.getProcessNumber()

Joel Lucuik <[email protected]> Fri, 3 Jun 2016 09:29:28 -0400
Newsgroups gmane.comp.java.grinder.user
Message-ID <CAA4qVTJ8vCouFV1DBx5GjKzwVxCHin-z2Q9rPaPrppX_Q+hrFQ@mail.gmail.com>
--===============4759836939281094069==
Content-Type: multipart/alternative; boundary=001a1140a5fa5971e205345fb6b7

--001a1140a5fa5971e205345fb6b7
Content-Type: text/plain; charset=UTF-8

This looks useful and related (in the docs)

Fulfil feature request 2298825 - Worker number which is reset for each
test
  run. Added ScriptContext.getFirstProcessNumber() which a script can
use with
  getProcessNumber() to calculate a zero based value for indexing into test
  data.

I think that's got it.

Joel



On Fri, Jun 3, 2016 at 8:42 AM, Joel Lucuik <[email protected]> wrote:

> Hi all,
>
> I have
>
> grinder.processes = 1
> grinder.threads = 10
>
> when I run and print grinder.getProcessNumber() I get 18.
>
> What is this for? Docs say:
>
> "
>
> int getProcessNumber()
>
> Return the process number. The agent allocates a unique number to that
> each worker process it starts."
>
> I figured it was 0....n.
>
> Thanks,
> Joel
>

--001a1140a5fa5971e205345fb6b7
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">This looks useful and related (in the docs)<br><br><pre>Fu=
lfil feature request 2298825 - Worker number which is reset for each
test
  run. Added ScriptContext.getFirstProcessNumber() which a script can
use with
  getProcessNumber() to calculate a zero based value for indexing into test
  data.<br><br></pre><pre>I think that&#39;s got it.<br><br></pre><pre>Joel=
<br></pre><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On =
Fri, Jun 3, 2016 at 8:42 AM, Joel Lucuik <span dir=3D"ltr">&lt;<a href=3D"m=
ailto:[email protected]" target=3D"_blank">[email protected]</a>&gt=
;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 =
.8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div><di=
v>Hi all,<br><br>I have <br><br>grinder.processes =3D 1 <br>grinder.threads=
 =3D 10<br><br></div>when I run and print grinder.getProcessNumber() I get =
18.<br><br></div>What is this for? Docs say:<br><br>&quot;<br><pre>int=C2=
=A0getProcessNumber()</pre>
<div>Return the process number. The agent allocates a unique number to that
 each worker process it starts.&quot;<br><br></div><div>I figured it was 0.=
...n. <br><br></div><div>Thanks,<br></div><div>Joel<br></div></div>
</blockquote></div><br></div></div>

--001a1140a5fa5971e205345fb6b7--


--===============4759836939281094069==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
--===============4759836939281094069==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
grinder-use mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/grinder-use

--===============4759836939281094069==--