QuickServer
v1.4.5

org.quickserver.util.xmlreader
Class QuickServerConfig

java.lang.Object
  extended byorg.quickserver.util.xmlreader.BasicServerConfig
      extended byorg.quickserver.util.xmlreader.QuickServerConfig

public class QuickServerConfig
extends BasicServerConfig

This class encapsulate the configuration of QuickServer.

This is used by QuickServer.configQuickServer(org.quickserver.util.xmlreader.QuickServerConfig) and QuickServer.initService(java.lang.Object[]) method to initialise QuickServer.

Since:
1.2
Author:
Akshathkumar Shetty

Constructor Summary
QuickServerConfig()
           
 
Method Summary
 ApplicationConfiguration getApplicationConfiguration()
          Returns ApplicationConfiguration
 java.lang.String getApplicationJarPath()
          Returns the applications jar/s path.
 java.lang.String getConfigFile()
          Returns the file path of the file that loaded the configuration file.
 DBObjectPoolConfig getDBObjectPoolConfig()
          Returns DBObjectPoolConfig
 InitServerHooks getInitServerHooks()
          Returns the InitServerHooks.
 java.lang.String getName()
          Returns the name of the QuickServer
 int getPort()
          Returns the port for the QuickServer
 QSAdminServerConfig getQSAdminServerConfig()
          Returns QSAdminServer configuration.
 java.lang.String getSecurityManagerClass()
          Returns the SecurityManager class
 void setApplicationConfiguration(ApplicationConfiguration applicationConfiguration)
          Sets the Application Configuration.
 void setApplicationJarPath(java.lang.String applicationJarPath)
          Sets the applications jar/s path.
protected  void setConfigFile(java.lang.String fileName)
          Sets the file path of the file that loaded the config from.
 void setDBObjectPoolConfig(DBObjectPoolConfig dbObjectPoolConfig)
          Sets the DBObjectPoolConfig XML Tag: <object-pool></object-pool>
 void setInitServerHooks(InitServerHooks initServerHooks)
          Sets the InitServerHooks.
 void setName(java.lang.String name)
          Sets the name for the QuickServer XML Tag: <name></name>
 void setPort(int port)
          Sets the port for the QuickServer to listen on.
 void setQSAdminServerConfig(QSAdminServerConfig config)
          Sets the QSAdminServer configuration.
 void setSecurityManagerClass(java.lang.String securityManagerClass)
          Sets the SecurityManager class XML Tag: <security-manager-class></security-manager-class>
 java.lang.String toXML(java.lang.String pad)
          Returns XML config of this class.
 
Methods inherited from class org.quickserver.util.xmlreader.BasicServerConfig
getAccessConstraintConfig, getAdvancedSettings, getAuthenticator, getBindAddr, getClientBinaryHandler, getClientCommandHandler, getClientData, getClientObjectHandler, getClientWriteHandler, getCommunicationLogging, getConsoleLoggingFormatter, getConsoleLoggingLevel, getMaxAuthTry, getMaxAuthTryMsg, getMaxConnection, getMaxConnectionMsg, getObjectPoolConfig, getSecure, getServerAuthenticator, getServerBanner, getServerHooks, getServerMode, getTimeout, getTimeoutMsg, setAccessConstraintConfig, setAdvancedSettings, setAuthenticator, setBindAddr, setClientBinaryHandler, setClientCommandHandler, setClientData, setClientObjectHandler, setClientWriteHandler, setCommunicationLogging, setConsoleLoggingFormatter, setConsoleLoggingLevel, setMaxAuthTry, setMaxAuthTryMsg, setMaxConnection, setMaxConnectionMsg, setObjectPoolConfig, setSecure, setServerAuthenticator, setServerBanner, setServerHooks, setServerMode, setTimeout, setTimeoutMsg
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuickServerConfig

public QuickServerConfig()
Method Detail

getName

public java.lang.String getName()
Returns the name of the QuickServer

Overrides:
getName in class BasicServerConfig
See Also:
setName(java.lang.String)

setName

public void setName(java.lang.String name)
Sets the name for the QuickServer XML Tag: <name></name>

Overrides:
setName in class BasicServerConfig
Parameters:
name - for the QuickServer
See Also:
getName()

setPort

public void setPort(int port)
Sets the port for the QuickServer to listen on. If not set, it will run on Port 9876 XML Tag: <port></port>

Overrides:
setPort in class BasicServerConfig
Parameters:
port - to listen on.
See Also:
getPort()

getPort

public int getPort()
Returns the port for the QuickServer

Overrides:
getPort in class BasicServerConfig
See Also:
setPort(int)

setQSAdminServerConfig

public void setQSAdminServerConfig(QSAdminServerConfig config)
Sets the QSAdminServer configuration. XML Tag: <qsadmin-server></qsadmin-server>


getQSAdminServerConfig

public QSAdminServerConfig getQSAdminServerConfig()
Returns QSAdminServer configuration.


setDBObjectPoolConfig

public void setDBObjectPoolConfig(DBObjectPoolConfig dbObjectPoolConfig)
Sets the DBObjectPoolConfig XML Tag: <object-pool></object-pool>

Since:
1.3

getDBObjectPoolConfig

public DBObjectPoolConfig getDBObjectPoolConfig()
Returns DBObjectPoolConfig

Since:
1.3

setApplicationConfiguration

public void setApplicationConfiguration(ApplicationConfiguration applicationConfiguration)
Sets the Application Configuration. This can be used by application to store its configuration information. XML Tag: <application-configuration></application-configuration>

Since:
1.3.2

getApplicationConfiguration

public ApplicationConfiguration getApplicationConfiguration()
Returns ApplicationConfiguration

Since:
1.3.2

setSecurityManagerClass

public void setSecurityManagerClass(java.lang.String securityManagerClass)
Sets the SecurityManager class XML Tag: <security-manager-class></security-manager-class>

Parameters:
securityManagerClass - className the fully qualified name of the class that extends SecurityManager.
Since:
1.3.3
See Also:
getSecurityManagerClass()

getSecurityManagerClass

public java.lang.String getSecurityManagerClass()
Returns the SecurityManager class

Since:
1.3.3
See Also:
setSecurityManagerClass(java.lang.String)

setConfigFile

protected void setConfigFile(java.lang.String fileName)
Sets the file path of the file that loaded the config from.

Since:
1.3.3

getConfigFile

public java.lang.String getConfigFile()
Returns the file path of the file that loaded the configuration file.

Since:
1.3.3

setApplicationJarPath

public void setApplicationJarPath(java.lang.String applicationJarPath)
Sets the applications jar/s path. This can be either absolute or relative(to config file) path to the jar file or the directory containing the jars needed by the application.

Since:
1.3.3
See Also:
getApplicationJarPath()

getApplicationJarPath

public java.lang.String getApplicationJarPath()
Returns the applications jar/s path. This can be either absolute or relative(to config file) path to the jar file or the directory containing the jars needed by the application.

Since:
1.3.3
See Also:
setApplicationJarPath(java.lang.String)

setInitServerHooks

public void setInitServerHooks(InitServerHooks initServerHooks)
Sets the InitServerHooks.

Since:
1.4
See Also:
getInitServerHooks()

getInitServerHooks

public InitServerHooks getInitServerHooks()
Returns the InitServerHooks.

Since:
1.4
See Also:
setInitServerHooks(org.quickserver.util.xmlreader.InitServerHooks)

toXML

public java.lang.String toXML(java.lang.String pad)
Returns XML config of this class.

Since:
1.3

QuickServer
v1.4.5

Copyright © 2003-2005 QuickServer.org