Skip to Content.
Sympa Menu

perfsonar-dev - Re: Relationship between SQLTypeMAServiceEngine and RRDTypeMAServiceEngine

Subject: perfsonar development work

List archive

Re: Relationship between SQLTypeMAServiceEngine and RRDTypeMAServiceEngine


Chronological Thread 
  • From: Roman Lapacz <>
  • To: Loukik Kudarimoti <>
  • Cc:
  • Subject: Re: Relationship between SQLTypeMAServiceEngine and RRDTypeMAServiceEngine
  • Date: Wed, 09 Aug 2006 09:41:12 +0200

Loukik Kudarimoti wrote:
Hi Roman,

I was having a look into your class to understand how to communicate with ExistDBStorageManager (my mp sources are broken). I noticed this relationship

public class SQLTypeMAServiceEngine extends RRDTypeMAServiceEngine

I don't understand this inheritance (or the need for it). Can you please explain it to me?
Hi Loukik,

Both classes are very similar and SQL service engine, which was created later, can use some stuff of RRD service engine (for example getKey method). Of course this could be done other way (creating an object of RRD service engine inside SQL service engine and using its method or repetition of the code or creating another abstract class; if you have similar situation in your services it's up to you what you will choose according to your experience) but I chose this solution because it's comfortable and don't break any logical/implementation rules.


Roman


thanks,
Loukik






Archive powered by MHonArc 2.6.16.

Top of Page