org.apache.hadoop.hive.metastore
Class IpAddressListener
java.lang.Object
org.apache.hadoop.hive.metastore.MetaStoreEventListener
org.apache.hadoop.hive.metastore.IpAddressListener
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(Configuration config)
onAddPartition
public void onAddPartition(AddPartitionEvent partition)
throws MetaException
- Overrides:
onAddPartition in class MetaStoreEventListener
- Throws:
MetaException
onCreateDatabase
public void onCreateDatabase(CreateDatabaseEvent db)
throws MetaException
- Overrides:
onCreateDatabase in class MetaStoreEventListener
- Parameters:
db - database event
- Throws:
MetaException
onCreateTable
public void onCreateTable(CreateTableEvent table)
throws MetaException
- Overrides:
onCreateTable in class MetaStoreEventListener
- Parameters:
table - table event.
- Throws:
MetaException
onDropDatabase
public void onDropDatabase(DropDatabaseEvent db)
throws MetaException
- Overrides:
onDropDatabase in class MetaStoreEventListener
- Parameters:
db - database event
- Throws:
MetaException
onDropPartition
public void onDropPartition(DropPartitionEvent partition)
throws MetaException
- Overrides:
onDropPartition in class MetaStoreEventListener
- Parameters:
partition - partition event
- Throws:
MetaException
onDropTable
public void onDropTable(DropTableEvent table)
throws MetaException
- Overrides:
onDropTable in class MetaStoreEventListener
- Parameters:
table - table event.
- Throws:
MetaException
onAlterTable
public void onAlterTable(AlterTableEvent event)
throws MetaException
- Overrides:
onAlterTable in class MetaStoreEventListener
- Parameters:
event - alter table event
- Throws:
MetaException
onAlterPartition
public void onAlterPartition(AlterPartitionEvent event)
throws MetaException
- Overrides:
onAlterPartition in class MetaStoreEventListener
- Parameters:
event - partition event
- Throws:
MetaException
onLoadPartitionDone
public void onLoadPartitionDone(LoadPartitionDoneEvent partEvent)
throws MetaException
- Overrides:
onLoadPartitionDone in class MetaStoreEventListener
- Throws:
MetaException
Copyright © 2012 The Apache Software Foundation