Package de.scoopgmbh.copper.audit

Examples of de.scoopgmbh.copper.audit.BatchingAuditTrail


   
    persistentengine.setProcessorPoolManager(defaultProcessorPoolManager);
    //persistentengine.shutdown();
   
   
    BatchingAuditTrail auditTrail = new BatchingAuditTrail();
    auditTrail.setBatcher(batcher);
    auditTrail.setDataSource(databaseData.dataSource);
    auditTrail.setMessagePostProcessor(new CompressedBase64PostProcessor());
    try {
      auditTrail.startup();
    } catch (Exception e) {
      throw new RuntimeException(e);
    }
   
   
View Full Code Here


    oracleDialect.setEngineIdProvider(new EngineIdProviderBean("a"));
    oracleDialect.startup();
    this.databaseDialect = oracleDialect;
   
   
    OracleMonitoringDbDialect derbyMonitoringDbDialect = new OracleMonitoringDbDialect(new StandardJavaSerializer(), new DummyPostProcessor(),new BatchingAuditTrail());
    this.monitoringDbDialect = derbyMonitoringDbDialect;
  }
View Full Code Here

    @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());
View Full Code Here

  void intit() {
    EmbeddedConnectionPoolDataSource40 datasource = new EmbeddedConnectionPoolDataSource40();
    datasource.setDatabaseName("./build/copperExampleDB;create=true");
    this.datasource=datasource;
   
    DerbyMonitoringDbDialect derbyMonitoringDbDialect = new DerbyMonitoringDbDialect(new StandardJavaSerializer(), new DummyPostProcessor(),new BatchingAuditTrail());
    this.monitoringDbDialect = derbyMonitoringDbDialect;
   
    DerbyDbDialect databaseDialect = new DerbyDbDialect();
    databaseDialect.setDataSource(datasource);
    databaseDialect.startup();
View Full Code Here

TOP

Related Classes of de.scoopgmbh.copper.audit.BatchingAuditTrail

Copyright © 2018 www.massapicom. 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.