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
Fields -
Constructor Summary
Constructors -
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.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
-
Field Details
-
serverManager
-
-
Constructor Details
-
DisabledRSGroupInfoManager
-
-
Method Details
-
start
- Specified by:
startin interfaceRSGroupInfoManager
-
addRSGroup
Description copied from interface:RSGroupInfoManagerAdd given RSGroupInfo to existing list of group infos.- Specified by:
addRSGroupin interfaceRSGroupInfoManager- Throws:
IOException
-
removeRSGroup
Description copied from interface:RSGroupInfoManagerRemove a region server group.- Specified by:
removeRSGroupin interfaceRSGroupInfoManager- Throws:
IOException
-
moveServers
Description copied from interface:RSGroupInfoManagerMove servers to a new group.- Specified by:
moveServersin interfaceRSGroupInfoManager- Throws:
IOException
-
getOnlineServers
-
getRSGroupOfServer
Description copied from interface:RSGroupInfoManagerGets the group info of server.- Specified by:
getRSGroupOfServerin interfaceRSGroupInfoManager- Throws:
IOException
-
getRSGroup
Description copied from interface:RSGroupInfoManagerGetsRSGroupInfofor the given group name.- Specified by:
getRSGroupin interfaceRSGroupInfoManager- Throws:
IOException
-
listRSGroups
Description copied from interface:RSGroupInfoManagerList the existingRSGroupInfos.- Specified by:
listRSGroupsin interfaceRSGroupInfoManager- Throws:
IOException
-
isOnline
Description copied from interface:RSGroupInfoManagerWhether the manager is able to fully return group metadata- Specified by:
isOnlinein interfaceRSGroupInfoManager- Returns:
- whether the manager is in online mode
-
removeServers
Description copied from interface:RSGroupInfoManagerRemove decommissioned servers from rsgroup- Specified by:
removeServersin interfaceRSGroupInfoManager- Parameters:
servers- set of servers to remove- Throws:
IOException
-
getRSGroupForTable
Description copied from interface:RSGroupInfoManagerGetRSGroupInfofor the given table.- Specified by:
getRSGroupForTablein interfaceRSGroupInfoManager- Throws:
IOException
-
balanceRSGroup
Description copied from interface:RSGroupInfoManagerBalance a region server group.- Specified by:
balanceRSGroupin interfaceRSGroupInfoManager- Throws:
IOException
-
setRSGroup
Description copied from interface:RSGroupInfoManagerSet group for tables.- Specified by:
setRSGroupin interfaceRSGroupInfoManager- Throws:
IOException
-
determineRSGroupInfoForTable
Description copied from interface:RSGroupInfoManagerDetermineRSGroupInfofor the given table.- Specified by:
determineRSGroupInfoForTablein interfaceRSGroupInfoManager- Parameters:
tableName- table name- Returns:
- rsgroup name
-
renameRSGroup
Description copied from interface:RSGroupInfoManagerRename rsgroup- Specified by:
renameRSGroupin 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:RSGroupInfoManagerUpdate RSGroup configuration- Specified by:
updateRSGroupConfigin interfaceRSGroupInfoManager- Parameters:
groupName- the group nameconfiguration- new configuration of the group name to be set- Throws:
IOException- if a remote or network exception occurs
-