Package org.eso.ias.converter
Class Converter
java.lang.Object
org.eso.ias.converter.Converter
- All Implemented Interfaces:
AutoCloseable
The tool to convert raw monitor point values and alarms
coming from plugins into IAS data type to be processed by the core.
The converter runs a never-ending loop that consists of:
- get one value produced by the remote system
- convert the value in the corresponding IAS data type
- send the value to the core for processing
The conversion needs to access the configuration database.
Spring constructor-dependency injection is used mainly for testing purposes.
- Author:
- acaproni
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
converterId
The identifier of the converter
-
-
Constructor Details
-
Converter
Constructior- Parameters:
id
- The identifier of the convertercdbReader
- The CDB reader to get the configuration and IASIOs- Throws:
ConfigurationException
- In case of error in the configuration
-
-
Method Details
-
setUp
Initialize the converter and start the loop- Throws:
ConfigurationException
- in case of error in the configuration
-
close
public void close()Shut down the loop and free the resources.- Specified by:
close
in interfaceAutoCloseable
-
parseCommandLine
Parse the command line. If help is requested, prints the message and exits.- Parameters:
args
- The params read from the command lineparams
- the map of values read from the command line
-
main
Application starting point. It builds a converter with the help of spring dependency injection- Parameters:
args
- arguments
-