|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.rest.client.Cluster
public class Cluster
A list of 'host:port' addresses of HTTP servers operating as a single entity, for example multiple redundant web service gateways.
Field Summary | |
---|---|
protected String |
lastHost
|
protected List<String> |
nodes
|
Constructor Summary | |
---|---|
Cluster()
Constructor |
|
Cluster(List<String> nodes)
Constructor |
Method Summary | |
---|---|
Cluster |
add(String node)
Add a node to the cluster |
Cluster |
add(String name,
int port)
Add a node to the cluster |
boolean |
isEmpty()
|
Cluster |
remove(String node)
Remove a node from the cluster |
Cluster |
remove(String name,
int port)
Remove a node from the cluster |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected List<String> nodes
protected String lastHost
Constructor Detail |
---|
public Cluster()
public Cluster(List<String> nodes)
nodes
- a list of service locations, in 'host:port' formatMethod Detail |
---|
public boolean isEmpty()
public Cluster add(String node)
node
- the service location in 'host:port' formatpublic Cluster add(String name, int port)
name
- host nameport
- service portpublic Cluster remove(String node)
node
- the service location in 'host:port' formatpublic Cluster remove(String name, int port)
name
- host nameport
- service port
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |