Package org.apache.hadoop.hbase.client
Class TestClientNoCluster.ManyServersManyRegionsConnection
java.lang.Object
org.apache.hadoop.hbase.client.ConnectionImplementation
org.apache.hadoop.hbase.client.TestClientNoCluster.ManyServersManyRegionsConnection
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hadoop.hbase.Abortable,org.apache.hadoop.hbase.client.ClusterConnection,org.apache.hadoop.hbase.client.Connection
- Enclosing class:
- TestClientNoCluster
static class TestClientNoCluster.ManyServersManyRegionsConnection
extends org.apache.hadoop.hbase.client.ConnectionImplementation
Fake many regionservers and many regions on a connection implementation.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.client.ConnectionImplementation
org.apache.hadoop.hbase.client.ConnectionImplementation.MasterServiceState, org.apache.hadoop.hbase.client.ConnectionImplementation.ServerErrorTracker -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.apache.hadoop.conf.Configuration(package private) final SortedMap<byte[],org.apache.hadoop.hbase.util.Pair<org.apache.hadoop.hbase.HRegionInfo, org.apache.hadoop.hbase.ServerName>> Map of faked-up rows of a 'meta table'.(package private) final AtomicLong(package private) final Map<org.apache.hadoop.hbase.ServerName,org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService.BlockingInterface> Fields inherited from class org.apache.hadoop.hbase.client.ConnectionImplementation
clusterId, clusterStatusListener, MASTER_STATE_CACHE_TIMEOUT_SEC, masterServiceState, RETRIES_BY_SERVER_KEY, rpcTimeout, userFields inherited from interface org.apache.hadoop.hbase.client.ClusterConnection
HBASE_CLIENT_CONNECTION_IMPL -
Constructor Summary
ConstructorsConstructorDescriptionManyServersManyRegionsConnection(org.apache.hadoop.conf.Configuration conf, ExecutorService pool, org.apache.hadoop.hbase.security.User user, Map<String, byte[]> requestAttributes) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService.BlockingInterfacegetClient(org.apache.hadoop.hbase.ServerName sn) Methods inherited from class org.apache.hadoop.hbase.client.ConnectionImplementation
abort, cacheLocation, clearCaches, clearRegionCache, clearRegionCache, clearRegionLocationCache, close, finalize, getAdmin, getAdmin, getAdminForMaster, getAllBootstrapNodes, getAsyncProcess, getBackoffPolicy, getBufferedMutator, getBufferedMutator, getCachedLocation, getChoreService, getClusterId, getConfiguration, getConnectionConfiguration, getConnectionMetrics, getConnectionRegistry, getCurrentBatchPool, getCurrentMetaLookupPool, getHbck, getHbck, getLiveRegionServers, getMaster, getMasterServiceState, getNewRpcRetryingCallerFactory, getNonceGenerator, getNumberOfCachedRegionLocations, getRegionLocation, getRegionLocator, getRpcClient, getRpcControllerFactory, getRpcRetryingCallerFactory, getStatisticsTracker, getTable, getTableBuilder, getTableState, getUser, hasCellBlockSupport, injectNonceGeneratorForTesting, isAborted, isClosed, isMasterRunning, isTableAvailable, isTableDisabled, isTableEnabled, locateRegion, locateRegion, locateRegion, locateRegion, locateRegions, locateRegions, masterConnectionStateSupplier, releaseMaster, relocateRegion, relocateRegion, retrieveClusterId, takeUserRegionLock, toString, updateCachedLocation, updateCachedLocationsMethods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.hadoop.hbase.Abortable
abortMethods inherited from interface org.apache.hadoop.hbase.client.ClusterConnection
clearRegionCacheMethods inherited from interface org.apache.hadoop.hbase.client.Connection
getTable
-
Field Details
-
serversByClient
final Map<org.apache.hadoop.hbase.ServerName,org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService.BlockingInterface> serversByClient -
meta
final SortedMap<byte[],org.apache.hadoop.hbase.util.Pair<org.apache.hadoop.hbase.HRegionInfo, metaorg.apache.hadoop.hbase.ServerName>> Map of faked-up rows of a 'meta table'. -
sequenceids
-
conf
-
-
Constructor Details
-
ManyServersManyRegionsConnection
ManyServersManyRegionsConnection(org.apache.hadoop.conf.Configuration conf, ExecutorService pool, org.apache.hadoop.hbase.security.User user, Map<String, byte[]> requestAttributes) throws IOException- Throws:
IOException
-
-
Method Details
-
getClient
public org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService.BlockingInterface getClient(org.apache.hadoop.hbase.ServerName sn) throws IOException - Specified by:
getClientin interfaceorg.apache.hadoop.hbase.client.ClusterConnection- Overrides:
getClientin classorg.apache.hadoop.hbase.client.ConnectionImplementation- Throws:
IOException
-