com.wutka.util
Class ServerMain
java.lang.Object
|
+--com.wutka.util.ServerMain
- public class ServerMain
- extends java.lang.Object
A simple main for starting a server. It is assumed that the body
of the server is implemented in the services that are started based
on the config file. In other words, this main does nothing other than
initializing the logging system and starting the services listed in the
config file.
The ServerMain class can take a command line parameter naming a
config file to read.
The ServerMain class also accepts two config parameters:
log.file is the name of the file to send log messages to
log.severity is the minimum severity level a message needs to be to be logged
The allowed severity levels are DEBUG, INFORMATION, WARNING, ERROR
|
Method Summary |
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServerMain
public ServerMain()
main
public static void main(java.lang.String[] args)