org.apache.hadoop.hive.metastore
Class RetryingMetaStoreClient

java.lang.Object
  extended by org.apache.hadoop.hive.metastore.RetryingMetaStoreClient
All Implemented Interfaces:
InvocationHandler

public class RetryingMetaStoreClient
extends Object
implements InvocationHandler

RetryingMetaStoreClient. Creates a proxy for a IMetaStoreClient implementation and retries calls to it on failure. If the login user is authenticated using keytab, it relogins user before each call.


Constructor Summary
protected RetryingMetaStoreClient(HiveConf hiveConf, HiveMetaHookLoader hookLoader, Class<? extends IMetaStoreClient> msClientClass)
           
 
Method Summary
static IMetaStoreClient getProxy(HiveConf hiveConf, HiveMetaHookLoader hookLoader, String mscClassName)
           
 Object invoke(Object proxy, Method method, Object[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RetryingMetaStoreClient

protected RetryingMetaStoreClient(HiveConf hiveConf,
                                  HiveMetaHookLoader hookLoader,
                                  Class<? extends IMetaStoreClient> msClientClass)
                           throws MetaException
Throws:
MetaException
Method Detail

getProxy

public static IMetaStoreClient getProxy(HiveConf hiveConf,
                                        HiveMetaHookLoader hookLoader,
                                        String mscClassName)
                                 throws MetaException
Throws:
MetaException

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable


Copyright © 2012 The Apache Software Foundation