public class CompareServerApp extends AppCmdLine
exitStatus, OPTION_DEBUG, OPTION_HELP, OPTION_HOME, OPTION_REMOTE_URL, PROPERTY_REMOTE_URL
Constructor and Description |
---|
CompareServerApp() |
Modifier and Type | Method and Description |
---|---|
protected void |
addExtraOptions(org.apache.commons.cli.Options options)
Add extra options
|
void |
compareServerData(java.util.ArrayList serverLst,
java.lang.String command)
compare the date from different servers
|
void |
handleCommandLine(org.apache.commons.cli.CommandLine line)
handle the command line args
|
void |
loadXml(java.lang.String fileLocation)
Load the xml file
|
static void |
main(java.lang.String[] argv)
The main for the program
|
void |
process()
process
|
void |
reportError(java.util.ArrayList additionalRecord,
java.util.ArrayList errorRptList)
Report error
|
void |
sendMail(java.lang.String toEmail,
java.lang.String subject,
java.lang.String htmlText,
java.lang.String from)
Send the generated page to the email list.
|
abort, abortShowHelp, execute, getExtraPars, handleArgs, init, setDefaults, setExitFlg
protected void addExtraOptions(org.apache.commons.cli.Options options)
addExtraOptions
in class AppCmdLine
options
- additonal optionspublic void handleCommandLine(@Nonnull org.apache.commons.cli.CommandLine line) throws java.lang.Exception
handleCommandLine
in class AppCmdLine
line
- the command linejava.lang.Exception
- a serious problempublic void process() throws java.lang.Exception
process
in class AppCmdLine
java.lang.Exception
- epublic void loadXml(java.lang.String fileLocation)
fileLocation
- location of the filepublic void reportError(java.util.ArrayList additionalRecord, java.util.ArrayList errorRptList) throws java.lang.Exception
additionalRecord
- if additional record founderrorRptList
- error reportjava.lang.Exception
- epublic void compareServerData(java.util.ArrayList serverLst, java.lang.String command) throws java.lang.Exception
serverLst
- serverListcommand
- command to be executedjava.lang.Exception
- epublic void sendMail(java.lang.String toEmail, java.lang.String subject, java.lang.String htmlText, java.lang.String from) throws java.lang.Exception
toEmail
- the list of people to send the page tosubject
- The email subjecthtmlText
- The HTML text to send. *from
- from emailjava.lang.Exception
- A serious problem.public static void main(java.lang.String[] argv)
argv
- the command line argumentsstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.