public class ServerSelector extends Object implements DiscoverySelector<QueryableDruidServer>
Constructor and Description |
---|
ServerSelector(io.druid.timeline.DataSegment segment,
TierSelectorStrategy strategy) |
Modifier and Type | Method and Description |
---|---|
void |
addServer(QueryableDruidServer server) |
io.druid.timeline.DataSegment |
getSegment() |
boolean |
isEmpty() |
QueryableDruidServer |
pick() |
boolean |
removeServer(QueryableDruidServer server) |
public ServerSelector(io.druid.timeline.DataSegment segment, TierSelectorStrategy strategy)
public io.druid.timeline.DataSegment getSegment()
public void addServer(QueryableDruidServer server)
public boolean removeServer(QueryableDruidServer server)
public boolean isEmpty()
public QueryableDruidServer pick()
pick
in interface DiscoverySelector<QueryableDruidServer>
Copyright © 2011–2015. All rights reserved.