public class DruidCluster extends Object
Constructor and Description |
---|
DruidCluster() |
DruidCluster(Map<String,com.google.common.collect.MinMaxPriorityQueue<ServerHolder>> cluster) |
Modifier and Type | Method and Description |
---|---|
void |
add(ServerHolder serverHolder) |
com.google.common.collect.MinMaxPriorityQueue<ServerHolder> |
get(String tier) |
Map<String,com.google.common.collect.MinMaxPriorityQueue<ServerHolder>> |
getCluster() |
com.google.common.collect.MinMaxPriorityQueue<ServerHolder> |
getServersByTier(String tier) |
Iterable<com.google.common.collect.MinMaxPriorityQueue<ServerHolder>> |
getSortedServersByTier() |
Iterable<String> |
getTierNames() |
boolean |
hasTier(String tier) |
boolean |
isEmpty() |
public DruidCluster()
public DruidCluster(Map<String,com.google.common.collect.MinMaxPriorityQueue<ServerHolder>> cluster)
public void add(ServerHolder serverHolder)
public Map<String,com.google.common.collect.MinMaxPriorityQueue<ServerHolder>> getCluster()
public com.google.common.collect.MinMaxPriorityQueue<ServerHolder> getServersByTier(String tier)
public Iterable<com.google.common.collect.MinMaxPriorityQueue<ServerHolder>> getSortedServersByTier()
public boolean isEmpty()
public boolean hasTier(String tier)
public com.google.common.collect.MinMaxPriorityQueue<ServerHolder> get(String tier)
Copyright © 2011–2015. All rights reserved.