edu.ufl.osg.httppoll
Class ConfigReader

java.lang.Object
  |
  +--edu.ufl.osg.httppoll.ConfigReader

public class ConfigReader
extends java.lang.Object

Class for reading the XML configuration file. It loads up the file, validates it, and stores the configuration variables for later retrieval.


Field Summary
static int DEFAULT_PORT
           
 
Constructor Summary
ConfigReader(java.lang.String configFile)
           
 
Method Summary
 AlertAction getDefaultAlertAction()
           
 ScheduledDowntime getDefaultScheduledDowntime()
           
 int getPollInterval()
           
 java.lang.String getSmtpHost()
           
 java.util.List getTargetList()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PORT

public static final int DEFAULT_PORT
See Also:
Constant Field Values
Constructor Detail

ConfigReader

public ConfigReader(java.lang.String configFile)
             throws HTTPPollConfigException,
                    java.lang.CloneNotSupportedException
Method Detail

getPollInterval

public int getPollInterval()
Returns:
seconds between each poll

getSmtpHost

public java.lang.String getSmtpHost()
Returns:
the SMTP mail host address

getDefaultAlertAction

public AlertAction getDefaultAlertAction()
Returns:
default AlertAction configuration object

getDefaultScheduledDowntime

public ScheduledDowntime getDefaultScheduledDowntime()
Returns:
default ScheduledDowntime data object

getTargetList

public java.util.List getTargetList()
Returns:
List of Target objects