Package org.apache.hadoop.hbase.rsgroup
Class RSGroupInfo
java.lang.Object
org.apache.hadoop.hbase.rsgroup.RSGroupInfo
Stores the group information of region server groups.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRSGroupInfo(String name) RSGroupInfo(String name, Set<Address> servers) Deprecated.Since 3.0.0, will be removed in 4.0.0.RSGroupInfo(RSGroupInfo src) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAllServers(Collection<Address> hostPort) Adds the given servers to the group.voidaddAllTables(Collection<TableName> arg) voidAdds the given server to the group.voidbooleancontainsServer(Address hostPort) Returns true if a server with hostPort is foundbooleancontainsTable(TableName table) booleanGetter for fetching an unmodifiableconfigurationmap.getName()Get group name.Get list of servers.Get set of tables that are members of the group.inthashCode()voidRemove a config setting represented by the key from theconfigurationmapbooleanremoveServer(Address hostPort) Remove given server from the group.booleanremoveTable(TableName table) voidsetConfiguration(String key, String value) Setter for storing a configuration setting inconfigurationmap.toString()
-
Field Details
-
DEFAULT_GROUP
- See Also:
-
NAMESPACE_DESC_PROP_GROUP
- See Also:
-
TABLE_DESC_PROP_GROUP
- See Also:
-
name
-
servers
-
tables
-
configuration
-
-
Constructor Details
-
RSGroupInfo
-
RSGroupInfo
RSGroupInfo(String name, Set<Address> servers) -
RSGroupInfo
Deprecated.Since 3.0.0, will be removed in 4.0.0. The rsgroup information for a table will be stored in the configuration of a table so this will be removed.Constructor -
RSGroupInfo
-
-
Method Details
-
getName
Get group name. -
addServer
Adds the given server to the group. -
addAllServers
Adds the given servers to the group. -
containsServer
Returns true if a server with hostPort is found -
getServers
Get list of servers. -
removeServer
Remove given server from the group. -
getTables
Get set of tables that are members of the group. -
addTable
-
addAllTables
-
containsTable
-
removeTable
-
getConfiguration
Getter for fetching an unmodifiableconfigurationmap. -
setConfiguration
Setter for storing a configuration setting inconfigurationmap.- Parameters:
key- Config key.value- String value.
-
removeConfiguration
Remove a config setting represented by the key from theconfigurationmap -
toString
-
equals
-
hashCode
-