public Datasource(RrdDb parentDb, DataImporter reader, int dsIndex) : this(parentDb, null) { dsName.set(reader.getDsName(dsIndex)); dsType = new DsType(reader.getDsType(dsIndex)); dsTypeName.set(dsType.Name); heartbeat.set(reader.getHeartbeat(dsIndex)); minValue.set(reader.getMinValue(dsIndex)); maxValue.set(reader.getMaxValue(dsIndex)); lastValue.set(reader.getLastValue(dsIndex)); accumValue.set(reader.getAccumValue(dsIndex)); nanSeconds.set(reader.getNanSeconds(dsIndex)); }
public Header(RrdDb parentDb, DataImporter reader) : this(parentDb, (RrdDef)null) { String version = reader.getVersion(); if (RRDTOOL_VERSION.CompareTo(version) != 0) { throw new ArgumentException("Could not unserialize xml version " + version); } signature.set(DEFAULT_SIGNATURE); step.set(reader.getStep()); dsCount.set(reader.getDsCount()); arcCount.set(reader.getArcCount()); lastUpdateTime.set(reader.getLastUpdateTime()); }