Persistency question...

Frank Fock Frank.Fock____t-online.de
Tue Feb 29 21:14:31 CET 2000



Cuong Nguyen wrote:

>
> I think that makes sense.  If you would just provide the hooks we can
> provide the integration into a database with out much problems.  I've
> implemented an SNMP agent before where I wrap the SNMP stack around a set of
> C++ classes which provided persistency via the GNU DB (gdbm).  The way I did
> it was to "calculate" the key to the record using the OIDs of the rows.
> This way searching for a particular OID was easy because GDBM provides the
> necessary search for it.  The issue comes in when I have to implement
> getnext.  For that I implement a search tree optimized for lexicalgraphical
> walk and place the search tree into a seperate GDBM database.  I can now
> index anywhere into the table and find the next logical OID.
>
> I think this implementation could be general enough to make it work with
> Agent++ and everything would still be open source (actually I got a bit
> confused about the Agent++ licensing - I guess it is not GNU license so
> maybe it doesn't matter if we try to stick to GNU license only software - in
> that case there maybe other database options).
>
> Cuong.

Could you send me your source code concerning the database access?
It would interesting. I have written an oid search mechanism for AgentGen
using MySQL and Oracle. It would help me to find out the common needs of
accessing an underlying database.

TIA,
Frank




More information about the AGENTPP mailing list