org.jconfig.server
Class ConfigurationServer
java.lang.Object
|
+--org.jconfig.server.ConfigurationServer
- All Implemented Interfaces:
- ConfigurationServerMBean
- public class ConfigurationServer
- extends java.lang.Object
- implements ConfigurationServerMBean
This is the configuration server itself. It can either be started from the
command line like:
java -classpath jconfig.jar org.jconfig.server.ConfigurationServer -port {port} -docroot {directory}
or integrated into a JMX capable server.
If the port is not set then default port is 8234. The documentroot will be set to
the tmp-directory if not provided.
- Author:
- Andreas Mecky andreasmecky@yahoo.de, Terry Dye terrydye@yahoo.com
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfigurationServer
public ConfigurationServer(int port,
java.lang.String documentRoot)
ConfigurationServer
public ConfigurationServer()
shutdown
public void shutdown()
start
public void start()
main
public static void main(java.lang.String[] args)
- Parameters:
args
- the command line arguments
getDocumentRoot
public java.lang.String getDocumentRoot()
- Specified by:
getDocumentRoot
in interface ConfigurationServerMBean
getPort
public int getPort()
- Specified by:
getPort
in interface ConfigurationServerMBean
setDocumentRoot
public void setDocumentRoot(java.lang.String docRoot)
- Specified by:
setDocumentRoot
in interface ConfigurationServerMBean
setPort
public void setPort(int port)
- Specified by:
setPort
in interface ConfigurationServerMBean
startServer
public void startServer()
- Specified by:
startServer
in interface ConfigurationServerMBean
stopServer
public void stopServer()
- Specified by:
stopServer
in interface ConfigurationServerMBean
setDaemon
public void setDaemon(boolean isDaemon)
- Specified by:
setDaemon
in interface ConfigurationServerMBean
setStarted
public void setStarted(boolean shouldStart)
- Specified by:
setStarted
in interface ConfigurationServerMBean
Copyright © 2001-2003 Andreas Mecky, Terry Dye. All Rights Reserved.