[jboss-dev-forums] [Design of Clustering on JBoss (Clusters/JBoss)] - Re: JBAS-4228 Preferred master node for HASingleton
galder.zamarreno@jboss.com
do-not-reply at jboss.com
Fri Jan 18 16:37:30 EST 2008
This came out of a discussion with Brian:
HASingletonElectionPolicy should only contain methods that actually called from the HASingletonSupport/HASingletonController classes so that they can inject attributes to the election policy that users don't have to specify in the ha singleton election policy bean definition.Therefore,
/**
| * Sets the preferred master node. As long as the preferred master node
| * presents in the cluster, it will be always selected as master node,
| * no matter what the election policy is.
| * @param node String format of ip_address:port_number
| */
| void setPreferredMaster(String node);
|
| String getPreferredMaster();
methods should not live in HASingletonElectionPolicy, but instead in HASingletonElectionPolicySimple. They could be defined by HASingletonElectionPolicySimpleMBean and implemented by HASingletonElectionPolicySimple, depending whether it makes sense to be accessible and potentially modified at runtime.
Shall I reopen JBAS-4228 or create a new JIRA? If agreed, the change will happen for JBoss 5. What do we wanna do about 4.2? Leave it as it is?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121438#4121438
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121438
More information about the jboss-dev-forums
mailing list