Package org.apache.hadoop.hbase.rsgroup
Interface RSGroupInfoManager
- All Known Implementing Classes:
DisabledRSGroupInfoManager,RSGroupInfoManagerImpl
Interface used to manage RSGroupInfo storage. An implementation has the option to support offline
mode. See
RSGroupBasedLoadBalancer.-
Method Summary
Modifier and TypeMethodDescriptionvoidaddRSGroup(RSGroupInfo rsGroupInfo) Add given RSGroupInfo to existing list of group infos.balanceRSGroup(String groupName, BalanceRequest request) Balance a region server group.static RSGroupInfoManagercreate(MasterServices master) determineRSGroupInfoForTable(TableName tableName) DetermineRSGroupInfofor the given table.getRSGroup(String groupName) GetsRSGroupInfofor the given group name.getRSGroupForTable(TableName tableName) GetRSGroupInfofor the given table.getRSGroupOfServer(Address serverHostPort) Gets the group info of server.booleanisOnline()Whether the manager is able to fully return group metadataList the existingRSGroupInfos.voidmoveServers(Set<Address> servers, String targetGroupName) Move servers to a new group.voidremoveRSGroup(String groupName) Remove a region server group.voidremoveServers(Set<Address> servers) Remove decommissioned servers from rsgroupvoidrenameRSGroup(String oldName, String newName) Rename rsgroupvoidsetRSGroup(Set<TableName> tables, String groupName) Set group for tables.voidstart()voidupdateRSGroupConfig(String groupName, Map<String, String> configuration) Update RSGroup configuration
-
Method Details
-
start
void start() -
addRSGroup
Add given RSGroupInfo to existing list of group infos.- Throws:
IOException
-
removeRSGroup
Remove a region server group.- Throws:
IOException
-
moveServers
Move servers to a new group.- Throws:
IOException
-
getRSGroupOfServer
Gets the group info of server.- Throws:
IOException
-
getRSGroup
GetsRSGroupInfofor the given group name.- Throws:
IOException
-
listRSGroups
List the existingRSGroupInfos.- Throws:
IOException
-
isOnline
boolean isOnline()Whether the manager is able to fully return group metadata- Returns:
- whether the manager is in online mode
-
removeServers
Remove decommissioned servers from rsgroup- Parameters:
servers- set of servers to remove- Throws:
IOException
-
getRSGroupForTable
GetRSGroupInfofor the given table.- Throws:
IOException
-
create
- Throws:
IOException
-
balanceRSGroup
Balance a region server group.- Throws:
IOException
-
setRSGroup
Set group for tables.- Throws:
IOException
-
determineRSGroupInfoForTable
DetermineRSGroupInfofor the given table.- Parameters:
tableName- table name- Returns:
- rsgroup name
-
renameRSGroup
Rename rsgroup- Parameters:
oldName- old rsgroup namenewName- new rsgroup name- Throws:
IOException
-
updateRSGroupConfig
Update RSGroup configuration- Parameters:
groupName- the group nameconfiguration- new configuration of the group name to be set- Throws:
IOException- if a remote or network exception occurs
-