@InterfaceAudience.Private public class SharedAsyncConnection extends Object implements AsyncConnection
AsyncConnection to make it can't be closed.| Constructor and Description |
|---|
SharedAsyncConnection(AsyncConnection conn) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearRegionLocationCache() |
void |
close() |
AsyncAdminBuilder |
getAdminBuilder() |
AsyncAdminBuilder |
getAdminBuilder(ExecutorService pool) |
AsyncBufferedMutatorBuilder |
getBufferedMutatorBuilder(TableName tableName) |
AsyncBufferedMutatorBuilder |
getBufferedMutatorBuilder(TableName tableName,
ExecutorService pool) |
org.apache.hadoop.conf.Configuration |
getConfiguration() |
CompletableFuture<Hbck> |
getHbck() |
Hbck |
getHbck(ServerName masterServer) |
AsyncTableRegionLocator |
getRegionLocator(TableName tableName) |
AsyncTableBuilder<AdvancedScanResultConsumer> |
getTableBuilder(TableName tableName) |
AsyncTableBuilder<ScanResultConsumer> |
getTableBuilder(TableName tableName,
ExecutorService pool) |
boolean |
isClosed() |
Connection |
toConnection() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAdmin, getAdmin, getBufferedMutator, getBufferedMutator, getTable, getTablepublic SharedAsyncConnection(AsyncConnection conn)
public boolean isClosed()
isClosed in interface AsyncConnectionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic org.apache.hadoop.conf.Configuration getConfiguration()
getConfiguration in interface AsyncConnectionpublic AsyncTableRegionLocator getRegionLocator(TableName tableName)
getRegionLocator in interface AsyncConnectionpublic void clearRegionLocationCache()
clearRegionLocationCache in interface AsyncConnectionpublic AsyncTableBuilder<AdvancedScanResultConsumer> getTableBuilder(TableName tableName)
getTableBuilder in interface AsyncConnectionpublic AsyncTableBuilder<ScanResultConsumer> getTableBuilder(TableName tableName, ExecutorService pool)
getTableBuilder in interface AsyncConnectionpublic AsyncAdminBuilder getAdminBuilder()
getAdminBuilder in interface AsyncConnectionpublic AsyncAdminBuilder getAdminBuilder(ExecutorService pool)
getAdminBuilder in interface AsyncConnectionpublic AsyncBufferedMutatorBuilder getBufferedMutatorBuilder(TableName tableName)
getBufferedMutatorBuilder in interface AsyncConnectionpublic AsyncBufferedMutatorBuilder getBufferedMutatorBuilder(TableName tableName, ExecutorService pool)
getBufferedMutatorBuilder in interface AsyncConnectionpublic CompletableFuture<Hbck> getHbck()
getHbck in interface AsyncConnectionpublic Hbck getHbck(ServerName masterServer) throws IOException
getHbck in interface AsyncConnectionIOExceptionpublic Connection toConnection()
toConnection in interface AsyncConnectionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.