Hi Frank,All, Apart from over-riding MOLookupServer, is it a good idea to extend classes like MOScalar or DefaultMOTable for overriding getValue(), setValue() methods. As I mentioned earlier, I need to put my business logic to put and get the values from database.
best regards Sanjay ________________________________ From: Frank Fock <[email protected]> To: Sanjay Kumar <[email protected]> Cc: [email protected] Sent: Tue, January 5, 2010 1:56:41 PM Subject: Re: [SNMP4J] regarding MOServerLookupListener Hi Sanjay, Yes, it is OK to put the refresh logic into MOServerLookupListener.lookupEvent. There are also other options of course. Best regards, Frank On 05.01.2010 06:10, Sanjay Kumar wrote: > Hi, > > I've created an agent that would fetch the data from a database for every > snmpget request it receives. I just wanted to confirm if implementing > MOServerLookupListener and putting the back-end logic of connecting to > database and populating the oids is the best place. > > I've put the business logic into lookupEvent. > > Please share your views if i'm correct or there's a better place to put the > business logic of populating the oids (scalars/tables). > > best regards > Sanjay > > > > > _______________________________________________ > SNMP4J mailing list > [email protected] > http://lists.agentpp.org/mailman/listinfo/snmp4j > > > -- AGENT++ http://www.agentpp.com http://www.snmp4j.com http://www.mibexplorer.com http://www.mibdesigner.com _______________________________________________ SNMP4J mailing list [email protected] http://lists.agentpp.org/mailman/listinfo/snmp4j
