mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julien Vermillard <jvermill...@archean.fr>
Subject Re: names of TheadFilter threads
Date Fri, 08 Sep 2006 08:03:22 GMT
Responding to myself :)

When a MINA newcommer will see logs like : 

2006-09-08 09:53:35,300 [AnonymousIoService-12] DEBUG ESMonitorProtocol
MAIN - Send REG 00.0E.55.00.04.A2:REG132;257
2006-09-08 09:53:35,303 [AnonymousIoService-14] DEBUG ESMonitorProtocol
MAIN - Recieved REG=00.0E.55.00.04.A2:REG133;128
2006-09-08 09:53:35,318 [AnonymousIoService-15] DEBUG ESMonitorProtocol
MAIN - Recieved REG=00.0E.55.00.04.A2:REG134;0


He will think : "Ok, now how I name the anonymous IoService ?"

and actualy it's not possible.

So 2 way are : 
  -  make the IoSerivce namable
  -  change the "AnonymousIoService" to something like
"AnonymousExecutorThread" or something like that



Le vendredi 08 septembre 2006 à 09:52 +0200, Julien Vermillard a écrit :
> Hi,
> 
> In defaultIoService config the default thread model use the default name
> "AnonymousIoService". all the created thread take the ugly name
> "AnonymousIoServiceXX" and make log4j log looking pretty ugly. 
> 
> private final ThreadModel defaultThreadModel =
> ExecutorThreadModel.getInstance("AnonymousIoService");
> 
> Before ExecutorThreadModel (yesterday) I was doing : 
> ((ExecutorThreadModel)config.getThreadModel()).getThreadPool().setThreadNamePrefix("PAServer");
> 
> Would be nice to have a simple way to give a name to an IoService and
> the default threadModel create the thread with the IoSerivce name as
> prefix. 
> 
> WDYT ?
> 
> Julien
> 
> PS : prolly an API change, I can wait 1.1 :)

Mime
View raw message