Tabnine Logo
com.gemstone.gemfire.distributed.internal.membership
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.apache.geode/gemfire-core

/**
 * Set the membership port.  This is done in loner systems using
 * client/server connection information to help form a unique ID
 */
public void setPort(int p) {
 assert this.vmKind == DistributionManager.LONER_DM_TYPE;
 this.netMbr.setPort(p);
 synchPayload();
 cachedToString = null;
}

origin: org.apache.geode/gemfire-core

private void synchPayload() {
 netMbr.setAttributes(new MemberAttributes(dcPort, vmPid, vmKind, 
   vmViewId, name, groups, durableClientAttributes));
}
origin: io.snappydata/gemfire-core

@Override
public boolean equals(Object obj)
{
 if ((obj == null) || !(obj instanceof DataStoreBuckets)) {
  return false;
 }
 DataStoreBuckets other = (DataStoreBuckets) obj;
 return this.numBuckets == other.numBuckets &&
  this.memberId.equals(other.memberId);
}
origin: io.snappydata/gemfire-core

@Override
public int hashCode() {
 return memberId.hashCode();
}
@Override
origin: io.snappydata/gemfire-hydra-tests

/**
 * Returns true if the given DistributedMember is a locator
 */
public static boolean isLocatorMember(DistributedMember mbr) {
 return ((InternalDistributedMember)mbr).getVmKind() == DistributionManager.LOCATOR_DM_TYPE;
}

origin: io.snappydata/gemfire-core

/**
 * Return a blank NetMember (used by externalization)
 * @return the new NetMember
 */
static public NetMember newNetMember() {
 return services.newNetMember();
}

origin: io.snappydata/gemfire-core

/**
 * [GemStone] Sets the process id of the VM that hosts the distribution
 * manager with this address.
 *
 * @since 4.0
 */
public void setVmPid(int p)
{
 this.vmPid = p;
 synchPayload();
 cachedToString = null;
}
origin: io.snappydata/gemfire-core

/**
 * Returns null if no dm available.
 */
public DM getDM() {
 return this.receiver.getDM();
}

origin: org.apache.geode/gemfire-core

 public int compareTo(Member other) {
  // memberId is InternalDistributedMember which implements Comparable
  return this.memberId.compareTo(other.memberId);
 }
}
origin: io.snappydata/gemfire-core

 public void setShutDown() {
//    this.shuttingDown = shuttingDown;
  if (membershipManager != null)
   membershipManager.setShutdown();
 }

origin: io.snappydata/gemfire-core

/**
 * Set the VmPid to be the given value.  This may be done by JGroups UDP
 * protocol if there is no PID available to augment its membership port number.
 * This functionality was added by us for bug #41983
 * @param uniqueID
 */
public static void setDefaultVmPid(int uniqueID) {
 // note: JGroupMembershipManager establishes DEFAULT before attempting to
 // create a JGroups channel, so we know it isn't INVALID here
 setDefaults(DEFAULT.dcPort, uniqueID, DEFAULT.vmKind, DEFAULT.vmViewId, DEFAULT.name,
   DEFAULT.groups, DEFAULT.durableClientAttributes);
}
origin: io.snappydata/snappydata-store-core

@Override
public boolean equals(Object other) {
 if (other instanceof DistributedLockOwner) {
  final DistributedLockOwner otherOwner = (DistributedLockOwner)other;
  return this.ownerThreadId == otherOwner.ownerThreadId
    && this.ownerMember.equals(otherOwner.ownerMember);
 }
 return false;
}
origin: org.apache.geode/gemfire-core

@Override
public int hashCode()
{
 return this.memberId.hashCode(); 
}
origin: io.snappydata/gemfire-hydra-tests

/**
 * Returns true if the given DistributedMember is loner (no peer-to-peer cache)
 */
public static boolean isLonerMember(DistributedMember mbr) {
 return ((InternalDistributedMember)mbr).getVmKind() == DistributionManager.LONER_DM_TYPE;
}

origin: io.snappydata/gemfire-core

/**
 * Return a new NetMember representing current host
 * @param i an InetAddress referring to the current host
 * @param p the membership port being used
 * @return the new NetMember
 */
static public NetMember newNetMember(InetAddress i, int p) {
 NetMember result = services.newNetMember(i, p);
 return result;
}
origin: io.snappydata/gemfire-core

/**
 * [GemStone] Set the direct channel port
 */
public void setDirectChannelPort(int p)
{
 dcPort = p;
 synchPayload();
}

origin: org.apache.geode/gemfire-core

@Override
public boolean equals(Object other) {
 if (this == other) return true;
 if (other instanceof Key) {
  Key toTest = (Key)other;
  return (toTest.console.equals(this.console) &&
      toTest.msgId == this.msgId);
 }
 return false;
}
origin: io.snappydata/gemfire-core

/**
 * Return a new NetMember representing current host
 * 
 * @param s a String referring to the current host
 * @param p the membership port being used
 * @return the new member
 */
static public NetMember newNetMember(String s, int p) {
 return services.newNetMember(s, p);
}

origin: org.apache.geode/gemfire-core

@Override
public boolean equals(Object obj)
{
 if ((obj == null) || !(obj instanceof DataStoreBuckets)) {
  return false;
 }
 DataStoreBuckets other = (DataStoreBuckets) obj;
 return this.numBuckets == other.numBuckets &&
  this.memberId.equals(other.memberId);
}
origin: org.apache.geode/gemfire-core

/**
 * Return a new NetMember representing current host
 * 
 * @param s a String referring to the current host
 * @param p the membership port being used
 * @return the new member
 */
static public NetMember newNetMember(String s, int p) {
 return services.newNetMember(s, p);
}

com.gemstone.gemfire.distributed.internal.membership

Most used classes

  • InternalDistributedMember
    This is the fundamental representation of a member of a GemFire distributed system.
  • MembershipManager
    A MembershipManager is responsible for reporting a MemberView, as well as having explicit protocol f
  • InternalRole
    Members of the distributed system can fill one or more user defined roles. A role is metadata that d
  • NetView
    The NetView class represents a membership view. Note that this class is not synchronized, so take th
  • JGroupMembershipManager
  • DistributedMembershipListener,
  • MemberAttributes,
  • MemberFactory,
  • MemberServices,
  • MembershipTestHook,
  • NetMember,
  • QuorumChecker,
  • JGroupMember,
  • MembershipManagerHelper,
  • MembershipJUnitTest,
  • GMSMember,
  • GMSMemberFactory,
  • GMSUtil,
  • NetLocator
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