|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectserver.Conf
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:
| 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 |
public java.lang.String dbDriver
public java.lang.String dbServer
public java.lang.String dbName
public java.lang.String dbUser
public java.lang.String dbPassword
public int gltmonSleep
public int deviceCheckSleep
public int deviceThreadSleep
| Constructor Detail |
public Conf()
throws java.io.IOException
java.io.IOException - when there is a problem with the file or its contents
public Conf(java.lang.String filename)
throws java.io.IOException
filename -
java.io.IOException - when there is a problem with the file or its contents| Method Detail |
public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||