[SNMP4J] TestAgent vs SampleAgent in snmp4j-agent
Frank Fock
fock at agentpp.com
Wed Jan 28 22:53:41 CET 2009
Hi Jeff,
Jeff Ramin wrote:
>
> Could somebody explain why the SampleAgent does not extend BaseAgent?
This has been already explained on this list.
BaseAgent can be used if you want to inherit
basic services.
SampleAgent uses the (more advanced) composition
approach by using the AgentConfigManager.
> I read somewhere that to write your own agent, you should extend
> BaseAgent, as TestAgent does, but SampleAgent does not.
You can, but that is no recommendation nor a
requirement.
>
> What is the purpose of those two classes? If I want to write my own
> agent, should I start with SampleAgent or TestAgent?
As you like.
Best regards,
Frank
>
> Thanks.
>
--
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com
More information about the SNMP4J
mailing list