@InterfaceAudience.Private public class RSRpcServices extends Object implements HBaseRPCErrorHandler, AdminProtos.AdminService.BlockingInterface, ClientProtos.ClientService.BlockingInterface, PriorityFunction
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
LOG |
static String |
REGION_SERVER_RPC_SCHEDULER_FACTORY_CLASS
RPC scheduler to use for the region server.
|
| Constructor and Description |
|---|
RSRpcServices(HRegionServer rs) |
| Modifier and Type | Method and Description |
|---|---|
ClientProtos.BulkLoadHFileResponse |
bulkLoadHFile(com.google.protobuf.RpcController controller,
ClientProtos.BulkLoadHFileRequest request)
Atomically bulk load several HFiles into an open region
|
boolean |
checkOOME(Throwable e)
Take actions on the event of an OutOfMemoryError.
|
protected void |
checkOpen()
Called to verify that this server is up and running.
|
AdminProtos.CloseRegionResponse |
closeRegion(com.google.protobuf.RpcController controller,
AdminProtos.CloseRegionRequest request)
Close a region on the region server.
|
AdminProtos.CompactRegionResponse |
compactRegion(com.google.protobuf.RpcController controller,
AdminProtos.CompactRegionRequest request)
Compact a region on the region server.
|
ClientProtos.CoprocessorServiceResponse |
execRegionServerService(com.google.protobuf.RpcController controller,
ClientProtos.CoprocessorServiceRequest request) |
ClientProtos.CoprocessorServiceResponse |
execService(com.google.protobuf.RpcController controller,
ClientProtos.CoprocessorServiceRequest request) |
AdminProtos.FlushRegionResponse |
flushRegion(com.google.protobuf.RpcController controller,
AdminProtos.FlushRegionRequest request)
Flush a region on the region server.
|
ClientProtos.GetResponse |
get(com.google.protobuf.RpcController controller,
ClientProtos.GetRequest request)
Get data from a table.
|
long |
getDeadline(RPCProtos.RequestHeader header,
com.google.protobuf.Message param)
Returns the deadline of the specified request.
|
static String |
getHostname(org.apache.hadoop.conf.Configuration conf,
boolean isMaster) |
AdminProtos.GetOnlineRegionResponse |
getOnlineRegion(com.google.protobuf.RpcController controller,
AdminProtos.GetOnlineRegionRequest request) |
PriorityFunction |
getPriority() |
int |
getPriority(RPCProtos.RequestHeader header,
com.google.protobuf.Message param)
Returns the 'priority type' of the specified request.
|
AdminProtos.GetRegionInfoResponse |
getRegionInfo(com.google.protobuf.RpcController controller,
AdminProtos.GetRegionInfoRequest request) |
AdminProtos.GetServerInfoResponse |
getServerInfo(com.google.protobuf.RpcController controller,
AdminProtos.GetServerInfoRequest request)
Get some information of the region server.
|
protected List<RpcServer.BlockingServiceAndInterface> |
getServices() |
InetSocketAddress |
getSocketAddress() |
AdminProtos.GetStoreFileResponse |
getStoreFile(com.google.protobuf.RpcController controller,
AdminProtos.GetStoreFileRequest request) |
AdminProtos.MergeRegionsResponse |
mergeRegions(com.google.protobuf.RpcController controller,
AdminProtos.MergeRegionsRequest request)
Merge regions on the region server.
|
ClientProtos.MultiResponse |
multi(com.google.protobuf.RpcController rpcc,
ClientProtos.MultiRequest request)
Execute multiple actions on a table: get, mutate, and/or execCoprocessor
|
ClientProtos.MutateResponse |
mutate(com.google.protobuf.RpcController rpcc,
ClientProtos.MutateRequest request)
Mutate data in a table.
|
AdminProtos.OpenRegionResponse |
openRegion(com.google.protobuf.RpcController controller,
AdminProtos.OpenRegionRequest request)
Open asynchronously a region or a set of regions on the region server.
|
AdminProtos.ReplicateWALEntryResponse |
replay(com.google.protobuf.RpcController controller,
AdminProtos.ReplicateWALEntryRequest request)
Replay the given changes when distributedLogReplay WAL edits from a failed RS.
|
AdminProtos.ReplicateWALEntryResponse |
replicateWALEntry(com.google.protobuf.RpcController controller,
AdminProtos.ReplicateWALEntryRequest request)
Replicate WAL entries on the region server.
|
AdminProtos.RollWALWriterResponse |
rollWALWriter(com.google.protobuf.RpcController controller,
AdminProtos.RollWALWriterRequest request)
Roll the WAL writer of the region server.
|
ClientProtos.ScanResponse |
scan(com.google.protobuf.RpcController controller,
ClientProtos.ScanRequest request)
Scan data in a table.
|
AdminProtos.SplitRegionResponse |
splitRegion(com.google.protobuf.RpcController controller,
AdminProtos.SplitRegionRequest request)
Split a region on the region server.
|
AdminProtos.StopServerResponse |
stopServer(com.google.protobuf.RpcController controller,
AdminProtos.StopServerRequest request)
Stop the region server.
|
AdminProtos.UpdateConfigurationResponse |
updateConfiguration(com.google.protobuf.RpcController controller,
AdminProtos.UpdateConfigurationRequest request) |
AdminProtos.UpdateFavoredNodesResponse |
updateFavoredNodes(com.google.protobuf.RpcController controller,
AdminProtos.UpdateFavoredNodesRequest request) |
AdminProtos.WarmupRegionResponse |
warmupRegion(com.google.protobuf.RpcController controller,
AdminProtos.WarmupRegionRequest request)
Wamrmup a region on this server.
|
protected static final org.apache.commons.logging.Log LOG
public static final String REGION_SERVER_RPC_SCHEDULER_FACTORY_CLASS
public RSRpcServices(HRegionServer rs) throws IOException
IOExceptionpublic static String getHostname(org.apache.hadoop.conf.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, com.google.protobuf.Message param)
PriorityFunctiongetPriority in interface PriorityFunctionpublic long getDeadline(RPCProtos.RequestHeader header, com.google.protobuf.Message param)
PriorityFunctiongetDeadline in interface PriorityFunctionpublic boolean checkOOME(Throwable e)
HBaseRPCErrorHandlercheckOOME in interface HBaseRPCErrorHandlere - the throwablepublic AdminProtos.CloseRegionResponse closeRegion(com.google.protobuf.RpcController controller, AdminProtos.CloseRegionRequest request) throws com.google.protobuf.ServiceException
closeRegion in interface AdminProtos.AdminService.BlockingInterfacecontroller - the RPC controllerrequest - the requestcom.google.protobuf.ServiceExceptionpublic AdminProtos.CompactRegionResponse compactRegion(com.google.protobuf.RpcController controller, AdminProtos.CompactRegionRequest request) throws com.google.protobuf.ServiceException
compactRegion in interface AdminProtos.AdminService.BlockingInterfacecontroller - the RPC controllerrequest - the requestcom.google.protobuf.ServiceExceptionpublic AdminProtos.FlushRegionResponse flushRegion(com.google.protobuf.RpcController controller, AdminProtos.FlushRegionRequest request) throws com.google.protobuf.ServiceException
flushRegion in interface AdminProtos.AdminService.BlockingInterfacecontroller - the RPC controllerrequest - the requestcom.google.protobuf.ServiceExceptionpublic AdminProtos.GetOnlineRegionResponse getOnlineRegion(com.google.protobuf.RpcController controller, AdminProtos.GetOnlineRegionRequest request) throws com.google.protobuf.ServiceException
getOnlineRegion in interface AdminProtos.AdminService.BlockingInterfacecom.google.protobuf.ServiceExceptionpublic AdminProtos.GetRegionInfoResponse getRegionInfo(com.google.protobuf.RpcController controller, AdminProtos.GetRegionInfoRequest request) throws com.google.protobuf.ServiceException
getRegionInfo in interface AdminProtos.AdminService.BlockingInterfacecom.google.protobuf.ServiceExceptionpublic AdminProtos.GetServerInfoResponse getServerInfo(com.google.protobuf.RpcController controller, AdminProtos.GetServerInfoRequest request) throws com.google.protobuf.ServiceException
getServerInfo in interface AdminProtos.AdminService.BlockingInterfacecontroller - the RPC controllerrequest - the requestcom.google.protobuf.ServiceExceptionpublic AdminProtos.GetStoreFileResponse getStoreFile(com.google.protobuf.RpcController controller, AdminProtos.GetStoreFileRequest request) throws com.google.protobuf.ServiceException
getStoreFile in interface AdminProtos.AdminService.BlockingInterfacecom.google.protobuf.ServiceExceptionpublic AdminProtos.MergeRegionsResponse mergeRegions(com.google.protobuf.RpcController controller, AdminProtos.MergeRegionsRequest request) throws com.google.protobuf.ServiceException
mergeRegions in interface AdminProtos.AdminService.BlockingInterfacecontroller - the RPC controllerrequest - the requestcom.google.protobuf.ServiceExceptionpublic AdminProtos.OpenRegionResponse openRegion(com.google.protobuf.RpcController controller, 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 in interface AdminProtos.AdminService.BlockingInterfacecontroller - the RPC controllerrequest - the requestcom.google.protobuf.ServiceExceptionpublic AdminProtos.WarmupRegionResponse warmupRegion(com.google.protobuf.RpcController controller, AdminProtos.WarmupRegionRequest request) throws com.google.protobuf.ServiceException
warmupRegion in interface AdminProtos.AdminService.BlockingInterfacecontroller - the RPC controllerrequest - the requestcom.google.protobuf.ServiceExceptionpublic AdminProtos.ReplicateWALEntryResponse replay(com.google.protobuf.RpcController controller, AdminProtos.ReplicateWALEntryRequest request) throws com.google.protobuf.ServiceException
replay in interface AdminProtos.AdminService.BlockingInterfacecontroller - the RPC controllerrequest - the requestcom.google.protobuf.ServiceExceptionpublic AdminProtos.ReplicateWALEntryResponse replicateWALEntry(com.google.protobuf.RpcController controller, AdminProtos.ReplicateWALEntryRequest request) throws com.google.protobuf.ServiceException
replicateWALEntry in interface AdminProtos.AdminService.BlockingInterfacecontroller - the RPC controllerrequest - the requestcom.google.protobuf.ServiceExceptionpublic AdminProtos.RollWALWriterResponse rollWALWriter(com.google.protobuf.RpcController controller, AdminProtos.RollWALWriterRequest request) throws com.google.protobuf.ServiceException
rollWALWriter in interface AdminProtos.AdminService.BlockingInterfacecontroller - the RPC controllerrequest - the requestcom.google.protobuf.ServiceExceptionpublic AdminProtos.SplitRegionResponse splitRegion(com.google.protobuf.RpcController controller, AdminProtos.SplitRegionRequest request) throws com.google.protobuf.ServiceException
splitRegion in interface AdminProtos.AdminService.BlockingInterfacecontroller - the RPC controllerrequest - the requestcom.google.protobuf.ServiceExceptionpublic AdminProtos.StopServerResponse stopServer(com.google.protobuf.RpcController controller, AdminProtos.StopServerRequest request) throws com.google.protobuf.ServiceException
stopServer in interface AdminProtos.AdminService.BlockingInterfacecontroller - the RPC controllerrequest - the requestcom.google.protobuf.ServiceExceptionpublic AdminProtos.UpdateFavoredNodesResponse updateFavoredNodes(com.google.protobuf.RpcController controller, AdminProtos.UpdateFavoredNodesRequest request) throws com.google.protobuf.ServiceException
updateFavoredNodes in interface AdminProtos.AdminService.BlockingInterfacecom.google.protobuf.ServiceExceptionpublic ClientProtos.BulkLoadHFileResponse bulkLoadHFile(com.google.protobuf.RpcController controller, ClientProtos.BulkLoadHFileRequest request) throws com.google.protobuf.ServiceException
bulkLoadHFile in interface ClientProtos.ClientService.BlockingInterfaceIOException - if failed unrecoverablycom.google.protobuf.ServiceExceptionpublic ClientProtos.CoprocessorServiceResponse execService(com.google.protobuf.RpcController controller, ClientProtos.CoprocessorServiceRequest request) throws com.google.protobuf.ServiceException
execService in interface ClientProtos.ClientService.BlockingInterfacecom.google.protobuf.ServiceExceptionpublic ClientProtos.GetResponse get(com.google.protobuf.RpcController controller, ClientProtos.GetRequest request) throws com.google.protobuf.ServiceException
get in interface ClientProtos.ClientService.BlockingInterfacecontroller - the RPC controllerrequest - the get requestcom.google.protobuf.ServiceExceptionpublic ClientProtos.MultiResponse multi(com.google.protobuf.RpcController rpcc, ClientProtos.MultiRequest request) throws com.google.protobuf.ServiceException
multi in interface ClientProtos.ClientService.BlockingInterfacerpcc - the RPC controllerrequest - the multi requestcom.google.protobuf.ServiceExceptionpublic ClientProtos.MutateResponse mutate(com.google.protobuf.RpcController rpcc, ClientProtos.MutateRequest request) throws com.google.protobuf.ServiceException
mutate in interface ClientProtos.ClientService.BlockingInterfacerpcc - the RPC controllerrequest - the mutate requestcom.google.protobuf.ServiceExceptionpublic ClientProtos.ScanResponse scan(com.google.protobuf.RpcController controller, ClientProtos.ScanRequest request) throws com.google.protobuf.ServiceException
scan in interface ClientProtos.ClientService.BlockingInterfacecontroller - the RPC controllerrequest - the scan requestcom.google.protobuf.ServiceExceptionpublic ClientProtos.CoprocessorServiceResponse execRegionServerService(com.google.protobuf.RpcController controller, ClientProtos.CoprocessorServiceRequest request) throws com.google.protobuf.ServiceException
execRegionServerService in interface ClientProtos.ClientService.BlockingInterfacecom.google.protobuf.ServiceExceptionpublic AdminProtos.UpdateConfigurationResponse updateConfiguration(com.google.protobuf.RpcController controller, AdminProtos.UpdateConfigurationRequest request) throws com.google.protobuf.ServiceException
updateConfiguration in interface AdminProtos.AdminService.BlockingInterfacecom.google.protobuf.ServiceExceptionCopyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.