@InterfaceAudience.Private public class RSRpcServices extends Object implements HBaseRPCErrorHandler, AdminProtos.AdminService.BlockingInterface, ClientProtos.ClientService.BlockingInterface, PriorityFunction
| Modifier and Type | Field and Description | 
|---|---|
protected static Log | 
LOG  | 
static String | 
REGION_SERVER_RPC_SCHEDULER_FACTORY_CLASS
RPC scheduler to use for the region server. 
 | 
| Constructor and Description | 
|---|
RSRpcServices(HRegionServer rs)  | 
protected static final Log LOG
public static final String REGION_SERVER_RPC_SCHEDULER_FACTORY_CLASS
public RSRpcServices(HRegionServer rs) throws IOException
IOExceptionpublic static String getHostname(Configuration conf, boolean isMaster) throws UnknownHostException
UnknownHostExceptionpublic PriorityFunction getPriority()
protected void checkOpen()
                  throws IOException
IOExceptionprotected List<RpcServer.BlockingServiceAndInterface> getServices()
public InetSocketAddress getSocketAddress()
public int getPriority(RPCProtos.RequestHeader header, Message param)
PriorityFunctiongetPriority in interface PriorityFunctionpublic long getDeadline(RPCProtos.RequestHeader header, Message param)
PriorityFunctiongetDeadline in interface PriorityFunctionpublic boolean checkOOME(Throwable e)
HBaseRPCErrorHandlercheckOOME in interface HBaseRPCErrorHandlere - the throwablepublic AdminProtos.CloseRegionResponse closeRegion(RpcController controller, AdminProtos.CloseRegionRequest request) throws ServiceException
closeRegion in interface AdminProtos.AdminService.BlockingInterfacecontroller - the RPC controllerrequest - the requestServiceExceptionpublic AdminProtos.CompactRegionResponse compactRegion(RpcController controller, AdminProtos.CompactRegionRequest request) throws ServiceException
compactRegion in interface AdminProtos.AdminService.BlockingInterfacecontroller - the RPC controllerrequest - the requestServiceExceptionpublic AdminProtos.FlushRegionResponse flushRegion(RpcController controller, AdminProtos.FlushRegionRequest request) throws ServiceException
flushRegion in interface AdminProtos.AdminService.BlockingInterfacecontroller - the RPC controllerrequest - the requestServiceExceptionpublic AdminProtos.GetOnlineRegionResponse getOnlineRegion(RpcController controller, AdminProtos.GetOnlineRegionRequest request) throws ServiceException
getOnlineRegion in interface AdminProtos.AdminService.BlockingInterfaceServiceExceptionpublic AdminProtos.GetRegionInfoResponse getRegionInfo(RpcController controller, AdminProtos.GetRegionInfoRequest request) throws ServiceException
getRegionInfo in interface AdminProtos.AdminService.BlockingInterfaceServiceExceptionpublic AdminProtos.GetServerInfoResponse getServerInfo(RpcController controller, AdminProtos.GetServerInfoRequest request) throws ServiceException
getServerInfo in interface AdminProtos.AdminService.BlockingInterfacecontroller - the RPC controllerrequest - the requestServiceExceptionpublic AdminProtos.GetStoreFileResponse getStoreFile(RpcController controller, AdminProtos.GetStoreFileRequest request) throws ServiceException
getStoreFile in interface AdminProtos.AdminService.BlockingInterfaceServiceExceptionpublic AdminProtos.MergeRegionsResponse mergeRegions(RpcController controller, AdminProtos.MergeRegionsRequest request) throws ServiceException
mergeRegions in interface AdminProtos.AdminService.BlockingInterfacecontroller - the RPC controllerrequest - the requestServiceExceptionpublic AdminProtos.OpenRegionResponse openRegion(RpcController controller, AdminProtos.OpenRegionRequest request) throws ServiceException
Different manages states for the region are:
Bulk assign: If there are more than 1 region to open, it will be considered as a bulk assign. For a single region opening, errors are sent through a ServiceException. For bulk assign, errors are put in the response as FAILED_OPENING.
openRegion in interface AdminProtos.AdminService.BlockingInterfacecontroller - the RPC controllerrequest - the requestServiceExceptionpublic AdminProtos.WarmupRegionResponse warmupRegion(RpcController controller, AdminProtos.WarmupRegionRequest request) throws ServiceException
warmupRegion in interface AdminProtos.AdminService.BlockingInterfacecontroller - the RPC controllerrequest - the requestServiceExceptionpublic AdminProtos.ReplicateWALEntryResponse replay(RpcController controller, AdminProtos.ReplicateWALEntryRequest request) throws ServiceException
replay in interface AdminProtos.AdminService.BlockingInterfacecontroller - the RPC controllerrequest - the requestServiceExceptionpublic AdminProtos.ReplicateWALEntryResponse replicateWALEntry(RpcController controller, AdminProtos.ReplicateWALEntryRequest request) throws ServiceException
replicateWALEntry in interface AdminProtos.AdminService.BlockingInterfacecontroller - the RPC controllerrequest - the requestServiceExceptionpublic AdminProtos.RollWALWriterResponse rollWALWriter(RpcController controller, AdminProtos.RollWALWriterRequest request) throws ServiceException
rollWALWriter in interface AdminProtos.AdminService.BlockingInterfacecontroller - the RPC controllerrequest - the requestServiceExceptionpublic AdminProtos.SplitRegionResponse splitRegion(RpcController controller, AdminProtos.SplitRegionRequest request) throws ServiceException
splitRegion in interface AdminProtos.AdminService.BlockingInterfacecontroller - the RPC controllerrequest - the requestServiceExceptionpublic AdminProtos.StopServerResponse stopServer(RpcController controller, AdminProtos.StopServerRequest request) throws ServiceException
stopServer in interface AdminProtos.AdminService.BlockingInterfacecontroller - the RPC controllerrequest - the requestServiceExceptionpublic AdminProtos.UpdateFavoredNodesResponse updateFavoredNodes(RpcController controller, AdminProtos.UpdateFavoredNodesRequest request) throws ServiceException
updateFavoredNodes in interface AdminProtos.AdminService.BlockingInterfaceServiceExceptionpublic ClientProtos.BulkLoadHFileResponse bulkLoadHFile(RpcController controller, ClientProtos.BulkLoadHFileRequest request) throws ServiceException
bulkLoadHFile in interface ClientProtos.ClientService.BlockingInterfaceIOException - if failed unrecoverablyServiceExceptionpublic ClientProtos.CoprocessorServiceResponse execService(RpcController controller, ClientProtos.CoprocessorServiceRequest request) throws ServiceException
execService in interface ClientProtos.ClientService.BlockingInterfaceServiceExceptionpublic ClientProtos.GetResponse get(RpcController controller, ClientProtos.GetRequest request) throws ServiceException
get in interface ClientProtos.ClientService.BlockingInterfacecontroller - the RPC controllerrequest - the get requestServiceExceptionpublic ClientProtos.MultiResponse multi(RpcController rpcc, ClientProtos.MultiRequest request) throws ServiceException
multi in interface ClientProtos.ClientService.BlockingInterfacerpcc - the RPC controllerrequest - the multi requestServiceExceptionpublic ClientProtos.MutateResponse mutate(RpcController rpcc, ClientProtos.MutateRequest request) throws ServiceException
mutate in interface ClientProtos.ClientService.BlockingInterfacerpcc - the RPC controllerrequest - the mutate requestServiceExceptionpublic ClientProtos.ScanResponse scan(RpcController controller, ClientProtos.ScanRequest request) throws ServiceException
scan in interface ClientProtos.ClientService.BlockingInterfacecontroller - the RPC controllerrequest - the scan requestServiceExceptionpublic ClientProtos.CoprocessorServiceResponse execRegionServerService(RpcController controller, ClientProtos.CoprocessorServiceRequest request) throws ServiceException
execRegionServerService in interface ClientProtos.ClientService.BlockingInterfaceServiceExceptionpublic AdminProtos.UpdateConfigurationResponse updateConfiguration(RpcController controller, AdminProtos.UpdateConfigurationRequest request) throws ServiceException
updateConfiguration in interface AdminProtos.AdminService.BlockingInterfaceServiceExceptionpublic QuotaProtos.GetSpaceQuotaSnapshotsResponse getSpaceQuotaSnapshots(RpcController controller, QuotaProtos.GetSpaceQuotaSnapshotsRequest request) throws ServiceException
getSpaceQuotaSnapshots in interface AdminProtos.AdminService.BlockingInterfaceServiceExceptionpublic QuotaProtos.GetSpaceQuotaEnforcementsResponse getSpaceQuotaEnforcements(RpcController controller, QuotaProtos.GetSpaceQuotaEnforcementsRequest request) throws ServiceException
getSpaceQuotaEnforcements in interface AdminProtos.AdminService.BlockingInterfaceServiceException