001/** 002 * Licensed to the Apache Software Foundation (ASF) under one 003 * or more contributor license agreements. See the NOTICE file 004 * distributed with this work for additional information 005 * regarding copyright ownership. The ASF licenses this file 006 * to you under the Apache License, Version 2.0 (the 007 * "License"); you may not use this file except in compliance 008 * with the License. You may obtain a copy of the License at 009 * 010 * http://www.apache.org/licenses/LICENSE-2.0 011 * 012 * Unless required by applicable law or agreed to in writing, software 013 * distributed under the License is distributed on an "AS IS" BASIS, 014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 015 * See the License for the specific language governing permissions and 016 * limitations under the License. 017 */ 018package org.apache.hadoop.hbase.client; 019 020import org.apache.yetus.audience.InterfaceAudience; 021import org.apache.hbase.thirdparty.com.google.protobuf.RpcController; 022import org.apache.hbase.thirdparty.com.google.protobuf.ServiceException; 023 024import org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.GetUserPermissionsRequest; 025import org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.GetUserPermissionsResponse; 026import org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.GrantRequest; 027import org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.GrantResponse; 028import org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.HasUserPermissionsRequest; 029import org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.HasUserPermissionsResponse; 030import org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.RevokeRequest; 031import org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.RevokeResponse; 032import org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.CoprocessorServiceRequest; 033import org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.CoprocessorServiceResponse; 034 035import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.AbortProcedureRequest; 036import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.AbortProcedureResponse; 037import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.AddColumnRequest; 038import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.AddColumnResponse; 039import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.AssignRegionRequest; 040import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.AssignRegionResponse; 041import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.BalanceRequest; 042import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.BalanceResponse; 043import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.ClearDeadServersRequest; 044import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.ClearDeadServersResponse; 045import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.CreateNamespaceRequest; 046import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.CreateNamespaceResponse; 047import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.CreateTableRequest; 048import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.CreateTableResponse; 049import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.DecommissionRegionServersRequest; 050import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.DecommissionRegionServersResponse; 051import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.DeleteColumnRequest; 052import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.DeleteColumnResponse; 053import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.DeleteNamespaceRequest; 054import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.DeleteNamespaceResponse; 055import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.DeleteSnapshotRequest; 056import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.DeleteSnapshotResponse; 057import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.DeleteTableRequest; 058import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.DeleteTableResponse; 059import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.DisableTableRequest; 060import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.DisableTableResponse; 061import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.EnableCatalogJanitorRequest; 062import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.EnableCatalogJanitorResponse; 063import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.EnableTableRequest; 064import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.EnableTableResponse; 065import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.ExecProcedureRequest; 066import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.ExecProcedureResponse; 067import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.GetClusterStatusRequest; 068import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.GetClusterStatusResponse; 069import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.GetCompletedSnapshotsRequest; 070import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.GetCompletedSnapshotsResponse; 071import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.GetLocksRequest; 072import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.GetLocksResponse; 073import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.GetNamespaceDescriptorRequest; 074import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.GetNamespaceDescriptorResponse; 075import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.GetProcedureResultRequest; 076import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.GetProcedureResultResponse; 077import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.GetProceduresRequest; 078import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.GetProceduresResponse; 079import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.GetSchemaAlterStatusRequest; 080import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.GetSchemaAlterStatusResponse; 081import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.GetTableDescriptorsRequest; 082import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.GetTableDescriptorsResponse; 083import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.GetTableNamesRequest; 084import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.GetTableNamesResponse; 085import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.GetTableStateRequest; 086import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.GetTableStateResponse; 087import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.IsBalancerEnabledRequest; 088import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.IsBalancerEnabledResponse; 089import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.IsCatalogJanitorEnabledRequest; 090import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.IsCatalogJanitorEnabledResponse; 091import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.IsCleanerChoreEnabledRequest; 092import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.IsCleanerChoreEnabledResponse; 093import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.IsInMaintenanceModeRequest; 094import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.IsInMaintenanceModeResponse; 095import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.IsMasterRunningRequest; 096import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.IsMasterRunningResponse; 097import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.IsNormalizerEnabledRequest; 098import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.IsNormalizerEnabledResponse; 099import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.IsProcedureDoneRequest; 100import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.IsProcedureDoneResponse; 101import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.IsRpcThrottleEnabledRequest; 102import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.IsRpcThrottleEnabledResponse; 103import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos 104 .IsSnapshotCleanupEnabledRequest; 105import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos 106 .IsSnapshotCleanupEnabledResponse; 107import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.IsSnapshotDoneRequest; 108import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.IsSnapshotDoneResponse; 109import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.IsSplitOrMergeEnabledRequest; 110import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.IsSplitOrMergeEnabledResponse; 111import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.ListDecommissionedRegionServersRequest; 112import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.ListDecommissionedRegionServersResponse; 113import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.ListNamespaceDescriptorsRequest; 114import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.ListNamespaceDescriptorsResponse; 115import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.ListNamespacesRequest; 116import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.ListNamespacesResponse; 117import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.ListTableDescriptorsByNamespaceRequest; 118import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.ListTableDescriptorsByNamespaceResponse; 119import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.ListTableNamesByNamespaceRequest; 120import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.ListTableNamesByNamespaceResponse; 121import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MajorCompactionTimestampForRegionRequest; 122import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MajorCompactionTimestampRequest; 123import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MajorCompactionTimestampResponse; 124import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService; 125import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MergeTableRegionsRequest; 126import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MergeTableRegionsResponse; 127import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.ModifyColumnRequest; 128import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.ModifyColumnResponse; 129import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.ModifyNamespaceRequest; 130import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.ModifyNamespaceResponse; 131import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.ModifyTableRequest; 132import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.ModifyTableResponse; 133import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MoveRegionRequest; 134import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MoveRegionResponse; 135import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.NormalizeRequest; 136import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.NormalizeResponse; 137import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.OfflineRegionRequest; 138import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.OfflineRegionResponse; 139import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.RecommissionRegionServerRequest; 140import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.RecommissionRegionServerResponse; 141import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.RestoreSnapshotRequest; 142import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.RestoreSnapshotResponse; 143import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.RunCatalogScanRequest; 144import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.RunCatalogScanResponse; 145import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.RunCleanerChoreRequest; 146import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.RunCleanerChoreResponse; 147import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.SecurityCapabilitiesRequest; 148import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse; 149import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.SetBalancerRunningRequest; 150import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.SetBalancerRunningResponse; 151import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.SetCleanerChoreRunningRequest; 152import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.SetCleanerChoreRunningResponse; 153import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.SetNormalizerRunningRequest; 154import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.SetNormalizerRunningResponse; 155import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.SetQuotaRequest; 156import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.SetQuotaResponse; 157import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.SetSnapshotCleanupRequest; 158import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.SetSnapshotCleanupResponse; 159import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledRequest; 160import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledResponse; 161import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.ShutdownRequest; 162import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.ShutdownResponse; 163import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.SnapshotRequest; 164import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.SnapshotResponse; 165import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.SplitTableRegionRequest; 166import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.SplitTableRegionResponse; 167import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.StopMasterRequest; 168import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.StopMasterResponse; 169import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.SwitchExceedThrottleQuotaRequest; 170import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.SwitchExceedThrottleQuotaResponse; 171import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.SwitchRpcThrottleRequest; 172import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.SwitchRpcThrottleResponse; 173import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.TruncateTableRequest; 174import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.TruncateTableResponse; 175import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.UnassignRegionRequest; 176import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.UnassignRegionResponse; 177import org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.GetQuotaStatesRequest; 178import org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.GetQuotaStatesResponse; 179import org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.GetSpaceQuotaRegionSizesRequest; 180import org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.GetSpaceQuotaRegionSizesResponse; 181import org.apache.hadoop.hbase.shaded.protobuf.generated.ReplicationProtos.AddReplicationPeerRequest; 182import org.apache.hadoop.hbase.shaded.protobuf.generated.ReplicationProtos.AddReplicationPeerResponse; 183import org.apache.hadoop.hbase.shaded.protobuf.generated.ReplicationProtos.DisableReplicationPeerRequest; 184import org.apache.hadoop.hbase.shaded.protobuf.generated.ReplicationProtos.DisableReplicationPeerResponse; 185import org.apache.hadoop.hbase.shaded.protobuf.generated.ReplicationProtos.EnableReplicationPeerRequest; 186import org.apache.hadoop.hbase.shaded.protobuf.generated.ReplicationProtos.EnableReplicationPeerResponse; 187import org.apache.hadoop.hbase.shaded.protobuf.generated.ReplicationProtos.GetReplicationPeerConfigRequest; 188import org.apache.hadoop.hbase.shaded.protobuf.generated.ReplicationProtos.GetReplicationPeerConfigResponse; 189import org.apache.hadoop.hbase.shaded.protobuf.generated.ReplicationProtos.ListReplicationPeersRequest; 190import org.apache.hadoop.hbase.shaded.protobuf.generated.ReplicationProtos.ListReplicationPeersResponse; 191import org.apache.hadoop.hbase.shaded.protobuf.generated.ReplicationProtos.RemoveReplicationPeerRequest; 192import org.apache.hadoop.hbase.shaded.protobuf.generated.ReplicationProtos.RemoveReplicationPeerResponse; 193import org.apache.hadoop.hbase.shaded.protobuf.generated.ReplicationProtos.UpdateReplicationPeerConfigRequest; 194import org.apache.hadoop.hbase.shaded.protobuf.generated.ReplicationProtos.UpdateReplicationPeerConfigResponse; 195 196/** 197 * A short-circuit connection that can bypass the RPC layer (serialization, deserialization, 198 * networking, etc..) when talking to a local master 199 */ 200@InterfaceAudience.Private 201public class ShortCircuitMasterConnection implements MasterKeepAliveConnection { 202 203 private final MasterService.BlockingInterface stub; 204 205 public ShortCircuitMasterConnection(MasterService.BlockingInterface stub) { 206 this.stub = stub; 207 } 208 209 @Override 210 public UnassignRegionResponse unassignRegion(RpcController controller, 211 UnassignRegionRequest request) throws ServiceException { 212 return stub.unassignRegion(controller, request); 213 } 214 215 @Override 216 public TruncateTableResponse truncateTable(RpcController controller, TruncateTableRequest request) 217 throws ServiceException { 218 return stub.truncateTable(controller, request); 219 } 220 221 @Override 222 public StopMasterResponse stopMaster(RpcController controller, StopMasterRequest request) 223 throws ServiceException { 224 return stub.stopMaster(controller, request); 225 } 226 227 @Override 228 public SnapshotResponse snapshot(RpcController controller, SnapshotRequest request) 229 throws ServiceException { 230 return stub.snapshot(controller, request); 231 } 232 233 @Override 234 public ShutdownResponse shutdown(RpcController controller, ShutdownRequest request) 235 throws ServiceException { 236 return stub.shutdown(controller, request); 237 } 238 239 @Override 240 public SetSplitOrMergeEnabledResponse setSplitOrMergeEnabled(RpcController controller, 241 SetSplitOrMergeEnabledRequest request) throws ServiceException { 242 return stub.setSplitOrMergeEnabled(controller, request); 243 } 244 245 @Override 246 public SetQuotaResponse setQuota(RpcController controller, SetQuotaRequest request) 247 throws ServiceException { 248 return stub.setQuota(controller, request); 249 } 250 251 @Override 252 public SetNormalizerRunningResponse setNormalizerRunning(RpcController controller, 253 SetNormalizerRunningRequest request) throws ServiceException { 254 return stub.setNormalizerRunning(controller, request); 255 } 256 257 @Override 258 public SetBalancerRunningResponse setBalancerRunning(RpcController controller, 259 SetBalancerRunningRequest request) throws ServiceException { 260 return stub.setBalancerRunning(controller, request); 261 } 262 263 @Override 264 public RunCatalogScanResponse runCatalogScan(RpcController controller, 265 RunCatalogScanRequest request) throws ServiceException { 266 return stub.runCatalogScan(controller, request); 267 } 268 269 @Override 270 public RestoreSnapshotResponse restoreSnapshot(RpcController controller, 271 RestoreSnapshotRequest request) throws ServiceException { 272 return stub.restoreSnapshot(controller, request); 273 } 274 275 @Override 276 public SetSnapshotCleanupResponse switchSnapshotCleanup(RpcController controller, 277 SetSnapshotCleanupRequest request) throws ServiceException { 278 return stub.switchSnapshotCleanup(controller, request); 279 } 280 281 @Override 282 public IsSnapshotCleanupEnabledResponse isSnapshotCleanupEnabled( 283 RpcController controller, IsSnapshotCleanupEnabledRequest request) 284 throws ServiceException { 285 return stub.isSnapshotCleanupEnabled(controller, request); 286 } 287 288 @Override 289 public RemoveReplicationPeerResponse removeReplicationPeer(RpcController controller, 290 RemoveReplicationPeerRequest request) throws ServiceException { 291 return stub.removeReplicationPeer(controller, request); 292 } 293 294 @Override 295 public RecommissionRegionServerResponse recommissionRegionServer(RpcController controller, 296 RecommissionRegionServerRequest request) throws ServiceException { 297 return stub.recommissionRegionServer(controller, request); 298 } 299 300 @Override 301 public OfflineRegionResponse offlineRegion(RpcController controller, OfflineRegionRequest request) 302 throws ServiceException { 303 return stub.offlineRegion(controller, request); 304 } 305 306 @Override 307 public NormalizeResponse normalize(RpcController controller, NormalizeRequest request) 308 throws ServiceException { 309 return stub.normalize(controller, request); 310 } 311 312 @Override 313 public MoveRegionResponse moveRegion(RpcController controller, MoveRegionRequest request) 314 throws ServiceException { 315 return stub.moveRegion(controller, request); 316 } 317 318 @Override 319 public ModifyTableResponse modifyTable(RpcController controller, ModifyTableRequest request) 320 throws ServiceException { 321 return stub.modifyTable(controller, request); 322 } 323 324 @Override 325 public ModifyNamespaceResponse modifyNamespace(RpcController controller, 326 ModifyNamespaceRequest request) throws ServiceException { 327 return stub.modifyNamespace(controller, request); 328 } 329 330 @Override 331 public ModifyColumnResponse modifyColumn(RpcController controller, ModifyColumnRequest request) 332 throws ServiceException { 333 return stub.modifyColumn(controller, request); 334 } 335 336 @Override 337 public MergeTableRegionsResponse mergeTableRegions(RpcController controller, 338 MergeTableRegionsRequest request) throws ServiceException { 339 return stub.mergeTableRegions(controller, request); 340 } 341 342 @Override 343 public ListTableNamesByNamespaceResponse listTableNamesByNamespace(RpcController controller, 344 ListTableNamesByNamespaceRequest request) throws ServiceException { 345 return stub.listTableNamesByNamespace(controller, request); 346 } 347 348 @Override 349 public ListTableDescriptorsByNamespaceResponse listTableDescriptorsByNamespace( 350 RpcController controller, ListTableDescriptorsByNamespaceRequest request) 351 throws ServiceException { 352 return stub.listTableDescriptorsByNamespace(controller, request); 353 } 354 355 @Override 356 public GetProceduresResponse getProcedures(RpcController controller, 357 GetProceduresRequest request) throws ServiceException { 358 return stub.getProcedures(controller, request); 359 } 360 361 @Override 362 public GetLocksResponse getLocks(RpcController controller, 363 GetLocksRequest request) throws ServiceException { 364 return stub.getLocks(controller, request); 365 } 366 367 @Override 368 public ListNamespaceDescriptorsResponse listNamespaceDescriptors(RpcController controller, 369 ListNamespaceDescriptorsRequest request) throws ServiceException { 370 return stub.listNamespaceDescriptors(controller, request); 371 } 372 373 @Override 374 public ListDecommissionedRegionServersResponse listDecommissionedRegionServers(RpcController controller, 375 ListDecommissionedRegionServersRequest request) throws ServiceException { 376 return stub.listDecommissionedRegionServers(controller, request); 377 } 378 379 @Override 380 public IsSplitOrMergeEnabledResponse isSplitOrMergeEnabled(RpcController controller, 381 IsSplitOrMergeEnabledRequest request) throws ServiceException { 382 return stub.isSplitOrMergeEnabled(controller, request); 383 } 384 385 @Override 386 public IsSnapshotDoneResponse isSnapshotDone(RpcController controller, 387 IsSnapshotDoneRequest request) throws ServiceException { 388 return stub.isSnapshotDone(controller, request); 389 } 390 391 @Override 392 public IsProcedureDoneResponse isProcedureDone(RpcController controller, 393 IsProcedureDoneRequest request) throws ServiceException { 394 return stub.isProcedureDone(controller, request); 395 } 396 397 @Override 398 public IsNormalizerEnabledResponse isNormalizerEnabled(RpcController controller, 399 IsNormalizerEnabledRequest request) throws ServiceException { 400 return stub.isNormalizerEnabled(controller, request); 401 } 402 403 @Override 404 public IsMasterRunningResponse isMasterRunning(RpcController controller, 405 IsMasterRunningRequest request) throws ServiceException { 406 return stub.isMasterRunning(controller, request); 407 } 408 409 @Override 410 public IsInMaintenanceModeResponse isMasterInMaintenanceMode(RpcController controller, 411 IsInMaintenanceModeRequest request) throws ServiceException { 412 return stub.isMasterInMaintenanceMode(controller, request); 413 } 414 415 @Override 416 public IsCatalogJanitorEnabledResponse isCatalogJanitorEnabled(RpcController controller, 417 IsCatalogJanitorEnabledRequest request) throws ServiceException { 418 return stub.isCatalogJanitorEnabled(controller, request); 419 } 420 421 @Override 422 public IsBalancerEnabledResponse isBalancerEnabled(RpcController controller, 423 IsBalancerEnabledRequest request) throws ServiceException { 424 return stub.isBalancerEnabled(controller, request); 425 } 426 427 @Override 428 public GetTableStateResponse getTableState(RpcController controller, GetTableStateRequest request) 429 throws ServiceException { 430 return stub.getTableState(controller, request); 431 } 432 433 @Override 434 public GetTableNamesResponse getTableNames(RpcController controller, GetTableNamesRequest request) 435 throws ServiceException { 436 return stub.getTableNames(controller, request); 437 } 438 439 @Override 440 public GetTableDescriptorsResponse getTableDescriptors(RpcController controller, 441 GetTableDescriptorsRequest request) throws ServiceException { 442 return stub.getTableDescriptors(controller, request); 443 } 444 445 @Override 446 public SecurityCapabilitiesResponse getSecurityCapabilities(RpcController controller, 447 SecurityCapabilitiesRequest request) throws ServiceException { 448 return stub.getSecurityCapabilities(controller, request); 449 } 450 451 @Override 452 public GetSchemaAlterStatusResponse getSchemaAlterStatus(RpcController controller, 453 GetSchemaAlterStatusRequest request) throws ServiceException { 454 return stub.getSchemaAlterStatus(controller, request); 455 } 456 457 @Override 458 public GetProcedureResultResponse getProcedureResult(RpcController controller, 459 GetProcedureResultRequest request) throws ServiceException { 460 return stub.getProcedureResult(controller, request); 461 } 462 463 @Override 464 public GetNamespaceDescriptorResponse getNamespaceDescriptor(RpcController controller, 465 GetNamespaceDescriptorRequest request) throws ServiceException { 466 return stub.getNamespaceDescriptor(controller, request); 467 } 468 469 @Override 470 public ListNamespacesResponse listNamespaces(RpcController controller, 471 ListNamespacesRequest request) throws ServiceException { 472 return stub.listNamespaces(controller, request); 473 } 474 475 @Override 476 public MajorCompactionTimestampResponse getLastMajorCompactionTimestampForRegion( 477 RpcController controller, MajorCompactionTimestampForRegionRequest request) 478 throws ServiceException { 479 return stub.getLastMajorCompactionTimestampForRegion(controller, request); 480 } 481 482 @Override 483 public MajorCompactionTimestampResponse getLastMajorCompactionTimestamp(RpcController controller, 484 MajorCompactionTimestampRequest request) throws ServiceException { 485 return stub.getLastMajorCompactionTimestamp(controller, request); 486 } 487 488 @Override 489 public GetCompletedSnapshotsResponse getCompletedSnapshots(RpcController controller, 490 GetCompletedSnapshotsRequest request) throws ServiceException { 491 return stub.getCompletedSnapshots(controller, request); 492 } 493 494 @Override 495 public GetClusterStatusResponse getClusterStatus(RpcController controller, 496 GetClusterStatusRequest request) throws ServiceException { 497 return stub.getClusterStatus(controller, request); 498 } 499 500 @Override 501 public ExecProcedureResponse execProcedureWithRet(RpcController controller, 502 ExecProcedureRequest request) throws ServiceException { 503 return stub.execProcedureWithRet(controller, request); 504 } 505 506 @Override 507 public ExecProcedureResponse execProcedure(RpcController controller, ExecProcedureRequest request) 508 throws ServiceException { 509 return stub.execProcedure(controller, request); 510 } 511 512 @Override 513 public CoprocessorServiceResponse execMasterService(RpcController controller, 514 CoprocessorServiceRequest request) throws ServiceException { 515 return stub.execMasterService(controller, request); 516 } 517 518 @Override 519 public EnableTableResponse enableTable(RpcController controller, EnableTableRequest request) 520 throws ServiceException { 521 return stub.enableTable(controller, request); 522 } 523 524 @Override 525 public EnableReplicationPeerResponse enableReplicationPeer(RpcController controller, 526 EnableReplicationPeerRequest request) throws ServiceException { 527 return stub.enableReplicationPeer(controller, request); 528 } 529 530 @Override 531 public EnableCatalogJanitorResponse enableCatalogJanitor(RpcController controller, 532 EnableCatalogJanitorRequest request) throws ServiceException { 533 return stub.enableCatalogJanitor(controller, request); 534 } 535 536 @Override 537 public DecommissionRegionServersResponse decommissionRegionServers(RpcController controller, 538 DecommissionRegionServersRequest request) throws ServiceException { 539 return stub.decommissionRegionServers(controller, request); 540 } 541 542 @Override 543 public DisableTableResponse disableTable(RpcController controller, DisableTableRequest request) 544 throws ServiceException { 545 return stub.disableTable(controller, request); 546 } 547 548 @Override 549 public DisableReplicationPeerResponse disableReplicationPeer(RpcController controller, 550 DisableReplicationPeerRequest request) throws ServiceException { 551 return stub.disableReplicationPeer(controller, request); 552 } 553 554 @Override 555 public DeleteTableResponse deleteTable(RpcController controller, DeleteTableRequest request) 556 throws ServiceException { 557 return stub.deleteTable(controller, request); 558 } 559 560 @Override 561 public DeleteSnapshotResponse deleteSnapshot(RpcController controller, 562 DeleteSnapshotRequest request) throws ServiceException { 563 return stub.deleteSnapshot(controller, request); 564 } 565 566 @Override 567 public DeleteNamespaceResponse deleteNamespace(RpcController controller, 568 DeleteNamespaceRequest request) throws ServiceException { 569 return stub.deleteNamespace(controller, request); 570 } 571 572 @Override 573 public DeleteColumnResponse deleteColumn(RpcController controller, DeleteColumnRequest request) 574 throws ServiceException { 575 return stub.deleteColumn(controller, request); 576 } 577 578 @Override 579 public CreateTableResponse createTable(RpcController controller, CreateTableRequest request) 580 throws ServiceException { 581 return stub.createTable(controller, request); 582 } 583 584 @Override 585 public CreateNamespaceResponse createNamespace(RpcController controller, 586 CreateNamespaceRequest request) throws ServiceException { 587 return stub.createNamespace(controller, request); 588 } 589 590 @Override 591 public BalanceResponse balance(RpcController controller, BalanceRequest request) 592 throws ServiceException { 593 return stub.balance(controller, request); 594 } 595 596 @Override 597 public AssignRegionResponse assignRegion(RpcController controller, AssignRegionRequest request) 598 throws ServiceException { 599 return stub.assignRegion(controller, request); 600 } 601 602 @Override 603 public AddReplicationPeerResponse addReplicationPeer(RpcController controller, 604 AddReplicationPeerRequest request) throws ServiceException { 605 return stub.addReplicationPeer(controller, request); 606 } 607 608 @Override 609 public AddColumnResponse addColumn(RpcController controller, AddColumnRequest request) 610 throws ServiceException { 611 return stub.addColumn(controller, request); 612 } 613 614 @Override 615 public AbortProcedureResponse abortProcedure(RpcController controller, 616 AbortProcedureRequest request) throws ServiceException { 617 return stub.abortProcedure(controller, request); 618 } 619 620 @Override 621 public void close() { 622 // nothing to do here 623 } 624 625 @Override 626 public RunCleanerChoreResponse runCleanerChore(RpcController controller, 627 RunCleanerChoreRequest request) throws ServiceException { 628 return stub.runCleanerChore(controller, request); 629 } 630 631 @Override 632 public SetCleanerChoreRunningResponse setCleanerChoreRunning(RpcController controller, 633 SetCleanerChoreRunningRequest request) throws ServiceException { 634 return stub.setCleanerChoreRunning(controller, request); 635 } 636 637 @Override 638 public IsCleanerChoreEnabledResponse isCleanerChoreEnabled(RpcController controller, 639 IsCleanerChoreEnabledRequest request) throws ServiceException { 640 return stub.isCleanerChoreEnabled(controller, request); 641 } 642 643 @Override 644 public GetReplicationPeerConfigResponse getReplicationPeerConfig(RpcController controller, 645 GetReplicationPeerConfigRequest request) throws ServiceException { 646 return stub.getReplicationPeerConfig(controller, request); 647 } 648 649 @Override 650 public UpdateReplicationPeerConfigResponse updateReplicationPeerConfig(RpcController controller, 651 UpdateReplicationPeerConfigRequest request) throws ServiceException { 652 return stub.updateReplicationPeerConfig(controller, request); 653 } 654 655 @Override 656 public ListReplicationPeersResponse listReplicationPeers(RpcController controller, 657 ListReplicationPeersRequest request) throws ServiceException { 658 return stub.listReplicationPeers(controller, request); 659 } 660 661 @Override 662 public GetSpaceQuotaRegionSizesResponse getSpaceQuotaRegionSizes(RpcController controller, 663 GetSpaceQuotaRegionSizesRequest request) throws ServiceException { 664 return stub.getSpaceQuotaRegionSizes(controller, request); 665 } 666 667 @Override 668 public GetQuotaStatesResponse getQuotaStates(RpcController controller, 669 GetQuotaStatesRequest request) throws ServiceException { 670 return stub.getQuotaStates(controller, request); 671 } 672 673 @Override 674 public ClearDeadServersResponse clearDeadServers(RpcController controller, 675 ClearDeadServersRequest request) throws ServiceException { 676 return stub.clearDeadServers(controller, request); 677 } 678 679 @Override 680 public SplitTableRegionResponse splitRegion(RpcController controller, SplitTableRegionRequest request) 681 throws ServiceException { 682 return stub.splitRegion(controller, request); 683 } 684 685 @Override 686 public SwitchRpcThrottleResponse switchRpcThrottle(RpcController controller, 687 SwitchRpcThrottleRequest request) throws ServiceException { 688 return stub.switchRpcThrottle(controller, request); 689 } 690 691 @Override 692 public IsRpcThrottleEnabledResponse isRpcThrottleEnabled(RpcController controller, 693 IsRpcThrottleEnabledRequest request) throws ServiceException { 694 return stub.isRpcThrottleEnabled(controller, request); 695 } 696 697 @Override 698 public SwitchExceedThrottleQuotaResponse switchExceedThrottleQuota(RpcController controller, 699 SwitchExceedThrottleQuotaRequest request) throws ServiceException { 700 return stub.switchExceedThrottleQuota(controller, request); 701 } 702 703 @Override 704 public GrantResponse grant(RpcController controller, GrantRequest request) 705 throws ServiceException { 706 return stub.grant(controller, request); 707 } 708 709 @Override 710 public RevokeResponse revoke(RpcController controller, RevokeRequest request) 711 throws ServiceException { 712 return stub.revoke(controller, request); 713 } 714 715 @Override 716 public GetUserPermissionsResponse getUserPermissions(RpcController controller, 717 GetUserPermissionsRequest request) throws ServiceException { 718 return stub.getUserPermissions(controller, request); 719 } 720 721 @Override 722 public HasUserPermissionsResponse hasUserPermissions(RpcController controller, 723 HasUserPermissionsRequest request) throws ServiceException { 724 return stub.hasUserPermissions(controller, request); 725 } 726}