Package com.illumon.iris.controller
Class WorkerUrlBuilder
java.lang.Object
com.illumon.iris.controller.WorkerUrlBuilder
Produce the urls that we need to connect to workers based on Envoy and SSL settings. Shared between the web server
and controller.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmakeCommunityUrl
(QueryProcessorConnectionDetails connectionDetails, boolean allowPathPrefix) makeEnterpriseWebSocketUrl
(QueryProcessorConnectionDetails connectionDetails)
-
Constructor Details
-
WorkerUrlBuilder
public WorkerUrlBuilder(boolean webSocketSsl, com.fishlib.io.logger.Logger log) - Parameters:
webSocketSsl
- do the web api server and workers support SSLlog
- 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 workerallowPathPrefix
- true for static route, false for gRPC- Returns:
- the URL the web UI uses to connect to the worker
-