@InterfaceAudience.Private public class RSGroupAdminClient extends Object implements RSGroupAdmin
| Modifier and Type | Field and Description |
|---|---|
private Admin |
admin |
private org.apache.hadoop.hbase.protobuf.generated.RSGroupAdminProtos.RSGroupAdminService.BlockingInterface |
stub |
| Constructor and Description |
|---|
RSGroupAdminClient(Connection conn) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRSGroup(String groupName)
Creates a new RegionServer group with the given name.
|
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 name)
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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbalanceRSGroupprivate org.apache.hadoop.hbase.protobuf.generated.RSGroupAdminProtos.RSGroupAdminService.BlockingInterface stub
public RSGroupAdminClient(Connection conn) throws IOException
IOExceptionpublic RSGroupInfo getRSGroupInfo(String groupName) throws IOException
RSGroupAdminRSGroupInfo for given group name.getRSGroupInfo in interface RSGroupAdminIOExceptionpublic RSGroupInfo getRSGroupInfoOfTable(TableName tableName) throws IOException
RSGroupAdminRSGroupInfo for the given table's group.getRSGroupInfoOfTable in interface RSGroupAdminIOExceptionpublic void moveServers(Set<Address> servers, String targetGroup) throws IOException
RSGroupAdminmoveServers in interface RSGroupAdminIOExceptionpublic void moveTables(Set<TableName> tables, String targetGroup) throws IOException
RSGroupAdminmoveTables in interface RSGroupAdminIOExceptionpublic void addRSGroup(String groupName) throws IOException
RSGroupAdminaddRSGroup in interface RSGroupAdminIOExceptionpublic void removeRSGroup(String name) throws IOException
RSGroupAdminremoveRSGroup in interface RSGroupAdminIOExceptionpublic BalanceResponse balanceRSGroup(String groupName, BalanceRequest request) throws IOException
RSGroupAdminBalanceRequest.balanceRSGroup in interface RSGroupAdminIOExceptionpublic List<RSGroupInfo> listRSGroups() throws IOException
RSGroupAdminlistRSGroups in interface RSGroupAdminIOExceptionpublic RSGroupInfo getRSGroupOfServer(Address hostPort) throws IOException
RSGroupAdmingetRSGroupOfServer in interface RSGroupAdminhostPort - HostPort to get RSGroupInfo forIOExceptionpublic void moveServersAndTables(Set<Address> servers, Set<TableName> tables, String targetGroup) throws IOException
RSGroupAdminmoveServersAndTables in interface RSGroupAdminservers - set of servers to movetables - set of tables to movetargetGroup - the target group nameIOException - if moving the server and tables failpublic void removeServers(Set<Address> servers) throws IOException
RSGroupAdminremoveServers in interface RSGroupAdminservers - set of servers to removeIOExceptionpublic void renameRSGroup(String oldName, String newName) throws IOException
RSGroupAdminrenameRSGroup in interface RSGroupAdminoldName - old rsgroup namenewName - new rsgroup nameIOExceptionpublic void updateRSGroupConfig(String groupName, Map<String,String> configuration) throws IOException
RSGroupAdminupdateRSGroupConfig in interface RSGroupAdmingroupName - the group nameconfiguration - new configuration of the group name to be setIOException - if a remote or network exception occurspublic void updateConfiguration(String groupName) throws IOException
RSGroupAdminupdateConfiguration in interface RSGroupAdmingroupName - the group nameIOException - if a remote or network exception occursCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.