()
| 37 | } |
| 38 | |
| 39 | @Override |
| 40 | public final void run() { |
| 41 | beforeLoad(); |
| 42 | try (Connection conn = benchmarkModule.makeConnection()) { |
| 43 | load(conn); |
| 44 | } catch (SQLException ex) { |
| 45 | SQLException next_ex = ex.getNextException(); |
| 46 | String msg = |
| 47 | String.format( |
| 48 | "Unexpected error when loading %s database", |
| 49 | benchmarkModule.getBenchmarkName().toUpperCase()); |
| 50 | LOG.error(msg, next_ex); |
| 51 | throw new RuntimeException(ex); |
| 52 | } finally { |
| 53 | afterLoad(); |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | /** |
| 58 | * This is the method that each LoaderThread has to implement |
nothing calls this directly
no test coverage detected