|
xmlBlaster 2.2.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xmlBlaster.contrib.dbwatcher.Example
public class Example
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
| 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 |
|---|
private static java.util.logging.Logger log
| Constructor Detail |
|---|
public Example()
| Method Detail |
|---|
private void pollingExample(java.util.prefs.Preferences prefs)
throws java.lang.Exception
prefs - Configuration
java.lang.Exception - Can be of any typepublic static void main(java.lang.String[] args)
args - Command linepublic static java.util.prefs.Preferences loadArgs(java.lang.String[] args)
args - Command line
|
xmlBlaster 2.2.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||