@InterfaceAudience.Private
public interface RSGroupInfoManager
RSGroupBasedLoadBalancer.| Modifier and Type | Method and Description |
|---|---|
void |
addRSGroup(RSGroupInfo rsGroupInfo)
Add given RSGroupInfo to existing list of group infos.
|
BalanceResponse |
balanceRSGroup(String groupName,
BalanceRequest request)
Balance a region server group.
|
static RSGroupInfoManager |
create(MasterServices master) |
String |
determineRSGroupInfoForTable(TableName tableName)
Determine
RSGroupInfo for the given table. |
RSGroupInfo |
getRSGroup(String groupName)
Gets
RSGroupInfo for the given group name. |
RSGroupInfo |
getRSGroupForTable(TableName tableName)
Get
RSGroupInfo for the given table. |
RSGroupInfo |
getRSGroupOfServer(Address serverHostPort)
Gets the group info of server.
|
boolean |
isOnline()
Whether the manager is able to fully return group metadata
|
List<RSGroupInfo> |
listRSGroups()
List the existing
RSGroupInfos. |
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 rsgroup
|
void |
renameRSGroup(String oldName,
String newName)
Rename rsgroup
|
void |
setRSGroup(Set<TableName> tables,
String groupName)
Set group for tables.
|
void |
start() |
void |
updateRSGroupConfig(String groupName,
Map<String,String> configuration)
Update RSGroup configuration
|
void start()
void addRSGroup(RSGroupInfo rsGroupInfo) throws IOException
IOExceptionvoid removeRSGroup(String groupName) throws IOException
IOExceptionvoid moveServers(Set<Address> servers, String targetGroupName) throws IOException
IOExceptionRSGroupInfo getRSGroupOfServer(Address serverHostPort) throws IOException
IOExceptionRSGroupInfo getRSGroup(String groupName) throws IOException
RSGroupInfo for the given group name.IOExceptionList<RSGroupInfo> listRSGroups() throws IOException
RSGroupInfos.IOExceptionboolean isOnline()
void removeServers(Set<Address> servers) throws IOException
servers - set of servers to removeIOExceptionRSGroupInfo getRSGroupForTable(TableName tableName) throws IOException
RSGroupInfo for the given table.IOExceptionstatic RSGroupInfoManager create(MasterServices master) throws IOException
IOExceptionBalanceResponse balanceRSGroup(String groupName, BalanceRequest request) throws IOException
IOExceptionvoid setRSGroup(Set<TableName> tables, String groupName) throws IOException
IOExceptionString determineRSGroupInfoForTable(TableName tableName)
RSGroupInfo for the given table.tableName - table namevoid renameRSGroup(String oldName, String newName) throws IOException
oldName - old rsgroup namenewName - new rsgroup name nIOExceptionvoid updateRSGroupConfig(String groupName, Map<String,String> configuration) throws IOException
groupName - the group nameconfiguration - new configuration of the group name to be setIOException - if a remote or network exception occursCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.