I'm extending AbstractJavaSamplerClient and creating a custom Java Sampler. It's all working good but I wonder if is there a way to get current thread number(or a name, something unique to the thread) and number of all threads running my custom sampler.
I have a 'Thread Group' and a 'Java Request' running my custom java sampler client. For instance I'm setting 'Number of Threads' to 5. I need to access the current thread's number and the number of all threads (5 in this case) in my custom java sampler.
Is there a common way to do it?
thanks in advance. aykut