@InterfaceAudience.Private public class MasterRpcServices extends RSRpcServices implements MasterProtos.MasterService.BlockingInterface, RegionServerStatusProtos.RegionServerStatusService.BlockingInterface
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.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
protected List<RpcServer.BlockingServiceAndInterface> getServices()
getServices
in class RSRpcServices
public RegionServerStatusProtos.GetLastFlushedSequenceIdResponse getLastFlushedSequenceId(com.google.protobuf.RpcController controller, RegionServerStatusProtos.GetLastFlushedSequenceIdRequest request) throws com.google.protobuf.ServiceException
getLastFlushedSequenceId
in interface RegionServerStatusProtos.RegionServerStatusService.BlockingInterface
com.google.protobuf.ServiceException
public RegionServerStatusProtos.RegionServerReportResponse regionServerReport(com.google.protobuf.RpcController controller, RegionServerStatusProtos.RegionServerReportRequest request) throws com.google.protobuf.ServiceException
regionServerReport
in interface RegionServerStatusProtos.RegionServerStatusService.BlockingInterface
com.google.protobuf.ServiceException
public RegionServerStatusProtos.RegionServerStartupResponse regionServerStartup(com.google.protobuf.RpcController controller, RegionServerStatusProtos.RegionServerStartupRequest request) throws com.google.protobuf.ServiceException
regionServerStartup
in interface RegionServerStatusProtos.RegionServerStatusService.BlockingInterface
com.google.protobuf.ServiceException
public RegionServerStatusProtos.ReportRSFatalErrorResponse reportRSFatalError(com.google.protobuf.RpcController controller, RegionServerStatusProtos.ReportRSFatalErrorRequest request) throws com.google.protobuf.ServiceException
reportRSFatalError
in interface RegionServerStatusProtos.RegionServerStatusService.BlockingInterface
com.google.protobuf.ServiceException
public MasterProtos.AddColumnResponse addColumn(com.google.protobuf.RpcController controller, MasterProtos.AddColumnRequest req) throws com.google.protobuf.ServiceException
addColumn
in interface MasterProtos.MasterService.BlockingInterface
com.google.protobuf.ServiceException
public MasterProtos.AssignRegionResponse assignRegion(com.google.protobuf.RpcController controller, MasterProtos.AssignRegionRequest req) throws com.google.protobuf.ServiceException
assignRegion
in interface MasterProtos.MasterService.BlockingInterface
com.google.protobuf.ServiceException
public MasterProtos.BalanceResponse balance(com.google.protobuf.RpcController controller, MasterProtos.BalanceRequest request) throws com.google.protobuf.ServiceException
balance
in interface MasterProtos.MasterService.BlockingInterface
com.google.protobuf.ServiceException
public MasterProtos.CreateNamespaceResponse createNamespace(com.google.protobuf.RpcController controller, MasterProtos.CreateNamespaceRequest request) throws com.google.protobuf.ServiceException
createNamespace
in interface MasterProtos.MasterService.BlockingInterface
com.google.protobuf.ServiceException
public MasterProtos.CreateTableResponse createTable(com.google.protobuf.RpcController controller, MasterProtos.CreateTableRequest req) throws com.google.protobuf.ServiceException
createTable
in interface MasterProtos.MasterService.BlockingInterface
com.google.protobuf.ServiceException
public MasterProtos.DeleteColumnResponse deleteColumn(com.google.protobuf.RpcController controller, MasterProtos.DeleteColumnRequest req) throws com.google.protobuf.ServiceException
deleteColumn
in interface MasterProtos.MasterService.BlockingInterface
com.google.protobuf.ServiceException
public MasterProtos.DeleteNamespaceResponse deleteNamespace(com.google.protobuf.RpcController controller, MasterProtos.DeleteNamespaceRequest request) throws com.google.protobuf.ServiceException
deleteNamespace
in interface MasterProtos.MasterService.BlockingInterface
com.google.protobuf.ServiceException
public MasterProtos.DeleteSnapshotResponse deleteSnapshot(com.google.protobuf.RpcController controller, MasterProtos.DeleteSnapshotRequest request) throws com.google.protobuf.ServiceException
deleteSnapshot
in interface MasterProtos.MasterService.BlockingInterface
com.google.protobuf.ServiceException
- wrapping SnapshotDoesNotExistException if specified snapshot did not
exist.public MasterProtos.DeleteTableResponse deleteTable(com.google.protobuf.RpcController controller, MasterProtos.DeleteTableRequest request) throws com.google.protobuf.ServiceException
deleteTable
in interface MasterProtos.MasterService.BlockingInterface
com.google.protobuf.ServiceException
public MasterProtos.TruncateTableResponse truncateTable(com.google.protobuf.RpcController controller, MasterProtos.TruncateTableRequest request) throws com.google.protobuf.ServiceException
truncateTable
in interface MasterProtos.MasterService.BlockingInterface
com.google.protobuf.ServiceException
public MasterProtos.DisableTableResponse disableTable(com.google.protobuf.RpcController controller, MasterProtos.DisableTableRequest request) throws com.google.protobuf.ServiceException
disableTable
in interface MasterProtos.MasterService.BlockingInterface
com.google.protobuf.ServiceException
public MasterProtos.DispatchMergingRegionsResponse dispatchMergingRegions(com.google.protobuf.RpcController c, MasterProtos.DispatchMergingRegionsRequest request) throws com.google.protobuf.ServiceException
dispatchMergingRegions
in interface MasterProtos.MasterService.BlockingInterface
com.google.protobuf.ServiceException
public MasterProtos.EnableCatalogJanitorResponse enableCatalogJanitor(com.google.protobuf.RpcController c, MasterProtos.EnableCatalogJanitorRequest req) throws com.google.protobuf.ServiceException
enableCatalogJanitor
in interface MasterProtos.MasterService.BlockingInterface
com.google.protobuf.ServiceException
public MasterProtos.EnableTableResponse enableTable(com.google.protobuf.RpcController controller, MasterProtos.EnableTableRequest request) throws com.google.protobuf.ServiceException
enableTable
in interface MasterProtos.MasterService.BlockingInterface
com.google.protobuf.ServiceException
public ClientProtos.CoprocessorServiceResponse execMasterService(com.google.protobuf.RpcController controller, ClientProtos.CoprocessorServiceRequest request) throws com.google.protobuf.ServiceException
execMasterService
in interface MasterProtos.MasterService.BlockingInterface
com.google.protobuf.ServiceException
public MasterProtos.ExecProcedureResponse execProcedure(com.google.protobuf.RpcController controller, MasterProtos.ExecProcedureRequest request) throws com.google.protobuf.ServiceException
execProcedure
in interface MasterProtos.MasterService.BlockingInterface
com.google.protobuf.ServiceException
public MasterProtos.ExecProcedureResponse execProcedureWithRet(com.google.protobuf.RpcController controller, MasterProtos.ExecProcedureRequest request) throws com.google.protobuf.ServiceException
execProcedureWithRet
in interface MasterProtos.MasterService.BlockingInterface
com.google.protobuf.ServiceException
public MasterProtos.GetClusterStatusResponse getClusterStatus(com.google.protobuf.RpcController controller, MasterProtos.GetClusterStatusRequest req) throws com.google.protobuf.ServiceException
getClusterStatus
in interface MasterProtos.MasterService.BlockingInterface
com.google.protobuf.ServiceException
public MasterProtos.GetCompletedSnapshotsResponse getCompletedSnapshots(com.google.protobuf.RpcController controller, MasterProtos.GetCompletedSnapshotsRequest request) throws com.google.protobuf.ServiceException
getCompletedSnapshots
in interface MasterProtos.MasterService.BlockingInterface
com.google.protobuf.ServiceException
public MasterProtos.GetNamespaceDescriptorResponse getNamespaceDescriptor(com.google.protobuf.RpcController controller, MasterProtos.GetNamespaceDescriptorRequest request) throws com.google.protobuf.ServiceException
getNamespaceDescriptor
in interface MasterProtos.MasterService.BlockingInterface
com.google.protobuf.ServiceException
public MasterProtos.GetSchemaAlterStatusResponse getSchemaAlterStatus(com.google.protobuf.RpcController controller, MasterProtos.GetSchemaAlterStatusRequest req) throws com.google.protobuf.ServiceException
getSchemaAlterStatus
in interface MasterProtos.MasterService.BlockingInterface
IOException
com.google.protobuf.ServiceException
public MasterProtos.GetTableDescriptorsResponse getTableDescriptors(com.google.protobuf.RpcController c, MasterProtos.GetTableDescriptorsRequest req) throws com.google.protobuf.ServiceException
getTableDescriptors
in interface MasterProtos.MasterService.BlockingInterface
c
- Unused (set to null).req
- GetTableDescriptorsRequest that contains:
- tableNames: requested tables, or if empty, all are requestedcom.google.protobuf.ServiceException
public MasterProtos.GetTableNamesResponse getTableNames(com.google.protobuf.RpcController controller, MasterProtos.GetTableNamesRequest req) throws com.google.protobuf.ServiceException
getTableNames
in interface MasterProtos.MasterService.BlockingInterface
controller
- Unused (set to null).req
- GetTableNamesRequestcom.google.protobuf.ServiceException
public MasterProtos.IsCatalogJanitorEnabledResponse isCatalogJanitorEnabled(com.google.protobuf.RpcController c, MasterProtos.IsCatalogJanitorEnabledRequest req) throws com.google.protobuf.ServiceException
isCatalogJanitorEnabled
in interface MasterProtos.MasterService.BlockingInterface
com.google.protobuf.ServiceException
public MasterProtos.IsMasterRunningResponse isMasterRunning(com.google.protobuf.RpcController c, MasterProtos.IsMasterRunningRequest req) throws com.google.protobuf.ServiceException
isMasterRunning
in interface MasterProtos.MasterService.BlockingInterface
com.google.protobuf.ServiceException
public MasterProtos.IsProcedureDoneResponse isProcedureDone(com.google.protobuf.RpcController controller, MasterProtos.IsProcedureDoneRequest request) throws com.google.protobuf.ServiceException
isProcedureDone
in interface MasterProtos.MasterService.BlockingInterface
com.google.protobuf.ServiceException
- if invalid procedure, or
a failed procedure with progress failure reason.public MasterProtos.IsRestoreSnapshotDoneResponse isRestoreSnapshotDone(com.google.protobuf.RpcController controller, MasterProtos.IsRestoreSnapshotDoneRequest request) throws com.google.protobuf.ServiceException
isRestoreSnapshotDone
in interface MasterProtos.MasterService.BlockingInterface
com.google.protobuf.ServiceException
- if the operation failed.public MasterProtos.IsSnapshotDoneResponse isSnapshotDone(com.google.protobuf.RpcController controller, MasterProtos.IsSnapshotDoneRequest request) throws com.google.protobuf.ServiceException
isSnapshotDone
in interface MasterProtos.MasterService.BlockingInterface
com.google.protobuf.ServiceException
- wrapping UnknownSnapshotException if invalid snapshot, or
a wrapped HBaseSnapshotException with progress failure reason.public MasterProtos.GetProcedureResultResponse getProcedureResult(com.google.protobuf.RpcController controller, MasterProtos.GetProcedureResultRequest request) throws com.google.protobuf.ServiceException
getProcedureResult
in interface MasterProtos.MasterService.BlockingInterface
com.google.protobuf.ServiceException
public MasterProtos.AbortProcedureResponse abortProcedure(com.google.protobuf.RpcController rpcController, MasterProtos.AbortProcedureRequest request) throws com.google.protobuf.ServiceException
abortProcedure
in interface MasterProtos.MasterService.BlockingInterface
com.google.protobuf.ServiceException
public MasterProtos.ListProceduresResponse listProcedures(com.google.protobuf.RpcController rpcController, MasterProtos.ListProceduresRequest request) throws com.google.protobuf.ServiceException
listProcedures
in interface MasterProtos.MasterService.BlockingInterface
com.google.protobuf.ServiceException
public MasterProtos.ListNamespaceDescriptorsResponse listNamespaceDescriptors(com.google.protobuf.RpcController c, MasterProtos.ListNamespaceDescriptorsRequest request) throws com.google.protobuf.ServiceException
listNamespaceDescriptors
in interface MasterProtos.MasterService.BlockingInterface
com.google.protobuf.ServiceException
public MasterProtos.ListTableDescriptorsByNamespaceResponse listTableDescriptorsByNamespace(com.google.protobuf.RpcController c, MasterProtos.ListTableDescriptorsByNamespaceRequest request) throws com.google.protobuf.ServiceException
listTableDescriptorsByNamespace
in interface MasterProtos.MasterService.BlockingInterface
com.google.protobuf.ServiceException
public MasterProtos.ListTableNamesByNamespaceResponse listTableNamesByNamespace(com.google.protobuf.RpcController c, MasterProtos.ListTableNamesByNamespaceRequest request) throws com.google.protobuf.ServiceException
listTableNamesByNamespace
in interface MasterProtos.MasterService.BlockingInterface
com.google.protobuf.ServiceException
public MasterProtos.ModifyColumnResponse modifyColumn(com.google.protobuf.RpcController controller, MasterProtos.ModifyColumnRequest req) throws com.google.protobuf.ServiceException
modifyColumn
in interface MasterProtos.MasterService.BlockingInterface
com.google.protobuf.ServiceException
public MasterProtos.ModifyNamespaceResponse modifyNamespace(com.google.protobuf.RpcController controller, MasterProtos.ModifyNamespaceRequest request) throws com.google.protobuf.ServiceException
modifyNamespace
in interface MasterProtos.MasterService.BlockingInterface
com.google.protobuf.ServiceException
public MasterProtos.ModifyTableResponse modifyTable(com.google.protobuf.RpcController controller, MasterProtos.ModifyTableRequest req) throws com.google.protobuf.ServiceException
modifyTable
in interface MasterProtos.MasterService.BlockingInterface
com.google.protobuf.ServiceException
public MasterProtos.MoveRegionResponse moveRegion(com.google.protobuf.RpcController controller, MasterProtos.MoveRegionRequest req) throws com.google.protobuf.ServiceException
moveRegion
in interface MasterProtos.MasterService.BlockingInterface
com.google.protobuf.ServiceException
public MasterProtos.OfflineRegionResponse offlineRegion(com.google.protobuf.RpcController controller, MasterProtos.OfflineRegionRequest request) throws com.google.protobuf.ServiceException
offlineRegion
in interface MasterProtos.MasterService.BlockingInterface
com.google.protobuf.ServiceException
public MasterProtos.RestoreSnapshotResponse restoreSnapshot(com.google.protobuf.RpcController controller, MasterProtos.RestoreSnapshotRequest request) throws com.google.protobuf.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
com.google.protobuf.ServiceException
public MasterProtos.RunCatalogScanResponse runCatalogScan(com.google.protobuf.RpcController c, MasterProtos.RunCatalogScanRequest req) throws com.google.protobuf.ServiceException
runCatalogScan
in interface MasterProtos.MasterService.BlockingInterface
com.google.protobuf.ServiceException
public MasterProtos.SetBalancerRunningResponse setBalancerRunning(com.google.protobuf.RpcController c, MasterProtos.SetBalancerRunningRequest req) throws com.google.protobuf.ServiceException
setBalancerRunning
in interface MasterProtos.MasterService.BlockingInterface
com.google.protobuf.ServiceException
public MasterProtos.ShutdownResponse shutdown(com.google.protobuf.RpcController controller, MasterProtos.ShutdownRequest request) throws com.google.protobuf.ServiceException
shutdown
in interface MasterProtos.MasterService.BlockingInterface
com.google.protobuf.ServiceException
public MasterProtos.SnapshotResponse snapshot(com.google.protobuf.RpcController controller, MasterProtos.SnapshotRequest request) throws com.google.protobuf.ServiceException
snapshot
in interface MasterProtos.MasterService.BlockingInterface
com.google.protobuf.ServiceException
public MasterProtos.StopMasterResponse stopMaster(com.google.protobuf.RpcController controller, MasterProtos.StopMasterRequest request) throws com.google.protobuf.ServiceException
stopMaster
in interface MasterProtos.MasterService.BlockingInterface
com.google.protobuf.ServiceException
public MasterProtos.UnassignRegionResponse unassignRegion(com.google.protobuf.RpcController controller, MasterProtos.UnassignRegionRequest req) throws com.google.protobuf.ServiceException
unassignRegion
in interface MasterProtos.MasterService.BlockingInterface
com.google.protobuf.ServiceException
public RegionServerStatusProtos.ReportRegionStateTransitionResponse reportRegionStateTransition(com.google.protobuf.RpcController c, RegionServerStatusProtos.ReportRegionStateTransitionRequest req) throws com.google.protobuf.ServiceException
reportRegionStateTransition
in interface RegionServerStatusProtos.RegionServerStatusService.BlockingInterface
com.google.protobuf.ServiceException
public MasterProtos.MajorCompactionTimestampResponse getLastMajorCompactionTimestamp(com.google.protobuf.RpcController controller, MasterProtos.MajorCompactionTimestampRequest request) throws com.google.protobuf.ServiceException
getLastMajorCompactionTimestamp
in interface MasterProtos.MasterService.BlockingInterface
com.google.protobuf.ServiceException
public MasterProtos.MajorCompactionTimestampResponse getLastMajorCompactionTimestampForRegion(com.google.protobuf.RpcController controller, MasterProtos.MajorCompactionTimestampForRegionRequest request) throws com.google.protobuf.ServiceException
getLastMajorCompactionTimestampForRegion
in interface MasterProtos.MasterService.BlockingInterface
com.google.protobuf.ServiceException
public MasterProtos.IsBalancerEnabledResponse isBalancerEnabled(com.google.protobuf.RpcController controller, MasterProtos.IsBalancerEnabledRequest request) throws com.google.protobuf.ServiceException
isBalancerEnabled
in interface MasterProtos.MasterService.BlockingInterface
com.google.protobuf.ServiceException
public MasterProtos.SetQuotaResponse setQuota(com.google.protobuf.RpcController c, MasterProtos.SetQuotaRequest req) throws com.google.protobuf.ServiceException
setQuota
in interface MasterProtos.MasterService.BlockingInterface
com.google.protobuf.ServiceException
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.