org.apache.hadoop.hive.metastore
Class MetaStoreEndFunctionListener

java.lang.Object
  extended by org.apache.hadoop.hive.metastore.MetaStoreEndFunctionListener
All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
Direct Known Subclasses:
DummyEndFunctionListener

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

This abstract class needs to be extended to provide implementation of actions that need to be performed when a function ends. These methods are called whenever a function ends. It also provides a way to add fb303 counters through the exportCounters method.


Constructor Summary
MetaStoreEndFunctionListener(org.apache.hadoop.conf.Configuration config)
           
 
Method Summary
 void exportCounters(AbstractMap<String,Long> counters)
           
 org.apache.hadoop.conf.Configuration getConf()
           
abstract  void onEndFunction(String functionName, MetaStoreEndFunctionContext 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

MetaStoreEndFunctionListener

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

onEndFunction

public abstract void onEndFunction(String functionName,
                                   MetaStoreEndFunctionContext context)

exportCounters

public void exportCounters(AbstractMap<String,Long> counters)

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