Configuration File

Configuration File — File containing settings for the Validate environment

Introduction

ProLinga-Validate 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-Validate will put the default configuration file prolingavalcfg.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="Validate">
      <!-- Settings for prolingagenclient. -->
      <Client>
        <ClientHost>localhost</ClientHost>
        <ClientPort>8003</ClientPort>
        <ClientCompressionLevel>0</ClientCompressionLevel>
      </Client>
                                                                                                                                            
      <!-- Settings for prolingavalparser, prolingavald and prolingavalexec. -->
      <Server>
        <ServerHost>localhost</ServerHost>
        <ServerPort>8003</ServerPort>
        <NumberOfThreads>3</NumberOfThreads>
        <LogFile>/tmp/prolingaval.log</LogFile>
        <LogLevel>5</LogLevel>
        <ServerCompressionLevel>0</ServerCompressionLevel>
        <LanguageValidationFile>/usr/share/prolinga/langvalid.xml</LanguageValidationFile>
        <RepositoryHost>localhost</RepositoryHost>
        <RepositoryPort>8001</RepositoryPort>
        <RepositoryCompressionLevel>0</RepositoryCompressionLevel>
      </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 Validation Command.

ClientPort

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

ClientCompressionLevel

Level of compression to be used on the Validate Command XML document before it is send off over the network to the Validate 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 prolingavald as a Web Service.

ServerPort

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

NumberOfThreads

Number of threads when starting prolingavald 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 Validate Command XML document before it is returned over the network to the Validate caller/client. 0=No Compression, 9=Best Compression.

LanguageValidationFile

Name of the file that holds the 4GL grammar rules and syntax definitions.

RepositoryHost

The name or IP number of the host where to connect to get/put Repository Objects.

RepositoryPort

The TCP port of the host where to connect to get/put Repository Objects.

RepositoryCompressionLevel

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