2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
21 option java_package = "org.apache.hadoop.hbase.shaded.protobuf.generated";
22 option java_outer_classname = "RSGroupAdminProtos";
23 option java_generic_services = true;
24 option java_generate_equals_and_hash = true;
25 option optimize_for = SPEED;
28 import "RSGroup.proto";
30 /** Group level protobufs */
32 message ListTablesOfRSGroupRequest {
33 required string r_s_group_name = 1;
36 message ListTablesOfRSGroupResponse {
37 repeated TableName table_name = 1;
40 message GetRSGroupInfoRequest {
41 required string r_s_group_name = 1;
44 message GetRSGroupInfoResponse {
45 optional RSGroupInfo r_s_group_info = 1;
48 message GetRSGroupInfoOfTableRequest {
49 required TableName table_name = 1;
52 message GetRSGroupInfoOfTableResponse {
53 optional RSGroupInfo r_s_group_info = 1;
56 message MoveServersRequest {
57 required string target_group = 1;
58 repeated ServerName servers = 3;
61 message MoveServersResponse {
64 message MoveTablesRequest {
65 required string target_group = 1;
66 repeated TableName table_name = 2;
69 message MoveTablesResponse {
72 message AddRSGroupRequest {
73 required string r_s_group_name = 1;
76 message AddRSGroupResponse {
79 message RemoveRSGroupRequest {
80 required string r_s_group_name = 1;
83 message RemoveRSGroupResponse {
86 message BalanceRSGroupRequest {
87 required string r_s_group_name = 1;
90 message BalanceRSGroupResponse {
91 required bool balanceRan = 1;
94 message ListRSGroupInfosRequest {
97 message ListRSGroupInfosResponse {
98 repeated RSGroupInfo r_s_group_info = 1;
101 message GetRSGroupInfoOfServerRequest {
102 required ServerName server = 2;
105 message GetRSGroupInfoOfServerResponse {
106 optional RSGroupInfo r_s_group_info = 1;
109 message MoveServersAndTablesRequest {
110 required string target_group = 1;
111 repeated ServerName servers = 2;
112 repeated TableName table_name = 3;
115 message MoveServersAndTablesResponse {
118 message RemoveServersRequest {
119 repeated ServerName servers = 1;
122 message RemoveServersResponse {
125 service RSGroupAdminService {
126 rpc GetRSGroupInfo(GetRSGroupInfoRequest)
127 returns (GetRSGroupInfoResponse);
129 rpc GetRSGroupInfoOfTable(GetRSGroupInfoOfTableRequest)
130 returns (GetRSGroupInfoOfTableResponse);
132 rpc GetRSGroupInfoOfServer(GetRSGroupInfoOfServerRequest)
133 returns (GetRSGroupInfoOfServerResponse);
135 rpc MoveServers(MoveServersRequest)
136 returns (MoveServersResponse);
138 rpc MoveTables(MoveTablesRequest)
139 returns (MoveTablesResponse);
141 rpc AddRSGroup(AddRSGroupRequest)
142 returns (AddRSGroupResponse);
144 rpc RemoveRSGroup(RemoveRSGroupRequest)
145 returns (RemoveRSGroupResponse);
147 rpc BalanceRSGroup(BalanceRSGroupRequest)
148 returns (BalanceRSGroupResponse);
150 rpc ListRSGroupInfos(ListRSGroupInfosRequest)
151 returns (ListRSGroupInfosResponse);
153 rpc MoveServersAndTables(MoveServersAndTablesRequest)
154 returns (MoveServersAndTablesResponse);
156 rpc RemoveServers(RemoveServersRequest)
157 returns (RemoveServersResponse);