Return-Path: Delivered-To: apmail-mina-dev-archive@www.apache.org Received: (qmail 81750 invoked from network); 13 Dec 2009 11:19:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Dec 2009 11:19:40 -0000 Received: (qmail 16567 invoked by uid 500); 13 Dec 2009 11:19:40 -0000 Delivered-To: apmail-mina-dev-archive@mina.apache.org Received: (qmail 16481 invoked by uid 500); 13 Dec 2009 11:19:40 -0000 Mailing-List: contact dev-help@mina.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mina.apache.org Delivered-To: mailing list dev@mina.apache.org Received: (qmail 16471 invoked by uid 99); 13 Dec 2009 11:19:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Dec 2009 11:19:39 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of elecharny@gmail.com designates 209.85.219.212 as permitted sender) Received: from [209.85.219.212] (HELO mail-ew0-f212.google.com) (209.85.219.212) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Dec 2009 11:19:37 +0000 Received: by ewy4 with SMTP id 4so6781634ewy.32 for ; Sun, 13 Dec 2009 03:19:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=ddq8DNP1wLFx6mMZRRoi3nVO17cdNBz2X/jmMCDMFh8=; b=VBcWuYOFTBLohh6FgMImFonBAUWvl7fEB83+2NNWQVsUwCKIRBchgkcZobpPuWyXWy enZA0HxgJoNhUebbkCLk3GQ27TtqULawY66m593DhFWiPY9PS++JCij4Yci65TipQj4V Pl/lDwCNcurG9qxAwAwi4VPt9hE4qiIjTCkOk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=jvIHm09CkvVpYOCeO6GZ/foPQ6PO0M6uR2ilhs169mw/FXVw0O6DvS7NvuUJb+mFPC +7zDRR4LlumV+Xo6yFHhJvd9satCUI0EZqc7j6isstmE9dq36Oc0LT62d8v6SiFcvLUY K7vCzUosVLLKncgm46S6FlQ3Aj+Gr067IOE+8= Received: by 10.213.37.1 with SMTP id v1mr358303ebd.59.1260703156454; Sun, 13 Dec 2009 03:19:16 -0800 (PST) Received: from emmanuel-lecharnys-MacBook-Pro.local (vol75-3-82-66-216-176.fbx.proxad.net [82.66.216.176]) by mx.google.com with ESMTPS id 15sm2332437ewy.12.2009.12.13.03.19.14 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 13 Dec 2009 03:19:15 -0800 (PST) Message-ID: <4B24CDB2.3040405@gmail.com> Date: Sun, 13 Dec 2009 12:19:14 +0100 From: =?UTF-8?B?RW1tYW51ZWwgTMKOY2hhcm55?= User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: dev@mina.apache.org Subject: Re: [MINA 3.0] Initial thoughts on FilterChain References: <4A83411F-47C5-4E75-B412-2BE2FB91093B@toolazydogs.com> <1158D10C-1610-449C-8DC2-E6921F7A7886@toolazydogs.com> <331FC8CB-3DD8-4FA0-B4AA-D978ECE604E0@toolazydogs.com> In-Reply-To: <331FC8CB-3DD8-4FA0-B4AA-D978ECE604E0@toolazydogs.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit To add something to my previous reply, there is one case where the 'chain' can be dynamically modified : when adding the LoggingFilter for debugging purposes. I guess we can think about some other user czses, by IMO, they are not so frequent. MINAOP ? ;) Alan D. Cabrera a écrit : > > On Dec 3, 2009, at 5:28 PM, Ashish wrote: > >>>>> What about the assertion that new filters only get created to >>>>> simulate a >>>>> state machine? >>>> >>>> Finally, managed to check-in some of the initial thoughts. >>>> The transition handler or the computeNext function is still to be >>>> out in. >>> >>> Sorry. Not sure how that answers my question other than to detail what >>> you've done and what you're about to do. >>> >> >> OOPS! :-( I think I am getting old >> >> After a discussion we thought that we shall make it possible for >> user's to choose the way we want Filter transitions >> That's what the transition handler is :-) Default implementation shall >> be of next Filter in the chain. >> User's can plugin their implementations for transition say like a >> State Machine implementation. >> >> Since I couldn't take it to logical conclusion, still working on it :) >> Also my experience with State machines is limited, so will need a >> helping hand here (or may be some references :-) ) > > The key thing about state machines is that the states and the > transitions are known and fixed ahead of time. If this our state of > affairs, and I think that it is, then things are much more simple and > mentally tractable, i.e. there's no ad hoc filter creation during > protocol processing and much of the threading issues in past entries > on this thread disappear. > > > Regards, > Alan > > >