From: Richard F. <ric...@os...> - 2007-04-12 05:59:42
|
Realize that the system needs to be abstract enough to call something from the command line. The key item in making all languages first class is to NOT use a java interface as the mechanism by which to integrate things. If everything plays on the same level, all languages can integrate the same exact way. Hence if you write a neb module for blue it could/might work with nagios. Yes we could have an interface and then a command line implementation to leverage those from nagios. But why complicate? Make it simple, dead simple. I realize you lose flexiblity, but you gain decision and forward movement. On Tue, 2007-04-10 at 07:33 -0700, Mark Lugert wrote: > So I'm a little confused with why we use this pattern. Typically when > writing modules that plug-in to a system you provide an API, which is > what your abstract class would become, and make the module implement > an interface. Then you use reflection to load up all the modules and > call the proper methods when the time comes. > > This is how blue does plug-ins also. Is there a reason for this, or > is it just the way nagios did it and we kept that pattern? > > -mark > > > ----- Original Message ---- > From: Rob Blake <rob...@gm...> > To: "Blue, a java port of Nagios" <blu...@li...> > Sent: Tuesday, April 10, 2007 7:44:21 AM > Subject: Re: [Blue-devel] Blue Neb Module Interface. > > Further to this I've also added an abstract class, > org.blue.nebmodules.BaseBlueNebModule, that can be used as a base from > which to implement Blue NEBModules. It simplifies the process of > registering your callbacks and deregistering your callbacks. > > Rob > > On 4/2/07, Rob Blake <rob...@ar...> wrote: > All, > > I've added a BlueNebModule interface to the package > org.blue.nebmodules. > The interface defines the methods required of all Blue NEB > Modules. This > work is a pre-cursor to doing something similar to NDOUtils. > > Rob > > -- > Registered Office: Floor A, Milburn House, Dean Street, > Newcastle upon Tyne, NE1 1LE > VAT Registration No: 764173128. Company registered in England > Registration No: 4497081 > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance > to share your > opinions on IT & business topics through brief surveys-and > earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Blue-devel mailing list > Blu...@li... > https://lists.sourceforge.net/lists/listinfo/blue-devel > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Blue-devel mailing list > Blu...@li... > https://lists.sourceforge.net/lists/listinfo/blue-devel > > > > > ______________________________________________________________________ > The fish are biting. > Get more visitors on your site using Yahoo! Search Marketing. > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ Blue-devel mailing list Blu...@li... https://lists.sourceforge.net/lists/listinfo/blue-devel |