public class SelfDiscoveryResource extends Object
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 and Description |
|---|
SelfDiscoveryResource(DruidNode thisDruidNode,
Set<NodeRole> thisNodeRoles,
DruidNodeDiscoveryProvider nodeDiscoveryProvider,
Lifecycle lifecycle) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
getSelfDiscovered()
See the description of this endpoint in api-reference.md.
|
javax.ws.rs.core.Response |
getSelfDiscoveredStatus()
See the description of this endpoint in api-reference.md.
|
@Inject public SelfDiscoveryResource(DruidNode thisDruidNode, Set<NodeRole> thisNodeRoles, DruidNodeDiscoveryProvider nodeDiscoveryProvider, Lifecycle lifecycle)
Copyright © 2011–2021 The Apache Software Foundation. All rights reserved.