|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.marketcetera.orderloader.Main
public class Main
The entry point for running the order loader as an application
| Constructor Summary | |
|---|---|
Main()
|
|
| Method Summary | |
|---|---|
protected OrderProcessor |
createProcessor(ClientParameters inParameters)
Creates a processor given the parameters. |
protected void |
displaySummary(OrderLoader inLoader)
Displays the summary of results after the order loader is done processing. |
protected void |
doProcessing()
Reads the orders from the supplied and sends them to the server. |
protected void |
exit(int inCode)
Exits the current process with the supplied exit code. |
protected String |
getExceptionMsg(Exception inException)
Gets the exception message from the supplied exception. |
static void |
main(String[] inArgs)
Runs the order loader given the array of command line arguments. |
protected void |
printError(Exception inException)
Prints the supplied exception's message to the output. |
protected void |
printMessage(String inMessage)
Prints the message to the output. |
protected boolean |
processArguments(String[] inArgs)
Processes the supplied command line options and configures the order loader to run per the options. |
protected void |
setMsgStream(PrintStream inMsgStream)
Sets the stream on which all the messages should be printed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Main()
| Method Detail |
|---|
public static void main(String[] inArgs)
inArgs - the arguments to the order loader.protected void setMsgStream(PrintStream inMsgStream)
inMsgStream - the message stream on which all the messages should
be printed.protected boolean processArguments(String[] inArgs)
inArgs - the command line arguments.
protected void exit(int inCode)
inCode - the exit code for the process.
protected void doProcessing()
throws Exception
Exception - if there were errors.
protected OrderProcessor createProcessor(ClientParameters inParameters)
throws Exception
This method is an implementation artifact to aid unit testing.
inParameters - the parameters to connect to the server.
Exception - if there were errors creating the order processor.protected void displaySummary(OrderLoader inLoader)
inLoader - the order loader instance.protected void printMessage(String inMessage)
inMessage - the message to print.protected void printError(Exception inException)
inException - the exception whose messages should be
printed on the output.protected String getExceptionMsg(Exception inException)
inException - the exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||