Class InWorkerServiceConfigurationTypeDetails

java.lang.Object
com.illumon.iris.controller.InWorkerServiceConfigurationTypeDetails
All Implemented Interfaces:
ConfigurationTypeDetails

public class InWorkerServiceConfigurationTypeDetails
extends Object
implements ConfigurationTypeDetails
Implementation of ConfigurationTypeDetails which provides priorities for in-worker services.
  • Constructor Details

  • Method Details

    • getPriority

      public int getPriority​(PersistentQueryConfiguration configuration)
      Return the priority for the provided persistent query configuration. Priorities should be non-negative. A negative priority will be treated by Deephaven as the default priority value, RemoteQueryClient.DEFAULT_WORKER_PRIORITY. This implementation returns the following worker priority values. The configuration is not used to determine priority.
      • InWorkerServiceSetupQuery.SERVICE_TYPE_LAS: WORKER_PRIORITY_LAS
      • InWorkerServiceSetupQuery.SERVICE_TYPE_DIS: WORKER_PRIORITY_DIS
      • InWorkerServiceSetupQuery.SERVICE_TYPE_DIS_SCRIPT: WORKER_PRIORITY_DIS
      • InWorkerServiceSetupQuery.SERVICE_TYPE_TDCP: WORKER_PRIORITY_TDCP_LTDS
      • InWorkerServiceSetupQuery.SERVICE_TYPE_LTDS: WORKER_PRIORITY_TDCP_LTDS
      • InWorkerServiceSetupQuery.SERVICE_TYPE_LOG_TAILER: WORKER_PRIORITY_TAILER
      If further services are added, ensure they have a higher priority (lower number) than that returned by SystemConfigurationTypeDetails.getPriority(PersistentQueryConfiguration).
      Specified by:
      getPriority in interface ConfigurationTypeDetails
      Parameters:
      configuration - the configuration
      Returns:
      the priority where a lower number is a higher priority