[SNMP4J] Shared Snmp-object

Frank Fock fock at agentpp.com
Mon Mar 13 23:21:37 CET 2006


Hi Fabian,

Yes, you can use a singleton Snmp class shared by multiple Threads.

Best regards.
Frank


Fabian Nart wrote:
> Hi Frank
>
> I'm working on a management system that queries snmp-agents for
> different purposes such as read status information, reboot devices etc.
> I use snmp4j for it and it does a great job. So far, I've created a new
> Snmp-object for each request which is surely not a good idea to do. Now
> I'm wondering how to keep the system tiny and I thought of the following
> solution:
>
> Hold a singleton Snmp-object and use it for any Snmp-request that
> occures in the multithreaded system. Is this a good idea? Is the Snmp
> class multithreaded?
>
> Thanks for comments
> Fabian
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j
>   





More information about the SNMP4J mailing list