Class DiscoveryDruidNode

java.lang.Object
org.apache.druid.discovery.DiscoveryDruidNode

public class DiscoveryDruidNode extends Object
Representation of all information related to discovery of a node and all the other metadata associated with the node per nodeRole such as broker, historical etc. Note that one Druid process might announce multiple DiscoveryDruidNode if it acts in multiple NodeRoles e. g. Coordinator would announce DiscoveryDruidNode for NodeRole.OVERLORD as well when acting as Overlord.
  • Constructor Details

  • Method Details

    • getServices

      public Map<String,DruidService> getServices()
    • getNodeRole

      public NodeRole getNodeRole()
      Keeping the legacy name 'nodeType' property name for backward compatibility. When the project is updated to Jackson 2.9 it could be changed, see https://github.com/apache/druid/issues/7152.
    • getDruidNode

      public DruidNode getDruidNode()
    • getStartTime

      public org.joda.time.DateTime getStartTime()
    • getService

      @Nullable public <T extends DruidService> T getService(String key, Class<T> clazz)
    • toDruidServer

      public DruidServer toDruidServer()
    • 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