public class RegistryRetriever extends AMWebClient
| Constructor and Description |
|---|
RegistryRetriever(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.registry.client.types.ServiceRecord record)
Retrieve from a service by locating the
exported
CustomRegistryConstants.PUBLISHER_CONFIGURATIONS_API
and working off it. |
| Modifier and Type | Method and Description |
|---|---|
PublishedConfigSet |
getConfigurations(boolean external)
Get the configurations of the registry
|
protected String |
getConfigurationURL(boolean external) |
PublishedExportsSet |
getExports(boolean external)
Get the configurations of the registry
|
protected String |
getExportURL(boolean external) |
boolean |
hasConfigurations(boolean external)
Does a bonded registry retriever have a configuration?
|
PublishedConfiguration |
retrieveConfiguration(PublishedConfigSet configSet,
String name,
boolean external)
Get a complete configuration, with all values
|
PublishedExports |
retrieveExports(PublishedExportsSet exportSet,
String name,
boolean external)
Get a complete export, with all values
|
String |
toString() |
exec, exec, get, getRestClient, resourcepublic RegistryRetriever(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.registry.client.types.ServiceRecord record)
throws org.apache.hadoop.registry.client.exceptions.RegistryIOException
CustomRegistryConstants.PUBLISHER_CONFIGURATIONS_API
and working off it.conf - configuration to work fromrecord - service recordorg.apache.hadoop.registry.client.exceptions.RegistryIOException - the address type of the endpoint does
not match that expected (i.e. not a list of URLs), missing endpoint...public boolean hasConfigurations(boolean external)
external - flag to indicate that it is the external entries to fetchpublic PublishedConfigSet getConfigurations(boolean external) throws FileNotFoundException, IOException
external - flag to indicate that it is the external entries to fetchFileNotFoundExceptionIOExceptionprotected String getConfigurationURL(boolean external) throws FileNotFoundException
FileNotFoundExceptionprotected String getExportURL(boolean external) throws FileNotFoundException
FileNotFoundExceptionpublic PublishedExportsSet getExports(boolean external) throws FileNotFoundException, IOException
external - flag to indicate that it is the external entries to fetchFileNotFoundExceptionIOExceptionpublic PublishedConfiguration retrieveConfiguration(PublishedConfigSet configSet, String name, boolean external) throws IOException
configSet - config set to ask forname - name of the configurationexternal - flag to indicate that it is an external configurationIOException - IO problemspublic PublishedExports retrieveExports(PublishedExportsSet exportSet, String name, boolean external) throws IOException
exportSet - name - name of the configurationexternal - flag to indicate that it is an external configurationIOException - IO problemsCopyright © 2014–2015 The Apache Software Foundation. All rights reserved.