...
- clientId: <id not required>
- returns: Default Locations.xml file from the OC configuration. Note file is not is PI_Locations XSD format.
Anchor | ||||
---|---|---|---|---|
|
Code Block |
---|
String getClientConfigFile(String clientId, String fileExtension); |
...
The Pi Service configuration files are located in the directory 'PiServiceConfigFiles' of the region configuration. These files link the IDs know by the client applications to FEWS data, such as TimeSeries, States, ModuleDataSets and ModuleParameterSets.
A Pi Service file has five sections:
- General: Contains general configuration, such as import and export locations. Id mapping information for mapping client location/parameter ids to FEWS location/parameter ids.
- TimeSeries: Contains the mapping of client timeseries ids to the FEWS timeseries sets. Also some extra export options.
- ModuleDataSet: Contains the mapping of client moduleDataSet ids to the FEWS moduleInstance descriptor ids.
- ModuleParameterSet: Contains the mapping of client moduleParameterSet ids to the FEWS moduleInstance descriptor ids.
- ModuleState: Contains the mapping of client moduleState ids to the FEWS moduleInstance descriptor ids.
Wiki Markup |
---|
If a client application requires an application specific configuration file then this file must be configured in the directory ' PiClientConfigFiles' of the region configuration. This file is free format (text) and can be obtained from the API by calling \[#getClientConfigFile\] |
1
. |
Example code
Appendix
FewsPiService API
...