Ejemplo n.º 1
0
  private void setupConversion() {
    getLogger().info("Running pre-conversion launch checks");
    ConvertDatabaseConfig conversionDb = configuration.getConversionDb();

    if (configuration.getLocalDb().getHost().equals(conversionDb.getHost())
        && configuration.getLocalDb().getName().equals(conversionDb.getName())) {
      if (!conversionChecks()) {
        return;
      }
    }

    // Begin the converting
    getLogger()
        .info("Conversion will begin shortly. You have 30 seconds to kill the process to abort.");
    try {
      Thread.sleep(30000L);
    } catch (InterruptedException e) {
      e.printStackTrace();
    }
    getLogger().info("Launching conversion process");
    new UUIDConvert(conversionConn);
  }