Exemplo n.º 1
0
  /** Creates the final database if the algorithm needs this step to be performed. */
  protected void createFinalDatabase() throws IOException, ProcessorException {
    getLogger().info(L3Constants.LOG_MSG_CREATE_FINAL_DB);

    finalDB = new TemporalBinDatabase(context, BinDatabaseConstants.FINAL_DB_NAME);
    finalDB.setNumVarsPerBand(context.getNumberOfInterpretedVarsPerBand());
    finalDB.create();

    getLogger().info(ProcessorConstants.LOG_MSG_SUCCESS);
  }
Exemplo n.º 2
0
  /** Trigger base class to load the temporal bin database provided with the request file */
  protected void loadTemporalDatabase() throws IOException, ProcessorException {
    getLogger().info(L3Constants.LOG_MSG_LOAD_TEMP_DB);

    temporalDB = new TemporalBinDatabase(context, BinDatabaseConstants.TEMP_DB_NAME);
    temporalDB.setNumVarsPerBand(context.getNumberOfAccumulatingVarsPerBand());
    temporalDB.open();

    if (context.getProcessedProducts().length < 1) {
      handleError(L3Constants.LOG_MSG_EMPTY_DB);
    }
    getLogger().info(ProcessorConstants.LOG_MSG_SUCCESS);
  }