de.gruschke.dasync
Class Main

java.lang.Object
  |
  +--de.gruschke.dasync.Main

public class Main
extends java.lang.Object

Main program of DASync

Author:
Boris Gruschke

Constructor Summary
Main()
           
 
Method Summary
static void main(java.lang.String[] args)
          Usage: dasync [-v] [-c PrintDiff|UpdateDS|UpdateAS] DataSetFactory.
static void runComparison(MapComparer mc, DataSetFactory dsf, java.util.Map dsfArgs, boolean verbose, java.lang.String command)
          Entry point for running DASync from within Java Programs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Main

public Main()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.ClassNotFoundException,
                        java.lang.InstantiationException,
                        java.lang.IllegalAccessException,
                        java.io.IOException,
                        javax.naming.NamingException,
                        ConfigurationException,
                        java.lang.Exception
Usage: dasync [-v] [-c PrintDiff|UpdateDS|UpdateAS] DataSetFactory. Invokes runComparison(...).

runComparison

public static void runComparison(MapComparer mc,
                                 DataSetFactory dsf,
                                 java.util.Map dsfArgs,
                                 boolean verbose,
                                 java.lang.String command)
                          throws ConfigurationException,
                                 java.io.IOException,
                                 javax.naming.NamingException,
                                 java.lang.Exception
Entry point for running DASync from within Java Programs. It does the initialization and runs MapComparer.compare(...).
Parameters:
mc - Instance of a subclass of MapComparer. The MapComparer determines "what to do".
dsf - Instance of a (application provided) class implementing DataSetFactory. DataSetFactory.init(...) is invoked from runComparison(...).
dsfArgs - Arguments for the DataSetFactory
verbose - Screw up debugging output
command - One of "PrintDiff", "UpdateDS", "UpdateAS". Actually a prefix of MapComparer class name.


Boris Gruschke, 2000-11-11
License: GPL