public class RepositorySetting extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BASE_URL |
static String |
OPERATING_SYSTEM |
static String |
OVERRIDE_STRATEGY
Settings for each repo setting sections
|
static String |
OVERRIDE_STRATEGY_ALWAYS_APPLY |
static String |
OVERRIDE_STRATEGY_APPLY_WHEN_MISSING |
static String |
REPO_ID |
Constructor and Description |
---|
RepositorySetting() |
Modifier and Type | Method and Description |
---|---|
String |
getBaseUrl()
Get repository url
|
String |
getOperatingSystem()
Get repository id
|
String |
getOverrideStrategy()
When specified under the "settings" section, it allows Ambari to overwrite existing repos stored
in the metainfo table in the Ambari server database.
|
String |
getRepoId()
Get repository id
|
void |
setBaseUrl(String baseUrl) |
void |
setOperatingSystem(String operatingSystem) |
void |
setOverrideStrategy(String overrideStrategy) |
void |
setRepoId(String repoId) |
String |
toString() |
public static final String OVERRIDE_STRATEGY
public static final String OVERRIDE_STRATEGY_ALWAYS_APPLY
public static final String OVERRIDE_STRATEGY_APPLY_WHEN_MISSING
public static final String OPERATING_SYSTEM
public static final String REPO_ID
public static final String BASE_URL
public String getOverrideStrategy()
"settings" : [
{
"repository_settings" : [
{
"override_strategy":"ALWAYS_APPLY",
"operating_system":"redhat7",
"repo_id":"HDP-2.6",
"base_url":"http://s3.amazonaws.com/dev.hortonworks.com/HDP/centos7/2.x/BUILDS/2.6.0.3-8"
},
{
"override_strategy":"APPLY_WHEN_MISSING",
"operating_system":"redhat7",
"repo_id": "HDP-UTILS-1.1.0.21",
"repo_name": "HDP-UTILS",
"base_url": "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/centos7"
}
]
}]
public void setOverrideStrategy(String overrideStrategy)
public String getOperatingSystem()
public void setOperatingSystem(String operatingSystem)
public String getRepoId()
public void setRepoId(String repoId)
public String getBaseUrl()
public void setBaseUrl(String baseUrl)
Copyright © 2022 Apache Software Foundation. All rights reserved.