Hi Azeez,

By having listeners users will be able to write their own event handlers
using the same ClusterMananager and will be able to control the way a Nodes
should behave when they get notified of a changes in the Cluster.

But I think u are right in saying that we may not need more than one
listener. So I think it's OK to restrict it to a single listener (at least
till the requirement arises). Also this may not be a requirement in the
context replication scenarios. Here we almost know what we will have to do
when an event get fired. So it may be OK to get rid of the Context listeners
completely.

Chamikara


On 5/21/07, Afkham Azeez <[EMAIL PROTECTED]> wrote:

IMHO, there is no need to have multiple listeners for
context/configuration changes. If at all, practically there will be only one
listener each for context & configuration management. So I feel we should
either allow the user to specify only one listener, or scrap the listener
interfaces altogether and handle functionality the listeners were supposed
to do in the managers.

As I see it, nodes N1 & N2 will both have Managers running on them. The
managers will communicate with each other, just like the TCP/IP stack


N1                                                                    N2
--------------------------
---------------------------
| ContextManager  |   <------------------> | ContextManager  |
--------------------------
---------------------------

The Managers send messages & communicate with each other. So for each
function there will be a pair of methods.

e.g. Node N1 ==> updateContext()
        Node N2 ==> contextUpdated()

Thoughts?


--
Thanks
Afkham Azeez

http://www.wso2.org
GPG Fingerprint: 643F C2AF EB78 F886 40C9  B2A2 4AE2 C887 665E 0760




--
Chamikara Jayalath
WSO2 Inc.
http://wso2.com/
http://wso2.org/ - For your Oxygen needs

Reply via email to