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
JDOConnectionURLHookgetJdoConnectionUrl in interface JDOConnectionURLHookconf - The configuration used to initialize this instance of the HMSExceptionpublic void notifyBadConnectionUrl(String url)
JDOConnectionURLHooknotifyBadConnectionUrl in interface JDOConnectionURLHookCopyright © 2019 The Apache Software Foundation. All Rights Reserved.