public class LiveTServerSet extends Object implements org.apache.zookeeper.Watcher
| Modifier and Type | Class and Description |
|---|---|
static interface |
LiveTServerSet.Listener |
class |
LiveTServerSet.TServerConnection |
| Constructor and Description |
|---|
LiveTServerSet(ClientContext context,
LiveTServerSet.Listener cback) |
| Modifier and Type | Method and Description |
|---|---|
TServerInstance |
find(String tabletServer) |
LiveTServerSet.TServerConnection |
getConnection(TServerInstance server) |
Set<TServerInstance> |
getCurrentServers() |
ZooCache |
getZooCache() |
void |
process(org.apache.zookeeper.WatchedEvent event) |
void |
remove(TServerInstance server) |
void |
scanServers() |
int |
size() |
void |
startListeningForTabletServerChanges() |
public LiveTServerSet(ClientContext context, LiveTServerSet.Listener cback)
public ZooCache getZooCache()
public void startListeningForTabletServerChanges()
public void scanServers()
public void process(org.apache.zookeeper.WatchedEvent event)
process in interface org.apache.zookeeper.Watcherpublic LiveTServerSet.TServerConnection getConnection(TServerInstance server)
public Set<TServerInstance> getCurrentServers()
public int size()
public TServerInstance find(String tabletServer)
public void remove(TServerInstance server)
Copyright © 2015 Apache Accumulo Project. All rights reserved.