edu.northwestern.at.wordhoard.server
Class Config

java.lang.Object
  extended by edu.northwestern.at.wordhoard.server.Config

 class Config
extends java.lang.Object

The server configuration manager.

Reads the properties file "wordhoard.config" in the server directory.


Method Summary
(package private) static java.lang.String getDatabasePassword()
          Gets the database password.
(package private) static java.lang.String getDatabaseURL()
          Gets the database URL.
(package private) static java.lang.String getDatabaseUsername()
          Gets the database username.
(package private) static java.lang.String getLogConfigFilePath()
          Gets the log configuration file path.
(package private) static java.lang.String getPath()
          Gets the path to the server directory.
(package private) static int getRmiPort()
          Gets the RMI port.
(package private) static int getRmiRegistryPort()
          Gets the RMI registry port.
(package private) static java.lang.String getUserDataDatabasePassword()
          Gets the userDataUserDataDatabase password.
(package private) static java.lang.String getUserDataDatabaseURL()
          Gets the userDataUserDataDatabase URL.
(package private) static java.lang.String getUserDataDatabaseUsername()
          Gets the userDataUserDataDatabase username.
(package private) static void read(java.lang.String path)
          Reads the server configuration file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

read

static void read(java.lang.String path)
          throws java.lang.Exception
Reads the server configuration file.

Parameters:
path - Path to the server directory.
Throws:
java.lang.Exception

getPath

static java.lang.String getPath()
Gets the path to the server directory.

Returns:
The path to the server directory.

getDatabaseURL

static java.lang.String getDatabaseURL()
Gets the database URL.

Returns:
The database URL.

getDatabaseUsername

static java.lang.String getDatabaseUsername()
Gets the database username.

Returns:
The database username.

getDatabasePassword

static java.lang.String getDatabasePassword()
Gets the database password.

Returns:
The database password.

getUserDataDatabaseURL

static java.lang.String getUserDataDatabaseURL()
Gets the userDataUserDataDatabase URL.

Returns:
The userDataUserDataDatabase URL.

getUserDataDatabaseUsername

static java.lang.String getUserDataDatabaseUsername()
Gets the userDataUserDataDatabase username.

Returns:
The userDataUserDataDatabase username.

getUserDataDatabasePassword

static java.lang.String getUserDataDatabasePassword()
Gets the userDataUserDataDatabase password.

Returns:
The userDataUserDataDatabase password.

getLogConfigFilePath

static java.lang.String getLogConfigFilePath()
Gets the log configuration file path.

Returns:
The log configuration file path.

getRmiRegistryPort

static int getRmiRegistryPort()
Gets the RMI registry port.

Returns:
The RMI registry port.

getRmiPort

static int getRmiPort()
Gets the RMI port.

Returns:
The RMI port.