| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.isti.trinetwatch.emailer.ConfigManager
com.isti.trinetwatch.emailer.Emailer
public class Emailer
Class Emailer is a non-GUI client for SeisNetWatch that monitors an SNW
 server and sends status-alert email messages. 
| Field Summary | 
|---|
| Constructor Summary | |
|---|---|
Emailer(java.lang.String[] args,
        java.lang.String defConfigFnameStr)
Creates an instance of the SNW Emailer object.  | 
|
| Method Summary | |
|---|---|
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.  | 
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.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public Emailer(java.lang.String[] args,
               java.lang.String defConfigFnameStr)
args - an array of command-line parameter strings.defConfigFnameStr - the default configuration file name.| Method Detail | 
|---|
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.
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.
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||