public class RunSync
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected java.io.PrintStream |
ivLog
The stream where processing status messages are logged.
|
protected java.lang.String |
ivType
The type code for the sync to process ("prod", "cust", "user").
|
private static long |
serialVersionUID
The class' serialization version id.
|
Constructor and Description |
---|
RunSync(java.lang.String type,
java.io.PrintStream log)
Constructs a new run sync instance.
|
Modifier and Type | Method and Description |
---|---|
void |
execute()
Controls the processing for a requested synchronization.
|
static void |
main(java.lang.String[] args)
The main entry point for when the class is started from a command line.
|
private static final long serialVersionUID
protected java.lang.String ivType
protected java.io.PrintStream ivLog
public RunSync(java.lang.String type, java.io.PrintStream log)
type
- (String) The type code for the sync to process ("prod",
"cust", "user", "nfcnt").log
- (PrintStream) The stream where processing status messages
are logged.public void execute()
public static void main(java.lang.String[] args)
args
- (String[]) A string array of startup parameters where
args[0] must be either "prod", "cust", "user" or "nfcnt"
(without the quotes) to indicate which of the 4 syncs is to
be processed.