Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
Classes | |
class | MetaStoreClient |
Public Member Functions | |
MetaStoreClientPool (int initialSize) | |
MetaStoreClientPool (int initialSize, HiveConf hiveConf) | |
void | addClients (int numClients) |
MetaStoreClient | getClient () |
void | close () |
Private Attributes | |
final int | clientCreationDelayMs_ |
final ConcurrentLinkedQueue < MetaStoreClient > | clientPool_ |
Boolean | poolClosed_ = false |
final HiveConf | hiveConf_ |
Static Private Attributes | |
static final String | HIVE_METASTORE_CNXN_DELAY_MS_CONF |
static final int | DEFAULT_HIVE_METASTORE_CNXN_DELAY_MS_CONF = 0 |
static final Logger | LOG = Logger.getLogger(MetaStoreClientPool.class) |
Manages a pool of HiveMetaStoreClient connections. If the connection pool is empty a new client is created and added to the pool. There is no size limit.
Definition at line 29 of file MetaStoreClientPool.java.
|
inline |
Definition at line 100 of file MetaStoreClientPool.java.
|
inline |
Definition at line 104 of file MetaStoreClientPool.java.
References com.cloudera.impala.catalog.MetaStoreClientPool.addClients(), com.cloudera.impala.catalog.MetaStoreClientPool.clientCreationDelayMs_, com.cloudera.impala.catalog.MetaStoreClientPool.DEFAULT_HIVE_METASTORE_CNXN_DELAY_MS_CONF, and com.cloudera.impala.catalog.MetaStoreClientPool.HIVE_METASTORE_CNXN_DELAY_MS_CONF.
|
inline |
Add numClients to the client pool.
Definition at line 114 of file MetaStoreClientPool.java.
References com.cloudera.impala.catalog.MetaStoreClientPool.hiveConf_.
Referenced by com.cloudera.impala.catalog.MetaStoreClientPool.MetaStoreClientPool().
|
inline |
Removes all items from the connection pool and closes all Hive Meta Store client connections. Can be called multiple times.
Definition at line 160 of file MetaStoreClientPool.java.
References com.cloudera.impala.catalog.MetaStoreClientPool.clientPool_, and com.cloudera.impala.catalog.MetaStoreClientPool.poolClosed_.
|
inline |
Gets a client from the pool. If the pool is empty a new client is created.
Definition at line 123 of file MetaStoreClientPool.java.
References com.cloudera.impala.catalog.MetaStoreClientPool.clientCreationDelayMs_, and com.cloudera.impala.catalog.MetaStoreClientPool.hiveConf_.
|
private |
Definition at line 36 of file MetaStoreClientPool.java.
Referenced by com.cloudera.impala.catalog.MetaStoreClientPool.getClient(), and com.cloudera.impala.catalog.MetaStoreClientPool.MetaStoreClientPool().
|
private |
Definition at line 40 of file MetaStoreClientPool.java.
Referenced by com.cloudera.impala.catalog.MetaStoreClientPool.close().
|
staticprivate |
Definition at line 33 of file MetaStoreClientPool.java.
Referenced by com.cloudera.impala.catalog.MetaStoreClientPool.MetaStoreClientPool().
|
staticprivate |
Definition at line 31 of file MetaStoreClientPool.java.
Referenced by com.cloudera.impala.catalog.MetaStoreClientPool.MetaStoreClientPool().
|
private |
Definition at line 43 of file MetaStoreClientPool.java.
Referenced by com.cloudera.impala.catalog.MetaStoreClientPool.addClients(), and com.cloudera.impala.catalog.MetaStoreClientPool.getClient().
|
staticprivate |
Definition at line 38 of file MetaStoreClientPool.java.
|
private |
Definition at line 42 of file MetaStoreClientPool.java.
Referenced by com.cloudera.impala.catalog.MetaStoreClientPool.close(), and com.cloudera.impala.catalog.MetaStoreClientPool.MetaStoreClient.release().