public class MonitorApp extends AppCmdLine
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
RELIABLE_URL
ActiveMQ JMS reliable protocol
|
exitStatus, OPTION_DEBUG, OPTION_HELP, OPTION_HOME, OPTION_REMOTE_URL, PROPERTY_REMOTE_URL
Constructor and Description |
---|
MonitorApp() |
Modifier and Type | Method and Description |
---|---|
protected void |
addExtraOptions(org.apache.commons.cli.Options options)
add extra command line options
|
void |
handleCommandLine(org.apache.commons.cli.CommandLine line)
Allow the email and title to be set from the command line.
|
static void |
main(java.lang.String[] argv)
Std.
|
void |
process()
1.
|
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
public static final java.lang.String RELIABLE_URL
protected void addExtraOptions(org.apache.commons.cli.Options options)
addExtraOptions
in class AppCmdLine
options
- the 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()
process
in class AppCmdLine
public 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 arguments.stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.