Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 39281 invoked from network); 6 Feb 2007 16:25:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Feb 2007 16:25:54 -0000 Received: (qmail 90815 invoked by uid 500); 6 Feb 2007 16:25:57 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 90748 invoked by uid 500); 6 Feb 2007 16:25:57 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 90737 invoked by uid 99); 6 Feb 2007 16:25:57 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Feb 2007 08:25:57 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of chamikaramj@gmail.com designates 66.249.92.168 as permitted sender) Received: from [66.249.92.168] (HELO ug-out-1314.google.com) (66.249.92.168) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Feb 2007 08:25:48 -0800 Received: by ug-out-1314.google.com with SMTP id j40so1619520ugd for ; Tue, 06 Feb 2007 08:25:25 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=g6UVCAw4025BtrDgE+Ir1VvCbMqiVxKdug3q2fwzhSK0bic1BrbryZS2qSiPV6mZfFrmsfOYmuHxJrHBGwAIm4LKjW9NGsccoNvMzc3TF8Uqpd6I3Bc2gEJ+4CFtyqd1Gt5DB8S9TqPFfFB831EQCH6Z7r/pUqSWRsHkXx68Woo= Received: by 10.82.184.2 with SMTP id h2mr4716096buf.1170779124808; Tue, 06 Feb 2007 08:25:24 -0800 (PST) Received: by 10.82.114.11 with HTTP; Tue, 6 Feb 2007 08:25:24 -0800 (PST) Message-ID: <9d4ec10b0702060825n409931f6sc1e49a45415c84fc@mail.gmail.com> Date: Tue, 6 Feb 2007 21:55:24 +0530 From: "Chamikara Jayalath" To: axis-dev@ws.apache.org Subject: Re: [Axis2] Adding ClusterManager code the the codebase In-Reply-To: <1170778354.25174.122.camel@scylla.watson.ibm.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_10081_9750571.1170779124741" References: <9d4ec10b0702010946q13843d0q818e6e14ffcec62e@mail.gmail.com> <1170772060.25174.118.camel@scylla.watson.ibm.com> <19e0530f0702060631s66942811v1a2670d35f766f50@mail.gmail.com> <9d4ec10b0702060716h2e62e230h57efb1fc389b57fe@mail.gmail.com> <19e0530f0702060720m4b064877i7121cc59a0eb0199@mail.gmail.com> <9d4ec10b0702060802m59b9a144wedef6d5c52980fe7@mail.gmail.com> <1170778354.25174.122.camel@scylla.watson.ibm.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_10081_9750571.1170779124741 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Bill, This will be called only when clustering is enabled. Even then we most probably will not be calling it in every property change. Rather will be trying to detect updates to the property bags in certain places of the execution. Plus better approaches are always welcome :-) Chamikara On 2/6/07, Bill Nagy wrote: > > That's what I inferred from the interface -- any time there is a context > change or a property change, you want your interface to be invoked. > That's an awful lot of method invocations (even if they're no-ops) for > something arguably not core to a web services runtime. > > -Bill > > On Tue, 2007-02-06 at 21:32 +0530, Chamikara Jayalath wrote: > > Hi Dims, > > > > As this is still is its design stage final approach hs not been > > decided. The current code is available in a branch so no affect on the > > performance of the trunk. > > > > A method of the ClusterManager instance hs to be called in events such > > as Context creation and removal. Currently these directly get called > > from respective places of the context classes (should happen only if a > > ClusterManager hs been set i.e. when clustering is enabled). > > > > Chamikara > > > > > > On 2/6/07, Davanum Srinivas wrote: > > Chamikara, > > > > New notifications? like what we have already for > > services/modules? > > > > -- dims > > > > On 2/6/07, Chamikara Jayalath wrote: > > > Hi Bill, Dims, > > > > > > The ClusterManager impl will be initiated with the > > ConfigContext. This will > > > be called in places like Context Creation and removal and > > may be property > > > updates (hvnt fully decided yet). When Clustering is not > > present the cost > > > should be reduced to a null check. > > > > > > Chamikara > > > > > > > > > > > > > > > On 2/6/07, Davanum Srinivas wrote: > > > > Bill, > > > > > > > > from what i understand, it's in a separate maven module. > > Not in > > > > kernel. So you can ignore it :) > > > > > > > > -- dims > > > > > > > > On 2/6/07, Bill Nagy < nagy@watson.ibm.com > wrote: > > > > > What is the cost of this going to be for someone who > > doesn't want > > > > > clustering/this particular approach to clustering? I > > can't infer much > > > > > from the interface -- exactly which respective events > > are you referring > > > > > to? > > > > > > > > > > -Bill > > > > > > > > > > > > > > > On Thu, 2007-02-01 at 23:16 +0530, Chamikara Jayalath > > wrote: > > > > > > At initiation Axis2 will load a ClusterManager > > implementation object > > > > > > (if configured) and will call the methods of it > > whenever respective > > > > > > events occur. > > > > > > > > > > > > Chamikara > > > > > > > > > > > > > > > > > > [1] ClusterManager interface > > > > > > > > > > > > public abstract class ClusterManager { > > > > > > > > > > > > public abstract void init (ConfigurationContext > > context); > > > > > > public abstract void addContext (AbstractContext > > context); > > > > > > public abstract void removeContext > > (AbstractContext context); > > > > > > public abstract void addProperty (AbstractContext > > context, String > > > > > > propertyName, Object propertyValue); > > > > > > public abstract void removeProperty > > (AbstractContext context, > > > > > > String propertyName); > > > > > > public abstract void touchProperty > > (AbstractContext context, > > > > > > String propertyName); > > > > > > public abstract void commit (); > > > > > > > > > > > > } > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > To unsubscribe, e-mail: > > > axis-dev-unsubscribe@ws.apache.org > > > > > For additional commands, e-mail: > > axis-dev-help@ws.apache.org > > > > > > > > > > > > > > > > > > > > > > -- > > > > Davanum Srinivas :: http://wso2.org/:: Oxygen for Web > > Services Developers > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: > > > axis-dev-unsubscribe@ws.apache.org > > > > For additional commands, e-mail: > > axis-dev-help@ws.apache.org > > > > > > > > > > > > > > > > > > > > -- > > Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web > > Services Developers > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org > > For additional commands, e-mail: axis-dev-help@ws.apache.org > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org > For additional commands, e-mail: axis-dev-help@ws.apache.org > > ------=_Part_10081_9750571.1170779124741 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Bill,

This will be called only when clustering is enabled.

Even then we most probably will not be calling it in every property change. Rather will be trying to detect updates to the property bags in certain places of the execution.

Plus better approaches are always welcome :-)

Chamikara


On 2/6/07, Bill Nagy <nagy@watson.ibm.com > wrote:
That's what I inferred from the interface -- any time there is a context
change or a property change, you want your interface to be invoked.
That's an awful lot of method invocations (even if they're no-ops) for
something arguably not core to a web services runtime.

-Bill

On Tue, 2007-02-06 at 21:32 +0530, Chamikara Jayalath wrote:
> Hi Dims,
>
> As this is still is its design stage final approach hs not been
> decided. The current code is available in a branch so no affect on the
> performance of the trunk.
>
> A method of the ClusterManager instance hs to be called in events such
> as Context creation and removal. Currently these directly get called
> from respective places of the context classes (should happen only if a
> ClusterManager hs been set i.e. when clustering is enabled).
>
> Chamikara
>
>
> On 2/6/07, Davanum Srinivas <davanum@gmail.com> wrote:
>         Chamikara,
>
>         New notifications? like what we have already for
>         services/modules?
>
>         -- dims
>
>         On 2/6/07, Chamikara Jayalath < chamikaramj@gmail.com> wrote:
>         > Hi Bill, Dims,
>         >
>         > The ClusterManager impl will be initiated with the
>         ConfigContext. This will
>         > be called in places like Context Creation and removal and
>         may be property
>         > updates (hvnt fully decided yet). When Clustering is not
>         present the cost
>         > should be reduced to a null check.
>         >
>         > Chamikara
>         >
>         >
>         >
>         >
>         > On 2/6/07, Davanum Srinivas < davanum@gmail.com> wrote:
>         > > Bill,
>         > >
>         > > from what i understand, it's in a separate maven module.
>         Not in
>         > > kernel. So you can ignore it :)
>         > >
>         > > -- dims
>         > >
>         > > On 2/6/07, Bill Nagy < nagy@watson.ibm.com > wrote:
>         > > > What is the cost of this going to be for someone who
>         doesn't want
>         > > > clustering/this particular approach to clustering?  I
>         can't infer much
>         > > > from the interface -- exactly which respective events
>         are you referring
>         > > > to?
>         > > >
>         > > > -Bill
>         > > >
>         > > >
>         > > > On Thu, 2007-02-01 at 23:16 +0530, Chamikara Jayalath
>         wrote:
>         > > > > At initiation Axis2 will load a ClusterManager
>         implementation object
>         > > > > (if configured) and will call the methods of it
>         whenever respective
>         > > > > events occur.
>         > > > >
>         > > > > Chamikara
>         > > > >
>         > > > >
>         > > > > [1] ClusterManager interface
>         > > > >
>         > > > > public abstract class ClusterManager {
>         > > > >
>         > > > >     public abstract void init (ConfigurationContext
>         context);
>         > > > >     public abstract void addContext (AbstractContext
>         context);
>         > > > >     public abstract void removeContext
>         (AbstractContext context);
>         > > > >     public abstract void addProperty (AbstractContext
>         context, String
>         > > > > propertyName, Object  propertyValue);
>         > > > >     public abstract void removeProperty
>         (AbstractContext context,
>         > > > > String propertyName);
>         > > > >     public abstract void touchProperty
>         (AbstractContext context,
>         > > > > String propertyName);
>         > > > >     public abstract void commit ();
>         > > > >
>         > > > > }
>         > > > >
>         > > >
>         > > >
>         > > >
>         >
>         ---------------------------------------------------------------------
>         > > > To unsubscribe, e-mail:
>         > axis-dev-unsubscribe@ws.apache.org
>         > > > For additional commands, e-mail:
>         axis-dev-help@ws.apache.org
>         > > >
>         > > >
>         > >
>         > >
>         > > --
>         > > Davanum Srinivas :: http://wso2.org/:: Oxygen for Web
>         Services Developers
>         > >
>         > >
>         >
>         ---------------------------------------------------------------------
>         > > To unsubscribe, e-mail:
>         > axis-dev-unsubscribe@ws.apache.org
>         > > For additional commands, e-mail:
>         axis-dev-help@ws.apache.org
>         > >
>         > >
>         >
>         >
>
>
>         --
>         Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web
>         Services Developers
>
>         ---------------------------------------------------------------------
>         To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
>         For additional commands, e-mail: axis-dev-help@ws.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


------=_Part_10081_9750571.1170779124741--