Class SpecificTaskServiceLocator

java.lang.Object
org.apache.druid.rpc.indexing.SpecificTaskServiceLocator
All Implemented Interfaces:
Closeable, AutoCloseable, ServiceLocator

public class SpecificTaskServiceLocator extends Object implements ServiceLocator
Service locator for a specific task. Uses the OverlordClient.taskStatuses(Set) API to locate tasks. This locator has an internal cache that is updated if the last check has been over LOCATION_CACHE_MS ago. This locator is Closeable, like all ServiceLocators, but it is not essential that you actually close it. Closing does not free any resources: it merely makes future calls to locate() return ServiceLocations.closed().
  • Constructor Details

    • SpecificTaskServiceLocator

      public SpecificTaskServiceLocator(String taskId, OverlordClient overlordClient)
  • Method Details