@InterfaceAudience.Private public class VerifyingRSGroupAdminClient extends Object implements RSGroupAdmin
| Constructor and Description |
|---|
VerifyingRSGroupAdminClient(RSGroupAdmin RSGroupAdmin,
org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRSGroup(String groupName) |
boolean |
balanceRSGroup(String groupName) |
RSGroupInfo |
getRSGroupInfo(String groupName) |
RSGroupInfo |
getRSGroupInfoOfTable(TableName tableName) |
RSGroupInfo |
getRSGroupOfServer(Address hostPort) |
List<RSGroupInfo> |
listRSGroups() |
void |
moveServers(Set<Address> servers,
String targetGroup) |
void |
moveServersAndTables(Set<Address> servers,
Set<TableName> tables,
String targetGroup) |
void |
moveTables(Set<TableName> tables,
String targetGroup) |
void |
removeRSGroup(String name) |
void |
removeServers(Set<Address> servers) |
void |
verify() |
public VerifyingRSGroupAdminClient(RSGroupAdmin RSGroupAdmin, org.apache.hadoop.conf.Configuration conf) throws IOException
IOExceptionpublic void addRSGroup(String groupName) throws IOException
addRSGroup in interface RSGroupAdminIOExceptionpublic RSGroupInfo getRSGroupInfo(String groupName) throws IOException
getRSGroupInfo in interface RSGroupAdminIOExceptionpublic RSGroupInfo getRSGroupInfoOfTable(TableName tableName) throws IOException
getRSGroupInfoOfTable in interface RSGroupAdminIOExceptionpublic void moveServers(Set<Address> servers, String targetGroup) throws IOException
moveServers in interface RSGroupAdminIOExceptionpublic void moveTables(Set<TableName> tables, String targetGroup) throws IOException
moveTables in interface RSGroupAdminIOExceptionpublic void removeRSGroup(String name) throws IOException
removeRSGroup in interface RSGroupAdminIOExceptionpublic boolean balanceRSGroup(String groupName) throws IOException
balanceRSGroup in interface RSGroupAdminIOExceptionpublic List<RSGroupInfo> listRSGroups() throws IOException
listRSGroups in interface RSGroupAdminIOExceptionpublic RSGroupInfo getRSGroupOfServer(Address hostPort) throws IOException
getRSGroupOfServer in interface RSGroupAdminIOExceptionpublic void moveServersAndTables(Set<Address> servers, Set<TableName> tables, String targetGroup) throws IOException
moveServersAndTables in interface RSGroupAdminIOExceptionpublic void removeServers(Set<Address> servers) throws IOException
removeServers in interface RSGroupAdminIOExceptionpublic void verify() throws IOException
IOExceptionCopyright © 2007–2019 Cloudera. All rights reserved.