org.apache.hadoop.hive.metastore
Class MetaStorePreEventListener

java.lang.Object
  extended by org.apache.hadoop.hive.metastore.MetaStorePreEventListener
All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
Direct Known Subclasses:
AuthorizationPreEventListener, DummyPreListener, MetaDataExportListener, PartitionNameWhitelistPreEventListener

public abstract class MetaStorePreEventListener
extends Object
implements org.apache.hadoop.conf.Configurable

This abstract class needs to be extended to provide implementation of actions that needs to be performed before a particular event occurs on a metastore. These methods are called before an event occurs on metastore.


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

Constructor Detail

MetaStorePreEventListener

public MetaStorePreEventListener(org.apache.hadoop.conf.Configuration config)
Method Detail

onEvent

public abstract void onEvent(PreEventContext context)
                      throws MetaException,
                             NoSuchObjectException,
                             InvalidOperationException
Throws:
MetaException
NoSuchObjectException
InvalidOperationException

getConf

public org.apache.hadoop.conf.Configuration getConf()
Specified by:
getConf in interface org.apache.hadoop.conf.Configurable

setConf

public void setConf(org.apache.hadoop.conf.Configuration config)
Specified by:
setConf in interface org.apache.hadoop.conf.Configurable


Copyright © 2011 The Apache Software Foundation