public class MockRegionServerServices extends Object implements RegionServerServices
RegionServerServices.PostOpenDeployContext, RegionServerServices.RegionStateTransitionContext| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
MockRegionServerServices(org.apache.hadoop.conf.Configuration conf) |
protected static final org.slf4j.Logger LOG
public MockRegionServerServices(org.apache.hadoop.conf.Configuration conf)
public boolean removeRegion(HRegion r, ServerName destination)
removeRegion in interface MutableOnlineRegionspublic Region getRegion(String encodedRegionName)
getRegion in interface OnlineRegionspublic List<Region> getRegions(TableName tableName) throws IOException
getRegions in interface OnlineRegionsIOExceptionpublic List<Region> getRegions()
getRegions in interface OnlineRegionspublic void addRegion(HRegion r)
addRegion in interface MutableOnlineRegionspublic void postOpenDeployTasks(RegionServerServices.PostOpenDeployContext context) throws org.apache.zookeeper.KeeperException, IOException
postOpenDeployTasks in interface RegionServerServicesorg.apache.zookeeper.KeeperExceptionIOExceptionpublic boolean isStopping()
isStopping in interface Serverpublic RpcServerInterface getRpcServer()
getRpcServer in interface RegionServerServicespublic void setRpcServer(RpcServerInterface rpc)
public ConcurrentSkipListMap<byte[],Boolean> getRegionsInTransitionInRS()
getRegionsInTransitionInRS in interface RegionServerServicespublic FlushRequester getFlushRequester()
getFlushRequester in interface RegionServerServicespublic org.apache.hadoop.hbase.regionserver.compactions.CompactionRequester getCompactionRequestor()
getCompactionRequestor in interface RegionServerServicespublic ClusterConnection getConnection()
getConnection in interface Serverpublic MetaTableLocator getMetaTableLocator()
getMetaTableLocator in interface Serverpublic ZKWatcher getZooKeeper()
getZooKeeper in interface Serverpublic CoordinatedStateManager getCoordinatedStateManager()
getCoordinatedStateManager in interface Serverpublic RegionServerAccounting getRegionServerAccounting()
getRegionServerAccounting in interface RegionServerServicespublic RegionServerRpcQuotaManager getRegionServerRpcQuotaManager()
getRegionServerRpcQuotaManager in interface RegionServerServicespublic ServerName getServerName()
getServerName in interface Serverpublic org.apache.hadoop.conf.Configuration getConfiguration()
getConfiguration in interface Serverpublic org.apache.hadoop.hbase.fs.HFileSystem getFileSystem()
getFileSystem in interface Serverpublic void setFileSystem(org.apache.hadoop.fs.FileSystem hfs)
public Leases getLeases()
getLeases in interface RegionServerServicespublic List<WAL> getWALs() throws IOException
getWALs in interface RegionServerServicesIOExceptionpublic WAL getWAL(RegionInfo regionInfo) throws IOException
getWAL in interface RegionServerServicesIOExceptionpublic org.apache.hadoop.hbase.executor.ExecutorService getExecutorService()
getExecutorService in interface RegionServerServicespublic ChoreService getChoreService()
getChoreService in interface Serverpublic void updateRegionFavoredNodesMapping(String encodedRegionName, List<org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.ServerName> favoredNodes)
updateRegionFavoredNodesMapping in interface FavoredNodesForRegionpublic InetSocketAddress[] getFavoredNodesForRegion(String encodedRegionName)
getFavoredNodesForRegion in interface FavoredNodesForRegionpublic ServerNonceManager getNonceManager()
getNonceManager in interface RegionServerServicespublic boolean reportRegionStateTransition(RegionServerServices.RegionStateTransitionContext context)
reportRegionStateTransition in interface RegionServerServicespublic boolean registerService(Service service)
registerService in interface RegionServerServicespublic HeapMemoryManager getHeapMemoryManager()
getHeapMemoryManager in interface RegionServerServicespublic double getCompactionPressure()
getCompactionPressure in interface RegionServerServicespublic ClusterConnection getClusterConnection()
getClusterConnection in interface Serverpublic ThroughputController getFlushThroughputController()
getFlushThroughputController in interface RegionServerServicespublic double getFlushPressure()
getFlushPressure in interface RegionServerServicespublic MetricsRegionServer getMetrics()
getMetrics in interface RegionServerServicespublic EntityLock regionLock(List<RegionInfo> regionInfos, String description, Abortable abort) throws IOException
regionLock in interface RegionServerServicesIOExceptionpublic SecureBulkLoadManager getSecureBulkLoadManager()
getSecureBulkLoadManager in interface RegionServerServicespublic void unassign(byte[] regionName) throws IOException
unassign in interface RegionServerServicesIOExceptionpublic RegionServerSpaceQuotaManager getRegionServerSpaceQuotaManager()
getRegionServerSpaceQuotaManager in interface RegionServerServicespublic Connection createConnection(org.apache.hadoop.conf.Configuration conf) throws IOException
createConnection in interface ServerIOExceptionpublic boolean isClusterUp()
isClusterUp in interface RegionServerServicesCopyright © 2007–2019 Cloudera. All rights reserved.