Configuration File

Configuration File — File containing settings for the Repository

Introduction

ProLinga-Repository comes with a configuration file where various variable settings can be entered. Variables like the name of the Language Definition file and the name of the host where the Repository Web Service is running for instance. Default installation of ProLinga-Repository will put the default configuration file prolingarepcfg.xml in the etc directory.

A default configuration file looks like this:

<?xml version="1.0" encoding="utf-8" ?>
                                                                                                                                             
<!-- ProLinga Configuration File -->
<!-- Copyright (C) 2002-2008 The ProLinga Team. -->
<!-- All Rights Reserved. -->
                                                                                                                                             
<ProLinga>
        <Configuration>
                <Service Name="Repository">
                        <!-- Settings for prolingarepclient. -->
                        <Client>
                                <ClientHost>localhost</ClientHost>
                                <ClientPort>8001</ClientPort>
                                <ClientCompressionLevel>6</ClientCompressionLevel>
                        </Client>
                                                                                                                                             
                        <!-- Settings for prolingarepd. -->
                        <!-- Path/Log Settings for prolingarepexec, prolingarepcreate and prolingareparchive. -->
                        <Server>
                                <ServiceId>ProLinga-Repository on localhost</ServiceId>
                                <ServerHost>localhost</ServerHost>
                                <ServerPort>8001</ServerPort>
                                <SystemPath>/usr/local/var/prolinga/system</SystemPath>
                                <NumberOfThreads>3</NumberOfThreads>
                                <LogFile>/tmp/prolingarep.log</LogFile>
                                <LogLevel>5</LogLevel>
                                <ServerCompressionLevel>6</ServerCompressionLevel>
                        </Server>
                </Service>
        </Configuration>
</ProLinga>

There is a main section for the client program and for the local/stand alone programs. The setup of this configuration file is such that it can be combined with configuration files from other ProLinga projects.

Client Options

ClientHost

The name or IP number of the host where to connect to, to present a Repository Command.

ClientPort

The TCP port of the host where to connect to, to present a Repository Command.

ClientCompressionLevel

Level of compression to be used on the Repository Command XML document before it is send off over the network to the Repository Web Service. 0=No Compression, 9=Best Compression.

Server Options

ServerHost

The name or IP number of the host where to bind to when starting prolingarepd as a Web Service.

ServerPort

The TCP port of the host where to bind to when starting prolingarepd as a Web Service.

SystemPath

The path containing the physical XML database files.

NumberOfThreads

Number of threads when starting prolingarepd as a Web Service. This means that up to NumberOfThreads requests can be served simultanously, before they are queued.

LogFile

Name of the file where logging and debug info will be written to.

LogLevel

The level of logging. 0=No Logging, 2= +Messages/Errors, 3= +Soap request/response info.

ServerCompressionLevel

Level of compression to be used on the Repository Command XML document before it is returned over the network to the Repository caller/client. 0=No Compression, 9=Best Compression.