@InterfaceAudience.Private public interface RSGroupAdmin
| Modifier and Type | Method and Description | 
|---|---|
void | 
addRSGroup(String groupName)
Creates a new RegionServer group with the given name. 
 | 
default BalanceResponse | 
balanceRSGroup(String groupName)
Balance regions in the given RegionServer group. 
 | 
BalanceResponse | 
balanceRSGroup(String groupName,
              BalanceRequest request)
Balance regions in the given RegionServer group, running based on the given
  
BalanceRequest. | 
RSGroupInfo | 
getRSGroupInfo(String groupName)
Gets  
RSGroupInfo for given group name. | 
RSGroupInfo | 
getRSGroupInfoOfTable(TableName tableName)
Gets  
RSGroupInfo for the given table's group. | 
RSGroupInfo | 
getRSGroupOfServer(Address hostPort)
Retrieve the RSGroupInfo a server is affiliated to 
 | 
List<RSGroupInfo> | 
listRSGroups()
Lists current set of RegionServer groups. 
 | 
void | 
moveServers(Set<Address> servers,
           String targetGroup)
Move given set of servers to the specified target RegionServer group. 
 | 
void | 
moveServersAndTables(Set<Address> servers,
                    Set<TableName> tables,
                    String targetGroup)
Move given set of servers and tables to the specified target RegionServer group. 
 | 
void | 
moveTables(Set<TableName> tables,
          String targetGroup)
Move given set of tables to the specified target RegionServer group. 
 | 
void | 
removeRSGroup(String groupName)
Removes RegionServer group associated with the given name. 
 | 
void | 
removeServers(Set<Address> servers)
Remove decommissioned servers from rsgroup. 
 | 
void | 
renameRSGroup(String oldName,
             String newName)
Rename rsgroup. 
 | 
void | 
updateConfiguration(String groupName)
Update the configuration and trigger an online config change on all the regionservers in the
 RSGroup. 
 | 
void | 
updateRSGroupConfig(String groupName,
                   Map<String,String> configuration)
Update RSGroup configuration 
 | 
RSGroupInfo getRSGroupInfo(String groupName) throws IOException
RSGroupInfo for given group name.IOExceptionRSGroupInfo getRSGroupInfoOfTable(TableName tableName) throws IOException
RSGroupInfo for the given table's group.IOExceptionvoid moveServers(Set<Address> servers, String targetGroup) throws IOException
IOExceptionvoid moveTables(Set<TableName> tables, String targetGroup) throws IOException
IOExceptionvoid addRSGroup(String groupName) throws IOException
IOExceptionvoid removeRSGroup(String groupName) throws IOException
IOExceptiondefault BalanceResponse balanceRSGroup(String groupName) throws IOException
IOExceptionBalanceResponse balanceRSGroup(String groupName, BalanceRequest request) throws IOException
BalanceRequest.IOExceptionList<RSGroupInfo> listRSGroups() throws IOException
IOExceptionRSGroupInfo getRSGroupOfServer(Address hostPort) throws IOException
hostPort - HostPort to get RSGroupInfo forIOExceptionvoid moveServersAndTables(Set<Address> servers, Set<TableName> tables, String targetGroup) throws IOException
servers - set of servers to movetables - set of tables to movetargetGroup - the target group nameIOException - if moving the server and tables failvoid removeServers(Set<Address> servers) throws IOException
servers - set of servers to removeIOExceptionvoid renameRSGroup(String oldName, String newName) throws IOException
oldName - old rsgroup namenewName - new rsgroup nameIOExceptionvoid 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 occursvoid updateConfiguration(String groupName) throws IOException
groupName - the group nameIOException - if a remote or network exception occursCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.