/** * <p>getDequeuedOperations</p> * * @return a long. */ @Override public long getDequeuedOperations() { if (getStatsStatus()) { return getRrdStrategy().getDequeuedOperations(); } else { return 0; } }
long currentDequeuedOps = (getDequeuedOperations() - lastDequeued); long currentDequeuedItems = (getDequeuedItems() - lastDequeuedItems); long currentSigDequeueRate = (long) (currentSigOpsDequeued * 1000.0 / currentElapsedMillis); long currentInsigDequeueRate = (long) ((currentDequeuedOps - currentSigOpsDequeued) * 1000.0 / currentElapsedMillis); long overallDequeueRate = (long) (getDequeuedOperations() * 1000.0 / totalElapsedMillis); long overallSigDequeueRate = (long) (getSignificantOpsDequeued() * 1000.0 / totalElapsedMillis); long overallInsigDequeueRate = (long) ((getDequeuedOperations() - getSignificantOpsDequeued()) * 1000.0 / totalElapsedMillis); ", overallDequeueRate=(" + overallSigDequeueRate + "/" + overallInsigDequeueRate + "/" + overallDequeueRate + ")" + ", overallItemDequeRate=" + overallItemDequeueRate + ", overallOpsPerUpdate=" + (getDequeuedOperations() / Math.max(getDequeuedItems(), 1.0)) + ", overallPrcntSignificant=" + (getSignificantOpsEnqueued() * 100.0 / Math.max(getEnqueuedOperations(), 1.0)) + "%" + ", totalElapsedTime=" + ((totalElapsedMillis + 500) / 1000); lastDequeued = getDequeuedOperations(); lastDequeuedItems = getDequeuedItems(); lastSignificantEnqueued = getSignificantOpsEnqueued();
long currentDequeuedOps = (getDequeuedOperations() - lastDequeued); long currentDequeuedItems = (getDequeuedItems() - lastDequeuedItems); long currentSigDequeueRate = (long) (currentSigOpsDequeued * 1000.0 / currentElapsedMillis); long currentInsigDequeueRate = (long) ((currentDequeuedOps - currentSigOpsDequeued) * 1000.0 / currentElapsedMillis); long overallDequeueRate = (long) (getDequeuedOperations() * 1000.0 / totalElapsedMillis); long overallSigDequeueRate = (long) (getSignificantOpsDequeued() * 1000.0 / totalElapsedMillis); long overallInsigDequeueRate = (long) ((getDequeuedOperations() - getSignificantOpsDequeued()) * 1000.0 / totalElapsedMillis); ", overallDequeueRate=(" + overallSigDequeueRate + "/" + overallInsigDequeueRate + "/" + overallDequeueRate + ")" + ", overallItemDequeRate=" + overallItemDequeueRate + ", overallOpsPerUpdate=" + (getDequeuedOperations() / Math.max(getDequeuedItems(), 1.0)) + ", overallPrcntSignificant=" + (getSignificantOpsEnqueued() * 100.0 / Math.max(getEnqueuedOperations(), 1.0)) + "%" + ", totalElapsedTime=" + ((totalElapsedMillis + 500) / 1000); lastDequeued = getDequeuedOperations(); lastDequeuedItems = getDequeuedItems(); lastSignificantEnqueued = getSignificantOpsEnqueued();
for(Operation op : ops) { setTotalOperationsPending(getTotalOperationsPending()-op.getCount()); setDequeuedOperations(getDequeuedOperations() + op.getCount()); if (op.isSignificant()) { setSignificantOpsDequeued(getSignificantOpsDequeued() + op.getCount());
for(Operation op : ops) { setTotalOperationsPending(getTotalOperationsPending()-op.getCount()); setDequeuedOperations(getDequeuedOperations() + op.getCount()); if (op.isSignificant()) { setSignificantOpsDequeued(getSignificantOpsDequeued() + op.getCount());