コード例 #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
ファイル: Core.java プロジェクト: peim/dbreplicator2
 /** Закрываем connectionFactory */
 public static synchronized void connectionFactoryClose() {
   if (connectionFactory != null) {
     connectionFactory.close();
     connectionFactory = null;
   }
 }