"galder.zamarreno(a)jboss.com" wrote :
| 1.- The intention of JBAS-4228, according to the JIRA, is that if a preferred master
is there, use it, otherwise fall back on standard policy. The standard policy imo is the
policy that should be applied when no election policies defined, which is, as per
HASingletonSupport.partitionTopologyChanged(), :
|
| isElectedNewMaster = isDRMMasterReplica();
|
| So, I think we should have a default policy with this implemented and have
PreferredMasterElectionPolicy extend it.
I want it to keep extending HASingletonElectionPolicySimple. That really is the new
default, in the sense that a call to isDRMMasterReplica() is basically the same as a
HASEPS with a default 0 position. Extending HASEPS lets us have the simple added feature
of that class.
anonymous wrote :
| 2.- Does PreferredMasterElectionPolicy need an MBean interface? We had a chat about
this stuff in a previous forum post. I don't think there's a need to have an MBean
interface at this level. If anyone wants to check or change this at runtime, this could be
done via HASingletonSupportMBean.set/getElectionPolicy() bearing in mind that
HASingletonControllerMBean extends HASingletonSupportMBean. Thoughts?
Yeah, give it an MBean interface. Let people change the preferred master via the JMX
console. Changing a string attribute is a lot simple to support via tools vs. having to
plug in a new polcy instance.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127575#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...