public class ClusterRegistry extends Object implements RibbonTopology
| Modifier and Type | Field and Description |
|---|---|
static ClusterRegistry |
INSTANCE |
| Constructor and Description |
|---|
ClusterRegistry() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(RibbonTopologyListener listener) |
Map<String,List<String>> |
asMap() |
protected long |
countRegistrations(String nodeKey,
String appName,
com.netflix.loadbalancer.Server server) |
List<com.netflix.loadbalancer.Server> |
getServers(String appName) |
protected boolean |
hasRegistration(String nodeKey,
String appName,
com.netflix.loadbalancer.Server server) |
void |
register(String nodeKey,
String appName,
com.netflix.loadbalancer.Server server) |
void |
removeListener(RibbonTopologyListener listener) |
void |
unregister(String nodeKey,
String appName) |
void |
unregisterAll(String nodeKey) |
public static final ClusterRegistry INSTANCE
public void addListener(RibbonTopologyListener listener)
addListener in interface RibbonTopologypublic void removeListener(RibbonTopologyListener listener)
removeListener in interface RibbonTopologypublic void register(String nodeKey, String appName, com.netflix.loadbalancer.Server server)
protected long countRegistrations(String nodeKey, String appName, com.netflix.loadbalancer.Server server)
protected boolean hasRegistration(String nodeKey, String appName, com.netflix.loadbalancer.Server server)
public void unregisterAll(String nodeKey)
Copyright © 2015 JBoss by Red Hat. All rights reserved.