xmlBlaster 2.2.0 contributions API

org.xmlBlaster.contrib.dbwriter
Class DbWatcherTester

java.lang.Object
  extended by org.xmlBlaster.contrib.dbwriter.DbWatcherTester

public class DbWatcherTester
extends java.lang.Object

This application writes into the 'replitems' table (which is the table used for replication) in an own thread. Everytime a commit (or a rollback) is done, it waits until the dbwatcher part has become the new entries. It then compares the sent entries with the entries which the DBWatcher has detected. It compares number of messages and sequence of them.

You can edit this file and change the configuration settings.

Simple usage example:

java org.xmlBlaster.contrib.dbwriter.Example -db.password secret

java -Djava.util.logging.config.file=testlog.properties org.xmlBlaster.contrib.dbwriter.Example -db.password secret

Author:
Marcel Ruff

Constructor Summary
DbWatcherTester(I_Info info)
           
 
Method Summary
static java.util.prefs.Preferences loadArgs(java.lang.String[] args)
          Parse command line arguments
static void main(java.lang.String[] args)
          Example code.
 void run()
           
static void usage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbWatcherTester

public DbWatcherTester(I_Info info)
                throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

usage

public static void usage()

run

public void run()

main

public static void main(java.lang.String[] args)
Example code.

java -Djava.util.logging.config.file=testlog.properties org.xmlBlaster.contrib.dbwatcher.Example -alertScheduler.pollInterval 10000 -db.password secret

Parameters:
args - Command line

loadArgs

public static java.util.prefs.Preferences loadArgs(java.lang.String[] args)
Parse command line arguments

Parameters:
args - Command line
Returns:
Configuration

xmlBlaster 2.2.0 contributions API

Copyright © 1999-2014 The xmlBlaster.org contributers.