コード例 #1
0
  /**
   * @param cctx Cache context.
   * @return {@code true} If cache context
   */
  private boolean hasMovingPartitions(GridCacheContext<?, ?> cctx) {
    GridDhtPartitionFullMap fullMap = cctx.topology().partitionMap(false);

    for (GridDhtPartitionMap2 map : fullMap.values()) {
      if (map.hasMovingPartitions()) return true;
    }

    return false;
  }