Package org.apache.druid.rpc.indexing
Class TaskServiceClients
java.lang.Object
org.apache.druid.rpc.indexing.TaskServiceClients
Utility function for creating
ServiceClient instances that communicate to indexing service tasks.-
Method Summary
Modifier and TypeMethodDescriptionstatic ServiceClientmakeClient(String taskId, ServiceRetryPolicy baseRetryPolicy, ServiceClientFactory serviceClientFactory, OverlordClient overlordClient) Makes aServiceClientlinked to the provided task.
-
Method Details
-
makeClient
public static ServiceClient makeClient(String taskId, ServiceRetryPolicy baseRetryPolicy, ServiceClientFactory serviceClientFactory, OverlordClient overlordClient) Makes aServiceClientlinked to the provided task. The client's base path comes pre-set to the chat handler resource of the task:/druid/worker/v1/chat/<taskId>.
-