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
-
Constructor Summary
ConstructorDescriptionRSGroupInfo
(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 TypeMethodDescriptionvoid
addAllServers
(Collection<Address> hostPort) Adds the given servers to the group.void
addAllTables
(Collection<TableName> arg) void
Adds the given server to the group.void
boolean
containsServer
(Address hostPort) Returns true if a server with hostPort is foundboolean
containsTable
(TableName table) boolean
Getter for fetching an unmodifiableconfiguration
map.getName()
Get group name.Get list of servers.Get set of tables that are members of the group.int
hashCode()
void
Remove a config setting represented by the key from theconfiguration
mapboolean
removeServer
(Address hostPort) Remove given server from the group.boolean
removeTable
(TableName table) void
setConfiguration
(String key, String value) Setter for storing a configuration setting inconfiguration
map.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 unmodifiableconfiguration
map. -
setConfiguration
Setter for storing a configuration setting inconfiguration
map.- Parameters:
key
- Config key.value
- String value.
-
removeConfiguration
Remove a config setting represented by the key from theconfiguration
map -
toString
-
equals
-
hashCode
-