public void fromData(DataInput in) throws IOException, ClassNotFoundException { fromDataPre_GFE_9_0_0_0(in); // just in case this is just a non-versioned read // from a file we ought to check the version if (this.version >= Version.GFE_90.ordinal()) { try { netMbr.readAdditionalData(in); } catch (EOFException e) { // nope - it's from a pre-GEODE client or WAN site } } }
if (this.version >= Version.GFE_90.ordinal()) { try { netMbr.readAdditionalData(in); } catch (java.io.EOFException e) {
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); } }