Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 27422 invoked from network); 12 Jul 2007 19:51:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Jul 2007 19:51:47 -0000 Received: (qmail 98251 invoked by uid 500); 12 Jul 2007 19:51:50 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 98052 invoked by uid 500); 12 Jul 2007 19:51:49 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 98043 invoked by uid 99); 12 Jul 2007 19:51:49 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jul 2007 12:51:49 -0700 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=DNS_FROM_AHBL_RHSBL,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of david.vancouvering@gmail.com designates 64.233.162.230 as permitted sender) Received: from [64.233.162.230] (HELO nz-out-0506.google.com) (64.233.162.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jul 2007 12:51:45 -0700 Received: by nz-out-0506.google.com with SMTP id m7so209491nzf for ; Thu, 12 Jul 2007 12:51:23 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=PdV7DXGP6Avjjg+6Kg09RAiNjdigqmzk83LvMIiF7oSvHHveXMPyl/cT87+R7FGQVBqLrJ8zYgwBktXtdHjh6deCRh9Yow4nmnG1mj8P3MPP++alSXD/LD8T9OfVjmwbw+TJKl5T5+ROQIwlk1++SGSPhGCN5mcLO86FwLzo9ik= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=CcUUPjBuaKd1/4PD5ELXR6CcuPKheRw6UkyP1gHMspTx7VKi9qQ1XCFQKprLe1VwWtt/9EmJzRzsJr+8t4mSyL+UwRam7qzi1gA2nBWL1UWSW0Q9AJ/6wRLs+fvMJrYwgq5L+qHJMHwtDPCzBSbHMx4Z2DY1d5eCDz0TACzwl6A= Received: by 10.114.161.11 with SMTP id j11mr920782wae.1184269883208; Thu, 12 Jul 2007 12:51:23 -0700 (PDT) Received: by 10.114.120.9 with HTTP; Thu, 12 Jul 2007 12:51:23 -0700 (PDT) Message-ID: <56a83cd00707121251x15e46becr4c9e33d6cd598b6b@mail.gmail.com> Date: Thu, 12 Jul 2007 12:51:23 -0700 From: "David Van Couvering" Sender: david.vancouvering@gmail.com To: derby-dev@db.apache.org Subject: Re: JMX-management and monitoring In-Reply-To: <20070711101525.9mzzzbq2ckc00wwo@webmail.ntnu.no> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070710155435.rucqc77v480cowso@webmail.ntnu.no> <56a83cd00707101305s6052a440u3076419c1169556a@mail.gmail.com> <20070711101525.9mzzzbq2ckc00wwo@webmail.ntnu.no> X-Google-Sender-Auth: 8f342ef41438621f X-Virus-Checked: Checked by ClamAV on apache.org This sounds good, Ole, I look forward to seeing your work. It would be nice to integrate the JMX support into NetBeans after it becomes available. I like the idea of creating an MBean for NetworkServerControl. I saw your query about default properties, BTW, but remained silent because I don't have an answer and don't have the time right now to research it. Perhaps you could explain what you're trying to accomplish, and maybe there are other ways to accomplish it? David On 7/11/07, Ole Gunnar Borstad wrote: > Thanks for your reply, David. To clarify, Apache Commons is currently > used to ease the implementation of *Model MBeans*, which is a generic > Dynamic Bean. This means that a generic bean is paired > programmatically with the resource it is going to manage. This is in > contrast to coding a specific bean for a resource. We can still use > Dynamic MBeans even if we base the majority of the beans on standard > ones. > > The plan for my work now is somewhat like this (in agreement with my > mentor Bernt Johnsen): > > 1. Refactor the current functionality to Standard MBeans: > - Stopping a database (not the derby server) > - Viewing and modifying some Derby properties > > 2. Expand the properties functionality. Currently this is very limited. > > 3. Create an MBean for NetworkServerControl, essentially making the > API available through a management interface. > > I hope this will give a good start on Derby management and monitoring, > at least give something to work on further and produce some discussion > on user/developer needs. I welcome suggestions and thoughts! > > Ole Gunnar > > Siterer David Van Couvering : > > > Hi, Ole. Your analysis seems reasonable. The management > requirements > > for Derby are pretty minimal and pretty static, and it is always > good > > to keep things as simple as possible for Derby, both for > development > > and distribution/deployment. Adding more jar files also increases > the > > size. I didn't know the use of Dynamic MBeans required the Apache > > Commons stuff, or if that was just a quick way of implementing the > > functionality. But if we don't need dynamic beans, let's keep it > > simple. > > > > David > > > > On 7/10/07, Ole Gunnar Borstad wrote: > >> Hi, > >> > >> I am working on management and monitoring through JMX in Derby. > Prior > >> work on this includes a patch in Derby-1387 that has some working > >> functionality, i.e. viewing properties and shutting down a single > >> database. I think this patch shows great potential for management > >> features in Derby. The code uses the Apache Commons Modeler > framework > >> for defining Model MBeans, because developing these Beans > completely > >> manually is rather cumbersome and error prone. Model MBeans are > the > >> most flexible MBeans through the use of several metadata classes, > >> which enables the managed resource and management interface to be > >> specified at runtime. > >> > >> Upon further development of this module, I have tried to analyze > the > >> choice of MBeans for Derby. The use of different types of MBeans > can > >> of course be combined, but if there is no real need for the > generic > >> nature of Model MBeans, it might be a better choice to go with > >> Standard MBeans as the main choice and not depend on any framework > >> like Commons. This framework implies two additional JARs for Derby > and > >> increasing code complexity through XML-metadata and > API-dependencies. > >> The advantage of using this configuration is that existing > resources > >> can easily be instrumented for management through an XML-metadata > >> file. I am not sure if this is true for Derby, because the > resources > >> can not always be instrumented automatically. An example is the > Derby > >> properties. These do not have a coherent access interface (depends > on > >> how properties are set or if defaults are used), so making > >> getter-methods for these in a management module is not trival and > >> should be done by hand. > >> > >> The advantages of using Model MBeans and thus a framework like > Commons > >> seem unclear to me at this point. Coding Standard or Dynamic > MBeans > >> can be done efficiently without tools, and as far as I can see > they > >> are more than powerful enough for management of Derby. > >> > >> I would appreciate any input on this matter, especially from > someone > >> with experience using JMX. > >> > >> Ole Gunnar Borstad > >> > >> > > > >