Example #1
0
 /**
  * @param n Node to check.
  * @param part Partition.
  * @param topVer Topology version.
  * @return {@code True} if checked node is primary for given key.
  */
 public boolean primary(GridNode n, int part, long topVer) {
   return F.eq(primary(part, topVer), n);
 }
Example #2
0
 /**
  * @param n Node to check.
  * @param key Key to check.
  * @param topVer Topology version.
  * @return {@code True} if checked node is primary for given key.
  */
 public boolean primary(GridNode n, K key, long topVer) {
   return F.eq(primary(key, topVer), n);
 }