public class SampleURLHook extends Object implements JDOConnectionURLHook
Constructor and Description |
---|
SampleURLHook() |
Modifier and Type | Method and Description |
---|---|
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.
|
public String getJdoConnectionUrl(org.apache.hadoop.conf.Configuration conf) throws Exception
JDOConnectionURLHook
getJdoConnectionUrl
in interface JDOConnectionURLHook
conf
- The configuration used to initialize this instance of the HMSException
public void notifyBadConnectionUrl(String url)
JDOConnectionURLHook
notifyBadConnectionUrl
in interface JDOConnectionURLHook
Copyright © 2017 The Apache Software Foundation. All rights reserved.