Package org.apache.hadoop.hbase.client
Class ConnectionUtils.MasterlessConnection
java.lang.Object
org.apache.hadoop.hbase.client.ConnectionImplementation
org.apache.hadoop.hbase.client.ConnectionUtils.MasterlessConnection
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Abortable
,ClusterConnection
,Connection
- Enclosing class:
- ConnectionUtils
Some tests shut down the master. But table availability is a master RPC which is performed on
region re-lookups.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.client.ConnectionImplementation
ConnectionImplementation.MasterServiceState, ConnectionImplementation.ServerErrorTracker
-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.client.ConnectionImplementation
clusterId, clusterStatusListener, MASTER_STATE_CACHE_TIMEOUT_SEC, masterServiceState, RETRIES_BY_SERVER_KEY, rpcTimeout, user
Fields inherited from interface org.apache.hadoop.hbase.client.ClusterConnection
HBASE_CLIENT_CONNECTION_IMPL
-
Constructor Summary
ConstructorDescriptionMasterlessConnection
(org.apache.hadoop.conf.Configuration conf, ExecutorService pool, User user, Map<String, byte[]> requestAttributes) -
Method Summary
Modifier and TypeMethodDescriptionboolean
isTableDisabled
(TableName tableName) Check if a table is disabled.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, getClient, 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, isTableEnabled, locateRegion, locateRegion, locateRegion, locateRegion, locateRegions, locateRegions, masterConnectionStateSupplier, releaseMaster, relocateRegion, relocateRegion, retrieveClusterId, takeUserRegionLock, toString, updateCachedLocation, updateCachedLocations
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.hadoop.hbase.client.ClusterConnection
clearRegionCache
Methods inherited from interface org.apache.hadoop.hbase.client.Connection
getTable
-
Constructor Details
-
MasterlessConnection
MasterlessConnection(org.apache.hadoop.conf.Configuration conf, ExecutorService pool, User user, Map<String, byte[]> requestAttributes) throws IOException- Throws:
IOException
-
-
Method Details
-
isTableDisabled
Description copied from interface:ClusterConnection
Check if a table is disabled.- Specified by:
isTableDisabled
in interfaceClusterConnection
- Overrides:
isTableDisabled
in classConnectionImplementation
- Parameters:
tableName
- table name- Returns:
- true if the table is disabled, false otherwise
- Throws:
IOException
- if a remote or network exception occurs
-