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 |
---|---|
com.metamx.common.Pair<String,ServerDiscoverySelector> |
getDefaultLookup() |
String |
getDefaultServiceName() |
com.metamx.common.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 com.metamx.common.Pair<String,ServerDiscoverySelector> select(Query<T> query)
select
in interface HostSelector<T>
public com.metamx.common.Pair<String,ServerDiscoverySelector> getDefaultLookup()
Copyright © 2011–2015. All rights reserved.