Class Cluster
java.lang.Object
org.apache.hadoop.hbase.rest.client.Cluster
A list of 'host:port' addresses of HTTP servers operating as a single entity, for example
multiple redundant web service gateways.
-
Field Details
-
nodes
-
lastHost
-
-
Constructor Details
-
Cluster
public Cluster()Constructor -
Cluster
Constructor- Parameters:
nodes
- a list of service locations, in 'host:port' format
-
-
Method Details
-
isEmpty
Returns true if no locations have been added, false otherwise -
add
Add a node to the cluster- Parameters:
node
- the service location in 'host:port' format
-
add
Add a node to the cluster- Parameters:
name
- host nameport
- service port
-
remove
Remove a node from the cluster- Parameters:
node
- the service location in 'host:port' format
-
remove
Remove a node from the cluster- Parameters:
name
- host nameport
- service port
-
toString
-