Exemplo n.º 1
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());
        }
Exemplo n.º 2
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());
  }