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

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

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

origin: io.snappydata/gemfire-core

@Override
protected InternalDistributedMember readMember(DataInput in) throws IOException, ClassNotFoundException {
 return InternalDistributedMember.readEssentialData(in);
}
origin: io.snappydata/gemfire-core

@Override
public InternalDistributedMember readMember(DataInput in) throws IOException, ClassNotFoundException {
 return InternalDistributedMember.readEssentialData(in);
}
origin: org.apache.geode/gemfire-core

@Override
protected InternalDistributedMember readMember(DataInput in) throws IOException, ClassNotFoundException {
 return InternalDistributedMember.readEssentialData(in);
}
origin: org.apache.geode/gemfire-core

@Override
public InternalDistributedMember readMember(DataInput in) throws IOException, ClassNotFoundException {
 return InternalDistributedMember.readEssentialData(in);
}
origin: io.snappydata/gemfire-core

/**
 * starting in v6.5 this method returns a somewhat crippled Identifier.
 * It is missing any durable attributes and roles information but contains
 * all other info about the member.  This fixes bug #39361.
 * @return the member that initiated this event
 */
public InternalDistributedMember getDistributedMember() {
 ByteArrayInputStream bais = new ByteArrayInputStream(this.membershipID);
 DataInputStream dis = new DataInputStream(bais);
 InternalDistributedMember result = null;
 try {
  result = InternalDistributedMember.readEssentialData(dis);
 } catch (IOException e) {
  // nothing can be done about this
 } catch (ClassNotFoundException e) {
  // ditto
 }
 return result;
}
origin: org.apache.geode/gemfire-core

/**
 * starting in v6.5 this method returns a somewhat crippled Identifier.
 * It is missing any durable attributes and roles information but contains
 * all other info about the member.  This fixes bug #39361.
 * @return the member that initiated this event
 */
public InternalDistributedMember getDistributedMember() {
 ByteArrayInputStream bais = new ByteArrayInputStream(this.membershipID);
 DataInputStream dis = new DataInputStream(bais);
 InternalDistributedMember result = null;
 try {
  result = InternalDistributedMember.readEssentialData(dis);
 } catch (IOException e) {
  // nothing can be done about this
 } catch (ClassNotFoundException e) {
  // ditto
 }
 return result;
}
origin: org.apache.geode/gemfire-core

public String expensiveToString() {
 Object mbr;
 try {
  mbr = InternalDistributedMember.readEssentialData(
    new DataInputStream(new ByteArrayInputStream(membershipID)));
 }
 catch (Exception e) {
  mbr = membershipID;  // punt and use the bytes
 }
 
 return "ThreadId[" + mbr + "; thread " + toDisplayString(threadID) + "]";
}
origin: io.snappydata/gemfire-core

public EventSequenceID(byte[] membershipID, long threadID, long sequenceID) {
 // convert the byte array of membershipID to a readable string
 Object mbr;
 try {
  mbr = InternalDistributedMember.readEssentialData(new DataInputStream(
    new ByteArrayInputStream(membershipID)));
 }
 catch (Exception e) {
  mbr = Arrays.toString(membershipID); // punt and use the bytes
 }
 this.membershipID = mbr.toString();
 this.threadID = threadID;
 this.sequenceID = sequenceID;
}
origin: org.apache.geode/gemfire-core

public EventSequenceID(byte[] membershipID, long threadID, long sequenceID) {
 // convert the byte array of membershipID to a readable string
 Object mbr;
 try {
  mbr = InternalDistributedMember.readEssentialData(new DataInputStream(
    new ByteArrayInputStream(membershipID)));
 }
 catch (Exception e) {
  mbr = Arrays.toString(membershipID); // punt and use the bytes
 }
 this.membershipID = mbr.toString();
 this.threadID = threadID;
 this.sequenceID = sequenceID;
}
origin: io.snappydata/gemfire-core

public String expensiveToString() {
 Object mbr;
 try {
  mbr = InternalDistributedMember.readEssentialData(
    new DataInputStream(new ByteArrayInputStream(membershipID)));
 }
 catch (Exception e) {
  mbr = membershipID;  // punt and use the bytes
 }
 
 return "ThreadId[" + mbr + "; thread " + toDisplayString(threadID) + "]";
}
origin: io.snappydata/gemfire-core

public String expensiveToString() {
 Object mbr;
 try {
  mbr = InternalDistributedMember.readEssentialData(
    new DataInputStream(new ByteArrayInputStream(membershipID)));
 }
 catch (Exception e) {
  mbr = membershipID;  // punt and use the bytes
 }
 return "EventID[" + mbr + ";threadID=" + ThreadIdentifier.toDisplayString(threadID) + ";sequenceID=" + sequenceID
  + (Breadcrumbs.ENABLED? ";bcrumb=" + breadcrumbCounter : "")
  + (bucketID>=0? (";bucketID=" + bucketID) : "")
  + "]";
}
origin: org.apache.geode/gemfire-core

public String expensiveToString() {
 Object mbr;
 try {
  mbr = InternalDistributedMember.readEssentialData(
    new DataInputStream(new ByteArrayInputStream(membershipID)));
 }
 catch (Exception e) {
  mbr = membershipID;  // punt and use the bytes
 }
 return "EventID[" + mbr + ";threadID=" + ThreadIdentifier.toDisplayString(threadID) + ";sequenceID=" + sequenceID
  + (Breadcrumbs.ENABLED? ";bcrumb=" + breadcrumbCounter : "")
  + (bucketID>=0? (";bucketID=" + bucketID) : "")
  + "]";
}
origin: org.apache.geode/gemfire-core

@Override  
public void fromData(DataInput in) throws IOException, ClassNotFoundException {
 super.fromData(in);
 this.regionPath = DataSerializer.readString(in);
 boolean persistentIDs = in.readBoolean();
 int len = in.readInt();
 this.lostVersionSources = new VersionSource[len];
 for (int i=0; i<len; i++) {
  this.lostVersionSources[i] =
    (persistentIDs? DiskStoreID.readEssentialData(in)
           : InternalDistributedMember.readEssentialData(in));
 }
}

origin: io.snappydata/gemfire-core

@Override  
public void fromData(DataInput in) throws IOException, ClassNotFoundException {
 super.fromData(in);
 this.regionPath = DataSerializer.readString(in);
 boolean persistentIDs = in.readBoolean();
 int len = in.readInt();
 this.lostVersionSources = new VersionSource[len];
 for (int i=0; i<len; i++) {
  this.lostVersionSources[i] =
    (persistentIDs? DiskStoreID.readEssentialData(in)
           : InternalDistributedMember.readEssentialData(in));
 }
}

origin: io.snappydata/gemfire-core

public void fromDataPre_GFXD_1_4_0_0(DataInput in) throws IOException,
    ClassNotFoundException {
 super.fromData(in);
 this.op = TOperation.values()[in.readByte()];
 //      this.regionVersion = in.readLong();
 int count = in.readInt();
 this.regionGCVersions = new HashMap<VersionSource, Long>(count);
 boolean persistent = in.readBoolean();
 for (int i = 0; i < count; i++) {
  VersionSource mbr;
  if (persistent) {
   DiskStoreID id = new DiskStoreID();
   InternalDataSerializer.invokeFromData(id, in);
   mbr = id;
  } else {
   mbr = InternalDistributedMember.readEssentialData(in);
  }
  this.regionGCVersions.put(mbr, Long.valueOf(in.readLong()));
 }
}

origin: org.apache.geode/gemfire-core

public void fromDataPre_GFE_8_0_0_0(DataInput in) throws IOException,
    ClassNotFoundException {
 super.fromData(in);
 this.op = TOperation.values()[in.readByte()];
 //      this.regionVersion = in.readLong();
 int count = in.readInt();
 this.regionGCVersions = new HashMap<VersionSource, Long>(count);
 boolean persistent = in.readBoolean();
 for (int i = 0; i < count; i++) {
  VersionSource mbr;
  if (persistent) {
   DiskStoreID id = new DiskStoreID();
   InternalDataSerializer.invokeFromData(id, in);
   mbr = id;
  } else {
   mbr = InternalDistributedMember.readEssentialData(in);
  }
  this.regionGCVersions.put(mbr, Long.valueOf(in.readLong()));
 }
}

origin: io.snappydata/gemfire-core

/** DataSerializable methods */
public void fromData(DataInput in) throws IOException, ClassNotFoundException {
 DistributedMember myID = null;
 GemFireCacheImpl cache = GemFireCacheImpl.getInstance();
 if (cache != null) {
  myID = cache.getMyId();
 }
 int size = in.readInt();
 for (int i=0; i < size; i++){
  InternalDistributedMember member = InternalDistributedMember.readEssentialData(in);
  FilterInfo fInfo = new FilterInfo();
  InternalDataSerializer.invokeFromData(fInfo, in);
  // we only need to retain the recipient's entry
  if (myID == null || myID.equals(member)) {
   this.serverFilterInfo.put(member, fInfo);
  }
 }
}

origin: org.apache.geode/gemfire-core

/** DataSerializable methods */
public void fromData(DataInput in) throws IOException, ClassNotFoundException {
 DistributedMember myID = null;
 GemFireCacheImpl cache = GemFireCacheImpl.getInstance();
 if (cache != null) {
  myID = cache.getMyId();
 }
 int size = in.readInt();
 for (int i=0; i < size; i++){
  InternalDistributedMember member = InternalDistributedMember.readEssentialData(in);
  FilterInfo fInfo = new FilterInfo();
  InternalDataSerializer.invokeFromData(fInfo, in);
  // we only need to retain the recipient's entry
  if (myID == null || myID.equals(member)) {
   this.serverFilterInfo.put(member, fInfo);
  }
 }
}

origin: io.snappydata/gemfire-core

InternalDistributedMember senderId = InternalDistributedMember.readEssentialData(dip);
origin: org.apache.geode/gemfire-core

InternalDistributedMember senderId = InternalDistributedMember.readEssentialData(dip);
com.gemstone.gemfire.distributed.internal.membershipInternalDistributedMemberreadEssentialData

Javadoc

this writes just the parts of the ID that are needed for comparisons and communications

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

  • Parsing JSON documents to java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getResourceAsStream (ClassLoader)
  • getContentResolver (Context)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Table (org.hibernate.mapping)
    A relational table
  • Top Vim plugins
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