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
-
Start an HTTP server on default port 4000. Initialize the repository if it does not exist and register it with the Location Servicecsw-config-server --initRepo
-
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
-
csw-config-server --help
Prints help message
-
csw-config-server --version
Prints application version
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.