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) Deprecated.Since 3.0.0, will be removed in 4.0.0.void
Adds the given server to the group.void
Deprecated.Since 3.0.0, will be removed in 4.0.0.boolean
containsServer
(Address hostPort) Returns true if a server with hostPort is foundboolean
containsTable
(TableName table) Deprecated.Since 3.0.0, will be removed in 4.0.0.boolean
Getter for fetching an unmodifiableconfiguration
map.getName()
Get group name.Get list of servers.Deprecated.Since 3.0.0, will be removed in 4.0.0.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) Deprecated.Since 3.0.0, will be removed in 4.0.0.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
Deprecated.Since 3.0.0, will be removed in 4.0.0. The rsgroup information will be stored in the configuration of a table so this will be removed. -
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. -
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 -
getTables
Deprecated.Since 3.0.0, will be removed in 4.0.0. The rsgroup information will be stored in the configuration of a table so this will be removed.Get set of tables that are members of the group. -
addTable
Deprecated.Since 3.0.0, will be removed in 4.0.0. The rsgroup information will be stored in the configuration of a table so this will be removed.Add a table -
addAllTables
Deprecated.Since 3.0.0, will be removed in 4.0.0. The rsgroup information will be stored in the configuration of a table so this will be removed.Add a collection of tables -
containsTable
Deprecated.Since 3.0.0, will be removed in 4.0.0. The rsgroup information will be stored in the configuration of a table so this will be removed.Check if the group contains a table -
removeTable
Deprecated.Since 3.0.0, will be removed in 4.0.0. The rsgroup information will be stored in the configuration of a table so this will be removed.Remove a table -
toString
-
equals
-
hashCode
-