server
Class Conf

java.lang.Object
  extended byserver.Conf

public class Conf
extends java.lang.Object

Read the gltmon conf file and parse and store the value pairs. The gltmon conf file uses a "keyword: value" structure to hold pairs of values. The keywords are mixed case with no internal white space (e.g. Database-Name) followed by a semicolon. The values also cannot contain white space. The values become public data members of the class.

Example:
  Database-Name:   glt_monitor

Currently valid keywords:

Version:
0.1
Author:
gswalters

Field Summary
 java.lang.String dbDriver
          The driver to use to connect to the database server.
 java.lang.String dbName
          The name of the gltmon database on the server.
 java.lang.String dbPassword
          The user's password used to access the database.
 java.lang.String dbServer
          The full IP address of the database server.
 java.lang.String dbUser
          The user name used to access the database.
 int deviceCheckSleep
          Time in milliseconds the gltmon controller should sleep between checks for Device activity.
 int deviceThreadSleep
          Time in milliseconds the DeviceThread should sleep between sanity checks on the Device's interfaces (e.g., operational status).
 int gltmonSleep
          Time in milliseconds the gltmon controller should sleep between checks for Change records.
 
Constructor Summary
Conf()
          Default constructor uses default conf filename.
Conf(java.lang.String filename)
          Constructor uses passed conf filename.
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

dbDriver

public java.lang.String dbDriver
The driver to use to connect to the database server.


dbServer

public java.lang.String dbServer
The full IP address of the database server.


dbName

public java.lang.String dbName
The name of the gltmon database on the server.


dbUser

public java.lang.String dbUser
The user name used to access the database.


dbPassword

public java.lang.String dbPassword
The user's password used to access the database.


gltmonSleep

public int gltmonSleep
Time in milliseconds the gltmon controller should sleep between checks for Change records.


deviceCheckSleep

public int deviceCheckSleep
Time in milliseconds the gltmon controller should sleep between checks for Device activity. Should be in increments of GltmonSleep.


deviceThreadSleep

public int deviceThreadSleep
Time in milliseconds the DeviceThread should sleep between sanity checks on the Device's interfaces (e.g., operational status).

Constructor Detail

Conf

public Conf()
     throws java.io.IOException
Default constructor uses default conf filename. Read the default file and parse the keyword:value pairs. Failure results from file problems (e.g., file not found) and content problems (e.g., no content or invalid keywords).

Throws:
java.io.IOException - when there is a problem with the file or its contents

Conf

public Conf(java.lang.String filename)
     throws java.io.IOException
Constructor uses passed conf filename. Read the supplied file and parse the keyword:value pairs. Failure results from file problems (e.g., file not found) and content problems (e.g., no content or invalid keywords).

Parameters:
filename -
Throws:
java.io.IOException - when there is a problem with the file or its contents
Method Detail

toString

public java.lang.String toString()