public boolean splitBrainEnabled() { return ipAddr.splitBrainEnabled(); }
/** * Create a CacheMember referring to the current host (as defined by * the given string). * * @param i the hostname, must be for the current host * @param p the membership listening port * @param splitBrainEnabled whether the member has network partition detection enabled * @param canBeCoordinator whether the member can be group coordinator */ public JGroupMember(InetAddress i, int p, boolean splitBrainEnabled, boolean canBeCoordinator) { ipAddr = new IpAddress(i, p); ipAddr.splitBrainEnabled(splitBrainEnabled); ipAddr.shouldntBeCoordinator(!canBeCoordinator); }
if (!this.members.contains(mbr) && ((IpAddress)this.local_addr).splitBrainEnabled()) { passUp(new Event(Event.SUSPECT_NOT_MEMBER, mbr));
myAddr.splitBrainEnabled(), myAddr.preferredForCoordinator(), MemberAttributes.DEFAULT);
((IpAddress)local_addr).splitBrainEnabled(this.splitBrainDetectionEnabled); ((IpAddress)local_addr).setMemberWeight(this.memberWeight);