@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, compactRegion, execRegionServerService, execService, flushRegion, get, getDeadline, getHostname, getOnlineRegion, getPriority, getPriority, getRegionInfo, getServerInfo, getSocketAddress, getStoreFile, mergeRegions, multi, mutate, openRegion, replay, replicateWALEntry, rollWALWriter, scan, splitRegion, stopServer, updateConfiguration, updateFavoredNodes, warmupRegion
public MasterRpcServices(HMaster m) throws IOException
IOException
public boolean normalizerSwitch(boolean on)
protected List<RpcServer.BlockingServiceAndInterface> getServices()
getServices
in class RSRpcServices
public RegionServerStatusProtos.GetLastFlushedSequenceIdResponse getLastFlushedSequenceId(RpcController controller, RegionServerStatusProtos.GetLastFlushedSequenceIdRequest request) throws ServiceException
getLastFlushedSequenceId
in interface RegionServerStatusProtos.RegionServerStatusService.BlockingInterface
ServiceException
public RegionServerStatusProtos.RegionServerReportResponse regionServerReport(RpcController controller, RegionServerStatusProtos.RegionServerReportRequest request) throws ServiceException
regionServerReport
in interface RegionServerStatusProtos.RegionServerStatusService.BlockingInterface
ServiceException
public RegionServerStatusProtos.RegionServerStartupResponse regionServerStartup(RpcController controller, RegionServerStatusProtos.RegionServerStartupRequest request) throws ServiceException
regionServerStartup
in interface RegionServerStatusProtos.RegionServerStatusService.BlockingInterface
ServiceException
public RegionServerStatusProtos.ReportRSFatalErrorResponse reportRSFatalError(RpcController controller, RegionServerStatusProtos.ReportRSFatalErrorRequest request) throws ServiceException
reportRSFatalError
in interface RegionServerStatusProtos.RegionServerStatusService.BlockingInterface
ServiceException
public MasterProtos.AddColumnResponse addColumn(RpcController controller, MasterProtos.AddColumnRequest req) throws ServiceException
addColumn
in interface MasterProtos.MasterService.BlockingInterface
ServiceException
public MasterProtos.AssignRegionResponse assignRegion(RpcController controller, MasterProtos.AssignRegionRequest req) throws ServiceException
assignRegion
in interface MasterProtos.MasterService.BlockingInterface
ServiceException
public MasterProtos.BalanceResponse balance(RpcController controller, MasterProtos.BalanceRequest request) throws ServiceException
balance
in interface MasterProtos.MasterService.BlockingInterface
ServiceException
public MasterProtos.CreateNamespaceResponse createNamespace(RpcController controller, MasterProtos.CreateNamespaceRequest request) throws ServiceException
createNamespace
in interface MasterProtos.MasterService.BlockingInterface
ServiceException
public MasterProtos.CreateTableResponse createTable(RpcController controller, MasterProtos.CreateTableRequest req) throws ServiceException
createTable
in interface MasterProtos.MasterService.BlockingInterface
ServiceException
public MasterProtos.DeleteColumnResponse deleteColumn(RpcController controller, MasterProtos.DeleteColumnRequest req) throws ServiceException
deleteColumn
in interface MasterProtos.MasterService.BlockingInterface
ServiceException
public MasterProtos.DeleteNamespaceResponse deleteNamespace(RpcController controller, MasterProtos.DeleteNamespaceRequest request) throws ServiceException
deleteNamespace
in interface MasterProtos.MasterService.BlockingInterface
ServiceException
public MasterProtos.DeleteSnapshotResponse deleteSnapshot(RpcController controller, MasterProtos.DeleteSnapshotRequest request) throws ServiceException
deleteSnapshot
in interface MasterProtos.MasterService.BlockingInterface
ServiceException
- wrapping SnapshotDoesNotExistException if specified snapshot did not
exist.public MasterProtos.DeleteTableResponse deleteTable(RpcController controller, MasterProtos.DeleteTableRequest request) throws ServiceException
deleteTable
in interface MasterProtos.MasterService.BlockingInterface
ServiceException
public MasterProtos.TruncateTableResponse truncateTable(RpcController controller, MasterProtos.TruncateTableRequest request) throws ServiceException
truncateTable
in interface MasterProtos.MasterService.BlockingInterface
ServiceException
public MasterProtos.DisableTableResponse disableTable(RpcController controller, MasterProtos.DisableTableRequest request) throws ServiceException
disableTable
in interface MasterProtos.MasterService.BlockingInterface
ServiceException
public MasterProtos.DispatchMergingRegionsResponse dispatchMergingRegions(RpcController c, MasterProtos.DispatchMergingRegionsRequest request) throws ServiceException
dispatchMergingRegions
in interface MasterProtos.MasterService.BlockingInterface
ServiceException
public MasterProtos.EnableCatalogJanitorResponse enableCatalogJanitor(RpcController c, MasterProtos.EnableCatalogJanitorRequest req) throws ServiceException
enableCatalogJanitor
in interface MasterProtos.MasterService.BlockingInterface
ServiceException
public MasterProtos.EnableTableResponse enableTable(RpcController controller, MasterProtos.EnableTableRequest request) throws ServiceException
enableTable
in interface MasterProtos.MasterService.BlockingInterface
ServiceException
public ClientProtos.CoprocessorServiceResponse execMasterService(RpcController controller, ClientProtos.CoprocessorServiceRequest request) throws ServiceException
execMasterService
in interface MasterProtos.MasterService.BlockingInterface
ServiceException
public MasterProtos.ExecProcedureResponse execProcedure(RpcController controller, MasterProtos.ExecProcedureRequest request) throws ServiceException
execProcedure
in interface MasterProtos.MasterService.BlockingInterface
ServiceException
public MasterProtos.ExecProcedureResponse execProcedureWithRet(RpcController controller, MasterProtos.ExecProcedureRequest request) throws ServiceException
execProcedureWithRet
in interface MasterProtos.MasterService.BlockingInterface
ServiceException
public MasterProtos.GetClusterStatusResponse getClusterStatus(RpcController controller, MasterProtos.GetClusterStatusRequest req) throws ServiceException
getClusterStatus
in interface MasterProtos.MasterService.BlockingInterface
ServiceException
public MasterProtos.GetCompletedSnapshotsResponse getCompletedSnapshots(RpcController controller, MasterProtos.GetCompletedSnapshotsRequest request) throws ServiceException
getCompletedSnapshots
in interface MasterProtos.MasterService.BlockingInterface
ServiceException
public MasterProtos.GetNamespaceDescriptorResponse getNamespaceDescriptor(RpcController controller, MasterProtos.GetNamespaceDescriptorRequest request) throws ServiceException
getNamespaceDescriptor
in interface MasterProtos.MasterService.BlockingInterface
ServiceException
public MasterProtos.GetSchemaAlterStatusResponse getSchemaAlterStatus(RpcController controller, MasterProtos.GetSchemaAlterStatusRequest req) throws ServiceException
getSchemaAlterStatus
in interface MasterProtos.MasterService.BlockingInterface
IOException
ServiceException
public MasterProtos.GetTableDescriptorsResponse getTableDescriptors(RpcController c, MasterProtos.GetTableDescriptorsRequest req) throws ServiceException
getTableDescriptors
in interface MasterProtos.MasterService.BlockingInterface
c
- Unused (set to null).req
- GetTableDescriptorsRequest that contains:
- tableNames: requested tables, or if empty, all are requestedServiceException
public MasterProtos.GetTableNamesResponse getTableNames(RpcController controller, MasterProtos.GetTableNamesRequest req) throws ServiceException
getTableNames
in interface MasterProtos.MasterService.BlockingInterface
controller
- Unused (set to null).req
- GetTableNamesRequestServiceException
public MasterProtos.IsCatalogJanitorEnabledResponse isCatalogJanitorEnabled(RpcController c, MasterProtos.IsCatalogJanitorEnabledRequest req) throws ServiceException
isCatalogJanitorEnabled
in interface MasterProtos.MasterService.BlockingInterface
ServiceException
public MasterProtos.IsMasterRunningResponse isMasterRunning(RpcController c, MasterProtos.IsMasterRunningRequest req) throws ServiceException
isMasterRunning
in interface MasterProtos.MasterService.BlockingInterface
ServiceException
public MasterProtos.IsProcedureDoneResponse isProcedureDone(RpcController controller, MasterProtos.IsProcedureDoneRequest request) throws ServiceException
isProcedureDone
in interface MasterProtos.MasterService.BlockingInterface
ServiceException
- 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.BlockingInterface
ServiceException
- if the operation failed.public MasterProtos.IsSnapshotDoneResponse isSnapshotDone(RpcController controller, MasterProtos.IsSnapshotDoneRequest request) throws ServiceException
isSnapshotDone
in interface MasterProtos.MasterService.BlockingInterface
ServiceException
- 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.BlockingInterface
ServiceException
public MasterProtos.AbortProcedureResponse abortProcedure(RpcController rpcController, MasterProtos.AbortProcedureRequest request) throws ServiceException
abortProcedure
in interface MasterProtos.MasterService.BlockingInterface
ServiceException
public MasterProtos.ListProceduresResponse listProcedures(RpcController rpcController, MasterProtos.ListProceduresRequest request) throws ServiceException
listProcedures
in interface MasterProtos.MasterService.BlockingInterface
ServiceException
public MasterProtos.ListNamespaceDescriptorsResponse listNamespaceDescriptors(RpcController c, MasterProtos.ListNamespaceDescriptorsRequest request) throws ServiceException
listNamespaceDescriptors
in interface MasterProtos.MasterService.BlockingInterface
ServiceException
public MasterProtos.ListTableDescriptorsByNamespaceResponse listTableDescriptorsByNamespace(RpcController c, MasterProtos.ListTableDescriptorsByNamespaceRequest request) throws ServiceException
listTableDescriptorsByNamespace
in interface MasterProtos.MasterService.BlockingInterface
ServiceException
public MasterProtos.ListTableNamesByNamespaceResponse listTableNamesByNamespace(RpcController c, MasterProtos.ListTableNamesByNamespaceRequest request) throws ServiceException
listTableNamesByNamespace
in interface MasterProtos.MasterService.BlockingInterface
ServiceException
public MasterProtos.ModifyColumnResponse modifyColumn(RpcController controller, MasterProtos.ModifyColumnRequest req) throws ServiceException
modifyColumn
in interface MasterProtos.MasterService.BlockingInterface
ServiceException
public MasterProtos.ModifyNamespaceResponse modifyNamespace(RpcController controller, MasterProtos.ModifyNamespaceRequest request) throws ServiceException
modifyNamespace
in interface MasterProtos.MasterService.BlockingInterface
ServiceException
public MasterProtos.ModifyTableResponse modifyTable(RpcController controller, MasterProtos.ModifyTableRequest req) throws ServiceException
modifyTable
in interface MasterProtos.MasterService.BlockingInterface
ServiceException
public MasterProtos.MoveRegionResponse moveRegion(RpcController controller, MasterProtos.MoveRegionRequest req) throws ServiceException
moveRegion
in interface MasterProtos.MasterService.BlockingInterface
ServiceException
public MasterProtos.OfflineRegionResponse offlineRegion(RpcController controller, MasterProtos.OfflineRegionRequest request) throws ServiceException
offlineRegion
in interface MasterProtos.MasterService.BlockingInterface
ServiceException
public 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.BlockingInterface
ServiceException
public MasterProtos.RunCatalogScanResponse runCatalogScan(RpcController c, MasterProtos.RunCatalogScanRequest req) throws ServiceException
runCatalogScan
in interface MasterProtos.MasterService.BlockingInterface
ServiceException
public MasterProtos.SetBalancerRunningResponse setBalancerRunning(RpcController c, MasterProtos.SetBalancerRunningRequest req) throws ServiceException
setBalancerRunning
in interface MasterProtos.MasterService.BlockingInterface
ServiceException
public MasterProtos.ShutdownResponse shutdown(RpcController controller, MasterProtos.ShutdownRequest request) throws ServiceException
shutdown
in interface MasterProtos.MasterService.BlockingInterface
ServiceException
public MasterProtos.SnapshotResponse snapshot(RpcController controller, MasterProtos.SnapshotRequest request) throws ServiceException
snapshot
in interface MasterProtos.MasterService.BlockingInterface
ServiceException
public MasterProtos.StopMasterResponse stopMaster(RpcController controller, MasterProtos.StopMasterRequest request) throws ServiceException
stopMaster
in interface MasterProtos.MasterService.BlockingInterface
ServiceException
public MasterProtos.UnassignRegionResponse unassignRegion(RpcController controller, MasterProtos.UnassignRegionRequest req) throws ServiceException
unassignRegion
in interface MasterProtos.MasterService.BlockingInterface
ServiceException
public RegionServerStatusProtos.ReportRegionStateTransitionResponse reportRegionStateTransition(RpcController c, RegionServerStatusProtos.ReportRegionStateTransitionRequest req) throws ServiceException
reportRegionStateTransition
in interface RegionServerStatusProtos.RegionServerStatusService.BlockingInterface
ServiceException
public MasterProtos.MajorCompactionTimestampResponse getLastMajorCompactionTimestamp(RpcController controller, MasterProtos.MajorCompactionTimestampRequest request) throws ServiceException
getLastMajorCompactionTimestamp
in interface MasterProtos.MasterService.BlockingInterface
ServiceException
public MasterProtos.MajorCompactionTimestampResponse getLastMajorCompactionTimestampForRegion(RpcController controller, MasterProtos.MajorCompactionTimestampForRegionRequest request) throws ServiceException
getLastMajorCompactionTimestampForRegion
in interface MasterProtos.MasterService.BlockingInterface
ServiceException
public MasterProtos.IsBalancerEnabledResponse isBalancerEnabled(RpcController controller, MasterProtos.IsBalancerEnabledRequest request) throws ServiceException
isBalancerEnabled
in interface MasterProtos.MasterService.BlockingInterface
ServiceException
public MasterProtos.NormalizeResponse normalize(RpcController controller, MasterProtos.NormalizeRequest request) throws ServiceException
normalize
in interface MasterProtos.MasterService.BlockingInterface
ServiceException
public MasterProtos.SetNormalizerRunningResponse setNormalizerRunning(RpcController controller, MasterProtos.SetNormalizerRunningRequest request) throws ServiceException
setNormalizerRunning
in interface MasterProtos.MasterService.BlockingInterface
ServiceException
public MasterProtos.IsNormalizerEnabledResponse isNormalizerEnabled(RpcController controller, MasterProtos.IsNormalizerEnabledRequest request) throws ServiceException
isNormalizerEnabled
in interface MasterProtos.MasterService.BlockingInterface
ServiceException
public MasterProtos.SetQuotaResponse setQuota(RpcController c, MasterProtos.SetQuotaRequest req) throws ServiceException
setQuota
in interface MasterProtos.MasterService.BlockingInterface
ServiceException