コード例 #1
0
ファイル: Datasource.cs プロジェクト: jlkjxyshangli/rrd4net
 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
ファイル: Datasource.cs プロジェクト: mujing/rrd4net
        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));
        }