org.apache.hadoop.hive.metastore
Class IpAddressListener
java.lang.Object
org.apache.hadoop.hive.metastore.MetaStoreEventListener
org.apache.hadoop.hive.metastore.IpAddressListener
- All Implemented Interfaces:
- org.apache.hadoop.conf.Configurable
public class IpAddressListener
- extends MetaStoreEventListener
An implementation for MetaStoreEventListener which checks that the IP Address stored in
HMSHandler matches that of local host, for testing purposes.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IpAddressListener
public IpAddressListener(org.apache.hadoop.conf.Configuration config)
onAddPartition
public void onAddPartition(AddPartitionEvent partition)
throws MetaException
- Specified by:
onAddPartition
in class MetaStoreEventListener
- Throws:
MetaException
onCreateDatabase
public void onCreateDatabase(CreateDatabaseEvent db)
throws MetaException
- Specified by:
onCreateDatabase
in class MetaStoreEventListener
- Parameters:
db
- database event
- Throws:
MetaException
onCreateTable
public void onCreateTable(CreateTableEvent table)
throws MetaException
- Specified by:
onCreateTable
in class MetaStoreEventListener
- Parameters:
table
- table event.
- Throws:
MetaException
onDropDatabase
public void onDropDatabase(DropDatabaseEvent db)
throws MetaException
- Specified by:
onDropDatabase
in class MetaStoreEventListener
- Parameters:
db
- database event
- Throws:
MetaException
onDropPartition
public void onDropPartition(DropPartitionEvent partition)
throws MetaException
- Specified by:
onDropPartition
in class MetaStoreEventListener
- Parameters:
partition
- partition event
- Throws:
MetaException
onDropTable
public void onDropTable(DropTableEvent table)
throws MetaException
- Specified by:
onDropTable
in class MetaStoreEventListener
- Parameters:
table
- table event.
- Throws:
MetaException
onAlterTable
public void onAlterTable(AlterTableEvent event)
throws MetaException
- Specified by:
onAlterTable
in class MetaStoreEventListener
- Parameters:
event
- alter table event
- Throws:
MetaException
onAlterPartition
public void onAlterPartition(AlterPartitionEvent event)
throws MetaException
- Specified by:
onAlterPartition
in class MetaStoreEventListener
- Parameters:
event
- partition event
- Throws:
MetaException
onLoadPartitionDone
public void onLoadPartitionDone(LoadPartitionDoneEvent partEvent)
throws MetaException
- Specified by:
onLoadPartitionDone
in class MetaStoreEventListener
- Throws:
MetaException
Copyright © 2011 The Apache Software Foundation