public class Emailer extends ConfigManager implements com.isti.trinetwatch.common.GUIServicesClient, java.lang.Runnable, com.isti.trinetwatch.common.SnwConstants
alertIgnoreSubsetsProp, alertSelectSubsetsProp, alertShortMsgFlagProp, alertSubjectProp, alertSubsetLevelsFlagProp, alertSubsetLevelsProp, alertToAddressesProp, alertTriggerLevelsProp, alertTriggerSecsProp, alertTriggerStationNamesProp, cfgProps, consoleLogLevelProp, consoleMonitorProp, consoleRedirectFileNameProp, cycleTimeDailyProp, cycleTimeHoursProp, daemonModeProp, dontSendPartialFlagProp, emailFromAddressProp, emailToAddressesProp, GUIAcceptorIORProp, GUIAcceptorRefFileProp, initSMTPTimeoutSecProp, logfileLogLevelProp, logFileNameProp, mailDebugFlagProp, mailPropsFileNameProp, maxCommLimitProp, maxConnAttemptsProp, noChangeReportFlagProp, noDetailReportFlagProp, reportAtLevelsProp, reportFromLevelsProp, reportIgnoreLevelsProp, reportsFileNameProp, reportStationNamesProp, reportSubjectProp, reportToLevelsProp, sendSMTPTimeoutSecProp, skipNoChgRepsFlagProp, smtpServerNameProp, updateSleepMSProp, wsBaseURIProp
CONTROL_TAG_STR, DEF_FRAME_HEIGHT, DEF_FRAME_WIDTH, DEF_PROGRAM_NAME, DEF_RBUT_FONTSIZE, DEF_RBUT_MAXHEIGHT, DEF_RBUT_MAXWIDTH, DEF_RBUT_MINHEIGHT, DEF_RBUT_MINWIDTH, DEF_REF_FILENAME, DEF_SETTINGS_NAME, GENERAL_GROUP, NULL_REDIR_STR, OBSERVE_TAG_STR, PERFORMANCE_GROUP, STATION_BUTTON_GROUP, STATION_GROUP, UNKNOWN_TAG_STR, VERSION_STRING
Constructor and Description |
---|
Emailer(java.lang.String[] args,
java.lang.String defConfigFnameStr)
Creates an instance of the SNW Emailer object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAcceptorIORStr()
Get the GUIAcceptor IOR string.
|
int |
getMaxConnAttempts()
Get the maximum number of connection attempts to make.
|
java.lang.String |
getWebServicesBaseURI()
Get the web services base URI.
|
boolean |
initServerInfo(GUIServices gServices)
Loads server information and status/usage tables.
|
static boolean |
isEntryMatch(java.util.Vector vec,
java.lang.String str)
Determines if any part of the given string matches any entry in the given
vector.
|
boolean |
isShowDebug()
Determines if showing debug.
|
static void |
main(java.lang.String[] args)
Program entry point.
|
void |
run()
Run the emailer.
|
protected void |
setProperty(java.util.Properties props,
java.lang.String key,
java.lang.String value)
Set the property.
|
protected void |
setPropertySecondsToMs(java.util.Properties props,
java.lang.String key,
int seconds)
Set the property.
|
protected void |
terminateProgram(int exitCode)
Terminate program.
|
public Emailer(java.lang.String[] args, java.lang.String defConfigFnameStr)
args
- an array of command-line parameter strings.defConfigFnameStr
- the default configuration file name.public static boolean isEntryMatch(java.util.Vector vec, java.lang.String str)
vec
- vector to use.str
- string to use.public static void main(java.lang.String[] args)
args
- array of command-line parameters.public java.lang.String getAcceptorIORStr()
com.isti.trinetwatch.common.GUIServicesClient
getAcceptorIORStr
in interface com.isti.trinetwatch.common.GUIServicesClient
public int getMaxConnAttempts()
com.isti.trinetwatch.common.GUIServicesClient
getMaxConnAttempts
in interface com.isti.trinetwatch.common.GUIServicesClient
public java.lang.String getWebServicesBaseURI()
com.isti.trinetwatch.common.GUIServicesClient
getWebServicesBaseURI
in interface com.isti.trinetwatch.common.GUIServicesClient
public boolean initServerInfo(GUIServices gServices)
initServerInfo
in interface com.isti.trinetwatch.common.GUIServicesClient
gServices
- the GUIServices.public boolean isShowDebug()
com.isti.trinetwatch.common.GUIServicesClient
isShowDebug
in interface com.isti.trinetwatch.common.GUIServicesClient
public void run()
run
in interface java.lang.Runnable
protected void setProperty(java.util.Properties props, java.lang.String key, java.lang.String value)
props
- the properties.key
- the property key.value
- the property value.protected void setPropertySecondsToMs(java.util.Properties props, java.lang.String key, int seconds)
props
- the properties.key
- the property key.seconds
- the property seconds value.protected void terminateProgram(int exitCode)
exitCode
- exit code value to use.