/** {@inheritDoc} */ @Override public Collection<String> fields() { Collection<String> res = new ArrayList<>(fields.size()); for (T2<String, Integer> t : fields) res.add(t.get1()); return res; }
/** * Checks that local and remove configurations have the same value of given attribute. * * @param log Logger used to log warning message (used only if fail flag is not set). * @param locCfg Local configuration. * @param rmtCfg Remote configuration. * @param rmt Remote node. * @param attr Attribute name. * @param fail If true throws GridException in case of attribute values mismatch, otherwise logs warning. * @throws GridException If attribute values are different and fail flag is true. */ public static void checkAttributeMismatch(GridLogger log, GridCacheConfiguration locCfg, GridCacheConfiguration rmtCfg, GridNode rmt, T2<String, String> attr, boolean fail) throws GridException { assert rmt != null; assert attr != null; assert attr.get1() != null; assert attr.get2() != null; Object locVal = U.property(locCfg, attr.get1()); Object rmtVal = U.property(rmtCfg, attr.get1()); checkAttributeMismatch(log, rmtCfg.getName(), rmt, attr.get1(), attr.get2(), locVal, rmtVal, fail); }
DrEntry drEntry = item.get1();
@Override public void apply(T2<K, GridCacheVersion> t) { cctx.dht().removeVersionedEntry(t.get1(), t.get2()); } });
/** * @param key Removed key. * @param ver Removed version. * @throws GridException If failed. */ public void onDeferredDelete(K key, GridCacheVersion ver) throws GridException { try { T2<K, GridCacheVersion> evicted = rmvQueue.add(new T2<>(key, ver)); if (evicted != null) cctx.dht().removeVersionedEntry(evicted.get1(), evicted.get2()); } catch (InterruptedException e) { Thread.currentThread().interrupt(); throw new GridInterruptedException(e); } }
hdr = t.get1(); id = t.get2(); name = cls.getName();
/** {@inheritDoc} */ @Override public void onDeferredDelete(GridCacheEntryEx<K, V> entry, GridCacheVersion ver) { assert entry.isNear(); try { T2<K, GridCacheVersion> evicted = rmvQueue.add(new T2<>(entry.key(), ver)); if (evicted != null) removeVersionedEntry(evicted.get1(), evicted.get2()); } catch (InterruptedException ignore) { if (log.isDebugEnabled()) log.debug("Failed to enqueue deleted entry [key=" + entry.key() + ", ver=" + ver + ']'); Thread.currentThread().interrupt(); } } }
desc = classDescriptor(ggxT.get1(), null);
tx.addEvicted(evict.get1(), evict.get2());