public abstract static class HttpPropertyProvider.HttpPropertyRequest extends Object
Modifier | Constructor and Description |
---|---|
protected |
HttpPropertyRequest(Map<String,String> propertyMappings) |
Modifier and Type | Method and Description |
---|---|
protected Map<String,String> |
getPropertyMappings()
Get the property name mappings from source property to Ambari property.
|
Collection<String> |
getSupportedProperties()
Get the names of the Ambari properties that can be set by this HTTP property request.
|
abstract String |
getUrl(Cluster cluster,
String hostName)
Get the URL used to make the HTTP request.
|
abstract void |
populateResource(Resource resource,
InputStream inputStream)
Populate the given resource from the given input stream.
|
public Collection<String> getSupportedProperties()
protected Map<String,String> getPropertyMappings()
public abstract String getUrl(Cluster cluster, String hostName) throws SystemException
cluster
- the cluster of the resource being populatedhostName
- the host name of the resource being populatedSystemException
- if the URL can not be obtainedpublic abstract void populateResource(Resource resource, InputStream inputStream) throws SystemException
resource
- the Ambari resource to populateinputStream
- the input stream from the HTTP requestSystemException
- if the resource can not be populatedCopyright © 2022 Apache Software Foundation. All rights reserved.