/** {@inheritDoc} */ @Override public void printMemoryStats(int threshold) { X.println(">>> Cache partition topology stats [igniteInstanceName=" + ctx.igniteInstanceName() + ", grp=" + grp.cacheOrGroupName() + ']'); lock.readLock().lock(); try { for (int i = 0; i < locParts.length(); i++) { GridDhtLocalPartition part = locParts.get(i); if (part == null) continue; long size = part.dataStore().fullSize(); if (size >= threshold) X.println(">>> Local partition [part=" + part.id() + ", size=" + size + ']'); } } finally { lock.readLock().unlock(); } }
partDto.setState(part.state()); partDto.setUpdateCounter(part.updateCounter()); partDto.setSize(desc == null ? part.dataStore().fullSize() : part.dataStore().cacheSize(id));
partSize = part.dataStore().fullSize();
/** {@inheritDoc} */ @Override public void printMemoryStats(int threshold) { X.println(">>> Cache partition topology stats [igniteInstanceName=" + ctx.igniteInstanceName() + ", grp=" + grp.cacheOrGroupName() + ']'); lock.readLock().lock(); try { for (int i = 0; i < locParts.length(); i++) { GridDhtLocalPartition part = locParts.get(i); if (part == null) continue; long size = part.dataStore().fullSize(); if (size >= threshold) X.println(">>> Local partition [part=" + part.id() + ", size=" + size + ']'); } } finally { lock.readLock().unlock(); } }
/** {@inheritDoc} */ @Override public long totalPartitionEntriesCount(int p) { if (grp.isLocal()) return locCacheDataStore.fullSize(); else { GridDhtLocalPartition part = grp.topology().localPartition(p, AffinityTopologyVersion.NONE, false, true); return part != null ? part.dataStore().fullSize() : 0; } }
/** * @return Total size of all caches. */ public long fullSize() { return store.fullSize(); }
/** * @return {@code True} if partition is empty. */ public boolean isEmpty() { return store.fullSize() == 0 && internalSize() == 0; }
/** {@inheritDoc} */ @Override public long fullSize() { try { CacheDataStore delegate0 = init0(true); return delegate0 == null ? 0 : delegate0.fullSize(); } catch (IgniteCheckedException e) { throw new IgniteException(e); } }
/** {@inheritDoc} */ @Override public long getLocalNodeRentingEntriesCount() { long entriesCnt = 0; for (GridDhtLocalPartition part : ctx.topology().localPartitions()) { if (part.state() == GridDhtPartitionState.RENTING) entriesCnt += part.dataStore().fullSize(); } return entriesCnt; }
/** * @return {@code True} is group is not empty. */ private boolean notEmpty(CacheDataStore store) { return store.rowStore() != null && (store.fullSize() > 0 || store.updateCounter() > 0); }
long partSize = part.dataStore().fullSize();
return Collections.emptyMap(); partSize = part.dataStore().fullSize();
partSize = part.dataStore().fullSize();
@Override public boolean apply() { for (int i = 0; i < NODES; i++) { final GridDhtPartitionTopology top = ((IgniteKernal)ignite(i)).context().cache().cache(DEFAULT_CACHE_NAME).context().topology(); for (GridDhtLocalPartition p : top.currentLocalPartitions()) { Collection<Object> rmvQueue = GridTestUtils.getFieldValue(p, "rmvQueue"); if (!rmvQueue.isEmpty() || p.dataStore().fullSize() != 0) return false; } } return true; } }, 5000);
/** {@inheritDoc} */ @Override public long getLocalNodeRentingEntriesCount() { long entriesCnt = 0; for (GridDhtLocalPartition part : ctx.topology().localPartitions()) { if (part.state() == GridDhtPartitionState.RENTING) entriesCnt += part.dataStore().fullSize(); } return entriesCnt; }
/** {@inheritDoc} */ @Override public long fullSize() { try { CacheDataStore delegate0 = init0(true); return delegate0 == null ? 0 : delegate0.fullSize(); } catch (IgniteCheckedException e) { throw new IgniteException(e); } }
/** * @return Total size of all caches. */ public long fullSize() { return store.fullSize(); }
/** {@inheritDoc} */ @Override public long totalPartitionEntriesCount(int p) { if (grp.isLocal()) return locCacheDataStore.fullSize(); else { GridDhtLocalPartition part = grp.topology().localPartition(p, AffinityTopologyVersion.NONE, false, true); return part != null ? part.dataStore().fullSize() : 0; } }
/** * @return {@code True} is group is not empty. */ private boolean notEmpty(CacheDataStore store) { return store.rowStore() != null && (store.fullSize() > 0 || store.updateCounter() > 0); }