xmlBlaster 2.1.0 API

org.xmlBlaster.contrib.dbwatcher
Class Example

java.lang.Object
  extended by org.xmlBlaster.contrib.dbwatcher.Example

public class Example
extends java.lang.Object

Example code to run DbWatcher as a standalone application.

You can edit this file, change the configuration settings to your polling problem and play interactively with it.

Simple usage example:

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

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

Author:
Marcel Ruff

Field Summary
private static java.util.logging.Logger log
           
 
Constructor Summary
Example()
           
 
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.
private  void pollingExample(java.util.prefs.Preferences prefs)
          Example for polling the DB
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static java.util.logging.Logger log
Constructor Detail

Example

public Example()
Method Detail

pollingExample

private void pollingExample(java.util.prefs.Preferences prefs)
                     throws java.lang.Exception
Example for polling the DB

Parameters:
prefs - Configuration
Throws:
java.lang.Exception - Can be of any type

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.1.0 API

Copyright © 1999-2011 The xmlBlaster.org contributers.