org.apache.hadoop.hive.metastore.hooks
Interface JDOConnectionURLHook


public interface JDOConnectionURLHook

JDOConnectURLHook is used to get the URL that JDO uses to connect to the database that stores the metastore data. Classes implementing this must be thread-safe (for Thrift server).


Method Summary
 String getJdoConnectionUrl(org.apache.hadoop.conf.Configuration conf)
          Gets the connection URL to supply to JDO.
 void notifyBadConnectionUrl(String url)
          Alerts this that the connection URL was bad.
 

Method Detail

getJdoConnectionUrl

String getJdoConnectionUrl(org.apache.hadoop.conf.Configuration conf)
                           throws Exception
Gets the connection URL to supply to JDO. In addition to initialization, this method will be called after a connection failure for each reconnect attempt.

Parameters:
conf - The configuration used to initialize this instance of the HMS
Returns:
Throws:
Exception

notifyBadConnectionUrl

void notifyBadConnectionUrl(String url)
Alerts this that the connection URL was bad. Can be used to collect stats, etc.

Parameters:
url -


Copyright © 2011 The Apache Software Foundation