/** * <p>getSignificantOpsCompleted</p> * * @return a long. */ @Override public long getSignificantOpsCompleted() { if (getStatsStatus()) { return getRrdStrategy().getSignificantOpsCompleted(); } else { return 0; } }
@Override public void run() { Object rrd = null; String fileName = null; try { final LinkedList<Operation> ops = getNext(); if (ops == null) { return; } // update stats correctly we update them even if an exception occurs // while we are processing for (final Operation op : ops) { if (op.isSignificant()) { setSignificantOpsCompleted(getSignificantOpsCompleted() + 1); } } // now we actually process the events for (final Operation op : ops) { fileName = op.getFileName(); rrd = op.process(rrd); } } catch (final Throwable e) { setErrors(getErrors() + 1); logLapTime("Error updating file " + fileName + ": " + e.getMessage()); m_log.debug("Error updating file {}: {}", fileName, e.getMessage(), e); } finally { processClose(rrd); } } });
@Override public void run() { Object rrd = null; String fileName = null; try { final LinkedList<Operation> ops = getNext(); if (ops == null) { return; } // update stats correctly we update them even if an exception occurs // while we are processing for (final Operation op : ops) { if (op.isSignificant()) { setSignificantOpsCompleted(getSignificantOpsCompleted() + 1); } } // now we actually process the events for (final Operation op : ops) { fileName = op.getFileName(); rrd = op.process(rrd); } } catch (final Throwable e) { setErrors(getErrors() + 1); logLapTime("Error updating file " + fileName + ": " + e.getMessage()); m_log.debug("Error updating file {}: {}", fileName, e.getMessage(), e); } finally { processClose(rrd); } } });
", significantOpsPending=" + (getSignificantOpsEnqueued() - getSignificantOpsCompleted()) + ", filesWithSignificantWork=" + filesWithSignificantWork.size() + ", filesWithInsignificantWork=" + filesWithInsignificantWork.size() lastSignificantEnqueued = getSignificantOpsEnqueued(); lastSignificantDequeued = getSignificantOpsDequeued(); lastSignificantCompleted = getSignificantOpsCompleted(); lastOpsPending = getTotalOperationsPending();
", significantOpsPending=" + (getSignificantOpsEnqueued() - getSignificantOpsCompleted()) + ", filesWithSignificantWork=" + filesWithSignificantWork.size() + ", filesWithInsignificantWork=" + filesWithInsignificantWork.size() lastSignificantEnqueued = getSignificantOpsEnqueued(); lastSignificantDequeued = getSignificantOpsDequeued(); lastSignificantCompleted = getSignificantOpsCompleted(); lastOpsPending = getTotalOperationsPending();