Class Converter

java.lang.Object
org.eso.ias.converter.Converter
All Implemented Interfaces:
AutoCloseable

public class Converter extends Object implements 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 Details

    • converterId

      public final String converterId
      The identifier of the converter
  • Constructor Details

  • Method Details

    • setUp

      public void setUp() throws ConfigurationException
      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 interface AutoCloseable
    • parseCommandLine

      public static void parseCommandLine(String[] args, Map<String,Optional<?>> params)
      Parse the command line. If help is requested, prints the message and exits.
      Parameters:
      args - The params read from the command line
      params - the map of values read from the command line
    • main

      public static void main(String[] args)
      Application starting point. It builds a converter with the help of spring dependency injection
      Parameters:
      args - arguments