@InterfaceAudience.Public @InterfaceStability.Evolving public class RSGroupInfo extends Object
| Modifier and Type | Field and Description | 
|---|---|
static String | 
DEFAULT_GROUP  | 
static String | 
NAMESPACE_DESC_PROP_GROUP  | 
| Constructor and Description | 
|---|
RSGroupInfo(RSGroupInfo src)  | 
RSGroupInfo(String name)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addAllServers(Collection<Address> addresses)
Adds a group of servers. 
 | 
void | 
addAllTables(Collection<TableName> arg)  | 
void | 
addServer(Address server)
Adds the server to the group. 
 | 
void | 
addTable(TableName table)  | 
boolean | 
containsServer(Address address)  | 
boolean | 
containsTable(TableName table)  | 
boolean | 
equals(Object o)  | 
String | 
getName()
Get group name. 
 | 
Set<Address> | 
getServers()
Get list of servers. 
 | 
NavigableSet<TableName> | 
getTables()
Set of tables that are members of this group 
 | 
int | 
hashCode()  | 
boolean | 
removeServer(Address address)
Remove a server from this group. 
 | 
boolean | 
removeTable(TableName table)  | 
String | 
toString()  | 
public static final String DEFAULT_GROUP
public static final String NAMESPACE_DESC_PROP_GROUP
public RSGroupInfo(String name)
public RSGroupInfo(RSGroupInfo src)
public String getName()
public void addServer(Address server)
server - the serverpublic void addAllServers(Collection<Address> addresses)
servers - the serverspublic boolean containsServer(Address address)
address - Address of the serverpublic boolean removeServer(Address address)
address - Address of the server to removepublic NavigableSet<TableName> getTables()
public void addTable(TableName table)
public void addAllTables(Collection<TableName> arg)
public boolean containsTable(TableName table)
public boolean removeTable(TableName table)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.