/** {@inheritDoc} */ @Override public long cacheEntriesCount( int cacheId, boolean primary, boolean backup, AffinityTopologyVersion topVer ) throws IgniteCheckedException { if (grp.isLocal()) if (primary) return cacheEntriesCount(cacheId, 0); else return 0L; else { long cnt = 0; Iterator<CacheDataStore> it = cacheData(primary, backup, topVer); while (it.hasNext()) cnt += it.next().cacheSize(cacheId); return cnt; } }
partDto.setState(part.state()); partDto.setUpdateCounter(part.updateCounter()); partDto.setSize(desc == null ? part.dataStore().fullSize() : part.dataStore().cacheSize(id));
continue; long cacheSize = part.dataStore().cacheSize(cctx.cacheId());
continue; long cacheSize = part.dataStore().cacheSize(cctx.cacheId());
partDto.setState(part.state()); partDto.setUpdateCounter(part.updateCounter()); partDto.setSize(desc == null ? part.dataStore().fullSize() : part.dataStore().cacheSize(id));
int p = part.id(); long sz = part.dataStore().cacheSize(ca.context().cacheId());
/** {@inheritDoc} */ @Override public long cacheEntriesCount( int cacheId, boolean primary, boolean backup, AffinityTopologyVersion topVer ) throws IgniteCheckedException { if (grp.isLocal()) return cacheEntriesCount(cacheId, 0); else { long cnt = 0; Iterator<CacheDataStore> it = cacheData(primary, backup, topVer); while (it.hasNext()) cnt += it.next().cacheSize(cacheId); return cnt; } }
/** {@inheritDoc} */ @Override public long cacheSize(int cacheId) { try { CacheDataStore delegate0 = init0(true); return delegate0 == null ? 0 : delegate0.cacheSize(cacheId); } catch (IgniteCheckedException e) { throw new IgniteException(e); } }
/** {@inheritDoc} */ @Override public long cacheEntriesCount(int cacheId, int part) { CacheDataStore store = partitionData(part); return store == null ? 0 : store.cacheSize(cacheId); }
/** {@inheritDoc} */ @Override public long cacheEntriesCount(int cacheId) { long size = 0; for (CacheDataStore store : cacheDataStores()) size += store.cacheSize(cacheId); return size; }
/** {@inheritDoc} */ @Override public long sizeLong() { long sum = 0; for (GridDhtLocalPartition p : topology().currentLocalPartitions()) sum += p.dataStore().cacheSize(ctx.cacheId()); return sum; }
/** {@inheritDoc} */ @Override public long primarySizeLong() { long sum = 0; AffinityTopologyVersion topVer = ctx.affinity().affinityTopologyVersion(); for (GridDhtLocalPartition p : topology().currentLocalPartitions()) { if (p.primary(topVer)) sum += p.dataStore().cacheSize(ctx.cacheId()); } return sum; }
int p = part.id(); long sz = part.dataStore().cacheSize(ca.context().cacheId());
/** {@inheritDoc} */ @Override public long cacheEntriesCount(int cacheId, int part) { CacheDataStore store = partitionData(part); return store == null ? 0 : store.cacheSize(cacheId); }
/** {@inheritDoc} */ @Override public long primarySizeLong() { long sum = 0; AffinityTopologyVersion topVer = ctx.affinity().affinityTopologyVersion(); for (GridDhtLocalPartition p : topology().currentLocalPartitions()) { if (p.primary(topVer)) sum += p.dataStore().cacheSize(ctx.cacheId()); } return sum; }
/** {@inheritDoc} */ @Override public long cacheSize(int cacheId) { try { CacheDataStore delegate0 = init0(true); return delegate0 == null ? 0 : delegate0.cacheSize(cacheId); } catch (IgniteCheckedException e) { throw new IgniteException(e); } }
/** {@inheritDoc} */ @Override public long sizeLong() { long sum = 0; for (GridDhtLocalPartition p : topology().currentLocalPartitions()) sum += p.dataStore().cacheSize(ctx.cacheId()); return sum; }
/** {@inheritDoc} */ @Override public long cacheEntriesCount(int cacheId) { long size = 0; for (CacheDataStore store : cacheDataStores()) size += store.cacheSize(cacheId); return size; }