Package com.illumon.iris.controller
Class InWorkerServiceControllerConfigurationProcessor
java.lang.Object
com.illumon.iris.controller.InWorkerServiceControllerConfigurationProcessor
- All Implemented Interfaces:
ControllerConfigurationProcessor
public class InWorkerServiceControllerConfigurationProcessor
extends Object
implements ControllerConfigurationProcessor
Controller migration class to update
DATA_SERVICES_SCRIPT
persistent queries to use the new InWorkerServiceSetupQuery.IN_WORKER_SERVICE_CONFIG_TYPE
query type.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
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.
-
Constructor Details
-
InWorkerServiceControllerConfigurationProcessor
public InWorkerServiceControllerConfigurationProcessor()
-
-
Method Details
-
apply
public boolean apply(@NotNull com.fishlib.io.logger.Logger log, PqStorage pqStorage, @NotNull AtomicLong nextSerial) throws PqStorageException Apply the in-worker service persistent query changes to the controller's hash table. This implementation takes any existingDATA_SERVICES_SCRIPT
query types and converts them toInWorkerServiceSetupQuery.IN_WORKER_SERVICE_CONFIG_TYPE
configurations.- Specified by:
apply
in interfaceControllerConfigurationProcessor
- Parameters:
log
- a Logger instancepqStorage
- the controller's PQ storage providernextSerial
- the next available serial- Returns:
- true if any changes were made, false otherwise
- Throws:
PqStorageException
-