next up previous
Next: 5 Conclusion and Outlook Up: 4 Implementing the optimized Previous: 4.1 Completing the generated

4.2 Reusing the existing Agent Code

After the completion of the IDL descriptions, the already existing management functionality had to be integrated with the interfaces. I.e., the legacy code had to be migrated into the object-oriented environment. The usual technique for achieving this is to encapsulate the legacy code into object classes by means of so-called wrappers. It can then bea easily accessed by other objects without the need of modifying the implementation.
Our former SNMP management agent had been implemented in C and has obviously no object-oriented properties. As the OMG has standardized, among others, an IDL--C language mapping, this did not matter. Much more important is the fact that the agent code is well structured and modular. As this was the case for our agent (see 2.1), we did not encounter severe problems while building the new CORBA-compliant management agent.



Copyright Munich Network Management Team