@Override public String toString() { return "region=" + getRegion() + " shortName=" + getShortName() + ", hitCount=" + getHitCount() + ", missCount=" + getMissCount() + ", putCount" + getPutCount() + ", hitRatio" + getHitRatio() + ", elementCountInMemory=" + getElementCountInMemory() + ", elementCountOnDisk=" + getElementCountOnDisk() + ", elementCountTotal=" + getElementCountTotal(); }
protected double determineHitRatio() { double result = 0; long readCount = getHitCount() + getMissCount(); if (readCount > 0) { result = getHitCount() / ((double) readCount); } return result; }
public void add(EntityStats stats) { loadCount += stats.getLoadCount(); updateCount += stats.getUpdateCount(); insertCount += stats.getInsertCount(); deleteCount += stats.getDeleteCount(); fetchCount += stats.getFetchCount(); optimisticFailureCount += stats.getOptimisticFailureCount(); }
public void aggregate(CacheRegionStats stats) { nodeCount++; hitCount += stats.getHitCount(); missCount += stats.getMissCount(); putCount += stats.getPutCount(); hitRatio = determineHitRatio(); // just add the in memory count together, an average will be returned when the getter is used elementCountInMemory += stats.getElementCountInMemory(); // the largest element count on disk is the one that is the most correct if (stats.getElementCountOnDisk() > elementCountOnDisk) { elementCountOnDisk = stats.getElementCountOnDisk(); } // elementCountTotal is the same for each node, since it's the total count in the cluster // no real aggregation is needed, just use the same total count elementCountTotal = stats.getElementCountTotal(); }
public void add(CollectionStats stats) { loadCount += stats.getLoadCount(); fetchCount += stats.getFetchCount(); updateCount += stats.getUpdateCount(); removeCount += stats.getRemoveCount(); recreateCount += stats.getRecreateCount(); }
private void sendNotification(String eventType) { sendNotification(eventType, null, null); }
public void disableStats() { setStatisticsEnabled(false); }
public void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException { emitter.removeNotificationListener(listener); } }
public void addNotificationListener(NotificationListener notif, NotificationFilter filter, Object callBack) { emitter.addNotificationListener(notif, filter, callBack); }
@Override public String toString() { return "region=" + getRegion() + "shortName=" + getShortName() + ", hitCount=" + getHitCount() + ", missCount=" + getMissCount() + ", putCount" + getPutCount() + ", hitRatio" + getHitRatio() + ", elementCountInMemory=" + getElementCountInMemory() + ", elementCountOnDisk=" + getElementCountOnDisk() + ", elementCountTotal=" + getElementCountTotal() + ", hitLatency=" + getHitLatency() + ", loadLatency=" + getLoadLatency(); }
public void add(EntityStats stats) { loadCount += stats.getLoadCount(); updateCount += stats.getUpdateCount(); insertCount += stats.getInsertCount(); deleteCount += stats.getDeleteCount(); fetchCount += stats.getFetchCount(); optimisticFailureCount += stats.getOptimisticFailureCount(); }
public void aggregate(CacheRegionStats stats) { nodeCount++; hitCount += stats.getHitCount(); missCount += stats.getMissCount(); putCount += stats.getPutCount(); hitRatio = determineHitRatio(); // just add the in memory count together, an average will be returned when the getter is used elementCountInMemory += stats.getElementCountInMemory(); // the largest element count on disk is the one that is the most correct if (stats.getElementCountOnDisk() > elementCountOnDisk) { elementCountOnDisk = stats.getElementCountOnDisk(); } // elementCountTotal is the same for each node, since it's the total count in the cluster // no real aggregation is needed, just use the same total count elementCountTotal = stats.getElementCountTotal(); }
public void add(CollectionStats stats) { loadCount += stats.getLoadCount(); fetchCount += stats.getFetchCount(); updateCount += stats.getUpdateCount(); removeCount += stats.getRemoveCount(); recreateCount += stats.getRecreateCount(); }
protected double determineHitRatio() { double result = 0; long readCount = getHitCount() + getMissCount(); if (readCount > 0) { result = getHitCount() / ((double) readCount); } return result; }
private void sendNotification(String eventType, Object data) { sendNotification(eventType, data, null); }
public void enableStats() { setStatisticsEnabled(true); }
@Override public String toString() { return "region=" + getRegion() + " shortName=" + getShortName() + ", hitCount=" + getHitCount() + ", missCount=" + getMissCount() + ", putCount" + getPutCount() + ", hitRatio" + getHitRatio() + ", elementCountInMemory=" + getElementCountInMemory() + ", elementCountOnDisk=" + getElementCountOnDisk() + ", elementCountTotal=" + getElementCountTotal(); }
public void add(EntityStats stats) { loadCount += stats.getLoadCount(); updateCount += stats.getUpdateCount(); insertCount += stats.getInsertCount(); deleteCount += stats.getDeleteCount(); fetchCount += stats.getFetchCount(); optimisticFailureCount += stats.getOptimisticFailureCount(); }
public void add(CollectionStats stats) { loadCount += stats.getLoadCount(); fetchCount += stats.getFetchCount(); updateCount += stats.getUpdateCount(); removeCount += stats.getRemoveCount(); recreateCount += stats.getRecreateCount(); }
protected double determineHitRatio() { double result = 0; long readCount = getHitCount() + getMissCount(); if (readCount > 0) { result = getHitCount() / ((double) readCount); } return result; }