Class WorkerUrlBuilder

java.lang.Object
com.illumon.iris.controller.WorkerUrlBuilder

public class WorkerUrlBuilder extends Object
Produce the urls that we need to connect to workers based on Envoy and SSL settings. Shared between the web server and controller.
  • Constructor Details

    • WorkerUrlBuilder

      public WorkerUrlBuilder(boolean webSocketSsl, com.fishlib.io.logger.Logger log)
      Parameters:
      webSocketSsl - do the web api server and workers support SSL
      log - logger to print what kind of URLs we will make
  • Method Details

    • makeEnterpriseWebSocketUrl

      @NotNull public String makeEnterpriseWebSocketUrl(QueryProcessorConnectionDetails connectionDetails)
      Parameters:
      connectionDetails - connection details for an Enterprise query processor
      Returns:
      the URL the web UI uses to connect to this query processor
    • makeCommunityUrl

      @NotNull public String makeCommunityUrl(QueryProcessorConnectionDetails connectionDetails, boolean allowPathPrefix)
      Parameters:
      connectionDetails - connection details for a Community worker
      allowPathPrefix - true for static route, false for gRPC
      Returns:
      the URL the web UI uses to connect to the worker