Example #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);
      }
    }
  }
Example #2
0
 public void showDetails(Formatter out) throws IOException {
   checkNeeded(false);
   fmrcDataset.showDetails(out);
 }
Example #3
0
 public GridDataset getConstantOffsetDataset(double hour) throws IOException {
   checkNeeded(false);
   GridDataset gds = fmrcDataset.getConstantOffsetDataset(hour);
   return gds;
 }
Example #4
0
 public GridDataset getRunTimeDataset(CalendarDate run) throws IOException {
   checkNeeded(false);
   GridDataset gds = fmrcDataset.getRunTimeDataset(run);
   return gds;
 }
Example #5
0
 public GridDataset getConstantForecastDataset(CalendarDate time) throws IOException {
   checkNeeded(false);
   GridDataset gds = fmrcDataset.getConstantForecastDataset(time);
   return gds;
 }
Example #6
0
 public GridDataset getDatasetBest() throws IOException {
   checkNeeded(false);
   GridDataset gds = fmrcDataset.getBest();
   return gds;
 }
Example #7
0
 public GridDataset getDatasetBest(FeatureCollectionConfig.BestDataset bd) throws IOException {
   checkNeeded(false);
   GridDataset gds = fmrcDataset.getBest(bd);
   return gds;
 }
Example #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;
 }
Example #9
0
 // for making offset datasets
 public double[] getForecastOffsets() throws IOException {
   checkNeeded(false); // ??
   return fmrcDataset.getForecastOffsets();
 }
Example #10
0
 public List<CalendarDate> getForecastDates() throws IOException {
   checkNeeded(false); // ??
   return fmrcDataset.getForecastDates();
 }
Example #11
0
 public CalendarDateRange getDateRangeForOffset(double offset) {
   return fmrcDataset.getDateRangeForOffset(offset);
 }
Example #12
0
 public CalendarDateRange getDateRangeForRun(CalendarDate run) {
   return fmrcDataset.getDateRangeForRun(run);
 }