示例#1
0
文件: Fmrc.java 项目: nbald/thredds
  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);
      }
    }
  }
示例#2
0
文件: Fmrc.java 项目: nbald/thredds
 public void showDetails(Formatter out) throws IOException {
   checkNeeded(false);
   fmrcDataset.showDetails(out);
 }
示例#3
0
文件: Fmrc.java 项目: nbald/thredds
 public GridDataset getConstantOffsetDataset(double hour) throws IOException {
   checkNeeded(false);
   GridDataset gds = fmrcDataset.getConstantOffsetDataset(hour);
   return gds;
 }
示例#4
0
文件: Fmrc.java 项目: nbald/thredds
 public GridDataset getRunTimeDataset(CalendarDate run) throws IOException {
   checkNeeded(false);
   GridDataset gds = fmrcDataset.getRunTimeDataset(run);
   return gds;
 }
示例#5
0
文件: Fmrc.java 项目: nbald/thredds
 public GridDataset getConstantForecastDataset(CalendarDate time) throws IOException {
   checkNeeded(false);
   GridDataset gds = fmrcDataset.getConstantForecastDataset(time);
   return gds;
 }
示例#6
0
文件: Fmrc.java 项目: nbald/thredds
 public GridDataset getDatasetBest() throws IOException {
   checkNeeded(false);
   GridDataset gds = fmrcDataset.getBest();
   return gds;
 }
示例#7
0
文件: Fmrc.java 项目: nbald/thredds
 public GridDataset getDatasetBest(FeatureCollectionConfig.BestDataset bd) throws IOException {
   checkNeeded(false);
   GridDataset gds = fmrcDataset.getBest(bd);
   return gds;
 }
示例#8
0
文件: Fmrc.java 项目: nbald/thredds
 // LOOK : all of these guys could use ehcache
 public GridDataset getDataset2D(NetcdfDataset result) throws IOException {
   checkNeeded(false);
   GridDataset gds = fmrcDataset.getNetcdfDataset2D(result);
   return gds;
 }
示例#9
0
文件: Fmrc.java 项目: nbald/thredds
 // for making offset datasets
 public double[] getForecastOffsets() throws IOException {
   checkNeeded(false); // ??
   return fmrcDataset.getForecastOffsets();
 }
示例#10
0
文件: Fmrc.java 项目: nbald/thredds
 public List<CalendarDate> getForecastDates() throws IOException {
   checkNeeded(false); // ??
   return fmrcDataset.getForecastDates();
 }
示例#11
0
文件: Fmrc.java 项目: nbald/thredds
 public CalendarDateRange getDateRangeForOffset(double offset) {
   return fmrcDataset.getDateRangeForOffset(offset);
 }
示例#12
0
文件: Fmrc.java 项目: nbald/thredds
 public CalendarDateRange getDateRangeForRun(CalendarDate run) {
   return fmrcDataset.getDateRangeForRun(run);
 }