users@grizzly.java.net

Re: Thread name is always...GrizzlyWorkerThread-8080 ?

From: Luiz Hamilton R L Soares <luizhamilton29_at_yahoo.com.br>
Date: Mon, 26 May 2008 10:04:05 -0300 (ART)

Hi,
   
  Yes, it is always GrizzlyWorkerThread-8080-.
   
  DefaultPipeline class calls increaseWorkerThread method. Inside this method, you find this code:
  workerThread = new WorkerThreadImpl(this, name + "WorkerThread-" + port + "-" + i, initialByteBufferSize);
   
  The name of this Pipeline is "Grizzly" and port variable is 8080.
   
  This is Grizzly 1.6.0 version.
   
  Hope it helps,
   
  Luiz Soares
  
  

Neil Avery <neil.avery_at_gmail.com> escreveu:
  Hi,
Ive started using Grizzly and in the testcases Im writing I will fire of multiple Servers - however as each instance receives its payload, the WorkerThread always has a name of "GrizzlyWorkerThread-8080-" regardless of the address and port being used.

Is it possible to have the WorkerThread pool use the correct name and port ?

Regards Neil.


       
---------------------------------
Abra sua conta no Yahoo! Mail, o único sem limite de espaço para armazenamento!