org.jconfig.server
Class ConfigurationServer

java.lang.Object
  extended byorg.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

Constructor Summary
ConfigurationServer()
           
ConfigurationServer(int port, java.lang.String documentRoot)
           
 
Method Summary
 java.lang.String getDocumentRoot()
           
 int getPort()
           
static void main(java.lang.String[] args)
           
 void setDaemon(boolean isDaemon)
           
 void setDocumentRoot(java.lang.String docRoot)
           
 void setPort(int port)
           
 void setStarted(boolean shouldStart)
           
 void shutdown()
           
 void start()
           
 void startServer()
           
 void stopServer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationServer

public ConfigurationServer(int port,
                           java.lang.String documentRoot)

ConfigurationServer

public ConfigurationServer()
Method Detail

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-2005 Andreas Mecky, Terry Dye. All Rights Reserved.