public class MockRegionServerServices extends Object implements org.apache.hadoop.hbase.regionserver.RegionServerServices
Modifier and Type | Field and Description |
---|---|
private boolean |
abortRequested |
private org.apache.hadoop.conf.Configuration |
conf |
private org.apache.hadoop.hbase.fs.HFileSystem |
hfs |
protected static org.slf4j.Logger |
LOG |
private Map<String,org.apache.hadoop.hbase.regionserver.Region> |
regions |
private ConcurrentSkipListMap<byte[],Boolean> |
rit |
private org.apache.hadoop.hbase.ipc.RpcServerInterface |
rpcServer |
private AtomicBoolean |
running |
private org.apache.hadoop.hbase.ServerName |
serverName |
private boolean |
stopping |
private org.apache.hadoop.hbase.zookeeper.ZKWatcher |
zkw |
Constructor and Description |
---|
MockRegionServerServices() |
MockRegionServerServices(org.apache.hadoop.conf.Configuration conf) |
MockRegionServerServices(org.apache.hadoop.hbase.zookeeper.ZKWatcher zkw) |
MockRegionServerServices(org.apache.hadoop.hbase.zookeeper.ZKWatcher zkw,
org.apache.hadoop.hbase.ServerName serverName) |
Modifier and Type | Method and Description |
---|---|
void |
abort(String why,
Throwable e) |
void |
addRegion(org.apache.hadoop.hbase.regionserver.HRegion r) |
org.apache.hadoop.hbase.client.Connection |
createConnection(org.apache.hadoop.conf.Configuration conf) |
org.apache.hadoop.hbase.security.access.AccessChecker |
getAccessChecker() |
Optional<org.apache.hadoop.hbase.io.hfile.BlockCache> |
getBlockCache() |
org.apache.hadoop.hbase.ChoreService |
getChoreService() |
org.apache.hadoop.hbase.client.ClusterConnection |
getClusterConnection() |
double |
getCompactionPressure() |
org.apache.hadoop.hbase.regionserver.compactions.CompactionRequester |
getCompactionRequestor() |
org.apache.hadoop.conf.Configuration |
getConfiguration() |
org.apache.hadoop.hbase.client.ClusterConnection |
getConnection() |
org.apache.hadoop.hbase.CoordinatedStateManager |
getCoordinatedStateManager() |
org.apache.hadoop.hbase.executor.ExecutorService |
getExecutorService() |
InetSocketAddress[] |
getFavoredNodesForRegion(String encodedRegionName) |
org.apache.hadoop.hbase.fs.HFileSystem |
getFileSystem() |
double |
getFlushPressure() |
org.apache.hadoop.hbase.regionserver.FlushRequester |
getFlushRequester() |
org.apache.hadoop.hbase.regionserver.throttle.ThroughputController |
getFlushThroughputController() |
org.apache.hadoop.hbase.regionserver.HeapMemoryManager |
getHeapMemoryManager() |
org.apache.hadoop.hbase.regionserver.LeaseManager |
getLeaseManager() |
org.apache.hadoop.hbase.regionserver.MetricsRegionServer |
getMetrics() |
Optional<org.apache.hadoop.hbase.mob.MobFileCache> |
getMobFileCache() |
org.apache.hadoop.hbase.regionserver.ServerNonceManager |
getNonceManager() |
org.apache.hadoop.hbase.regionserver.Region |
getRegion(String encodedRegionName) |
List<org.apache.hadoop.hbase.regionserver.Region> |
getRegions() |
List<org.apache.hadoop.hbase.regionserver.Region> |
getRegions(org.apache.hadoop.hbase.TableName tableName) |
org.apache.hadoop.hbase.regionserver.RegionServerAccounting |
getRegionServerAccounting() |
org.apache.hadoop.hbase.quotas.RegionServerRpcQuotaManager |
getRegionServerRpcQuotaManager() |
org.apache.hadoop.hbase.quotas.RegionServerSpaceQuotaManager |
getRegionServerSpaceQuotaManager() |
ConcurrentSkipListMap<byte[],Boolean> |
getRegionsInTransitionInRS() |
org.apache.hadoop.hbase.ipc.RpcServerInterface |
getRpcServer() |
org.apache.hadoop.hbase.regionserver.SecureBulkLoadManager |
getSecureBulkLoadManager() |
org.apache.hadoop.hbase.ServerName |
getServerName() |
org.apache.hadoop.hbase.TableDescriptors |
getTableDescriptors() |
org.apache.hadoop.hbase.wal.WAL |
getWAL(org.apache.hadoop.hbase.client.RegionInfo regionInfo) |
List<org.apache.hadoop.hbase.wal.WAL> |
getWALs() |
org.apache.hadoop.hbase.security.access.ZKPermissionWatcher |
getZKPermissionWatcher() |
org.apache.hadoop.hbase.zookeeper.ZKWatcher |
getZooKeeper() |
boolean |
isAborted() |
boolean |
isClusterUp() |
boolean |
isStopped() |
boolean |
isStopping() |
void |
postOpenDeployTasks(org.apache.hadoop.hbase.regionserver.RegionServerServices.PostOpenDeployContext context) |
org.apache.hadoop.hbase.client.locking.EntityLock |
regionLock(List<org.apache.hadoop.hbase.client.RegionInfo> regionInfos,
String description,
org.apache.hadoop.hbase.Abortable abort) |
boolean |
registerService(com.google.protobuf.Service service) |
boolean |
removeRegion(org.apache.hadoop.hbase.regionserver.HRegion r,
org.apache.hadoop.hbase.ServerName destination) |
boolean |
reportFileArchivalForQuotas(org.apache.hadoop.hbase.TableName tableName,
Collection<Map.Entry<String,Long>> archivedFiles) |
boolean |
reportRegionSizesForQuotas(org.apache.hadoop.hbase.quotas.RegionSizeStore sizeStore) |
boolean |
reportRegionStateTransition(org.apache.hadoop.hbase.regionserver.RegionServerServices.RegionStateTransitionContext context) |
void |
setFileSystem(org.apache.hadoop.fs.FileSystem hfs) |
void |
setRpcServer(org.apache.hadoop.hbase.ipc.RpcServerInterface rpc) |
void |
stop(String why) |
void |
unassign(byte[] regionName) |
void |
updateRegionFavoredNodesMapping(String encodedRegionName,
List<org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.ServerName> favoredNodes) |
protected static final org.slf4j.Logger LOG
private final ConcurrentSkipListMap<byte[],Boolean> rit
private org.apache.hadoop.hbase.fs.HFileSystem hfs
private final org.apache.hadoop.conf.Configuration conf
private org.apache.hadoop.hbase.zookeeper.ZKWatcher zkw
private org.apache.hadoop.hbase.ServerName serverName
private org.apache.hadoop.hbase.ipc.RpcServerInterface rpcServer
private volatile boolean abortRequested
private volatile boolean stopping
private final AtomicBoolean running
MockRegionServerServices(org.apache.hadoop.hbase.zookeeper.ZKWatcher zkw)
MockRegionServerServices(org.apache.hadoop.hbase.zookeeper.ZKWatcher zkw, org.apache.hadoop.hbase.ServerName serverName)
MockRegionServerServices()
public MockRegionServerServices(org.apache.hadoop.conf.Configuration conf)
public boolean removeRegion(org.apache.hadoop.hbase.regionserver.HRegion r, org.apache.hadoop.hbase.ServerName destination)
removeRegion
in interface org.apache.hadoop.hbase.regionserver.MutableOnlineRegions
public org.apache.hadoop.hbase.regionserver.Region getRegion(String encodedRegionName)
getRegion
in interface org.apache.hadoop.hbase.regionserver.OnlineRegions
public List<org.apache.hadoop.hbase.regionserver.Region> getRegions(org.apache.hadoop.hbase.TableName tableName) throws IOException
getRegions
in interface org.apache.hadoop.hbase.regionserver.OnlineRegions
IOException
public List<org.apache.hadoop.hbase.regionserver.Region> getRegions()
getRegions
in interface org.apache.hadoop.hbase.regionserver.OnlineRegions
public void addRegion(org.apache.hadoop.hbase.regionserver.HRegion r)
addRegion
in interface org.apache.hadoop.hbase.regionserver.MutableOnlineRegions
public void postOpenDeployTasks(org.apache.hadoop.hbase.regionserver.RegionServerServices.PostOpenDeployContext context) throws IOException
postOpenDeployTasks
in interface org.apache.hadoop.hbase.regionserver.RegionServerServices
IOException
public boolean isStopping()
isStopping
in interface org.apache.hadoop.hbase.Server
public org.apache.hadoop.hbase.ipc.RpcServerInterface getRpcServer()
getRpcServer
in interface org.apache.hadoop.hbase.regionserver.RegionServerServices
public void setRpcServer(org.apache.hadoop.hbase.ipc.RpcServerInterface rpc)
public ConcurrentSkipListMap<byte[],Boolean> getRegionsInTransitionInRS()
getRegionsInTransitionInRS
in interface org.apache.hadoop.hbase.regionserver.RegionServerServices
public org.apache.hadoop.hbase.regionserver.FlushRequester getFlushRequester()
getFlushRequester
in interface org.apache.hadoop.hbase.regionserver.RegionServerServices
public org.apache.hadoop.hbase.regionserver.compactions.CompactionRequester getCompactionRequestor()
getCompactionRequestor
in interface org.apache.hadoop.hbase.regionserver.RegionServerServices
public org.apache.hadoop.hbase.client.ClusterConnection getConnection()
getConnection
in interface org.apache.hadoop.hbase.Server
public org.apache.hadoop.hbase.zookeeper.ZKWatcher getZooKeeper()
getZooKeeper
in interface org.apache.hadoop.hbase.Server
public org.apache.hadoop.hbase.CoordinatedStateManager getCoordinatedStateManager()
getCoordinatedStateManager
in interface org.apache.hadoop.hbase.Server
public org.apache.hadoop.hbase.regionserver.RegionServerAccounting getRegionServerAccounting()
getRegionServerAccounting
in interface org.apache.hadoop.hbase.regionserver.RegionServerServices
public org.apache.hadoop.hbase.quotas.RegionServerRpcQuotaManager getRegionServerRpcQuotaManager()
getRegionServerRpcQuotaManager
in interface org.apache.hadoop.hbase.regionserver.RegionServerServices
public org.apache.hadoop.hbase.ServerName getServerName()
getServerName
in interface org.apache.hadoop.hbase.Server
public org.apache.hadoop.conf.Configuration getConfiguration()
getConfiguration
in interface org.apache.hadoop.hbase.Server
public void abort(String why, Throwable e)
abort
in interface org.apache.hadoop.hbase.Abortable
public boolean isStopped()
isStopped
in interface org.apache.hadoop.hbase.Stoppable
public boolean isAborted()
isAborted
in interface org.apache.hadoop.hbase.Abortable
public org.apache.hadoop.hbase.fs.HFileSystem getFileSystem()
getFileSystem
in interface org.apache.hadoop.hbase.Server
public void setFileSystem(org.apache.hadoop.fs.FileSystem hfs)
public org.apache.hadoop.hbase.regionserver.LeaseManager getLeaseManager()
getLeaseManager
in interface org.apache.hadoop.hbase.regionserver.RegionServerServices
public List<org.apache.hadoop.hbase.wal.WAL> getWALs() throws IOException
getWALs
in interface org.apache.hadoop.hbase.regionserver.RegionServerServices
IOException
public org.apache.hadoop.hbase.wal.WAL getWAL(org.apache.hadoop.hbase.client.RegionInfo regionInfo) throws IOException
getWAL
in interface org.apache.hadoop.hbase.regionserver.RegionServerServices
IOException
public org.apache.hadoop.hbase.executor.ExecutorService getExecutorService()
getExecutorService
in interface org.apache.hadoop.hbase.regionserver.RegionServerServices
public org.apache.hadoop.hbase.ChoreService getChoreService()
getChoreService
in interface org.apache.hadoop.hbase.Server
public void updateRegionFavoredNodesMapping(String encodedRegionName, List<org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.ServerName> favoredNodes)
updateRegionFavoredNodesMapping
in interface org.apache.hadoop.hbase.regionserver.FavoredNodesForRegion
public InetSocketAddress[] getFavoredNodesForRegion(String encodedRegionName)
getFavoredNodesForRegion
in interface org.apache.hadoop.hbase.regionserver.FavoredNodesForRegion
public org.apache.hadoop.hbase.regionserver.ServerNonceManager getNonceManager()
getNonceManager
in interface org.apache.hadoop.hbase.regionserver.RegionServerServices
public boolean reportRegionStateTransition(org.apache.hadoop.hbase.regionserver.RegionServerServices.RegionStateTransitionContext context)
reportRegionStateTransition
in interface org.apache.hadoop.hbase.regionserver.RegionServerServices
public boolean registerService(com.google.protobuf.Service service)
registerService
in interface org.apache.hadoop.hbase.regionserver.RegionServerServices
public org.apache.hadoop.hbase.regionserver.HeapMemoryManager getHeapMemoryManager()
getHeapMemoryManager
in interface org.apache.hadoop.hbase.regionserver.RegionServerServices
public double getCompactionPressure()
getCompactionPressure
in interface org.apache.hadoop.hbase.regionserver.RegionServerServices
public org.apache.hadoop.hbase.client.ClusterConnection getClusterConnection()
getClusterConnection
in interface org.apache.hadoop.hbase.Server
public org.apache.hadoop.hbase.regionserver.throttle.ThroughputController getFlushThroughputController()
getFlushThroughputController
in interface org.apache.hadoop.hbase.regionserver.RegionServerServices
public double getFlushPressure()
getFlushPressure
in interface org.apache.hadoop.hbase.regionserver.RegionServerServices
public org.apache.hadoop.hbase.regionserver.MetricsRegionServer getMetrics()
getMetrics
in interface org.apache.hadoop.hbase.regionserver.RegionServerServices
public org.apache.hadoop.hbase.client.locking.EntityLock regionLock(List<org.apache.hadoop.hbase.client.RegionInfo> regionInfos, String description, org.apache.hadoop.hbase.Abortable abort) throws IOException
regionLock
in interface org.apache.hadoop.hbase.regionserver.RegionServerServices
IOException
public org.apache.hadoop.hbase.regionserver.SecureBulkLoadManager getSecureBulkLoadManager()
getSecureBulkLoadManager
in interface org.apache.hadoop.hbase.regionserver.RegionServerServices
public void unassign(byte[] regionName) throws IOException
unassign
in interface org.apache.hadoop.hbase.regionserver.RegionServerServices
IOException
public org.apache.hadoop.hbase.quotas.RegionServerSpaceQuotaManager getRegionServerSpaceQuotaManager()
getRegionServerSpaceQuotaManager
in interface org.apache.hadoop.hbase.regionserver.RegionServerServices
public org.apache.hadoop.hbase.client.Connection createConnection(org.apache.hadoop.conf.Configuration conf) throws IOException
createConnection
in interface org.apache.hadoop.hbase.Server
IOException
public boolean isClusterUp()
isClusterUp
in interface org.apache.hadoop.hbase.regionserver.RegionServerServices
public org.apache.hadoop.hbase.TableDescriptors getTableDescriptors()
getTableDescriptors
in interface org.apache.hadoop.hbase.regionserver.RegionServerServices
public Optional<org.apache.hadoop.hbase.io.hfile.BlockCache> getBlockCache()
getBlockCache
in interface org.apache.hadoop.hbase.regionserver.RegionServerServices
public Optional<org.apache.hadoop.hbase.mob.MobFileCache> getMobFileCache()
getMobFileCache
in interface org.apache.hadoop.hbase.regionserver.RegionServerServices
public org.apache.hadoop.hbase.security.access.AccessChecker getAccessChecker()
getAccessChecker
in interface org.apache.hadoop.hbase.regionserver.RegionServerServices
public org.apache.hadoop.hbase.security.access.ZKPermissionWatcher getZKPermissionWatcher()
getZKPermissionWatcher
in interface org.apache.hadoop.hbase.regionserver.RegionServerServices
public boolean reportRegionSizesForQuotas(org.apache.hadoop.hbase.quotas.RegionSizeStore sizeStore)
reportRegionSizesForQuotas
in interface org.apache.hadoop.hbase.regionserver.RegionServerServices
public boolean reportFileArchivalForQuotas(org.apache.hadoop.hbase.TableName tableName, Collection<Map.Entry<String,Long>> archivedFiles)
reportFileArchivalForQuotas
in interface org.apache.hadoop.hbase.regionserver.RegionServerServices
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.