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.
Constructor Summary |
ConfigReader(java.lang.String configFile)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_PORT
public static final int DEFAULT_PORT
- See Also:
- Constant Field Values
ConfigReader
public ConfigReader(java.lang.String configFile)
throws HTTPPollConfigException,
java.lang.CloneNotSupportedException
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