/** * @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); }
/** * @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); }