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

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

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

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/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 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: 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: io.snappydata/gemfirexd-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

public void memberDeparted(InternalDistributedMember id, boolean crashed) {
 if (memberId.equals(id)) {
  synchronized(lock) {
   lock.notifyAll();
  }
 }
}
public void quorumLost(Set<InternalDistributedMember> failures, List<InternalDistributedMember> remaining) {
origin: org.apache.geode/gemfire-core

public void abort(InternalDistributedMember memberId) {
 // abort if current join matches id...
 if (memberId.equals(RemoteGfManagerAgent.this.currentJoin)) {
  RemoteGfManagerAgent.this.abortCurrentJoin = true;
  this.interrupt();
 }
 // cancel handling of current event if it matches id...
 if (this.id != null && this.id.equals(memberId)) {
  this.id = null;
 }
}
origin: io.snappydata/gemfire-core

 public boolean visit(DistributionAdvisor advisor,
   final Profile profile, int profileIndex, int numProfiles,
   Void aggregate) {
  assert profile instanceof BucketProfile;
  final BucketProfile bucketProfile = (BucketProfile)profile;
  return !bucketProfile.isHosting
    || departedMember.equals(bucketProfile
      .getDistributedMember());
 }
};
origin: org.apache.geode/gemfire-core

/**
 * Returns true if this instance represents a local lock grantor.
 * 
 * @return true if this instance represents a local lock grantor
 */
public boolean isLocal() {
 return this.dm.getId().equals(this.lockGrantorMember);
}

origin: org.apache.geode/gemfire-core

/**
 * Returns true if this instance represents a local lock grantor with
 * the specified DLS serial number
 * @return ture if local grantor with matching serial number
 */
public boolean isLocal(int dlsSerialNumber) {
 return this.lockGrantorSerialNumber == dlsSerialNumber &&
     this.dm.getId().equals(this.lockGrantorMember);
}

origin: io.snappydata/gemfire-core

        public void memberDeparted(InternalDistributedMember theId, boolean crashed) {
//                  if (logger.fineEnabled())
//                    logger.fine("waitForElder: <" + theId + "> has left");
         if (desiredElder.equals(theId)) {
          notifyElderChangeWaiters();
         }
        }
        public void memberSuspect(InternalDistributedMember id,
origin: io.snappydata/gemfire-core

public void memberDeparted(InternalDistributedMember id, boolean crashed) {
 if(id.equals(target)) {
  abort();
 }
 
}
origin: io.snappydata/gemfire-core

/**
 * Returns true if this instance represents a local lock grantor.
 * 
 * @return true if this instance represents a local lock grantor
 */
public boolean isLocal() {
 return this.dm.getId().equals(this.lockGrantorMember);
}

origin: org.apache.geode/gemfire-core

public void memberDeparted(InternalDistributedMember theId, boolean crashed) {
 if (desiredElder.equals(theId)) {
  notifyElderChangeWaiters();
 }
}
public void memberSuspect(InternalDistributedMember id,
origin: io.snappydata/gemfirexd

/** Get the {@link Profile} for the given member including self. */
public GfxdProfile getProfile(InternalDistributedMember member) {
 Profile profile = super.getProfile(member);
 if (profile != null
   || (profile = getMyProfile()).getDistributedMember().equals(member)) {
  return (GfxdProfile)profile;
 }
 return null;
}
origin: io.snappydata/gemfire-core

/**
 * Returns true if the request comes from the local member.
 * 
 * @param request the lock request to check
 * @return true if the request comes from the local member
 */
private boolean isLocalRequest(DLockRequestMessage request) {
 return request.getSender().equals(this.dlock.getDistributionManager().getId());
}

origin: io.snappydata/gemfirexd-core

@Override
public void memberDeparted(InternalDistributedMember id, boolean crashed) {
 GfxdConnectionWrapper wrapper;
 for (Long connId : this.idToConnMap.keySet()) {
  if (GemFireXDUtils.getDistributedMemberFromUUID(connId).equals(id)) {
   if ((wrapper = removeWrapper(connId)) != null) {
    wrapper.close();
   }
  }
 }
}
origin: org.apache.geode/gemfire-core

@Override
protected boolean operateOnPartitionedRegion(DistributionManager dm,
  PartitionedRegion pr, long startTime) throws CacheException,
  QueryException, ForceReattemptException, InterruptedException {
 
 RegionEventImpl event = new RegionEventImpl(pr,Operation.REGION_INVALIDATE,
   this.callbackArg, !dm.getId().equals(getSender()), getSender());
 pr.basicInvalidateRegion(event);
 return true;
}
origin: io.snappydata/gemfire-core

public void memberDeparted(InternalDistributedMember id, boolean crashed) {
 if (logger.fineEnabled()) {
  logger.fine("InitializingBucketMembershipObserver for bucket " + this.bucketToMonitor
    + " member departed " + id);
 }
 // Only release the lock iff requesting member has parted
 if (this.bucketToMonitor.isHosting() && id.equals(requestingMember)) {
  BucketRegion br = bucketToMonitor.getHostedBucketRegion();
  br.releaseSnapshotGIIWriteLock();
 }
}
origin: io.snappydata/gemfire-hydra-tests

 public void run() {
  Cache cache = getCache();
  PartitionedRegion region = (PartitionedRegion) cache.getRegion("region1");
  //Make sure we're not the primary
  assertFalse(region.getBucketPrimary(BUCKET_ID).equals(cache.getDistributedSystem().getDistributedMember()));
 }
});
com.gemstone.gemfire.distributed.internal.membershipInternalDistributedMemberequals

Popular methods of InternalDistributedMember

  • <init>
    Construct a InternalDistributedMember. All fields are specified. This, and the following constructor
  • 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

  • Updating database using SQL prepared statement
  • onRequestPermissionsResult (Fragment)
  • getExternalFilesDir (Context)
  • addToBackStack (FragmentTransaction)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • JFrame (javax.swing)
  • Top plugins for WebStorm
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