Tabnine Logo
InternalDistributedMember.writeEssentialData
Code IndexAdd Tabnine to your IDE (free)

How to use
writeEssentialData
method
in
com.gemstone.gemfire.distributed.internal.membership.InternalDistributedMember

Best Java code snippets using com.gemstone.gemfire.distributed.internal.membership.InternalDistributedMember.writeEssentialData (Showing top 14 results out of 315)

origin: org.apache.geode/gemfire-core

@Override
public void writeMember(InternalDistributedMember member, DataOutput out) throws IOException {
 member.writeEssentialData(out);
 
}

origin: io.snappydata/gemfire-core

@Override
protected void writeMember(InternalDistributedMember member, DataOutput out) throws IOException {
 member.writeEssentialData(out);
 
}
origin: io.snappydata/gemfire-core

@Override
public void writeMember(InternalDistributedMember member, DataOutput out) throws IOException {
 member.writeEssentialData(out);
 
}
origin: org.apache.geode/gemfire-core

@Override
protected void writeMember(InternalDistributedMember member, DataOutput out) throws IOException {
 member.writeEssentialData(out);
 
}
origin: io.snappydata/gemfire-core

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);      
 }
}

origin: org.apache.geode/gemfire-core

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);      
 }
}

origin: io.snappydata/gemfire-core

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());
 }
}
origin: org.apache.geode/gemfire-core

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());
 }
}
origin: io.snappydata/gemfire-core

Map<MemberIdentifier, Integer> seenIds = new HashMap();
myId.writeEssentialData(dop); // added in 7.0 for version tag processing in fromData
origin: org.apache.geode/gemfire-core

Map<MemberIdentifier, Integer> seenIds = new HashMap();
myId.writeEssentialData(dop); // added in 7.0 for version tag processing in fromData
origin: org.apache.geode/gemfire-core

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;

}
origin: org.apache.geode/gemfire-core

/**
 * 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);
 }
}
origin: io.snappydata/gemfire-core

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;

}
origin: io.snappydata/gemfire-core

/**
 * 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);
 }
}
com.gemstone.gemfire.distributed.internal.membershipInternalDistributedMemberwriteEssentialData

Javadoc

NOTE: the data the method serializes is read by old clients in CacheClientUpdater. So if you add data here add it to the end so the old client can still read it. See bug 45160.

Popular methods of InternalDistributedMember

  • <init>
    Construct a InternalDistributedMember. All fields are specified. This, and the following constructor
  • equals
  • toString
  • getHost
  • getId
  • getName
    Returns the name of this member's distributed system connection or null if no name was specified.
  • getPort
    Return the underlying port (membership port)
  • getRoles
    Returns an unmodifiable Set of this member's Roles.
  • getVmKind
    [GemStone] Returns the kind of VM that hosts the distribution manager with this address.
  • hashCode
  • getIpAddress
    Return the underlying host address
  • getProcessId
  • getIpAddress,
  • getProcessId,
  • getVersionObject,
  • fromData,
  • getDirectChannelPort,
  • getGroups,
  • getNetMember,
  • getVmViewId,
  • toData,
  • _readEssentialData

Popular in Java

  • Running tasks concurrently on multiple threads
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • putExtra (Intent)
  • getSystemService (Context)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • JPanel (javax.swing)
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now