csw-config-server

A HTTP server application that hosts the Configuration Service.

Prerequisites

The HTTP server hosting the Configuration Service needs to be part of the csw-cluster so that it can be consumed by other components. A required check before starting the Configuration Service is to ensure the csw-cluster is setup and the Location Server are available. Kindly refer to CSW Location Server for more information about the Location Server setup.

Command line parameter options

  • --initRepo is an optional parameter. When supplied, the server will try to initialize a repository if it does not exist.
  • --port is an optional parameter. When specified, the HTTP server will start on this port. Default will be 4000.
  • --help prints the help message.
  • --version prints the version of the application.

Examples

  1. csw-config-server --initRepo
    
    Start an HTTP server on default port 4000. Initialize the repository if it does not exist and register it with the Location Service

  2. csw-config-server --initRepo --port 4001
    

    Start an HTTP server on port 4001. Initialize the repository if it does not exist and register it with the Location Service

  3. csw-config-server --help
    

    Prints help message

  4. csw-config-server --version
    

    Prints application version

Note

Before running csw-config-server, make sure that csw-location-server is running on local machine at localhost:7654. As config server uses a local HTTP Location client which expects the Location Server to be running locally.