[SNMP4J] understand!!!

Kevin J. Schmidt kjschmidt at gmail.com
Tue Apr 12 13:52:38 CEST 2005


It sets the number of workers in the thread pool. When a message is
received one of the workers will handle the incoming request.

On Apr 12, 2005 3:40 AM, abdel <boutz1 at caramail.com> wrote:
> Hello I have a problem, I don't understand what this order does that I had in the example provides in SnmpRequest.Thank you
> 
>  int numDispatcherThreads = 2;   <== why 2 ?
> 
> ThreadPool threadPool =
>           ThreadPool.create("DispatcherPool", numDispatcherThreads);
>           MessageDispatcher mtDispatcher =
>           new MultiThreadedMessageDispatcher(threadPool, new MessageDispatcherImpl());
>           mtDispatcher.addMessageProcessingModel(new MPv1());
> 
>           Snmp snmp = new Snmp(mtDispatcher, transport);
>           snmp.addCommandResponder(trapPrinter);
> 
>           transport.listen();
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j
> 


-- 
Kevin J. Schmidt
<kjschmidt at gmail.com>



More information about the SNMP4J mailing list