|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.debianmirror.server.ServerConfig
Contains the information to configure the server.
| Field Summary | |
static java.lang.String |
LISTENINGPORT_KEY
The key used in the config file for the listing port |
static java.lang.String |
NR_OF_WORKERS_KEY
The key used in the config file for the number of workers |
| Constructor Summary | |
ServerConfig(java.lang.String fileName)
Initializes the ServerConfig from a properties-file |
|
| Method Summary | |
int |
getListeningPort()
Returns the listing port specified in the config file. |
int |
getNrOfWorkers()
Returns the number of workers specified in the config file. |
java.lang.String |
toString()
Returns the configuration as a String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String LISTENINGPORT_KEY
public static final java.lang.String NR_OF_WORKERS_KEY
| Constructor Detail |
public ServerConfig(java.lang.String fileName)
| Method Detail |
public int getListeningPort()
public int getNrOfWorkers()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||