Package org.apache.druid.server.http
Class SelfDiscoveryResource
- java.lang.Object
-
- org.apache.druid.server.http.SelfDiscoveryResource
-
public class SelfDiscoveryResource extends Object
This class is annotatedSingletonrather thanLazySingletonbecause 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 Summary
Constructors Constructor Description SelfDiscoveryResource(DruidNode thisDruidNode, Set<NodeRole> thisNodeRoles, DruidNodeDiscoveryProvider nodeDiscoveryProvider, org.apache.druid.java.util.common.lifecycle.Lifecycle lifecycle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsegetSelfDiscovered()See the description of this endpoint in api-reference.md.javax.ws.rs.core.ResponsegetSelfDiscoveredStatus()See the description of this endpoint in api-reference.md.
-
-
-
Constructor Detail
-
SelfDiscoveryResource
@Inject public SelfDiscoveryResource(DruidNode thisDruidNode, Set<NodeRole> thisNodeRoles, DruidNodeDiscoveryProvider nodeDiscoveryProvider, org.apache.druid.java.util.common.lifecycle.Lifecycle lifecycle)
-
-