directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From daune...@daune-consult.com
Subject Re: [jira] Created: (DIRMINA-160) Add support for defining higher level state machines on top of MINA
Date Thu, 05 Jan 2006 07:22:53 GMT
Quoting "Niklas Therning (JIRA)" <jira@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


Mime
View raw message