Package org.apache.hadoop.hbase.rsgroup
Class DisabledRSGroupInfoManager
java.lang.Object
org.apache.hadoop.hbase.rsgroup.DisabledRSGroupInfoManager
- All Implemented Interfaces:
RSGroupInfoManager
A dummy RSGroupInfoManager which only contains a default rs group.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addRSGroup
(RSGroupInfo rsGroupInfo) Add given RSGroupInfo to existing list of group infos.balanceRSGroup
(String groupName, BalanceRequest request) Balance a region server group.determineRSGroupInfoForTable
(TableName tableName) DetermineRSGroupInfo
for the given table.getRSGroup
(String groupName) GetsRSGroupInfo
for the given group name.getRSGroupForTable
(TableName tableName) GetRSGroupInfo
for the given table.getRSGroupOfServer
(Address serverHostPort) Gets the group info of server.boolean
isOnline()
Whether the manager is able to fully return group metadataList the existingRSGroupInfo
s.void
moveServers
(Set<Address> servers, String targetGroupName) Move servers to a new group.void
removeRSGroup
(String groupName) Remove a region server group.void
removeServers
(Set<Address> servers) Remove decommissioned servers from rsgroupvoid
renameRSGroup
(String oldName, String newName) Rename rsgroupvoid
setRSGroup
(Set<TableName> tables, String groupName) Set group for tables.void
start()
void
updateRSGroupConfig
(String groupName, Map<String, String> configuration) Update RSGroup configuration
-
Field Details
-
serverManager
-
-
Constructor Details
-
DisabledRSGroupInfoManager
-
-
Method Details
-
start
- Specified by:
start
in interfaceRSGroupInfoManager
-
addRSGroup
Description copied from interface:RSGroupInfoManager
Add given RSGroupInfo to existing list of group infos.- Specified by:
addRSGroup
in interfaceRSGroupInfoManager
- Throws:
IOException
-
removeRSGroup
Description copied from interface:RSGroupInfoManager
Remove a region server group.- Specified by:
removeRSGroup
in interfaceRSGroupInfoManager
- Throws:
IOException
-
moveServers
Description copied from interface:RSGroupInfoManager
Move servers to a new group.- Specified by:
moveServers
in interfaceRSGroupInfoManager
- Throws:
IOException
-
getOnlineServers
-
getRSGroupOfServer
Description copied from interface:RSGroupInfoManager
Gets the group info of server.- Specified by:
getRSGroupOfServer
in interfaceRSGroupInfoManager
- Throws:
IOException
-
getRSGroup
Description copied from interface:RSGroupInfoManager
GetsRSGroupInfo
for the given group name.- Specified by:
getRSGroup
in interfaceRSGroupInfoManager
- Throws:
IOException
-
listRSGroups
Description copied from interface:RSGroupInfoManager
List the existingRSGroupInfo
s.- Specified by:
listRSGroups
in interfaceRSGroupInfoManager
- Throws:
IOException
-
isOnline
Description copied from interface:RSGroupInfoManager
Whether the manager is able to fully return group metadata- Specified by:
isOnline
in interfaceRSGroupInfoManager
- Returns:
- whether the manager is in online mode
-
removeServers
Description copied from interface:RSGroupInfoManager
Remove decommissioned servers from rsgroup- Specified by:
removeServers
in interfaceRSGroupInfoManager
- Parameters:
servers
- set of servers to remove- Throws:
IOException
-
getRSGroupForTable
Description copied from interface:RSGroupInfoManager
GetRSGroupInfo
for the given table.- Specified by:
getRSGroupForTable
in interfaceRSGroupInfoManager
- Throws:
IOException
-
balanceRSGroup
Description copied from interface:RSGroupInfoManager
Balance a region server group.- Specified by:
balanceRSGroup
in interfaceRSGroupInfoManager
- Throws:
IOException
-
setRSGroup
Description copied from interface:RSGroupInfoManager
Set group for tables.- Specified by:
setRSGroup
in interfaceRSGroupInfoManager
- Throws:
IOException
-
determineRSGroupInfoForTable
Description copied from interface:RSGroupInfoManager
DetermineRSGroupInfo
for the given table.- Specified by:
determineRSGroupInfoForTable
in interfaceRSGroupInfoManager
- Parameters:
tableName
- table name- Returns:
- rsgroup name
-
renameRSGroup
Description copied from interface:RSGroupInfoManager
Rename rsgroup- Specified by:
renameRSGroup
in interfaceRSGroupInfoManager
- Parameters:
oldName
- old rsgroup namenewName
- new rsgroup name- Throws:
IOException
-
updateRSGroupConfig
public void updateRSGroupConfig(String groupName, Map<String, String> configuration) throws IOExceptionDescription copied from interface:RSGroupInfoManager
Update RSGroup configuration- Specified by:
updateRSGroupConfig
in interfaceRSGroupInfoManager
- Parameters:
groupName
- the group nameconfiguration
- new configuration of the group name to be set- Throws:
IOException
- if a remote or network exception occurs
-