Class ServiceDiscoveryBundle<T extends io.dropwizard.Configuration>
java.lang.Object
io.appform.dropwizard.discovery.bundle.ServiceDiscoveryBundle<T>
- All Implemented Interfaces:
io.dropwizard.ConfiguredBundle<T>
public abstract class ServiceDiscoveryBundle<T extends io.dropwizard.Configuration> extends Object implements io.dropwizard.ConfiguredBundle<T>
A dropwizard bundle for service discovery.
-
Constructor Summary
Constructors Modifier Constructor Description protectedServiceDiscoveryBundle()protectedServiceDiscoveryBundle(List<IdValidationConstraint> globalIdConstraints) -
Method Summary
Modifier and Type Method Description protected List<com.flipkart.ranger.healthservice.monitor.IsolatedHealthMonitor>getHealthMonitors()protected StringgetHost()protected intgetPort(T configuration)protected abstract ServiceDiscoveryConfigurationgetRangerConfiguration(T configuration)protected abstract StringgetServiceName(T configuration)voidinitialize(io.dropwizard.setup.Bootstrap<?> bootstrap)voidregisterHealthcheck(com.flipkart.ranger.healthcheck.Healthcheck healthcheck)voidregisterHealthchecks(List<com.flipkart.ranger.healthcheck.Healthcheck> healthchecks)voidrun(T configuration, io.dropwizard.setup.Environment environment)
-
Constructor Details
-
ServiceDiscoveryBundle
protected ServiceDiscoveryBundle() -
ServiceDiscoveryBundle
-
-
Method Details
-
initialize
public void initialize(io.dropwizard.setup.Bootstrap<?> bootstrap)- Specified by:
initializein interfaceio.dropwizard.ConfiguredBundle<T extends io.dropwizard.Configuration>
-
run
-
getRangerConfiguration
-
getServiceName
-
getHealthMonitors
-
getPort
-
getHost
- Throws:
UnknownHostException
-
registerHealthcheck
public void registerHealthcheck(com.flipkart.ranger.healthcheck.Healthcheck healthcheck) -
registerHealthchecks
-