public class TieredBrokerHostSelector<T> extends Object implements HostSelector<T>
Constructor and Description |
---|
TieredBrokerHostSelector(CoordinatorRuleManager ruleManager,
TieredBrokerConfig tierConfig,
ServerDiscoveryFactory serverDiscoveryFactory,
List<TieredBrokerSelectorStrategy> strategies) |
Modifier and Type | Method and Description |
---|---|
Map<String,ServerDiscoverySelector> |
getAllBrokers() |
Pair<String,ServerDiscoverySelector> |
getDefaultLookup() |
String |
getDefaultServiceName() |
Pair<String,ServerDiscoverySelector> |
select(Query<T> query) |
void |
start() |
void |
stop() |
@Inject public TieredBrokerHostSelector(CoordinatorRuleManager ruleManager, TieredBrokerConfig tierConfig, ServerDiscoveryFactory serverDiscoveryFactory, List<TieredBrokerSelectorStrategy> strategies)
public void start()
public void stop()
public String getDefaultServiceName()
getDefaultServiceName
in interface HostSelector<T>
public Pair<String,ServerDiscoverySelector> select(Query<T> query)
select
in interface HostSelector<T>
public Pair<String,ServerDiscoverySelector> getDefaultLookup()
public Map<String,ServerDiscoverySelector> getAllBrokers()
Copyright © 2011–2017. All rights reserved.