Admin
instead.@Deprecated @InterfaceAudience.Private public class RSGroupAdminClient extends Object
Modifier and Type | Field and Description |
---|---|
private Admin |
admin
Deprecated.
|
private org.apache.hadoop.hbase.shaded.protobuf.generated.RSGroupAdminProtos.RSGroupAdminService.BlockingInterface |
stub
Deprecated.
|
Constructor and Description |
---|
RSGroupAdminClient(Connection conn)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addRSGroup(String groupName)
Deprecated.
Creates a new RegionServer group with the given name.
|
BalanceResponse |
balanceRSGroup(String groupName,
BalanceRequest request)
Deprecated.
Balance regions in the given RegionServer group.
|
RSGroupInfo |
getRSGroupInfo(String groupName)
Deprecated.
Gets
RSGroupInfo for given group name. |
RSGroupInfo |
getRSGroupInfoOfTable(TableName tableName)
Deprecated.
Gets
RSGroupInfo for the given table's group. |
RSGroupInfo |
getRSGroupOfServer(Address hostPort)
Deprecated.
Retrieve the RSGroupInfo a server is affiliated to
|
List<RSGroupInfo> |
listRSGroups()
Deprecated.
Lists current set of RegionServer groups.
|
void |
moveServers(Set<Address> servers,
String targetGroup)
Deprecated.
Move given set of servers to the specified target RegionServer group.
|
void |
moveServersAndTables(Set<Address> servers,
Set<TableName> tables,
String targetGroup)
Deprecated.
Move given set of servers and tables to the specified target RegionServer group.
|
void |
moveTables(Set<TableName> tables,
String targetGroup)
Deprecated.
Move given set of tables to the specified target RegionServer group.
|
void |
removeRSGroup(String name)
Deprecated.
Removes RegionServer group associated with the given name.
|
void |
removeServers(Set<Address> servers)
Deprecated.
Remove decommissioned servers from rsgroup.
|
private org.apache.hadoop.hbase.shaded.protobuf.generated.RSGroupAdminProtos.RSGroupAdminService.BlockingInterface stub
public RSGroupAdminClient(Connection conn) throws IOException
IOException
public RSGroupInfo getRSGroupInfo(String groupName) throws IOException
RSGroupInfo
for given group name.IOException
public RSGroupInfo getRSGroupInfoOfTable(TableName tableName) throws IOException
RSGroupInfo
for the given table's group.IOException
public void moveServers(Set<Address> servers, String targetGroup) throws IOException
IOException
public void moveTables(Set<TableName> tables, String targetGroup) throws IOException
IOException
public void addRSGroup(String groupName) throws IOException
IOException
public void removeRSGroup(String name) throws IOException
IOException
public BalanceResponse balanceRSGroup(String groupName, BalanceRequest request) throws IOException
IOException
public List<RSGroupInfo> listRSGroups() throws IOException
IOException
public RSGroupInfo getRSGroupOfServer(Address hostPort) throws IOException
hostPort
- HostPort to get RSGroupInfo forIOException
public void 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 failpublic void removeServers(Set<Address> servers) throws IOException
servers
- set of servers to removeIOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.