예제 #1
0
 @Override
 public void execute(ConnectionFactory connectionsFactory, StrategyModel data)
     throws SQLException {
   DataSource source = connectionsFactory.get(data.getRunner().getSource().getPoolId());
   DataSource target = connectionsFactory.get(data.getRunner().getTarget().getPoolId());
   try (GenericSuperlogDataService superlogDataServise =
       new GenericSuperlogDataService(source, target, getFetchSize(data)); ) {
     new FastManagerAlgorithm(superlogDataServise, data).execute();
   }
 }
예제 #2
0
 /** Закрываем connectionFactory */
 public static synchronized void connectionFactoryClose() {
   if (connectionFactory != null) {
     connectionFactory.close();
     connectionFactory = null;
   }
 }