public class CachedClientPool extends Object implements ClientPool<org.apache.hadoop.hive.metastore.IMetaStoreClient,org.apache.thrift.TException>
Mostly copied from iceberg.
ClientPool.Action<R,C,E extends Exception>, ClientPool.ClientPoolImpl<C,E extends Exception>, ClientPool.ExecuteAction<C,E extends Exception>| Constructor and Description |
|---|
CachedClientPool(org.apache.hadoop.conf.Configuration conf,
Options options,
String clientClassName) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(ClientPool.ExecuteAction<org.apache.hadoop.hive.metastore.IMetaStoreClient,org.apache.thrift.TException> action) |
void |
execute(ClientPool.ExecuteAction<org.apache.hadoop.hive.metastore.IMetaStoreClient,org.apache.thrift.TException> action,
boolean retry) |
<R> R |
run(ClientPool.Action<R,org.apache.hadoop.hive.metastore.IMetaStoreClient,org.apache.thrift.TException> action) |
<R> R |
run(ClientPool.Action<R,org.apache.hadoop.hive.metastore.IMetaStoreClient,org.apache.thrift.TException> action,
boolean retry) |
public <R> R run(ClientPool.Action<R,org.apache.hadoop.hive.metastore.IMetaStoreClient,org.apache.thrift.TException> action) throws org.apache.thrift.TException, InterruptedException
run in interface ClientPool<org.apache.hadoop.hive.metastore.IMetaStoreClient,org.apache.thrift.TException>org.apache.thrift.TExceptionInterruptedExceptionpublic <R> R run(ClientPool.Action<R,org.apache.hadoop.hive.metastore.IMetaStoreClient,org.apache.thrift.TException> action, boolean retry) throws org.apache.thrift.TException, InterruptedException
run in interface ClientPool<org.apache.hadoop.hive.metastore.IMetaStoreClient,org.apache.thrift.TException>org.apache.thrift.TExceptionInterruptedExceptionpublic void execute(ClientPool.ExecuteAction<org.apache.hadoop.hive.metastore.IMetaStoreClient,org.apache.thrift.TException> action) throws org.apache.thrift.TException, InterruptedException
execute in interface ClientPool<org.apache.hadoop.hive.metastore.IMetaStoreClient,org.apache.thrift.TException>org.apache.thrift.TExceptionInterruptedExceptionpublic void execute(ClientPool.ExecuteAction<org.apache.hadoop.hive.metastore.IMetaStoreClient,org.apache.thrift.TException> action, boolean retry) throws org.apache.thrift.TException, InterruptedException
execute in interface ClientPool<org.apache.hadoop.hive.metastore.IMetaStoreClient,org.apache.thrift.TException>org.apache.thrift.TExceptionInterruptedExceptionCopyright © 2023–2024 The Apache Software Foundation. All rights reserved.