org.apache.hadoop.hive.metastore
Class MetaStoreEventListener
java.lang.Object
org.apache.hadoop.hive.metastore.MetaStoreEventListener
- Direct Known Subclasses:
- DummyListener, IpAddressListener, TestMetaStoreListenersError.ErrorEventListener
public abstract class MetaStoreEventListener
- extends Object
This abstract class needs to be extended to provide implementation of actions that needs
to be performed when a particular event occurs on a metastore. These methods
are called whenever an event occurs on metastore. Status of the event whether
it was successful or not is contained in container event object.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetaStoreEventListener
public MetaStoreEventListener(Configuration config)
onCreateTable
public void onCreateTable(CreateTableEvent tableEvent)
throws MetaException
- Parameters:
tableEvent - table event.
- Throws:
MetaException
onDropTable
public void onDropTable(DropTableEvent tableEvent)
throws MetaException
- Parameters:
tableEvent - table event.
- Throws:
MetaException
onAlterTable
public void onAlterTable(AlterTableEvent tableEvent)
throws MetaException
- Parameters:
tableEvent - alter table event
- Throws:
MetaException
onAddPartition
public void onAddPartition(AddPartitionEvent partitionEvent)
throws MetaException
- Throws:
MetaException
onDropPartition
public void onDropPartition(DropPartitionEvent partitionEvent)
throws MetaException
- Parameters:
partitionEvent - partition event
- Throws:
MetaException
onAlterPartition
public void onAlterPartition(AlterPartitionEvent partitionEvent)
throws MetaException
- Parameters:
partitionEvent - partition event
- Throws:
MetaException
onCreateDatabase
public void onCreateDatabase(CreateDatabaseEvent dbEvent)
throws MetaException
- Parameters:
dbEvent - database event
- Throws:
MetaException
onDropDatabase
public void onDropDatabase(DropDatabaseEvent dbEvent)
throws MetaException
- Parameters:
dbEvent - database event
- Throws:
MetaException
onLoadPartitionDone
public void onLoadPartitionDone(LoadPartitionDoneEvent partSetDoneEvent)
throws MetaException
- Parameters:
partSetDoneEvent -
- Throws:
MetaException
getConf
public Configuration getConf()
setConf
public void setConf(Configuration config)
Copyright © 2012 The Apache Software Foundation