/** @return Involved nodes. */
  @Override
  public Collection<? extends GridNode> nodes() {
    return F.viewReadOnly(
        futures(),
        new GridClosure<GridFuture<?>, GridRichNode>() {
          @Nullable
          @Override
          public GridRichNode apply(GridFuture<?> f) {
            if (isMini(f)) return ((MiniFuture) f).node();

            return cctx.rich().rich(cctx.discovery().localNode());
          }
        });
  }
Пример #2
0
 /**
  * @return Readers.
  * @throws GridCacheEntryRemovedException If removed.
  */
 public Collection<UUID> readers() throws GridCacheEntryRemovedException {
   return F.viewReadOnly(checkReaders(), R2N);
 }