public interface RSGroupAdmin
| Modifier and Type | Method and Description |
|---|---|
void |
addRSGroup(java.lang.String groupName)
Creates a new RegionServer group with the given name.
|
boolean |
balanceRSGroup(java.lang.String groupName)
Balance regions in the given RegionServer group.
|
RSGroupInfo |
getRSGroupInfo(java.lang.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
|
java.util.List<RSGroupInfo> |
listRSGroups()
Lists current set of RegionServer groups.
|
void |
moveServers(java.util.Set<Address> servers,
java.lang.String targetGroup)
Move given set of servers to the specified target RegionServer group.
|
void |
moveServersAndTables(java.util.Set<Address> servers,
java.util.Set<TableName> tables,
java.lang.String targetGroup)
Move given set of servers and tables to the specified target RegionServer group.
|
void |
moveTables(java.util.Set<TableName> tables,
java.lang.String targetGroup)
Move given set of tables to the specified target RegionServer group.
|
void |
removeRSGroup(java.lang.String groupName)
Removes RegionServer group associated with the given name.
|
void |
removeServers(java.util.Set<Address> servers)
Remove decommissioned servers from rsgroup.
|
RSGroupInfo getRSGroupInfo(java.lang.String groupName)
throws java.io.IOException
RSGroupInfo for given group name.java.io.IOExceptionRSGroupInfo getRSGroupInfoOfTable(TableName tableName)
throws java.io.IOException
RSGroupInfo for the given table's group.java.io.IOExceptionvoid moveServers(java.util.Set<Address> servers,
java.lang.String targetGroup)
throws java.io.IOException
java.io.IOExceptionvoid moveTables(java.util.Set<TableName> tables,
java.lang.String targetGroup)
throws java.io.IOException
java.io.IOExceptionvoid addRSGroup(java.lang.String groupName)
throws java.io.IOException
java.io.IOExceptionvoid removeRSGroup(java.lang.String groupName)
throws java.io.IOException
java.io.IOExceptionboolean balanceRSGroup(java.lang.String groupName)
throws java.io.IOException
java.io.IOExceptionjava.util.List<RSGroupInfo> listRSGroups()
throws java.io.IOException
java.io.IOExceptionRSGroupInfo getRSGroupOfServer(Address hostPort)
throws java.io.IOException
hostPort - HostPort to get RSGroupInfo forjava.io.IOExceptionvoid moveServersAndTables(java.util.Set<Address> servers,
java.util.Set<TableName> tables,
java.lang.String targetGroup)
throws java.io.IOException
servers - set of servers to movetables - set of tables to movetargetGroup - the target group namejava.io.IOException - if moving the server and tables failvoid removeServers(java.util.Set<Address> servers)
throws java.io.IOException
servers - set of servers to removejava.io.IOException