/** {@inheritDoc} */ @Override public boolean backup() { assert impl != null; return impl.backup(); }
@SuppressWarnings({"unchecked"}) @Override public boolean apply(Object o) { return ((GridCacheEntry)o).backup(); }
/** {@inheritDoc} */ @Override protected Map<String, GridBiTuple<Integer, Integer>> run(Set<String> names) throws GridException { Map<String, GridBiTuple<Integer, Integer>> total = new HashMap<>(); for (GridCache c: g.cachesx()) { String cacheName = c.name(); if (names.contains(cacheName)) { Set<GridCacheEntry> entries = c.entrySet(); int before = entries.size(), after = before; for (GridCacheEntry entry: entries) { if (entry.backup() && entry.evict()) after--; } total.put(cacheName, new GridBiTuple<>(before, after)); } } return total; }
if (!entry.primary() && !entry.backup()) log.debug("Reading non-local data block [path=" + path + ", fileInfo=" + fileInfo + ", blockIdx=" + blockIdx + ']');
if (!entry.primary() && !entry.backup()) log.debug("Reading non-local data block [path=" + path + ", fileInfo=" + fileInfo + ", blockIdx=" + blockIdx + ']');
assert !cctx.isNear(); // Make sure cache is not NEAR. if (entry.wrap(false).backup() && evictSync)