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) Deprecated.Since 3.0.0, will be removed in 4.0.0.voidAdds the given server to the group.voidDeprecated.Since 3.0.0, will be removed in 4.0.0.booleancontainsServer(Address hostPort) Returns true if a server with hostPort is foundbooleancontainsTable(TableName table) Deprecated.Since 3.0.0, will be removed in 4.0.0.booleanGetter for fetching an unmodifiableconfigurationmap.getName()Get group name.Get list of servers.Deprecated.Since 3.0.0, will be removed in 4.0.0.inthashCode()voidRemove a config setting represented by the key from theconfigurationmapbooleanremoveServer(Address hostPort) Remove given server from the group.booleanremoveTable(TableName table) Deprecated.Since 3.0.0, will be removed in 4.0.0.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
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 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 -
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
-