Package org.apache.hadoop.hbase.client
Class DummyAsyncClusterConnection
java.lang.Object
org.apache.hadoop.hbase.client.DummyAsyncClusterConnection
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.apache.hadoop.hbase.client.AsyncClusterConnection
,org.apache.hadoop.hbase.client.AsyncConnection
- Direct Known Subclasses:
TestWALEntrySinkFilter.DevNullAsyncClusterConnection
public class DummyAsyncClusterConnection
extends Object
implements org.apache.hadoop.hbase.client.AsyncClusterConnection
Can be overridden in UT if you only want to implement part of the methods in
AsyncClusterConnection
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbulkLoad
(org.apache.hadoop.hbase.TableName tableName, List<org.apache.hadoop.hbase.util.Pair<byte[], String>> familyPaths, byte[] row, boolean assignSeqNum, org.apache.hadoop.security.token.Token<?> userToken, String bulkToken, boolean copyFiles, List<String> clusterIds, boolean replicate) cleanupBulkLoad
(org.apache.hadoop.hbase.TableName tableName, String bulkToken) void
void
close()
CompletableFuture<org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.FlushRegionResponse>
flush
(byte[] regionName, boolean writeFlushWALMarker) org.apache.hadoop.hbase.client.AsyncAdminBuilder
org.apache.hadoop.hbase.client.AsyncAdminBuilder
CompletableFuture<List<org.apache.hadoop.hbase.ServerName>>
getAllBootstrapNodes
(org.apache.hadoop.hbase.ServerName regionServer) org.apache.hadoop.hbase.client.AsyncBufferedMutatorBuilder
getBufferedMutatorBuilder
(org.apache.hadoop.hbase.TableName tableName) org.apache.hadoop.hbase.client.AsyncBufferedMutatorBuilder
getBufferedMutatorBuilder
(org.apache.hadoop.hbase.TableName tableName, ExecutorService pool) org.apache.hadoop.conf.Configuration
CompletableFuture<org.apache.hadoop.hbase.client.Hbck>
getHbck()
org.apache.hadoop.hbase.client.Hbck
getHbck
(org.apache.hadoop.hbase.ServerName masterServer) CompletableFuture<List<org.apache.hadoop.hbase.ServerName>>
getLiveRegionServers
(org.apache.hadoop.hbase.zookeeper.MasterAddressTracker masterAddrTracker, int count) org.apache.hadoop.hbase.client.NonceGenerator
CompletableFuture<org.apache.hadoop.hbase.RegionLocations>
getRegionLocations
(org.apache.hadoop.hbase.TableName tableName, byte[] row, boolean reload) org.apache.hadoop.hbase.client.AsyncTableRegionLocator
getRegionLocator
(org.apache.hadoop.hbase.TableName tableName) org.apache.hadoop.hbase.client.AsyncRegionServerAdmin
getRegionServerAdmin
(org.apache.hadoop.hbase.ServerName serverName) org.apache.hadoop.hbase.ipc.RpcClient
org.apache.hadoop.hbase.client.AsyncTableBuilder<org.apache.hadoop.hbase.client.AdvancedScanResultConsumer>
getTableBuilder
(org.apache.hadoop.hbase.TableName tableName) org.apache.hadoop.hbase.client.AsyncTableBuilder<org.apache.hadoop.hbase.client.ScanResultConsumer>
getTableBuilder
(org.apache.hadoop.hbase.TableName tableName, ExecutorService pool) boolean
isClosed()
prepareBulkLoad
(org.apache.hadoop.hbase.TableName tableName) replicate
(org.apache.hadoop.hbase.client.RegionInfo replica, List<org.apache.hadoop.hbase.wal.WAL.Entry> entries, int numRetries, long rpcTimeoutNs, long operationTimeoutNs) org.apache.hadoop.hbase.client.Connection
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.hadoop.hbase.client.AsyncConnection
getAdmin, getAdmin, getBufferedMutator, getBufferedMutator, getTable, getTable
-
Constructor Details
-
DummyAsyncClusterConnection
public DummyAsyncClusterConnection()
-
-
Method Details
-
getConfiguration
- Specified by:
getConfiguration
in interfaceorg.apache.hadoop.hbase.client.AsyncConnection
-
getRegionLocator
public org.apache.hadoop.hbase.client.AsyncTableRegionLocator getRegionLocator(org.apache.hadoop.hbase.TableName tableName) - Specified by:
getRegionLocator
in interfaceorg.apache.hadoop.hbase.client.AsyncConnection
-
clearRegionLocationCache
- Specified by:
clearRegionLocationCache
in interfaceorg.apache.hadoop.hbase.client.AsyncConnection
-
getTableBuilder
public org.apache.hadoop.hbase.client.AsyncTableBuilder<org.apache.hadoop.hbase.client.AdvancedScanResultConsumer> getTableBuilder(org.apache.hadoop.hbase.TableName tableName) - Specified by:
getTableBuilder
in interfaceorg.apache.hadoop.hbase.client.AsyncConnection
-
getTableBuilder
public org.apache.hadoop.hbase.client.AsyncTableBuilder<org.apache.hadoop.hbase.client.ScanResultConsumer> getTableBuilder(org.apache.hadoop.hbase.TableName tableName, ExecutorService pool) - Specified by:
getTableBuilder
in interfaceorg.apache.hadoop.hbase.client.AsyncConnection
-
getAdminBuilder
- Specified by:
getAdminBuilder
in interfaceorg.apache.hadoop.hbase.client.AsyncConnection
-
getAdminBuilder
- Specified by:
getAdminBuilder
in interfaceorg.apache.hadoop.hbase.client.AsyncConnection
-
getBufferedMutatorBuilder
public org.apache.hadoop.hbase.client.AsyncBufferedMutatorBuilder getBufferedMutatorBuilder(org.apache.hadoop.hbase.TableName tableName) - Specified by:
getBufferedMutatorBuilder
in interfaceorg.apache.hadoop.hbase.client.AsyncConnection
-
getBufferedMutatorBuilder
public org.apache.hadoop.hbase.client.AsyncBufferedMutatorBuilder getBufferedMutatorBuilder(org.apache.hadoop.hbase.TableName tableName, ExecutorService pool) - Specified by:
getBufferedMutatorBuilder
in interfaceorg.apache.hadoop.hbase.client.AsyncConnection
-
getHbck
- Specified by:
getHbck
in interfaceorg.apache.hadoop.hbase.client.AsyncConnection
-
getHbck
public org.apache.hadoop.hbase.client.Hbck getHbck(org.apache.hadoop.hbase.ServerName masterServer) throws IOException - Specified by:
getHbck
in interfaceorg.apache.hadoop.hbase.client.AsyncConnection
- Throws:
IOException
-
isClosed
- Specified by:
isClosed
in interfaceorg.apache.hadoop.hbase.client.AsyncConnection
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
getRegionServerAdmin
public org.apache.hadoop.hbase.client.AsyncRegionServerAdmin getRegionServerAdmin(org.apache.hadoop.hbase.ServerName serverName) - Specified by:
getRegionServerAdmin
in interfaceorg.apache.hadoop.hbase.client.AsyncClusterConnection
-
getNonceGenerator
- Specified by:
getNonceGenerator
in interfaceorg.apache.hadoop.hbase.client.AsyncClusterConnection
-
getRpcClient
- Specified by:
getRpcClient
in interfaceorg.apache.hadoop.hbase.client.AsyncClusterConnection
-
flush
public CompletableFuture<org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.FlushRegionResponse> flush(byte[] regionName, boolean writeFlushWALMarker) - Specified by:
flush
in interfaceorg.apache.hadoop.hbase.client.AsyncClusterConnection
-
getRegionLocations
public CompletableFuture<org.apache.hadoop.hbase.RegionLocations> getRegionLocations(org.apache.hadoop.hbase.TableName tableName, byte[] row, boolean reload) - Specified by:
getRegionLocations
in interfaceorg.apache.hadoop.hbase.client.AsyncClusterConnection
-
prepareBulkLoad
- Specified by:
prepareBulkLoad
in interfaceorg.apache.hadoop.hbase.client.AsyncClusterConnection
-
bulkLoad
public CompletableFuture<Boolean> bulkLoad(org.apache.hadoop.hbase.TableName tableName, List<org.apache.hadoop.hbase.util.Pair<byte[], String>> familyPaths, byte[] row, boolean assignSeqNum, org.apache.hadoop.security.token.Token<?> userToken, String bulkToken, boolean copyFiles, List<String> clusterIds, boolean replicate) - Specified by:
bulkLoad
in interfaceorg.apache.hadoop.hbase.client.AsyncClusterConnection
-
cleanupBulkLoad
public CompletableFuture<Void> cleanupBulkLoad(org.apache.hadoop.hbase.TableName tableName, String bulkToken) - Specified by:
cleanupBulkLoad
in interfaceorg.apache.hadoop.hbase.client.AsyncClusterConnection
-
toConnection
- Specified by:
toConnection
in interfaceorg.apache.hadoop.hbase.client.AsyncConnection
-
getLiveRegionServers
public CompletableFuture<List<org.apache.hadoop.hbase.ServerName>> getLiveRegionServers(org.apache.hadoop.hbase.zookeeper.MasterAddressTracker masterAddrTracker, int count) - Specified by:
getLiveRegionServers
in interfaceorg.apache.hadoop.hbase.client.AsyncClusterConnection
-
getAllBootstrapNodes
public CompletableFuture<List<org.apache.hadoop.hbase.ServerName>> getAllBootstrapNodes(org.apache.hadoop.hbase.ServerName regionServer) - Specified by:
getAllBootstrapNodes
in interfaceorg.apache.hadoop.hbase.client.AsyncClusterConnection
-
replicate
public CompletableFuture<Void> replicate(org.apache.hadoop.hbase.client.RegionInfo replica, List<org.apache.hadoop.hbase.wal.WAL.Entry> entries, int numRetries, long rpcTimeoutNs, long operationTimeoutNs) - Specified by:
replicate
in interfaceorg.apache.hadoop.hbase.client.AsyncClusterConnection
-