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

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

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

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 int compareTo(Member other) {
  // memberId is InternalDistributedMember which implements Comparable
  return this.memberId.compareTo(other.memberId);
 }
}
origin: org.apache.geode/gemfire-core

@Override
public boolean equals(Object obj)
{
 if (this == obj) {
  return true;
 }
 // GemStone fix for 29125
 if ((obj == null) || !(obj instanceof InternalDistributedMember)) {
  return false;
 }
 return compareTo((InternalDistributedMember)obj) == 0;
}
origin: org.apache.geode/gemfire-core

/**
 * implements the java.lang.Comparable interface
 *
 * @see java.lang.Comparable
 * @param o -
 *          the Object to be compared
 * @return a negative integer, zero, or a positive integer as this object is
 *         less than, equal to, or greater than the specified object.
 * @exception java.lang.ClassCastException -
 *              if the specified object's type prevents it from being compared
 *              to this Object.
 */
public int compareTo(DistributedMember o) {
 return compareTo(o, true);
}

origin: org.apache.geode/gemfire-core

if (mbrIsNoob) {
 if (coordIsNoob && (coord == null || coord.compareTo(mbr, false) > 0)) {
  coord = mbr;
origin: org.apache.geode/gemfire-core

if (mbr.compareTo(m, false) == 0) {
 oldIDs.add(m);
 break;
origin: org.apache.geode/gemfire-core

while (it.hasNext()) {
 InternalDistributedMember candidate = it.next();
 if (oldest.compareTo(candidate) > 0) {
  oldest = candidate;
 if (mbrIsNoob) {
  if (coordIsNoob && (coord == null || coord.compareTo(mbr) > 0)) {
   coord = mbr;
origin: org.apache.geode/gemfire-core

if (rid.compareTo(id, false) == 0) {
 NetView newView = new NetView(v, v.getViewId());
 newView.remove(id);
 if (mbr != coord  &&  (coord==null  ||  mbr.compareTo(coord) < 0)) {
  if (!rejections.contains(mbr)
    && (mbr.getNetMember().preferredForCoordinator() || !mbr.getNetMember().splitBrainEnabled())) {
origin: org.apache.geode/gemfire-core

if (localAddress.compareTo(mbr) == 0) {
 viewContainsMyUnjoinedAddress = true;
 break;
com.gemstone.gemfire.distributed.internal.membershipInternalDistributedMembercompareTo

Javadoc

implements the java.lang.Comparable interface

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

  • Making http post requests using okhttp
  • setContentView (Activity)
  • getResourceAsStream (ClassLoader)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • JTextField (javax.swing)
  • Top PhpStorm 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