|
Changes made in any configuration files can be uploaded during the restart of the Distributed Mediation Server. The details of the configuration files to be transferred are configured in NOCDownloads.xml. Refer Uploading Configuration From DMS to Central for the configuration details.
Uploading Configuration Changes From DMS to Central Server
By default, the upload happens only during the restart of the DMS. It can either be a warm-start or a cold-start. It is possible to upload and download configuration changes on demand basis.
The ConfUploadAPI
is used for uploading and downloading configuration files
to and from the Central Server. The uploadFile() and downloadFile() methods
of this class are called to upload or download the required files respectively.
uploadFile(): The configuration file name (file to be uploaded to Central Server), the relative path of the file in the DMS and Central Server are passed as arguments to this method. Example is given below:
|
... public boolean uploadFile(logging_parameters.conf, conf/, conf/) ... |
downloadFile(): The configuration file name (file to be downloaded from Central Server), the relative path of the file in the DMS and Central Server are passed as arguments to this method. Example is given below:
|
... public boolean downloadFile(logging_parameters.conf, logging_parameters.bkp, conf/, conf/) ... |
|