Class SelfDiscoveryResource


  • public class SelfDiscoveryResource
    extends Object
    This class is annotated Singleton rather than LazySingleton because it adds a lifecycle handler in the constructor. That should happen before the lifecycle is started, i. e. eagerly during the DI configuration phase.
    • Constructor Detail

      • SelfDiscoveryResource

        @Inject
        public SelfDiscoveryResource​(DruidNode thisDruidNode,
                                     Set<NodeRole> thisNodeRoles,
                                     DruidNodeDiscoveryProvider nodeDiscoveryProvider,
                                     org.apache.druid.java.util.common.lifecycle.Lifecycle lifecycle)
    • Method Detail

      • getSelfDiscoveredStatus

        public javax.ws.rs.core.Response getSelfDiscoveredStatus()
        See the description of this endpoint in api-reference.md.
      • getSelfDiscovered

        public javax.ws.rs.core.Response getSelfDiscovered()
        See the description of this endpoint in api-reference.md.