|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.regionserver.HRegionServer
@InterfaceAudience.Private public class HRegionServer
HRegionServer makes a set of HRegions available to clients. It checks in with the HMaster. There are many HRegionServers in a single HBase deployment.
| Nested Class Summary | |
|---|---|
protected static class |
HRegionServer.MovedRegionsCleaner
Creates a Chore thread to clean the moved region cache. |
protected static interface |
HRegionServer.QosPriority
|
| Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.regionserver.RegionServerServices |
|---|
RegionServerServices.PostOpenDeployContext, RegionServerServices.RegionStateTransitionContext |
| Field Summary | |
|---|---|
protected boolean |
abortRequested
|
protected org.apache.hadoop.hbase.regionserver.MemStoreFlusher |
cacheFlusher
|
protected CatalogTracker |
catalogTracker
|
protected static String |
CLOSE
|
CompactSplitThread |
compactSplitThread
|
protected org.apache.hadoop.conf.Configuration |
conf
|
protected HFileSystem |
fs
|
protected boolean |
fsOk
|
protected HLog |
hlog
|
protected HLog |
hlogForMeta
|
protected HeapMemoryManager |
hMemManager
|
protected boolean |
isOnline
|
protected Leases |
leases
|
protected ReentrantReadWriteLock |
lock
|
static org.apache.commons.logging.Log |
LOG
|
protected long |
maxScannerResultSize
|
protected Map<String,org.apache.hadoop.hbase.regionserver.HRegionServer.MovedRegionInfo> |
movedRegions
|
protected int |
numRegionsToReport
|
protected Map<String,HRegion> |
onlineRegions
Map of regions currently being served by this region server. |
protected static String |
OPEN
|
protected Map<String,HRegion> |
recoveringRegions
Set of regions currently being in recovering state which means it can accept writes(edits from previous failed region server) but not reads. |
static String |
REGION_SERVER_RPC_SCHEDULER_FACTORY_CLASS
RPC scheduler to use for the region server. |
protected Map<String,InetSocketAddress[]> |
regionFavoredNodesMap
Map of encoded region names to the DataNode locations they should be hosted on We store the value as InetSocketAddress since this is used only in HDFS API (create() that takes favored nodes as hints for placing file blocks). |
static String |
REGIONSERVER
region server process name |
static String |
REGIONSERVER_CONF
region server configuration name |
protected ConcurrentMap<byte[],Boolean> |
regionsInTransitionInRS
|
protected ReplicationSinkService |
replicationSinkHandler
|
protected ReplicationSourceService |
replicationSourceHandler
|
protected ExecutorService |
service
|
protected boolean |
stopped
|
protected TableDescriptors |
tableDescriptors
Go here to get table descriptors. |
protected int |
threadWakeFrequency
|
| Constructor Summary | |
|---|---|
HRegionServer(org.apache.hadoop.conf.Configuration conf)
Starts a HRegionServer at the default location |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final org.apache.commons.logging.Log LOG
protected static final String OPEN
protected static final String CLOSE
protected final ConcurrentMap<byte[],Boolean> regionsInTransitionInRS
public static final String REGION_SERVER_RPC_SCHEDULER_FACTORY_CLASS
protected long maxScannerResultSize
protected org.apache.hadoop.hbase.regionserver.MemStoreFlusher cacheFlusher
protected HeapMemoryManager hMemManager
protected CatalogTracker catalogTracker
protected TableDescriptors tableDescriptors
protected ReplicationSourceService replicationSourceHandler
protected ReplicationSinkService replicationSinkHandler
public CompactSplitThread compactSplitThread
protected final Map<String,HRegion> onlineRegions
protected final Map<String,InetSocketAddress[]> regionFavoredNodesMap
protected final Map<String,HRegion> recoveringRegions
protected Leases leases
protected ExecutorService service
protected volatile boolean fsOk
protected HFileSystem fs
protected volatile boolean stopped
protected volatile boolean abortRequested
protected final org.apache.hadoop.conf.Configuration conf
protected final ReentrantReadWriteLock lock
protected final int threadWakeFrequency
protected final int numRegionsToReport
public static final String REGIONSERVER
public static final String REGIONSERVER_CONF
protected volatile HLog hlog
protected volatile HLog hlogForMeta
protected volatile boolean isOnline
protected Map<String,org.apache.hadoop.hbase.regionserver.HRegionServer.MovedRegionInfo> movedRegions
| Constructor Detail |
|---|
public HRegionServer(org.apache.hadoop.conf.Configuration conf)
throws IOException,
InterruptedException
conf -
IOException
InterruptedException| Method Detail |
|---|
public static String getHostname(org.apache.hadoop.conf.Configuration conf)
throws UnknownHostException
UnknownHostExceptionpublic boolean registerService(com.google.protobuf.Service instance)
RegionServerServicesService subclass as a coprocessor endpoint to
be available for handling
registerService in interface RegionServerServicestrue if the registration was successful, false
public int getPriority(org.apache.hadoop.hbase.protobuf.generated.RPCProtos.RequestHeader header,
com.google.protobuf.Message param)
getPriority in interface PriorityFunctionpublic void run()
run in interface Runnable
protected void tryRegionServerReport(long reportStartTime,
long reportEndTime)
throws IOException
IOException
protected void handleReportForDutyResponse(org.apache.hadoop.hbase.protobuf.generated.RegionServerStatusProtos.RegionServerStartupResponse c)
throws IOException
IOExceptionpublic RegionServerAccounting getRegionServerAccounting()
getRegionServerAccounting in interface RegionServerServicespublic TableLockManager getTableLockManager()
getTableLockManager in interface RegionServerServicesTableLockManagerpublic org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.RegionLoad createRegionLoad(String encodedRegionName)
encodedRegionName -
public boolean isOnline()
protected HLog instantiateHLog(org.apache.hadoop.fs.Path rootdir,
String logName)
throws IOException
setupWALAndReplication() creating WAL instance.
rootdir - logName -
IOExceptionprotected List<WALActionsListener> getWALActionListeners()
instantiateHLog(Path, String) setting up WAL instance.
Add any WALActionsListeners you want inserted before WAL startup.
FSHLog on construction.protected List<WALActionsListener> getMetaWALActionListeners()
protected org.apache.hadoop.hbase.regionserver.LogRoller getLogRoller()
public MetricsRegionServer getMetrics()
public MasterAddressTracker getMasterAddressTracker()
public HLog getWAL()
public HLog getWAL(HRegionInfo regionInfo)
throws IOException
getWAL in interface RegionServerServicesIOExceptionpublic CatalogTracker getCatalogTracker()
getCatalogTracker in interface RegionServerServicespublic void stop(String msg)
public void waitForServerOnline()
public void postOpenDeployTasks(HRegion r,
CatalogTracker ct)
throws org.apache.zookeeper.KeeperException,
IOException
RegionServerServices
postOpenDeployTasks in interface RegionServerServicesr - Region to open.ct - catalog tracker
org.apache.zookeeper.KeeperException
IOException
public void postOpenDeployTasks(RegionServerServices.PostOpenDeployContext context,
CatalogTracker ct)
throws org.apache.zookeeper.KeeperException,
IOException
RegionServerServices
postOpenDeployTasks in interface RegionServerServicescontext - the contextct - catalog tracker
org.apache.zookeeper.KeeperException
IOExceptionpublic RpcServerInterface getRpcServer()
RegionServerServices
getRpcServer in interface RegionServerServices
public void abort(String reason,
Throwable cause)
reason - the reason we are abortingcause - the exception that caused the abort, or nullpublic void abort(String reason)
abort(String, Throwable)public boolean isAborted()
protected void kill()
protected void join()
public boolean reportRegionStateTransition(org.apache.hadoop.hbase.protobuf.generated.RegionServerStatusProtos.RegionStateTransition.TransitionCode code,
HRegionInfo... hris)
RegionServerServices
reportRegionStateTransition in interface RegionServerServices
public boolean reportRegionStateTransition(org.apache.hadoop.hbase.protobuf.generated.RegionServerStatusProtos.RegionStateTransition.TransitionCode code,
long openSeqNum,
HRegionInfo... hris)
RegionServerServices
reportRegionStateTransition in interface RegionServerServicespublic boolean reportRegionStateTransition(RegionServerServices.RegionStateTransitionContext context)
RegionServerServices
reportRegionStateTransition in interface RegionServerServicesprotected ServerName createRegionServerStatusStub()
public long getLastSequenceId(byte[] encodedRegionName)
getLastSequenceId in interface LastSequenceIdencodedRegionName - Encoded region name
protected void closeAllRegions(boolean abort)
public InfoServer getInfoServer()
public boolean isStopped()
public boolean isStopping()
isStopping in interface RegionServerServicespublic Map<String,HRegion> getRecoveringRegions()
getRecoveringRegions in interface RegionServerServicespublic org.apache.hadoop.conf.Configuration getConfiguration()
public int getNumberOfOnlineRegions()
public Collection<HRegion> getOnlineRegionsLocalContext()
public void addToOnlineRegions(HRegion region)
public long getStartcode()
public FlushRequester getFlushRequester()
getFlushRequester in interface RegionServerServicesprotected HRegionInfo[] getMostLoadedRegions()
public Leases getLeases()
getLeases in interface RegionServerServicesprotected org.apache.hadoop.fs.Path getRootDir()
public org.apache.hadoop.fs.FileSystem getFileSystem()
getFileSystem in interface RegionServerServicespublic String toString()
toString in class Objectpublic int getThreadWakeFrequency()
public ZooKeeperWatcher getZooKeeper()
public ServerName getServerName()
public CompactionRequestor getCompactionRequester()
getCompactionRequester in interface RegionServerServicesCompactionRequestor or null.public ZooKeeperWatcher getZooKeeperWatcher()
public RegionServerCoprocessorHost getCoprocessorHost()
public ConcurrentMap<byte[],Boolean> getRegionsInTransitionInRS()
RegionServerServices
getRegionsInTransitionInRS in interface RegionServerServicespublic ExecutorService getExecutorService()
getExecutorService in interface RegionServerServices
public static Thread startRegionServer(HRegionServer hrs)
throws IOException
hrs -
IOException
public static Thread startRegionServer(HRegionServer hrs,
String name)
throws IOException
hrs - name -
IOException
public static HRegionServer constructRegionServer(Class<? extends HRegionServer> regionServerClass,
org.apache.hadoop.conf.Configuration conf2)
regionServerClass - conf2 -
public static void main(String[] args)
throws Exception
ExceptionHRegionServerCommandLinepublic List<HRegion> getOnlineRegions(TableName tableName)
hbase:meta.
Only returns online regions. If a region on this table has been
closed during a disable, etc., it will not be included in the returned list.
So, the returned list may not necessarily be ALL regions in this table, its
all the ONLINE regions in the table.
tableName -
tableNamepublic String[] getCoprocessors()
protected void checkOpen()
throws IOException
IOException
protected boolean closeRegion(String encodedName,
boolean abort,
boolean zk,
int versionOfClosingNode,
ServerName sn)
throws NotServingRegionException,
RegionAlreadyInTransitionException
If an opening was in progress, this method will cancel it, but will not start a new close. The coprocessors are not called in this case. A NotServingRegionException exception is thrown.
If a close was in progress, this new request will be ignored, and an exception thrown.
encodedName - Region to closeabort - True if we are abortingzk - True if we are to update zk about the region close; if the close
was orchestrated by master, then update zk. If the close is being run by
the regionserver because its going down, don't update zk.versionOfClosingNode - the version of znode to compare when RS transitions the znode from
CLOSING state.
NotServingRegionException - if the region is not online
RegionAlreadyInTransitionException - if the region is already closingpublic HRegion getOnlineRegion(byte[] regionName)
regionName -
regionName or null if
named region is not member of the online regions.public InetSocketAddress[] getRegionBlockLocations(String encodedRegionName)
public HRegion getFromOnlineRegions(String encodedRegionName)
HRegion instance.
Only works if caller is in same context, in same JVM. HRegion is not
serializable.
encodedRegionName or
null if named region is not member of the online regions.
public boolean removeFromOnlineRegions(HRegion r,
ServerName destination)
r - Region to remove.destination - Destination, if any, null otherwise.
protected HRegion getRegion(byte[] regionName)
throws NotServingRegionException
regionName - Name of online HRegion to return
HRegion for regionName
NotServingRegionException
protected HRegion getRegionByEncodedName(String encodedRegionName)
throws NotServingRegionException
NotServingRegionException
protected HRegion getRegionByEncodedName(byte[] regionName,
String encodedRegionName)
throws NotServingRegionException
NotServingRegionExceptionprotected Throwable cleanup(Throwable t)
protected Throwable cleanup(Throwable t,
String msg)
protected IOException convertThrowableToIOE(Throwable t,
String msg)
public boolean checkOOME(Throwable e)
HBaseRPCErrorHandler
checkOOME in interface HBaseRPCErrorHandlere - the throwable
public boolean checkFileSystem()
protected long addScanner(RegionScanner s,
HRegion r)
throws Leases.LeaseStillHeldException
Leases.LeaseStillHeldException
public 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 in interface org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ClientService.BlockingInterfacecontroller - the RPC controllerrequest - the get request
com.google.protobuf.ServiceException
public 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 in interface org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ClientService.BlockingInterfacerpcc - the RPC controllerrequest - the mutate request
com.google.protobuf.ServiceException
public 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 in interface org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ClientService.BlockingInterfacecontroller - the RPC controllerrequest - the scan request
com.google.protobuf.ServiceException
public 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 in interface org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ClientService.BlockingInterfaceIOException - if failed unrecoverably
com.google.protobuf.ServiceException
public 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 in interface org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ClientService.BlockingInterfacecom.google.protobuf.ServiceException
public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.CoprocessorServiceResponse execRegionServerService(com.google.protobuf.RpcController controller,
org.apache.hadoop.hbase.protobuf.generated.ClientProtos.CoprocessorServiceRequest serviceRequest)
throws com.google.protobuf.ServiceException
execRegionServerService in interface org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ClientService.BlockingInterfacecom.google.protobuf.ServiceExceptionpublic ReplicationSourceService getReplicationSourceService()
public ReplicationSinkService getReplicationSinkService()
public 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 in interface org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ClientService.BlockingInterfacerpcc - the RPC controllerrequest - the multi request
com.google.protobuf.ServiceException
public 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 in interface org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterfacecom.google.protobuf.ServiceException
public 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 in interface org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterfacecom.google.protobuf.ServiceException
public 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 in interface org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterfacecom.google.protobuf.ServiceException
public 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 in interface org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterfacecontroller - the RPC controllerrequest - the request
com.google.protobuf.ServiceException
public void updateRegionFavoredNodesMapping(String encodedRegionName,
List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName> favoredNodes)
public InetSocketAddress[] getFavoredNodesForRegion(String encodedRegionName)
regionFavoredNodesMap on why it is InetSocketAddress[]
encodedRegionName -
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 in interface org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterfacecontroller - the RPC controllerrequest - the request
com.google.protobuf.ServiceException
public 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 in interface org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterfacecontroller - the RPC controllerrequest - the request
com.google.protobuf.ServiceException
public 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 in interface org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterfacecontroller - the RPC controllerrequest - the request
com.google.protobuf.ServiceException
public 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 in interface org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterfacecontroller - the RPC controllerrequest - the request
com.google.protobuf.ServiceException
public 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 in interface org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterfacecontroller - the RPC controllerrequest - the request
com.google.protobuf.ServiceException
public 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 in interface org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterfacecontroller - the RPC controllerrequest - the request
com.google.protobuf.ServiceException
public 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 in interface org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterfacecontroller - the RPC controllerrequest - the request
com.google.protobuf.ServiceException
public 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 in interface org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterfacecontroller - the RPC controllerrequest - the request
com.google.protobuf.ServiceException
public 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 in interface org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterfacecontroller - the RPC controllerrequest - the request
com.google.protobuf.ServiceException
public 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 in interface org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterfacecontroller - the RPC controllerrequest - the request
com.google.protobuf.ServiceException
protected HRegion getRegion(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier regionSpecifier)
throws IOException
regionSpecifier - the region specifier
IOException - if the specifier is not null,
but failed to find the region
protected Result append(HRegion region,
org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto m,
CellScanner cellScanner,
long nonceGroup)
throws IOException
region - m - cellScanner -
IOException
protected Result increment(HRegion region,
org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto mutation,
CellScanner cells,
long nonceGroup)
throws IOException
region - mutation -
IOExceptionpublic ServerNonceManager getNonceManager()
RegionServerServices
getNonceManager in interface RegionServerServices
protected void doBatchOp(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.RegionActionResult.Builder builder,
HRegion region,
List<org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Action> mutations,
CellScanner cells)
builder - region - mutations -
protected OperationStatus[] doReplayBatchOp(HRegion region,
List<HLogSplitter.MutationReplay> mutations)
throws IOException
region - mutations -
IOException
protected org.apache.hadoop.hbase.protobuf.generated.ClientProtos.RegionLoadStats mutateRows(HRegion region,
List<org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Action> actions,
CellScanner cellScanner)
throws IOException
region - actions - cellScanner - if non-null, the mutation data -- the Cell content.
IOException
protected void addToMovedRegions(String encodedName,
ServerName destination,
long closeSeqNum)
protected void cleanMovedRegions()
public CompactSplitThread getCompactSplitThread()
CompactSplitThread for the servers
public 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 in interface org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterfacecom.google.protobuf.ServiceExceptionpublic CacheConfig getCacheConfig()
public HeapMemoryManager getHeapMemoryManager()
getHeapMemoryManager in interface RegionServerServicespublic double getCompactionPressure()
getCompactionPressure in interface RegionServerServicesStore.getCompactionPressure()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||