/** {@inheritDoc} */ @Override public Double fetchLastValue(String rrdFile, String ds, String consolidationFunction, int interval) throws NumberFormatException, RrdException { // TODO: handle queued values with fetch. Fetch could pull values off // the queue or force // an immediate file update. return m_delegate.fetchLastValue(rrdFile, ds, consolidationFunction, interval); }
/** {@inheritDoc} */ @Override public Double fetchLastValue(String rrdFile, String ds, int interval) throws NumberFormatException, RrdException { // TODO: handle queued values with fetch. Fetch could pull values off // the queue or force // an immediate file update. return m_delegate.fetchLastValue(rrdFile, ds, interval); }
/** {@inheritDoc} */ @Override public Double fetchLastValue(String rrdFile, String ds, int interval) throws NumberFormatException, RrdException { // TODO: handle queued values with fetch. Fetch could pull values off // the queue or force // an immediate file update. return m_delegate.fetchLastValue(rrdFile, ds, interval); }
/** {@inheritDoc} */ @Override public Double fetchLastValue(String rrdFile, String ds, String consolidationFunction, int interval) throws NumberFormatException, RrdException { // TODO: handle queued values with fetch. Fetch could pull values off // the queue or force // an immediate file update. return m_delegate.fetchLastValue(rrdFile, ds, consolidationFunction, interval); }
/** {@inheritDoc} */ @Override public Double fetchLastValue(String rrdFile, String ds, String consolidationFunction, int interval) throws NumberFormatException, RrdException { return m_strategies.get(m_fetchStrategyIndex).fetchLastValue(rrdFile, ds, consolidationFunction, interval); }
/** {@inheritDoc} */ @Override public Double fetchLastValue(String rrdFile, String ds, int interval) throws NumberFormatException, RrdException { return m_strategies.get(m_fetchStrategyIndex).fetchLastValue(rrdFile, ds, interval); }
/** {@inheritDoc} */ @Override public Double fetchLastValue(String rrdFile, String ds, String consolidationFunction, int interval) throws NumberFormatException, RrdException { return m_strategies.get(m_fetchStrategyIndex).fetchLastValue(rrdFile, ds, consolidationFunction, interval); }
/** {@inheritDoc} */ @Override public Double fetchLastValue(String rrdFile, String ds, int interval) throws NumberFormatException, RrdException { return m_strategies.get(m_fetchStrategyIndex).fetchLastValue(rrdFile, ds, interval); }
/** {@inheritDoc} */ @Override public Double getLastFetchValue(OnmsAttribute attribute, int interval) throws DataAccessResourceFailureException { Assert.notNull(attribute, "attribute argument must not be null"); Assert.isTrue(interval > 0, "interval argument must be greater than zero"); Assert.isAssignable(attribute.getClass(), RrdGraphAttribute.class, "attribute argument must be assignable to RrdGraphAttribute"); RrdGraphAttribute rrdAttribute = (RrdGraphAttribute) attribute; File rrdFile = new File(m_rrdBaseDirectory, rrdAttribute.getRrdRelativePath()); try { return m_rrdStrategy.fetchLastValue(rrdFile.getAbsolutePath(), attribute.getName(), interval); } catch (Throwable e) { throw new DataAccessResourceFailureException("Failure to fetch last value from file '" + rrdFile + "' with interval " + interval, e); } }