You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Niklas Therning (JIRA)" <ji...@apache.org> on 2006/01/04 23:49:00 UTC

[jira] Created: (DIRMINA-160) Add support for defining higher level state machines on top of MINA

Add support for defining higher level state machines on top of MINA
-------------------------------------------------------------------

         Key: DIRMINA-160
         URL: http://issues.apache.org/jira/browse/DIRMINA-160
     Project: Directory MINA
        Type: New Feature
    Reporter: Niklas Therning
    Priority: Minor
     Fix For: 1.0


We'll have to provide some kind of FSM support. This should give users a set of best practices for building complex protocols on top of MINA.

Trustin had the suggestion that we could implement it very simply by implementing IoHandler which demultiplexes events to an appropriate IoHandler implementation according to a certain session attribute value.

I guess we could provide some means for defining the states and transitions too.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Re: [jira] Created: (DIRMINA-160) Add support for defining higher level state machines on top of MINA

Posted by da...@daune-consult.com.
Quoting "Niklas Therning (JIRA)" <ji...@apache.org>:

> Add support for defining higher level state machines on top of MINA
> -------------------------------------------------------------------
>
>         Key: DIRMINA-160
>         URL: http://issues.apache.org/jira/browse/DIRMINA-160
>     Project: Directory MINA
>        Type: New Feature
>    Reporter: Niklas Therning
>    Priority: Minor
>     Fix For: 1.0
>
>
> We'll have to provide some kind of FSM support. This should give 
> users a set of best practices for building complex protocols on top 
> of MINA.
>
> Trustin had the suggestion that we could implement it very simply by 
> implementing IoHandler which demultiplexes events to an appropriate 
> IoHandler implementation according to a certain session attribute 
> value.
>
> I guess we could provide some means for defining the states and 
> transitions too.


Hi Niklas,

I suggested this some time ago. As Mina is asynchronous, this leads indeed to
state-based protocol handler.

It would be a great idea to develop code that could be reused.

The State pattern can help:
http://www.javaworld.com/javaworld/jw-08-1997/jw-08-stated_p.html.

Unfortunately, I don't know any open-source implementation of it.

Cheers,

J-F


[jira] Commented: (DIRMINA-160) Add support for defining higher level state machines on top of MINA

Posted by "Alex Karasulu (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/DIRMINA-160?page=comments#action_12361931 ] 

Alex Karasulu commented on DIRMINA-160:
---------------------------------------

We can really use this in the ASN1 codecs.  I think Alan started using the state pattern with one of his branches.  

> Add support for defining higher level state machines on top of MINA
> -------------------------------------------------------------------
>
>          Key: DIRMINA-160
>          URL: http://issues.apache.org/jira/browse/DIRMINA-160
>      Project: Directory MINA
>         Type: New Feature
>     Reporter: Niklas Therning
>     Priority: Minor
>      Fix For: 1.0

>
> We'll have to provide some kind of FSM support. This should give users a set of best practices for building complex protocols on top of MINA.
> Trustin had the suggestion that we could implement it very simply by implementing IoHandler which demultiplexes events to an appropriate IoHandler implementation according to a certain session attribute value.
> I guess we could provide some means for defining the states and transitions too.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (DIRMINA-160) Add support for defining higher level state machines on top of MINA

Posted by "Trustin Lee (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/DIRMINA-160?page=comments#action_12363064 ] 

Trustin Lee commented on DIRMINA-160:
-------------------------------------

This is a message from J-F.  I put this here to track this issue more easily:

--------

Hi Niklas,

I suggested this some time ago. As Mina is asynchronous, this leads indeed to
state-based protocol handler.

It would be a great idea to develop code that could be reused.

The State pattern can help:
http://www.javaworld.com/javaworld/jw-08-1997/jw-08-stated_p.html.

Unfortunately, I don't know any open-source implementation of it.

Cheers,

J-F

> Add support for defining higher level state machines on top of MINA
> -------------------------------------------------------------------
>
>          Key: DIRMINA-160
>          URL: http://issues.apache.org/jira/browse/DIRMINA-160
>      Project: Directory MINA
>         Type: New Feature
>     Reporter: Niklas Therning
>     Priority: Minor
>      Fix For: 1.0

>
> We'll have to provide some kind of FSM support. This should give users a set of best practices for building complex protocols on top of MINA.
> Trustin had the suggestion that we could implement it very simply by implementing IoHandler which demultiplexes events to an appropriate IoHandler implementation according to a certain session attribute value.
> I guess we could provide some means for defining the states and transitions too.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (DIRMINA-160) Add support for defining higher level state machines on top of MINA

Posted by "peter royal (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/DIRMINA-160?page=comments#action_12361847 ] 

peter royal commented on DIRMINA-160:
-------------------------------------

http://blissed.codehaus.org/ is an open-source FSM framework you could pull ideas/inspirations from.

> Add support for defining higher level state machines on top of MINA
> -------------------------------------------------------------------
>
>          Key: DIRMINA-160
>          URL: http://issues.apache.org/jira/browse/DIRMINA-160
>      Project: Directory MINA
>         Type: New Feature
>     Reporter: Niklas Therning
>     Priority: Minor
>      Fix For: 1.0

>
> We'll have to provide some kind of FSM support. This should give users a set of best practices for building complex protocols on top of MINA.
> Trustin had the suggestion that we could implement it very simply by implementing IoHandler which demultiplexes events to an appropriate IoHandler implementation according to a certain session attribute value.
> I guess we could provide some means for defining the states and transitions too.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira