You, dragonchild and the other monks voting for the Connection Model got me almost convinced.

But then I thought about the interface of the connection object and something struck me like lightning:

You are missing something! And that's because I made it not clear enough in the original question:

The types have serveral things in common, like 'show overall status' and the like, but do also several things different.

That wants to say:
I will ask every server the same questions, like 'what is your status?' or 'are you alive?'.
But I will also ask servers of different type different questions. E.g.:
A Replication Server will be asked 'is any of your connections down?' or 'is your stable device full?'.
And a database server will be asked 'is any of the databases full?' od 'is the cpu load very high?'.

I cannot ask all the questions through the connection object, because the connection object will know nothing about 'cpu load' or 'stable devices'.
I have to ask the server directly.

Or I have to reduce the question to 'tell me what you have to tell, I'll just show it'.

This would lead to a complete redesign, but since I just started, that wouldn't hurt much. :-)

I'll keep thinking about it and listening to you monks!


In reply to Re: Re: Reblessing by busunsl
in thread Reblessing by busunsl

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.