Class ReplicatedIdsMapper

java.lang.Object
org.eso.ias.plugin.ReplicatedIdsMapper

public class ReplicatedIdsMapper extends Object
The mapper of monitor points ID to concrete ID in case the plugin is replicated.

The mapping follows the same rule of the IDs of the IASIOS of replicated DASUs. This is the place to implement more sophisticated mapping if needed in future.

Author:
acaproni
  • Constructor Details

    • ReplicatedIdsMapper

      public ReplicatedIdsMapper(int instanceNumber)
      Constructor
      Parameters:
      instanceNumber - The number of the instance of a replicated plugin; empty if the plugin is not replicated.
  • Method Details

    • toRealId

      public String toRealId(String id)
      Convert the passed identifier to a concrete identifier.

      If the plugin is not templated, the ID is not changed but if it is replicated then the ID contains the number of the instance.

      Parameters:
      id - the identifier to convert to a real identifier
      Returns:
      the real ID if the plugin is replicated