@Override public void writeMember(InternalDistributedMember member, DataOutput out) throws IOException { member.writeEssentialData(out); }
@Override protected void writeMember(InternalDistributedMember member, DataOutput out) throws IOException { member.writeEssentialData(out); }
@Override public void writeMember(InternalDistributedMember member, DataOutput out) throws IOException { member.writeEssentialData(out); }
@Override protected void writeMember(InternalDistributedMember member, DataOutput out) throws IOException { member.writeEssentialData(out); }
public void toData(DataOutput out) throws IOException { int size = this.serverFilterInfo.size(); out.writeInt(size); for (Map.Entry<InternalDistributedMember, FilterInfo> e: this.serverFilterInfo.entrySet()) { InternalDistributedMember member = e.getKey(); member.writeEssentialData(out); FilterInfo fInfo = e.getValue(); InternalDataSerializer.invokeToData(fInfo, out); } }
public void toData(DataOutput out) throws IOException { int size = this.serverFilterInfo.size(); out.writeInt(size); for (Map.Entry<InternalDistributedMember, FilterInfo> e: this.serverFilterInfo.entrySet()) { InternalDistributedMember member = e.getKey(); member.writeEssentialData(out); FilterInfo fInfo = e.getValue(); InternalDataSerializer.invokeToData(fInfo, out); } }
public void toDataPre_GFXD_1_4_0_0(DataOutput out) throws IOException { super.toData(out); out.writeByte(this.op.ordinal()); // out.writeLong(this.regionVersion); out.writeInt(this.regionGCVersions.size()); boolean persistent = false; if (!regionGCVersions.isEmpty()) { VersionSource firstEntry = regionGCVersions.keySet().iterator().next(); if (firstEntry instanceof DiskStoreID) { persistent = true; } } out.writeBoolean(persistent); for (Map.Entry<VersionSource, Long> entry : this.regionGCVersions.entrySet()) { VersionSource member = entry.getKey(); if (member instanceof DiskStoreID) { InternalDataSerializer.invokeToData((DiskStoreID) member, out); } else { ((InternalDistributedMember) member).writeEssentialData(out); } out.writeLong(entry.getValue()); } }
public void toDataPre_GFE_8_0_0_0(DataOutput out) throws IOException { super.toData(out); out.writeByte(this.op.ordinal()); // out.writeLong(this.regionVersion); out.writeInt(this.regionGCVersions.size()); boolean persistent = false; if (!regionGCVersions.isEmpty()) { VersionSource firstEntry = regionGCVersions.keySet().iterator().next(); if (firstEntry instanceof DiskStoreID) { persistent = true; } } out.writeBoolean(persistent); for (Map.Entry<VersionSource, Long> entry : this.regionGCVersions.entrySet()) { VersionSource member = entry.getKey(); if (member instanceof DiskStoreID) { InternalDataSerializer.invokeToData((DiskStoreID) member, out); } else { ((InternalDistributedMember) member).writeEssentialData(out); } out.writeLong(entry.getValue()); } }
Map<MemberIdentifier, Integer> seenIds = new HashMap(); myId.writeEssentialData(dop); // added in 7.0 for version tag processing in fromData
Map<MemberIdentifier, Integer> seenIds = new HashMap(); myId.writeEssentialData(dop); // added in 7.0 for version tag processing in fromData
private static byte[] initializeAndGetDSEventIdentity(DistributedSystem sys) { if (sys == null) { // DistributedSystem is required now before handshaking -Kirk throw new IllegalStateException(LocalizedStrings.ClientProxyMembershipID_ATTEMPTING_TO_HANDSHAKE_WITH_CACHESERVER_BEFORE_CREATING_DISTRIBUTEDSYSTEM_AND_CACHE.toLocalizedString()); } if (EventID.system != sys) { // DS already exists... make sure it's for current DS connection EventID.systemMemberId = sys.getDistributedMember(); try { HeapDataOutputStream hdos = new HeapDataOutputStream(256, Version.CURRENT); ((InternalDistributedMember)EventID.systemMemberId).writeEssentialData(hdos); client_side_event_identity = hdos.toByteArray(); } catch (IOException ioe) { throw new InternalGemFireException(LocalizedStrings.ClientProxyMembershipID_UNABLE_TO_SERIALIZE_IDENTITY.toLocalizedString(), ioe); } EventID.system = sys; } return EventID.client_side_event_identity; }
/** * Convert a ClientProxyMembershipID distribted member ID array into one * usable by EventIDs * @param client the client's ID * @return a byte array that may be used in EventID formation */ public static byte[] getMembershipId(ClientProxyMembershipID client) { try { HeapDataOutputStream hdos = new HeapDataOutputStream(256, Version.CURRENT); ((InternalDistributedMember)client.getDistributedMember()).writeEssentialData(hdos); return hdos.toByteArray(); } catch (IOException ioe) { throw new InternalGemFireException(LocalizedStrings.ClientProxyMembershipID_UNABLE_TO_SERIALIZE_IDENTITY.toLocalizedString(), ioe); } }
private static byte[] initializeAndGetDSEventIdentity(DistributedSystem sys) { if (sys == null) { // DistributedSystem is required now before handshaking -Kirk throw new IllegalStateException(LocalizedStrings.ClientProxyMembershipID_ATTEMPTING_TO_HANDSHAKE_WITH_CACHESERVER_BEFORE_CREATING_DISTRIBUTEDSYSTEM_AND_CACHE.toLocalizedString()); } if (EventID.system != sys) { // DS already exists... make sure it's for current DS connection EventID.systemMemberId = sys.getDistributedMember(); try { HeapDataOutputStream hdos = new HeapDataOutputStream(256, Version.CURRENT); ((InternalDistributedMember)EventID.systemMemberId).writeEssentialData(hdos); client_side_event_identity = hdos.toByteArray(); } catch (IOException ioe) { throw new InternalGemFireException(LocalizedStrings.ClientProxyMembershipID_UNABLE_TO_SERIALIZE_IDENTITY.toLocalizedString(), ioe); } EventID.system = sys; } return EventID.client_side_event_identity; }
/** * Convert a ClientProxyMembershipID distribted member ID array into one * usable by EventIDs * @param client the client's ID * @return a byte array that may be used in EventID formation */ public static byte[] getMembershipId(ClientProxyMembershipID client) { try { HeapDataOutputStream hdos = new HeapDataOutputStream(256, Version.CURRENT); ((InternalDistributedMember)client.getDistributedMember()).writeEssentialData(hdos); return hdos.toByteArray(); } catch (IOException ioe) { throw new InternalGemFireException(LocalizedStrings.ClientProxyMembershipID_UNABLE_TO_SERIALIZE_IDENTITY.toLocalizedString(), ioe); } }