public class DruidNavigator extends Object implements Supplier<List<? extends DataSourceConfiguration>>
Constructor and Description |
---|
DruidNavigator(DruidWebService druidWebService,
com.fasterxml.jackson.databind.ObjectMapper mapper)
Constructs a DruidNavigator to load datasources from druid.
|
Modifier and Type | Method and Description |
---|---|
List<? extends DataSourceConfiguration> |
get()
Queries druid for all datasources and loads each of their configurations.
|
public DruidNavigator(DruidWebService druidWebService, com.fasterxml.jackson.databind.ObjectMapper mapper)
druidWebService
- The DruidWebService to be used when talking to druidmapper
- The instance of ObjectMapper.public List<? extends DataSourceConfiguration> get()
get
in interface Supplier<List<? extends DataSourceConfiguration>>
DataSourceConfiguration
containing all known druid datasources configs.Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.