Examples of dataSize()


Examples of com.hazelcast.nio.serialization.Data.dataSize()

            String name = in.readUTF();
            Map<Data, CacheRecord> m = new HashMap<Data, CacheRecord>(subCount);
            data.put(name, m);
            for (int j = 0; j < subCount; j++) {
                Data key = in.readData();
                if (key.dataSize() == 0) {
                    //empty data received so reading done here
                    break;
                }
                CacheRecord record = in.readObject();
                m.put(key, record);
View Full Code Here

Examples of freenet.node.stats.DataStoreStats.dataSize()

      row = storeSizeTable.addChild("tr");
      row.addChild("th", l10n(instance.store.name()) + "\n" + " (" + l10n(instance.key.name()) + ")");

      row.addChild("td", thousandPoint.format(stats.keys()));
      row.addChild("td", thousandPoint.format(stats.capacity()));
      row.addChild("td", SizeUtil.formatSize(stats.dataSize()));
      row.addChild("td", fix3p1pct.format(stats.utilization()));
      row.addChild("td", thousandPoint.format(sessionAccess.readRequests()) +
          (totalAccess == null ? "" : (" ("+thousandPoint.format(totalAccess.readRequests())+")")));
      row.addChild("td", thousandPoint.format(sessionAccess.successfulReads()) +
          (totalAccess == null ? "" : (" ("+thousandPoint.format(totalAccess.successfulReads())+")")));
View Full Code Here

Examples of freenet.node.stats.DataStoreStats.dataSize()

        totalAccess = null;
      }
      textBuilder.append(l10n(instance.store.name())).append(": (").append(l10n(instance.key.name())).append(")\n");
      textBuilder.append("  ").append(l10n("keys")).append(": ").append(thousandPoint.format(stats.keys())).append("\n");
      textBuilder.append("  ").append(l10n("capacity")).append(": ").append(thousandPoint.format(stats.capacity())).append("\n");
      textBuilder.append("  ").append(l10n("datasize")).append(": ").append(SizeUtil.formatSize(stats.dataSize())).append("\n");
      textBuilder.append("  ").append(l10n("utilization")).append(": ").append(fix3p1pct.format(stats.utilization())).append("\n");
      textBuilder.append("  ").append(l10n("readRequests")).append(": ").append(thousandPoint.format(sessionAccess.readRequests()) +
          (totalAccess == null ? "" : (" ("+thousandPoint.format(totalAccess.readRequests())+")"))).append("\n");
      textBuilder.append("  ").append(l10n("successfulReads")).append(": ").append(thousandPoint.format(sessionAccess.successfulReads()) +
          (totalAccess == null ? "" : (" ("+thousandPoint.format(totalAccess.successfulReads())+")"))).append("\n");
View Full Code Here

Examples of org.jboss.cache.Node.dataSize()

      {
         int size = 0;
         for (Object o : node.getChildrenNames())
         {
            Node child = node.getChild(o);
            size += child.dataSize();
         }
         return size;
      }
   }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.