Class WorkerProtocolRegistry

java.lang.Object
com.illumon.iris.db.tables.remotequery.WorkerProtocolRegistry

public class WorkerProtocolRegistry extends Object
Static store that will contain additional service information for a worker in this JVM that can be obtained elsewhere, e.g. in a DIS. This is a mechanism to allow a merge worker with an in-worker DIS to dynamically get tailer and tdp ports and place them here, to be retrieved by the DIS that gets created in the worker's script. Note that this will only allow for one in-worker DIS per worker, though that should not present any significant limitations.
  • Method Details

    • setServicePort

      public static void setServicePort(@NotNull String service, int port)
    • claimServicePortOrDefault

      public static Integer claimServicePortOrDefault(@NotNull String service, int defaultPort)
    • setHostName

      public static void setHostName(@NotNull String hostName)
    • getHostName

      public static String getHostName()