org.apache.hadoop.hive.metastore
Class AlternateFailurePreListener

java.lang.Object
  extended by org.apache.hadoop.hive.metastore.MetaStorePreEventListener
      extended by org.apache.hadoop.hive.metastore.AlternateFailurePreListener

public class AlternateFailurePreListener
extends MetaStorePreEventListener

AlternateFailurePreListener. An implemenation of MetaStorePreEventListener which fails every other time it's invoked, starting with the first time. It also records and makes available the number of times it's been invoked.


Constructor Summary
AlternateFailurePreListener(Configuration config)
           
 
Method Summary
static int getCallCount()
           
 void onEvent(PreEventContext context)
           
 
Methods inherited from class org.apache.hadoop.hive.metastore.MetaStorePreEventListener
getConf, setConf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlternateFailurePreListener

public AlternateFailurePreListener(Configuration config)
Method Detail

onEvent

public void onEvent(PreEventContext context)
             throws MetaException,
                    NoSuchObjectException,
                    InvalidOperationException
Specified by:
onEvent in class MetaStorePreEventListener
Throws:
MetaException
NoSuchObjectException
InvalidOperationException

getCallCount

public static int getCallCount()


Copyright © 2012 The Apache Software Foundation