org.apache.hadoop.hive.metastore
Class AlternateFailurePreListener
java.lang.Object
org.apache.hadoop.hive.metastore.MetaStorePreEventListener
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AlternateFailurePreListener
public AlternateFailurePreListener(Configuration config)
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