Package org.apache.hadoop.hbase.rsgroup
Class VerifyingRSGroupAdminClient
java.lang.Object
org.apache.hadoop.hbase.rsgroup.VerifyingRSGroupAdminClient
- All Implemented Interfaces:
org.apache.hadoop.hbase.rsgroup.RSGroupAdmin
@Private
public class VerifyingRSGroupAdminClient
extends Object
implements org.apache.hadoop.hbase.rsgroup.RSGroupAdmin
-
Field Summary
-
Constructor Summary
ConstructorDescriptionVerifyingRSGroupAdminClient
(org.apache.hadoop.hbase.rsgroup.RSGroupAdmin RSGroupAdmin, org.apache.hadoop.conf.Configuration conf) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addRSGroup
(String groupName) org.apache.hadoop.hbase.client.BalanceResponse
balanceRSGroup
(String groupName, org.apache.hadoop.hbase.client.BalanceRequest request) org.apache.hadoop.hbase.rsgroup.RSGroupInfo
getRSGroupInfo
(String groupName) org.apache.hadoop.hbase.rsgroup.RSGroupInfo
getRSGroupInfoOfTable
(org.apache.hadoop.hbase.TableName tableName) org.apache.hadoop.hbase.rsgroup.RSGroupInfo
getRSGroupOfServer
(org.apache.hadoop.hbase.net.Address hostPort) List<org.apache.hadoop.hbase.rsgroup.RSGroupInfo>
void
moveServers
(Set<org.apache.hadoop.hbase.net.Address> servers, String targetGroup) void
moveServersAndTables
(Set<org.apache.hadoop.hbase.net.Address> servers, Set<org.apache.hadoop.hbase.TableName> tables, String targetGroup) void
moveTables
(Set<org.apache.hadoop.hbase.TableName> tables, String targetGroup) void
removeRSGroup
(String name) void
removeServers
(Set<org.apache.hadoop.hbase.net.Address> servers) void
renameRSGroup
(String oldName, String newName) void
updateConfiguration
(String groupName) void
updateRSGroupConfig
(String groupName, Map<String, String> configuration) void
verify()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.hadoop.hbase.rsgroup.RSGroupAdmin
balanceRSGroup
-
Field Details
-
table
-
zkw
-
wrapped
-
-
Constructor Details
-
VerifyingRSGroupAdminClient
public VerifyingRSGroupAdminClient(org.apache.hadoop.hbase.rsgroup.RSGroupAdmin RSGroupAdmin, org.apache.hadoop.conf.Configuration conf) throws IOException - Throws:
IOException
-
-
Method Details
-
addRSGroup
- Specified by:
addRSGroup
in interfaceorg.apache.hadoop.hbase.rsgroup.RSGroupAdmin
- Throws:
IOException
-
getRSGroupInfo
public org.apache.hadoop.hbase.rsgroup.RSGroupInfo getRSGroupInfo(String groupName) throws IOException - Specified by:
getRSGroupInfo
in interfaceorg.apache.hadoop.hbase.rsgroup.RSGroupAdmin
- Throws:
IOException
-
getRSGroupInfoOfTable
public org.apache.hadoop.hbase.rsgroup.RSGroupInfo getRSGroupInfoOfTable(org.apache.hadoop.hbase.TableName tableName) throws IOException - Specified by:
getRSGroupInfoOfTable
in interfaceorg.apache.hadoop.hbase.rsgroup.RSGroupAdmin
- Throws:
IOException
-
moveServers
public void moveServers(Set<org.apache.hadoop.hbase.net.Address> servers, String targetGroup) throws IOException - Specified by:
moveServers
in interfaceorg.apache.hadoop.hbase.rsgroup.RSGroupAdmin
- Throws:
IOException
-
moveTables
public void moveTables(Set<org.apache.hadoop.hbase.TableName> tables, String targetGroup) throws IOException - Specified by:
moveTables
in interfaceorg.apache.hadoop.hbase.rsgroup.RSGroupAdmin
- Throws:
IOException
-
removeRSGroup
- Specified by:
removeRSGroup
in interfaceorg.apache.hadoop.hbase.rsgroup.RSGroupAdmin
- Throws:
IOException
-
balanceRSGroup
public org.apache.hadoop.hbase.client.BalanceResponse balanceRSGroup(String groupName, org.apache.hadoop.hbase.client.BalanceRequest request) throws IOException - Specified by:
balanceRSGroup
in interfaceorg.apache.hadoop.hbase.rsgroup.RSGroupAdmin
- Throws:
IOException
-
listRSGroups
- Specified by:
listRSGroups
in interfaceorg.apache.hadoop.hbase.rsgroup.RSGroupAdmin
- Throws:
IOException
-
getRSGroupOfServer
public org.apache.hadoop.hbase.rsgroup.RSGroupInfo getRSGroupOfServer(org.apache.hadoop.hbase.net.Address hostPort) throws IOException - Specified by:
getRSGroupOfServer
in interfaceorg.apache.hadoop.hbase.rsgroup.RSGroupAdmin
- Throws:
IOException
-
moveServersAndTables
public void moveServersAndTables(Set<org.apache.hadoop.hbase.net.Address> servers, Set<org.apache.hadoop.hbase.TableName> tables, String targetGroup) throws IOException - Specified by:
moveServersAndTables
in interfaceorg.apache.hadoop.hbase.rsgroup.RSGroupAdmin
- Throws:
IOException
-
removeServers
- Specified by:
removeServers
in interfaceorg.apache.hadoop.hbase.rsgroup.RSGroupAdmin
- Throws:
IOException
-
renameRSGroup
- Specified by:
renameRSGroup
in interfaceorg.apache.hadoop.hbase.rsgroup.RSGroupAdmin
- Throws:
IOException
-
updateRSGroupConfig
public void updateRSGroupConfig(String groupName, Map<String, String> configuration) throws IOException- Specified by:
updateRSGroupConfig
in interfaceorg.apache.hadoop.hbase.rsgroup.RSGroupAdmin
- Throws:
IOException
-
updateConfiguration
- Specified by:
updateConfiguration
in interfaceorg.apache.hadoop.hbase.rsgroup.RSGroupAdmin
- Throws:
IOException
-
verify
- Throws:
IOException
-