Exemple #1
0
  public void update() {
    synchronized (lock) {
      boolean forceProtoLocal = forceProto;

      if (fmrcDataset == null) {
        try {
          fmrcDataset = new FmrcDataset(config);
        } catch (Throwable t) {
          logger.error(config.spec + ": initial fmrcDataset creation failed", t);
          // throw new RuntimeException(t);
        }
      }

      try {
        FmrcInv fmrcInv = makeFmrcInv(null);
        fmrcDataset.setInventory(fmrcInv, forceProtoLocal);
        logger.debug(config.spec + ": make new Dataset, new proto = {}", forceProtoLocal);
        if (forceProtoLocal) forceProto = false;
        this.lastInvChanged = System.currentTimeMillis();
        if (forceProtoLocal) this.lastProtoChanged = this.lastInvChanged;

      } catch (Throwable t) {
        logger.error(config.spec + ": makeFmrcInv failed", t);
        // throw new RuntimeException(t);
      }
    }
  }
Exemple #2
0
 public void showDetails(Formatter out) throws IOException {
   checkNeeded(false);
   fmrcDataset.showDetails(out);
 }
Exemple #3
0
 public GridDataset getConstantOffsetDataset(double hour) throws IOException {
   checkNeeded(false);
   GridDataset gds = fmrcDataset.getConstantOffsetDataset(hour);
   return gds;
 }
Exemple #4
0
 public GridDataset getRunTimeDataset(CalendarDate run) throws IOException {
   checkNeeded(false);
   GridDataset gds = fmrcDataset.getRunTimeDataset(run);
   return gds;
 }
Exemple #5
0
 public GridDataset getConstantForecastDataset(CalendarDate time) throws IOException {
   checkNeeded(false);
   GridDataset gds = fmrcDataset.getConstantForecastDataset(time);
   return gds;
 }
Exemple #6
0
 public GridDataset getDatasetBest() throws IOException {
   checkNeeded(false);
   GridDataset gds = fmrcDataset.getBest();
   return gds;
 }
Exemple #7
0
 public GridDataset getDatasetBest(FeatureCollectionConfig.BestDataset bd) throws IOException {
   checkNeeded(false);
   GridDataset gds = fmrcDataset.getBest(bd);
   return gds;
 }
Exemple #8
0
 // LOOK : all of these guys could use ehcache
 public GridDataset getDataset2D(NetcdfDataset result) throws IOException {
   checkNeeded(false);
   GridDataset gds = fmrcDataset.getNetcdfDataset2D(result);
   return gds;
 }
Exemple #9
0
 // for making offset datasets
 public double[] getForecastOffsets() throws IOException {
   checkNeeded(false); // ??
   return fmrcDataset.getForecastOffsets();
 }
Exemple #10
0
 public List<CalendarDate> getForecastDates() throws IOException {
   checkNeeded(false); // ??
   return fmrcDataset.getForecastDates();
 }
Exemple #11
0
 public CalendarDateRange getDateRangeForOffset(double offset) {
   return fmrcDataset.getDateRangeForOffset(offset);
 }
Exemple #12
0
 public CalendarDateRange getDateRangeForRun(CalendarDate run) {
   return fmrcDataset.getDateRangeForRun(run);
 }