/** * [GemStone] Sets the process id of the VM that hosts the distribution * manager with this address. * * @since 4.0 */ public void setVmPid(int p) { this.vmPid = p; synchPayload(); cachedToString = null; }
public void setVmViewId(int p) { this.vmViewId = p; synchPayload(); cachedToString = null; essentialData = null; }
/** * [GemStone] Sets the process id of the VM that hosts the distribution * manager with this address. * * @since 4.0 */ public void setVmPid(int p) { this.vmPid = p; synchPayload(); cachedToString = null; }
/** * [GemStone] Set the direct channel port */ public void setDirectChannelPort(int p) { dcPort = p; synchPayload(); }
public void setVmKind(int p) { vmKind = p; synchPayload(); cachedToString = null; essentialData = null; }
public void setVmViewId(int p) { this.vmViewId = p; synchPayload(); cachedToString = null; }
public void setGroups(String[] newGroups) { assert !this.isPartial; assert newGroups != null; synchronized (this.rolesLock) { this.groups = newGroups; synchPayload(); this.rolesSet = null; this.cachedToString = null; } }
public void setGroups(String[] newGroups) { assert !this.isPartial; assert newGroups != null; synchronized (this.rolesLock) { this.groups = newGroups; synchPayload(); this.rolesSet = null; this.cachedToString = null; } }
public void setVmKind(int p) { vmKind = p; synchPayload(); cachedToString = null; }
/** * [GemStone] Set the direct channel port */ public void setDirectChannelPort(int p) { dcPort = p; synchPayload(); }
/** * Set the membership port. This is done in loner systems using * client/server connection information to help form a unique ID */ public void setPort(int p) { assert this.vmKind == DistributionManager.LONER_DM_TYPE; this.netMbr.setPort(p); synchPayload(); cachedToString = null; }
/** * Set the membership port. This is done in loner systems using * client/server connection information to help form a unique ID */ public void setPort(int p) { assert this.vmKind == DistributionManager.LONER_DM_TYPE; this.ipAddr.setPort(p); synchPayload(); cachedToString = null; essentialData = null; }
private void _readEssentialData(DataInput in) throws IOException, ClassNotFoundException { this.isPartial = true; InetAddress inetAddr = DataSerializer.readInetAddress(in); int port = in.readInt(); this.hostName = SocketCreator.resolve_dns? SocketCreator.getHostName(inetAddr) : inetAddr.getHostAddress(); int flags = in.readUnsignedByte(); boolean sbEnabled = (flags & SB_ENABLED_MASK) != 0; boolean elCoord = (flags & COORD_ENABLED_MASK) != 0; this.vmKind = in.readUnsignedByte(); if (this.vmKind == DistributionManager.LONER_DM_TYPE) { this.uniqueTag = DataSerializer.readString(in); } else { String str = DataSerializer.readString(in); if (str != null) { // backward compatibility from earlier than 6.5 this.vmViewId = Integer.parseInt(str); } } /*this.name =*/ DataSerializer.readString(in); MemberAttributes attr = new MemberAttributes(this.dcPort, this.vmPid, this.vmKind, this.vmViewId, this.name, this.groups, this.durableClientAttributes); ipAddr = (JGroupMember)MemberFactory.newNetMember(inetAddr, port, sbEnabled, elCoord, attr); synchPayload(); }
private void defaultToCurrentHost() { this.vmPid = OSProcess.getId(); try { if (SocketCreator.resolve_dns) { this.hostName = SocketCreator.getHostName(SocketCreator.getLocalHost()); } else { this.hostName = SocketCreator.getLocalHost().getHostAddress(); } } catch(UnknownHostException ee){ throw new InternalGemFireError(ee); } synchPayload(); }
InternalDataSerializer.getVersionForDataStream(in).ordinal(), attr); synchPayload();
netMbr = MemberFactory.newNetMember(inetAddr, port, sbEnabled, elCoord, version, attr); synchPayload();
private void _readEssentialData(DataInput in) throws IOException, ClassNotFoundException { this.isPartial = true; InetAddress inetAddr = DataSerializer.readInetAddress(in); int port = in.readInt(); this.hostName = SocketCreator.resolve_dns? SocketCreator.getHostName(inetAddr) : inetAddr.getHostAddress(); int flags = in.readUnsignedByte(); boolean sbEnabled = (flags & SB_ENABLED_MASK) != 0; boolean elCoord = (flags & COORD_ENABLED_MASK) != 0; this.vmKind = in.readUnsignedByte(); if (this.vmKind == DistributionManager.LONER_DM_TYPE) { this.uniqueTag = DataSerializer.readString(in); } else { String str = DataSerializer.readString(in); if (str != null) { // backward compatibility from earlier than 6.5 this.vmViewId = Integer.parseInt(str); } } this.name = DataSerializer.readString(in); MemberAttributes attr = new MemberAttributes(this.dcPort, this.vmPid, this.vmKind, this.vmViewId, this.name, this.groups, this.durableClientAttributes); netMbr = MemberFactory.newNetMember(inetAddr, port, sbEnabled, elCoord, InternalDataSerializer.getVersionForDataStream(in).ordinal(), attr); synchPayload(); if (InternalDataSerializer.getVersionForDataStream(in).compareTo(Version.GFE_90)>=0) { netMbr.readAdditionalData(in); } }
ipAddr.getAddress().setVersionOrdinal(this.version); synchPayload();