示例#1
0
 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));
 }
示例#2
0
文件: Header.cs 项目: mujing/rrd4net
 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());
  }
示例#3
0
        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());
        }
示例#4
0
        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));
        }