Class InWorkerServiceControllerConfigurationProcessor

java.lang.Object
com.illumon.iris.controller.InWorkerServiceControllerConfigurationProcessor
All Implemented Interfaces:
FunctionalInterfaces.TriFunction<com.fishlib.io.logger.Logger,​PqStorage,​AtomicLong,​Boolean>

public class InWorkerServiceControllerConfigurationProcessor
extends Object
implements FunctionalInterfaces.TriFunction<com.fishlib.io.logger.Logger,​PqStorage,​AtomicLong,​Boolean>
Controller migration class to update DATA_SERVICES_SCRIPT persistent queries to use the new InWorkerServiceSetupQuery.IN_WORKER_SERVICE_CONFIG_TYPE query type.
  • Constructor Details

  • Method Details

    • apply

      public Boolean apply​(com.fishlib.io.logger.Logger log, PqStorage pqStorage, AtomicLong nextSerial)
      Apply the in-worker service persistent query changes to the controller's hash table. This implementation takes any existing DATA_SERVICES_SCRIPT query types and converts them to InWorkerServiceSetupQuery.IN_WORKER_SERVICE_CONFIG_TYPE configurations.
      Specified by:
      apply in interface FunctionalInterfaces.TriFunction<com.fishlib.io.logger.Logger,​PqStorage,​AtomicLong,​Boolean>
      Parameters:
      log - a Logger instance
      pqStorage - the controller's PQ storage provider
      nextSerial - the next available serial
      Returns:
      true if any changes were made, false otherwise