/** * Set the VmPid to be the given value. This may be done by JGroups UDP * protocol if there is no PID available to augment its membership port number. * This functionality was added by us for bug #41983 * @param uniqueID */ public static void setDefaultVmPid(int uniqueID) { // note: JGroupMembershipManager establishes DEFAULT before attempting to // create a JGroups channel, so we know it isn't INVALID here setDefaults(DEFAULT.dcPort, uniqueID, DEFAULT.vmKind, DEFAULT.vmViewId, DEFAULT.name, DEFAULT.groups, DEFAULT.durableClientAttributes); }
private MemberAttributes getDefaultAttributes() { // TODO can we get rid of this?? if (MemberAttributes.DEFAULT.getVmPid() == -1 || MemberAttributes.DEFAULT.getVmKind() == -1) { MemberAttributes.setDefaults( -1, OSProcess.getId(), -1, DistributionManager.getDistributionManagerType(), null, null, null); } return MemberAttributes.DEFAULT; }
.getDurableClientTimeout()); MemberAttributes.setDefaults(lonerPort, com.gemstone.gemfire.internal.OSProcess.getId(), DistributionManager.LONER_DM_TYPE, -1,
/** * update the loner port with an integer that may be more unique than the * default port (zero). This updates the ID in place and establishes new * default settings for the manufacture of new IDs. * * @param newPort the new port to use */ public void updateLonerPort(int newPort) { this.logger.config(LocalizedStrings.LonerDistributionmanager_CHANGING_PORT_FROM_TO, new Object[]{this.lonerPort, newPort}); this.lonerPort = newPort; MemberAttributes.setDefaults(lonerPort, MemberAttributes.DEFAULT.getVmPid(), DistributionManager.LONER_DM_TYPE, -1, MemberAttributes.DEFAULT.getName(), MemberAttributes.DEFAULT.getGroups(), MemberAttributes.DEFAULT.getDurableClientAttributes()); this.getId().setPort(this.lonerPort); } public boolean isCurrentMember(InternalDistributedMember p_id) {
MemberAttributes.setDefaults(dcPort, MemberAttributes.DEFAULT.getVmPid(), MemberAttributes.DEFAULT.getVmKind(), MemberAttributes.setDefaults(dcPort, MemberAttributes.DEFAULT.getVmPid(), MemberAttributes.DEFAULT.getVmKind(),
.getDurableClientTimeout()); MemberAttributes.setDefaults(-1, OSProcess.getId(), getDistributionManagerType(), -1,