@InterfaceAudience.Private public class MasterRpcServices extends RSRpcServices implements MasterProtos.MasterService.BlockingInterface, RegionServerStatusProtos.RegionServerStatusService.BlockingInterface
| Modifier and Type | Field and Description | 
|---|---|
protected static Log | 
LOG  | 
REGION_SERVER_RPC_SCHEDULER_FACTORY_CLASS| Constructor and Description | 
|---|
MasterRpcServices(HMaster m)  | 
bulkLoadHFile, checkOOME, checkOpen, closeRegion, execRegionServerService, execService, flushRegion, get, getDeadline, getHostname, getOnlineRegion, getPriority, getPriority, getServerInfo, getSocketAddress, getSpaceQuotaEnforcements, getSpaceQuotaSnapshots, getStoreFile, mergeRegions, multi, mutate, openRegion, replay, replicateWALEntry, rollWALWriter, scan, splitRegion, stopServer, updateConfiguration, updateFavoredNodes, warmupRegionpublic MasterRpcServices(HMaster m) throws IOException
IOExceptionpublic boolean normalizerSwitch(boolean on)
protected List<RpcServer.BlockingServiceAndInterface> getServices()
getServices in class RSRpcServicespublic RegionServerStatusProtos.GetLastFlushedSequenceIdResponse getLastFlushedSequenceId(RpcController controller, RegionServerStatusProtos.GetLastFlushedSequenceIdRequest request) throws ServiceException
getLastFlushedSequenceId in interface RegionServerStatusProtos.RegionServerStatusService.BlockingInterfaceServiceExceptionpublic RegionServerStatusProtos.RegionServerReportResponse regionServerReport(RpcController controller, RegionServerStatusProtos.RegionServerReportRequest request) throws ServiceException
regionServerReport in interface RegionServerStatusProtos.RegionServerStatusService.BlockingInterfaceServiceExceptionpublic RegionServerStatusProtos.RegionServerStartupResponse regionServerStartup(RpcController controller, RegionServerStatusProtos.RegionServerStartupRequest request) throws ServiceException
regionServerStartup in interface RegionServerStatusProtos.RegionServerStatusService.BlockingInterfaceServiceExceptionpublic RegionServerStatusProtos.ReportRSFatalErrorResponse reportRSFatalError(RpcController controller, RegionServerStatusProtos.ReportRSFatalErrorRequest request) throws ServiceException
reportRSFatalError in interface RegionServerStatusProtos.RegionServerStatusService.BlockingInterfaceServiceExceptionpublic MasterProtos.AddColumnResponse addColumn(RpcController controller, MasterProtos.AddColumnRequest req) throws ServiceException
addColumn in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic MasterProtos.AssignRegionResponse assignRegion(RpcController controller, MasterProtos.AssignRegionRequest req) throws ServiceException
assignRegion in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic MasterProtos.BalanceResponse balance(RpcController controller, MasterProtos.BalanceRequest request) throws ServiceException
balance in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic MasterProtos.CreateNamespaceResponse createNamespace(RpcController controller, MasterProtos.CreateNamespaceRequest request) throws ServiceException
createNamespace in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic MasterProtos.CreateTableResponse createTable(RpcController controller, MasterProtos.CreateTableRequest req) throws ServiceException
createTable in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic MasterProtos.DeleteColumnResponse deleteColumn(RpcController controller, MasterProtos.DeleteColumnRequest req) throws ServiceException
deleteColumn in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic MasterProtos.DeleteNamespaceResponse deleteNamespace(RpcController controller, MasterProtos.DeleteNamespaceRequest request) throws ServiceException
deleteNamespace in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic MasterProtos.DeleteSnapshotResponse deleteSnapshot(RpcController controller, MasterProtos.DeleteSnapshotRequest request) throws ServiceException
deleteSnapshot in interface MasterProtos.MasterService.BlockingInterfaceServiceException - wrapping SnapshotDoesNotExistException if specified snapshot did not
    exist.public MasterProtos.DeleteTableResponse deleteTable(RpcController controller, MasterProtos.DeleteTableRequest request) throws ServiceException
deleteTable in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic MasterProtos.TruncateTableResponse truncateTable(RpcController controller, MasterProtos.TruncateTableRequest request) throws ServiceException
truncateTable in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic MasterProtos.DisableTableResponse disableTable(RpcController controller, MasterProtos.DisableTableRequest request) throws ServiceException
disableTable in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic MasterProtos.DispatchMergingRegionsResponse dispatchMergingRegions(RpcController c, MasterProtos.DispatchMergingRegionsRequest request) throws ServiceException
dispatchMergingRegions in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic MasterProtos.EnableCatalogJanitorResponse enableCatalogJanitor(RpcController c, MasterProtos.EnableCatalogJanitorRequest req) throws ServiceException
enableCatalogJanitor in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic MasterProtos.EnableTableResponse enableTable(RpcController controller, MasterProtos.EnableTableRequest request) throws ServiceException
enableTable in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic ClientProtos.CoprocessorServiceResponse execMasterService(RpcController controller, ClientProtos.CoprocessorServiceRequest request) throws ServiceException
execMasterService in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic MasterProtos.ExecProcedureResponse execProcedure(RpcController controller, MasterProtos.ExecProcedureRequest request) throws ServiceException
execProcedure in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic MasterProtos.ExecProcedureResponse execProcedureWithRet(RpcController controller, MasterProtos.ExecProcedureRequest request) throws ServiceException
execProcedureWithRet in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic MasterProtos.GetClusterStatusResponse getClusterStatus(RpcController controller, MasterProtos.GetClusterStatusRequest req) throws ServiceException
getClusterStatus in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic MasterProtos.GetCompletedSnapshotsResponse getCompletedSnapshots(RpcController controller, MasterProtos.GetCompletedSnapshotsRequest request) throws ServiceException
getCompletedSnapshots in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic MasterProtos.GetNamespaceDescriptorResponse getNamespaceDescriptor(RpcController controller, MasterProtos.GetNamespaceDescriptorRequest request) throws ServiceException
getNamespaceDescriptor in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic MasterProtos.GetSchemaAlterStatusResponse getSchemaAlterStatus(RpcController controller, MasterProtos.GetSchemaAlterStatusRequest req) throws ServiceException
getSchemaAlterStatus in interface MasterProtos.MasterService.BlockingInterfaceIOExceptionServiceExceptionpublic MasterProtos.GetTableDescriptorsResponse getTableDescriptors(RpcController c, MasterProtos.GetTableDescriptorsRequest req) throws ServiceException
getTableDescriptors in interface MasterProtos.MasterService.BlockingInterfacec - Unused (set to null).req - GetTableDescriptorsRequest that contains:
 - tableNames: requested tables, or if empty, all are requestedServiceExceptionpublic MasterProtos.GetTableNamesResponse getTableNames(RpcController controller, MasterProtos.GetTableNamesRequest req) throws ServiceException
getTableNames in interface MasterProtos.MasterService.BlockingInterfacecontroller - Unused (set to null).req - GetTableNamesRequestServiceExceptionpublic MasterProtos.IsCatalogJanitorEnabledResponse isCatalogJanitorEnabled(RpcController c, MasterProtos.IsCatalogJanitorEnabledRequest req) throws ServiceException
isCatalogJanitorEnabled in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic MasterProtos.IsMasterRunningResponse isMasterRunning(RpcController c, MasterProtos.IsMasterRunningRequest req) throws ServiceException
isMasterRunning in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic MasterProtos.IsProcedureDoneResponse isProcedureDone(RpcController controller, MasterProtos.IsProcedureDoneRequest request) throws ServiceException
isProcedureDone in interface MasterProtos.MasterService.BlockingInterfaceServiceException - if invalid procedure, or
  a failed procedure with progress failure reason.public MasterProtos.IsRestoreSnapshotDoneResponse isRestoreSnapshotDone(RpcController controller, MasterProtos.IsRestoreSnapshotDoneRequest request) throws ServiceException
isRestoreSnapshotDone in interface MasterProtos.MasterService.BlockingInterfaceServiceException - if the operation failed.public MasterProtos.IsSnapshotDoneResponse isSnapshotDone(RpcController controller, MasterProtos.IsSnapshotDoneRequest request) throws ServiceException
isSnapshotDone in interface MasterProtos.MasterService.BlockingInterfaceServiceException - wrapping UnknownSnapshotException if invalid snapshot, or
  a wrapped HBaseSnapshotException with progress failure reason.public MasterProtos.GetProcedureResultResponse getProcedureResult(RpcController controller, MasterProtos.GetProcedureResultRequest request) throws ServiceException
getProcedureResult in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic MasterProtos.AbortProcedureResponse abortProcedure(RpcController rpcController, MasterProtos.AbortProcedureRequest request) throws ServiceException
abortProcedure in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic MasterProtos.ListProceduresResponse listProcedures(RpcController rpcController, MasterProtos.ListProceduresRequest request) throws ServiceException
listProcedures in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic MasterProtos.ListNamespaceDescriptorsResponse listNamespaceDescriptors(RpcController c, MasterProtos.ListNamespaceDescriptorsRequest request) throws ServiceException
listNamespaceDescriptors in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic MasterProtos.BackupTablesResponse backupTables(RpcController controller, MasterProtos.BackupTablesRequest request) throws ServiceException
backupTables in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic MasterProtos.ListTableDescriptorsByNamespaceResponse listTableDescriptorsByNamespace(RpcController c, MasterProtos.ListTableDescriptorsByNamespaceRequest request) throws ServiceException
listTableDescriptorsByNamespace in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic MasterProtos.ListTableNamesByNamespaceResponse listTableNamesByNamespace(RpcController c, MasterProtos.ListTableNamesByNamespaceRequest request) throws ServiceException
listTableNamesByNamespace in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic MasterProtos.ModifyColumnResponse modifyColumn(RpcController controller, MasterProtos.ModifyColumnRequest req) throws ServiceException
modifyColumn in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic MasterProtos.ModifyNamespaceResponse modifyNamespace(RpcController controller, MasterProtos.ModifyNamespaceRequest request) throws ServiceException
modifyNamespace in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic MasterProtos.ModifyTableResponse modifyTable(RpcController controller, MasterProtos.ModifyTableRequest req) throws ServiceException
modifyTable in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic MasterProtos.MoveRegionResponse moveRegion(RpcController controller, MasterProtos.MoveRegionRequest req) throws ServiceException
moveRegion in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic MasterProtos.OfflineRegionResponse offlineRegion(RpcController controller, MasterProtos.OfflineRegionRequest request) throws ServiceException
offlineRegion in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic MasterProtos.RestoreSnapshotResponse restoreSnapshot(RpcController controller, MasterProtos.RestoreSnapshotRequest request) throws ServiceException
If the specified table exists a "Restore" is executed, replacing the table schema and directory data with the content of the snapshot. The table must be disabled, or a UnsupportedOperationException will be thrown.
If the table doesn't exist a "Clone" is executed, a new table is created using the schema at the time of the snapshot, and the content of the snapshot.
The restore/clone operation does not require copying HFiles. Since HFiles are immutable the table can point to and use the same files as the original one.
restoreSnapshot in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic MasterProtos.RunCatalogScanResponse runCatalogScan(RpcController c, MasterProtos.RunCatalogScanRequest req) throws ServiceException
runCatalogScan in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic MasterProtos.SetBalancerRunningResponse setBalancerRunning(RpcController c, MasterProtos.SetBalancerRunningRequest req) throws ServiceException
setBalancerRunning in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic MasterProtos.ShutdownResponse shutdown(RpcController controller, MasterProtos.ShutdownRequest request) throws ServiceException
shutdown in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic MasterProtos.SnapshotResponse snapshot(RpcController controller, MasterProtos.SnapshotRequest request) throws ServiceException
snapshot in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic MasterProtos.StopMasterResponse stopMaster(RpcController controller, MasterProtos.StopMasterRequest request) throws ServiceException
stopMaster in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic MasterProtos.IsInMaintenanceModeResponse isMasterInMaintenanceMode(RpcController controller, MasterProtos.IsInMaintenanceModeRequest request) throws ServiceException
isMasterInMaintenanceMode in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic MasterProtos.UnassignRegionResponse unassignRegion(RpcController controller, MasterProtos.UnassignRegionRequest req) throws ServiceException
unassignRegion in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic RegionServerStatusProtos.ReportRegionStateTransitionResponse reportRegionStateTransition(RpcController c, RegionServerStatusProtos.ReportRegionStateTransitionRequest req) throws ServiceException
reportRegionStateTransition in interface RegionServerStatusProtos.RegionServerStatusService.BlockingInterfaceServiceExceptionpublic MasterProtos.MajorCompactionTimestampResponse getLastMajorCompactionTimestamp(RpcController controller, MasterProtos.MajorCompactionTimestampRequest request) throws ServiceException
getLastMajorCompactionTimestamp in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic MasterProtos.MajorCompactionTimestampResponse getLastMajorCompactionTimestampForRegion(RpcController controller, MasterProtos.MajorCompactionTimestampForRegionRequest request) throws ServiceException
getLastMajorCompactionTimestampForRegion in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic AdminProtos.CompactRegionResponse compactRegion(RpcController controller, AdminProtos.CompactRegionRequest request) throws ServiceException
compactRegion in interface AdminProtos.AdminService.BlockingInterfacecompactRegion in class RSRpcServicescontroller - the RPC controllerrequest - the requestServiceExceptionpublic AdminProtos.GetRegionInfoResponse getRegionInfo(RpcController controller, AdminProtos.GetRegionInfoRequest request) throws ServiceException
getRegionInfo in interface AdminProtos.AdminService.BlockingInterfacegetRegionInfo in class RSRpcServicesServiceExceptionpublic MasterProtos.IsBalancerEnabledResponse isBalancerEnabled(RpcController controller, MasterProtos.IsBalancerEnabledRequest request) throws ServiceException
isBalancerEnabled in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic MasterProtos.SetSplitOrMergeEnabledResponse setSplitOrMergeEnabled(RpcController controller, MasterProtos.SetSplitOrMergeEnabledRequest request) throws ServiceException
setSplitOrMergeEnabled in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic MasterProtos.IsSplitOrMergeEnabledResponse isSplitOrMergeEnabled(RpcController controller, MasterProtos.IsSplitOrMergeEnabledRequest request) throws ServiceException
isSplitOrMergeEnabled in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic MasterProtos.NormalizeResponse normalize(RpcController controller, MasterProtos.NormalizeRequest request) throws ServiceException
normalize in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic MasterProtos.SetNormalizerRunningResponse setNormalizerRunning(RpcController controller, MasterProtos.SetNormalizerRunningRequest request) throws ServiceException
setNormalizerRunning in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic MasterProtos.IsNormalizerEnabledResponse isNormalizerEnabled(RpcController controller, MasterProtos.IsNormalizerEnabledRequest request) throws ServiceException
isNormalizerEnabled in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic MasterProtos.SetQuotaResponse setQuota(RpcController c, MasterProtos.SetQuotaRequest req) throws ServiceException
setQuota in interface MasterProtos.MasterService.BlockingInterfaceServiceExceptionpublic RegionServerStatusProtos.RegionSpaceUseReportResponse reportRegionSpaceUse(RpcController controller, RegionServerStatusProtos.RegionSpaceUseReportRequest request) throws ServiceException
reportRegionSpaceUse in interface RegionServerStatusProtos.RegionServerStatusService.BlockingInterfaceServiceExceptionpublic QuotaProtos.GetSpaceQuotaRegionSizesResponse getSpaceQuotaRegionSizes(RpcController controller, QuotaProtos.GetSpaceQuotaRegionSizesRequest request) throws ServiceException
getSpaceQuotaRegionSizes in interface MasterProtos.MasterService.BlockingInterfaceServiceException