The ApelonServer is very configurable, through the use of an
XML-based property file.
Running the ApelonServer
- Server takes only one
parameter [-cf config_file_name] which is the name of a properties file
- Defaults to
ApelonServerProps.xml
- There are three kinds of
parameters: Apelon Server parameters, Query Server Parameters and
connection parameters
- The following properties are
Apelon Server parameters.
- log – log4j
configuration parameter file. The default value is ApelonServerLog.xml
- port – port number
Apelon Server is listening . The parameter is required.
- validate_parser – boolean flag which turns on/off
the parser’s validation. The default value is false which turns off the
validation.
- thread_pool_size – the
number of thread the Apelon server can holds. The default is 1000.
- thread_pool_monitor_sleep
- period of time for which
the monitor thread sleeps.
The default value is 1000 milliseconds.
- thread_pool_min_free –
the initial number of thread in the Apelon Server thread pool and the number
of threads to added in the next expansion. The default value is 30.
- thread_pool_max_free
- the maximum number
threshold of thread in Apelon Server thread pool. If idle thread is
greater than this number, the monitor thread frees the idle threads. The
default value is 60.
- max_client_workers –
the maximum number of socket worker threads. The default is 1000.
- max_accepts- the
number of thread which calls Java accept() to accept client connections.
The default value is 50.
- authentication-
boolean flag which turns on/off the server’s authentication of a client.
The default value is false which turns off the authentication.
- The following properties are
QueryServer parameters.
- maxDbConns – the
maximum database connection. The default value is 15.
- qs – fully qualified
query server class name to load(For example,
com.apelon.dts.server.QueryServer) The parameter is required.
- header- the header
string associated with query server pool. A query with the header is
directed to the pool whose type is qs. The default value is determined by
qs and defined in com.apelon.common.ApelonHeader.
- cs – cache size in
query server pool. The default value is 0. Since the result of a client’s
query is stored into cache, if the data can be modified while the server
is running, the cache size should be set to 0 otherwise, the client may not
get the latest data.
- The following properties are
Connection parameters for JDBC connection
- user- oracle user
name. The parameter is required.
- pass- oracle password.
The parameter is required.
- host – the name of
machine where the oracle is running. The parameter is required.
- type – database type.
Currenlty only “oracle”, “db2” and “sql2k” are supported. The default value is
“oracle”
- database_port – database
port number. The default value is 1512.
- database_name –
database instance name. The default value is ORCL.
- jdbcDriver- JDBC
driver to connect to the database.
- url_template- JDBC
connection url for connection to the database.