@InterfaceAudience.Private public class RSRpcServices extends Object implements HBaseRPCErrorHandler, org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterface, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ClientService.BlockingInterface, PriorityFunction, ConfigurationObserver
| 限定符和类型 | 字段和说明 |
|---|---|
protected static org.apache.commons.logging.Log |
LOG |
static String |
REGION_SERVER_RPC_SCHEDULER_FACTORY_CLASS
RPC scheduler to use for the region server.
|
| 构造器和说明 |
|---|
RSRpcServices(HRegionServer rs) |
public RSRpcServices(HRegionServer rs) throws IOException
IOExceptionpublic void onConfigurationChange(org.apache.hadoop.conf.Configuration newConf)
ConfigurationObserverConfigurationManager
object when the Configuration object is reloaded from disk.onConfigurationChange 在接口中 ConfigurationObserverprotected PriorityFunction createPriority()
public static String getHostname(org.apache.hadoop.conf.Configuration conf, boolean isMaster) throws UnknownHostException
public RegionScanner getScanner(long scannerId)
public String getScanDetailsWithId(long scannerId)
public Region getRegion(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier regionSpecifier) throws IOException
regionSpecifier - the region specifierIOException - if the specifier is not null,
but failed to find the regionpublic PriorityFunction getPriority()
public org.apache.hadoop.conf.Configuration getConfiguration()
protected void checkOpen()
throws IOException
IOExceptionprotected List<RpcServer.BlockingServiceAndInterface> getServices()
public InetSocketAddress getSocketAddress()
public int getPriority(org.apache.hadoop.hbase.protobuf.generated.RPCProtos.RequestHeader header, com.google.protobuf.Message param, User user)
PriorityFunctiongetPriority 在接口中 PriorityFunctionpublic long getDeadline(org.apache.hadoop.hbase.protobuf.generated.RPCProtos.RequestHeader header, com.google.protobuf.Message param)
PriorityFunctiongetDeadline 在接口中 PriorityFunctionpublic boolean checkOOME(Throwable e)
HBaseRPCErrorHandlercheckOOME 在接口中 HBaseRPCErrorHandlere - the throwablepublic static boolean exitIfOOME(Throwable e)
public org.apache.hadoop.hbase.protobuf.generated.AdminProtos.CloseRegionResponse closeRegion(com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.protobuf.generated.AdminProtos.CloseRegionRequest request) throws com.google.protobuf.ServiceException
closeRegion 在接口中 org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterfacecontroller - the RPC controllerrequest - the requestcom.google.protobuf.ServiceExceptionpublic org.apache.hadoop.hbase.protobuf.generated.AdminProtos.CompactRegionResponse compactRegion(com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.protobuf.generated.AdminProtos.CompactRegionRequest request) throws com.google.protobuf.ServiceException
compactRegion 在接口中 org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterfacecontroller - the RPC controllerrequest - the requestcom.google.protobuf.ServiceExceptionpublic org.apache.hadoop.hbase.protobuf.generated.AdminProtos.FlushRegionResponse flushRegion(com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.protobuf.generated.AdminProtos.FlushRegionRequest request) throws com.google.protobuf.ServiceException
flushRegion 在接口中 org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterfacecontroller - the RPC controllerrequest - the requestcom.google.protobuf.ServiceExceptionpublic org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetOnlineRegionResponse getOnlineRegion(com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetOnlineRegionRequest request) throws com.google.protobuf.ServiceException
getOnlineRegion 在接口中 org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterfacecom.google.protobuf.ServiceExceptionpublic org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetRegionInfoResponse getRegionInfo(com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetRegionInfoRequest request) throws com.google.protobuf.ServiceException
getRegionInfo 在接口中 org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterfacecom.google.protobuf.ServiceExceptionpublic org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetServerInfoResponse getServerInfo(com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetServerInfoRequest request) throws com.google.protobuf.ServiceException
getServerInfo 在接口中 org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterfacecontroller - the RPC controllerrequest - the requestcom.google.protobuf.ServiceExceptionpublic org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetStoreFileResponse getStoreFile(com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetStoreFileRequest request) throws com.google.protobuf.ServiceException
getStoreFile 在接口中 org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterfacecom.google.protobuf.ServiceExceptionpublic org.apache.hadoop.hbase.protobuf.generated.AdminProtos.MergeRegionsResponse mergeRegions(com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.protobuf.generated.AdminProtos.MergeRegionsRequest request) throws com.google.protobuf.ServiceException
mergeRegions 在接口中 org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterfacecontroller - the RPC controllerrequest - the requestcom.google.protobuf.ServiceExceptionpublic org.apache.hadoop.hbase.protobuf.generated.AdminProtos.OpenRegionResponse openRegion(com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.protobuf.generated.AdminProtos.OpenRegionRequest request) throws com.google.protobuf.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 在接口中 org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterfacecontroller - the RPC controllerrequest - the requestcom.google.protobuf.ServiceExceptionpublic org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WarmupRegionResponse warmupRegion(com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WarmupRegionRequest request) throws com.google.protobuf.ServiceException
warmupRegion 在接口中 org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterfacecontroller - the RPC controllerrequest - the requestcom.google.protobuf.ServiceExceptionpublic org.apache.hadoop.hbase.protobuf.generated.AdminProtos.ReplicateWALEntryResponse replay(com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.protobuf.generated.AdminProtos.ReplicateWALEntryRequest request) throws com.google.protobuf.ServiceException
replay 在接口中 org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterfacecontroller - the RPC controllerrequest - the requestcom.google.protobuf.ServiceExceptionpublic org.apache.hadoop.hbase.protobuf.generated.AdminProtos.ReplicateWALEntryResponse replicateWALEntry(com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.protobuf.generated.AdminProtos.ReplicateWALEntryRequest request) throws com.google.protobuf.ServiceException
replicateWALEntry 在接口中 org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterfacecontroller - the RPC controllerrequest - the requestcom.google.protobuf.ServiceExceptionpublic org.apache.hadoop.hbase.protobuf.generated.AdminProtos.RollWALWriterResponse rollWALWriter(com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.protobuf.generated.AdminProtos.RollWALWriterRequest request) throws com.google.protobuf.ServiceException
rollWALWriter 在接口中 org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterfacecontroller - the RPC controllerrequest - the requestcom.google.protobuf.ServiceExceptionpublic org.apache.hadoop.hbase.protobuf.generated.AdminProtos.SplitRegionResponse splitRegion(com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.protobuf.generated.AdminProtos.SplitRegionRequest request) throws com.google.protobuf.ServiceException
splitRegion 在接口中 org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterfacecontroller - the RPC controllerrequest - the requestcom.google.protobuf.ServiceExceptionpublic org.apache.hadoop.hbase.protobuf.generated.AdminProtos.StopServerResponse stopServer(com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.protobuf.generated.AdminProtos.StopServerRequest request) throws com.google.protobuf.ServiceException
stopServer 在接口中 org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterfacecontroller - the RPC controllerrequest - the requestcom.google.protobuf.ServiceExceptionpublic org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UpdateFavoredNodesResponse updateFavoredNodes(com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UpdateFavoredNodesRequest request) throws com.google.protobuf.ServiceException
updateFavoredNodes 在接口中 org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterfacecom.google.protobuf.ServiceExceptionpublic org.apache.hadoop.hbase.protobuf.generated.ClientProtos.BulkLoadHFileResponse bulkLoadHFile(com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.BulkLoadHFileRequest request) throws com.google.protobuf.ServiceException
bulkLoadHFile 在接口中 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ClientService.BlockingInterfacecom.google.protobuf.ServiceException - if failed unrecoverablypublic org.apache.hadoop.hbase.protobuf.generated.ClientProtos.CoprocessorServiceResponse execService(com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.CoprocessorServiceRequest request) throws com.google.protobuf.ServiceException
execService 在接口中 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ClientService.BlockingInterfacecom.google.protobuf.ServiceExceptionpublic org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetResponse get(com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetRequest request) throws com.google.protobuf.ServiceException
get 在接口中 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ClientService.BlockingInterfacecontroller - the RPC controllerrequest - the get requestcom.google.protobuf.ServiceExceptionpublic org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiResponse multi(com.google.protobuf.RpcController rpcc, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiRequest request) throws com.google.protobuf.ServiceException
multi 在接口中 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ClientService.BlockingInterfacerpcc - the RPC controllerrequest - the multi requestcom.google.protobuf.ServiceExceptionpublic org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutateResponse mutate(com.google.protobuf.RpcController rpcc, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutateRequest request) throws com.google.protobuf.ServiceException
mutate 在接口中 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ClientService.BlockingInterfacerpcc - the RPC controllerrequest - the mutate requestcom.google.protobuf.ServiceExceptionpublic org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ScanResponse scan(com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ScanRequest request) throws com.google.protobuf.ServiceException
scan 在接口中 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ClientService.BlockingInterfacecontroller - the RPC controllerrequest - the scan requestcom.google.protobuf.ServiceExceptionpublic org.apache.hadoop.hbase.protobuf.generated.ClientProtos.CoprocessorServiceResponse execRegionServerService(com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.CoprocessorServiceRequest request) throws com.google.protobuf.ServiceException
execRegionServerService 在接口中 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ClientService.BlockingInterfacecom.google.protobuf.ServiceExceptionpublic org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UpdateConfigurationResponse updateConfiguration(com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UpdateConfigurationRequest request) throws com.google.protobuf.ServiceException
updateConfiguration 在接口中 org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterfacecom.google.protobuf.ServiceExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.