Examples of BatcherImpl


Examples of de.scoopgmbh.copper.batcher.impl.BatcherImpl

    dialect.startup();

    @SuppressWarnings("rawtypes")
    RetryingTxnBatchRunner batchRunner = new RetryingTxnBatchRunner();
    batchRunner.setDataSource(dataSource);
    BatcherImpl batcher = new BatcherImpl(4);
    batcher.setBatchRunner(batchRunner);
    batcher.startup();

    ScottyDBStorage dbStorage = new ScottyDBStorage();
    dbStorage.setDialect(dialect);
    dbStorage.setTransactionController(txnController);
    dbStorage.setBatcher(batcher);
View Full Code Here

Examples of de.scoopgmbh.copper.batcher.impl.BatcherImpl

   
    DatabaseData databaseData = setupDerbyDatabase(wfRepository,runtimeStatisticsCollector);
//    DatabaseData databaseData = setupOracleDatabase(wfRepository,runtimeStatisticsCollector);

   
    BatcherImpl batcher = new BatcherImpl(3);
    batcher.setStatisticsCollector(runtimeStatisticsCollector);
   
    @SuppressWarnings("rawtypes")
    RetryingTxnBatchRunner batchRunner = new RetryingTxnBatchRunner();
    batchRunner.setDataSource(databaseData.dataSource);
    batcher.setBatchRunner(batchRunner);
    batcher.startup();
    //batcherImpl.shutdown();
   
    CopperTransactionController txnController = new CopperTransactionController();
    txnController.setDataSource(databaseData.dataSource);
   
View Full Code Here

Examples of de.scoopgmbh.copper.batcher.impl.BatcherImpl

  }
 
  @Test
  public void test_selectAudittrail() throws SQLException, Exception{

    BatcherImpl batcher = new BatcherImpl(3);
    @SuppressWarnings("rawtypes")
    RetryingTxnBatchRunner<?,?> batchRunner = new RetryingTxnBatchRunner();
    batchRunner.setDataSource(datasource);
    batcher.setBatchRunner(batchRunner);
    batcher.startup();
    BatchingAuditTrail auditTrail = new BatchingAuditTrail();
    auditTrail.setBatcher(batcher);
    auditTrail.setDataSource(datasource);
//    auditTrail.setMessagePostProcessor(new CompressedBase64PostProcessor());
    try {
      auditTrail.startup();
    } catch (Exception e) {
      throw new RuntimeException(e);
    }
    Date occurrence = new Date();
    auditTrail.synchLog(1, occurrence, "1", "2", "", "", "", "detail", "Text");
   
    try {
      List<AuditTrailInfo> selectAuditTrails = monitoringDbDialect.selectAuditTrails(null, null, null, null, 3, datasource.getConnection());
      assertEquals(1, selectAuditTrails.size());
      assertEquals(occurrence.getTime(),selectAuditTrails.get(0).getOccurrence().getTime());
      assertEquals(1,selectAuditTrails.get(0).getLoglevel());
    } catch (SQLException e) {
      throw new RuntimeException(e);
    }
    batcher.shutdown();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.