Class DataNodeService

java.lang.Object
org.apache.druid.discovery.DruidService
org.apache.druid.discovery.DataNodeService

public class DataNodeService extends DruidService
Metadata announced by any node that serves segments.
  • Field Details

  • Constructor Details

    • DataNodeService

      public DataNodeService(String tier, long maxSize, @Nullable Long storageSize, ServerType serverType, int priority)
    • DataNodeService

      public DataNodeService(String tier, long maxSize, @Nullable Long storageSize, ServerType serverType, int priority, boolean isDiscoverable)
  • Method Details

    • fromJson

      public static DataNodeService fromJson(String tier, long maxSize, @Nullable Long storageSize, ServerType serverType, int priority)
    • getName

      public String getName()
      Specified by:
      getName in class DruidService
    • getTier

      public String getTier()
    • getMaxSize

      public long getMaxSize()
    • getStorageSize

      public long getStorageSize()
    • getServerType

      public ServerType getServerType()
    • getPriority

      public int getPriority()
    • isDiscoverable

      public boolean isDiscoverable()
      Overrides:
      isDiscoverable in class DruidService
      Returns:
      Whether the service should be discoverable. The default implementation returns true. Some implementations may choose to override this so that the service is not discoverable if it has not been configured. This will not throw a fatal exception, but instead will just skip binding and log a message. This could be useful for optional configuration for the service.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object