Tabnine Logo
InternalDistributedMember.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.gemstone.gemfire.distributed.internal.membership.InternalDistributedMember
constructor

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

origin: io.snappydata/gemfire-junit

@Override
protected void setUp() throws Exception {
 super.setUp();
 member = new InternalDistributedMember(InetAddress.getLocalHost(), 12345);
}
origin: io.snappydata/gemfire-core

/**
 * Return fake, temporary DistributedMember to represent the other vm this 
 * vm is connecting to
 * 
 * @param sock the socket this handshake is operating on
 * @return temporary id to reprent the other vm
 */
private DistributedMember getDistributedMember(Socket sock) {
 return new InternalDistributedMember(
   sock.getInetAddress(), sock.getPort(), false);
}
origin: org.apache.geode/gemfire-core

/**
 * Return fake, temporary DistributedMember to represent the other vm this 
 * vm is connecting to
 * 
 * @param sock the socket this handshake is operating on
 * @return temporary id to reprent the other vm
 */
private DistributedMember getDistributedMember(Socket sock) {
 return new InternalDistributedMember(
   sock.getInetAddress(), sock.getPort(), false);
}
origin: org.apache.geode/gemfire-core

@Override  
public void fromData(DataInput in) throws IOException, ClassNotFoundException
{
 this.memberId = new InternalDistributedMember();
 InternalDataSerializer.invokeFromData(this.memberId, in);
 this.prType = in.readInt();
 this.isPersistent = in.readBoolean();
 this.cacheLoaderWriterByte = in.readByte();
 this.serialNumber = in.readInt();
}
origin: org.apache.geode/gemfire-core

public void fromData(DataInput in) throws IOException, ClassNotFoundException {
 this.peerMemberId = new InternalDistributedMember();
 InternalDataSerializer.invokeFromData(this.peerMemberId, in);
 this.version = in.readInt();
 this.serialNumber = in.readInt();
}
origin: io.snappydata/gemfire-core

@Override  
public void fromData(DataInput in) throws IOException, ClassNotFoundException
{
 this.memberId = new InternalDistributedMember();
 InternalDataSerializer.invokeFromData(this.memberId, in);
 this.prType = in.readInt();
 this.isPersistent = in.readBoolean();
 this.cacheLoaderWriterByte = in.readByte();
 this.serialNumber = in.readInt();
}
origin: io.snappydata/gemfire-core

public void fromData(DataInput in) throws IOException, ClassNotFoundException {
 this.peerMemberId = new InternalDistributedMember();
 InternalDataSerializer.invokeFromData(this.peerMemberId, in);
 this.version = in.readInt();
 this.serialNumber = in.readInt();
}
origin: org.apache.geode/gemfire-core

/** this writes just the parts of the ID that are needed for comparisons and communications */
 public static InternalDistributedMember readEssentialData(DataInput in)
  throws IOException, ClassNotFoundException {
  final InternalDistributedMember mbr = new InternalDistributedMember();
  mbr._readEssentialData(in);
  return mbr;
 }
 
origin: org.apache.geode/gemfire-core

/**
 * Reads an instance of <code>IpAddress</code> from a
 * <code>DataInput</code>.
 *
 * @throws IOException
 *         A problem occurs while reading from <code>in</code>
 */
public static InternalDistributedMember readInternalDistributedMember(DataInput in)
 throws IOException, ClassNotFoundException {
 InternalDistributedMember o = new InternalDistributedMember();
 InternalDataSerializer.invokeFromData(o, in);
 return o;
}
origin: io.snappydata/gemfire-core

/** this writes just the parts of the ID that are needed for comparisons and communications */
 public static InternalDistributedMember readEssentialData(DataInput in)
  throws IOException, ClassNotFoundException {
  final InternalDistributedMember mbr = new InternalDistributedMember();
  mbr._readEssentialData(in);
  return mbr;
 }
 
origin: io.snappydata/gemfire-core

/**
 * returns true if a shutdown message has been received from the given address but
 * that member is still in the membership view or is a surprise member.
 */
public boolean isShuttingDown(IpAddress addr) {
 InternalDistributedMember mbr = ipAddrToMemberMap.get(addr);
 if (mbr == null) {
  JGroupMember m = new JGroupMember(addr);
  mbr = new InternalDistributedMember(m);
 }
 synchronized(shutdownMembers) {
  return shutdownMembers.containsKey(mbr);
 }
}
origin: org.apache.geode/gemfire-core

@Override
public void fromData(DataInput in) 
throws IOException, ClassNotFoundException {
 super.fromData(in);
 this.bucketId = in.readInt();
 newPrimary = new InternalDistributedMember();
 InternalDataSerializer.invokeFromData(newPrimary, in);
}
origin: io.snappydata/gemfire-core

@Override
public void fromData(DataInput in)
  throws IOException, ClassNotFoundException {
 super.fromData(in);
 this.bucketId = in.readInt();
 newPrimary = new InternalDistributedMember();
 InternalDataSerializer.invokeFromData(newPrimary, in);
}
origin: io.snappydata/gemfire-core

@Override  
public void fromData(DataInput in)
 throws IOException, ClassNotFoundException {
 super.fromData(in);
 boolean hasPrimary = in.readBoolean();
 if(hasPrimary) {
  primary = new InternalDistributedMember();
  InternalDataSerializer.invokeFromData(primary, in);
 }
}
origin: org.apache.geode/gemfire-core

@Override  
public void fromData(DataInput in)
 throws IOException, ClassNotFoundException {
 super.fromData(in);
 boolean hasPrimary = in.readBoolean();
 if(hasPrimary) {
  primary = new InternalDistributedMember();
  InternalDataSerializer.invokeFromData(primary, in);
 }
}
origin: io.snappydata/gemfire-junit

public DummyConnection(int epType, int queueSize, int port) throws UnknownHostException {
 InternalDistributedMember member = new InternalDistributedMember("localhost", 555);
 ServerQueueStatus status = new ServerQueueStatus((byte) epType, queueSize, member);
 this.status = status;
 this.location = new ServerLocation("localhost", port);
 this.endpoint = endpoints.referenceEndpoint(location, member);
}
origin: io.snappydata/gemfirexd-core

 @Override
 public void fromData(DataInput in) throws IOException,
     ClassNotFoundException {
  super.fromData(in);
  this.ownerMember = new InternalDistributedMember();
  this.ownerMember.fromData(in);
  this.ownerThreadId = InternalDataSerializer.readSignedVL(in);
  this.ownerThreadName = DataSerializer.readString(in);
 }
}
origin: io.snappydata/snappydata-store-core

 @Override
 public void fromData(DataInput in) throws IOException,
     ClassNotFoundException {
  super.fromData(in);
  this.ownerMember = new InternalDistributedMember();
  this.ownerMember.fromData(in);
  this.ownerThreadId = InternalDataSerializer.readSignedVL(in);
  this.ownerThreadName = DataSerializer.readString(in);
 }
}
origin: io.snappydata/gemfirexd

 @Override
 public void fromData(DataInput in) throws IOException,
     ClassNotFoundException {
  super.fromData(in);
  this.ownerMember = new InternalDistributedMember();
  this.ownerMember.fromData(in);
  this.ownerThreadId = InternalDataSerializer.readSignedVL(in);
  this.ownerThreadName = DataSerializer.readString(in);
 }
}
origin: org.apache.geode/gemfire-core

/**
 * returns the member ID for the given GMSMember object
 */
private InternalDistributedMember getMemberFromView(GMSMember jgId, short version) {
 NetView v = services.getJoinLeave().getView();
 
 if (v != null) {
  for (InternalDistributedMember m: v.getMembers()) {
   if (((GMSMember)m.getNetMember()).equals(jgId)) {
    return m;
   }
  }
 }
 return new InternalDistributedMember(jgId);
}
com.gemstone.gemfire.distributed.internal.membershipInternalDistributedMember<init>

Javadoc

Construct a InternalDistributedMember based on the given NetMember.

This is not the preferred way of creating an instance since the NetMember may not have all required information (e.g., a JGroups address without direct-port and other information).

Popular methods of InternalDistributedMember

  • 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
  • getVersionObject
  • getProcessId,
  • getVersionObject,
  • fromData,
  • getDirectChannelPort,
  • getGroups,
  • getNetMember,
  • getVmViewId,
  • toData,
  • _readEssentialData

Popular in Java

  • Creating JSON documents from java classes using gson
  • findViewById (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • putExtra (Intent)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top Sublime Text 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