Modifier and Type | Method and Description |
---|---|
Config |
AmbariManagementController.createConfig(Cluster cluster,
StackId stackId,
String type,
Map<String,String> properties,
String versionTag,
Map<String,Map<String,String>> propertiesAttributes)
Create cluster config
TODO move this method to Cluster? doesn't seem to be on its place
|
Config |
AmbariManagementControllerImpl.createConfig(Cluster cluster,
StackId stackId,
String type,
Map<String,String> properties,
String versionTag,
Map<String,Map<String,String>> propertiesAttributes) |
Modifier and Type | Method and Description |
---|---|
Map<String,Config> |
ConfigGroupRequest.getConfigs() |
Modifier and Type | Method and Description |
---|---|
void |
ConfigGroupRequest.setConfigs(Map<String,Config> configs) |
Constructor and Description |
---|
ConfigurationResponse(String clusterName,
Config config)
Constructor.
|
Constructor and Description |
---|
ConfigGroupRequest(Long id,
String clusterName,
String groupName,
String tag,
String serviceName,
String description,
Set<String> hosts,
Map<String,Config> configs) |
Modifier and Type | Method and Description |
---|---|
void |
ConfigPropertiesEncryptor.decryptSensitiveData(Config config) |
void |
ConfigPropertiesEncryptor.encryptSensitiveData(Config config) |
Modifier and Type | Class and Description |
---|---|
class |
ConfigImpl |
Modifier and Type | Method and Description |
---|---|
Config |
ConfigFactory.createExisting(Cluster cluster,
ClusterConfigEntity entity)
Creates a new
Config object using provided entity |
Config |
ConfigFactory.createNew(Cluster cluster,
String type,
String tag,
Map<String,String> map,
Map<String,Map<String,String>> mapAttributes)
Creates a new
Config object using provided values. |
Config |
ConfigFactory.createNew(StackId stackId,
Cluster cluster,
String type,
String tag,
Map<String,String> map,
Map<String,Map<String,String>> mapAttributes)
Creates a new
Config object using provided values. |
Config |
ConfigFactory.createReadOnly(String type,
String tag,
Map<String,String> map,
Map<String,Map<String,String>> mapAttributes)
Creates a read-only instance of a
Config suitable for returning in
REST responses. |
Config |
Cluster.getConfig(String configType,
String versionTag)
Gets the specific config that matches the specified type and tag.
|
Config |
Cluster.getConfigByVersion(String configType,
Long configVersion)
Gets the specific config that matches the specified type and version.
|
Config |
Cluster.getDesiredConfigByType(String configType)
Gets the desired (and selected) config by type.
|
Modifier and Type | Method and Description |
---|---|
Collection<Config> |
Cluster.getAllConfigs()
Gets all configurations defined for a cluster.
|
Map<String,Config> |
Cluster.getConfigsByType(String configType)
Gets all configs that match the specified type.
|
List<Config> |
Cluster.getLatestConfigsWithTypes(Collection<String> types)
Get latest (including inactive ones) configurations with any of the given types.
|
Modifier and Type | Method and Description |
---|---|
void |
Cluster.addConfig(Config config)
Sets a specific config.
|
boolean |
Host.addDesiredConfig(long clusterId,
boolean selected,
String user,
Config config)
Adds a desired configuration to the host instance.
|
Map<String,Map<String,String>> |
ConfigHelper.overrideAttributes(Config overrideConfig,
Map<String,Map<String,String>> persistedAttributes)
Merge override attributes with original ones.
|
Modifier and Type | Method and Description |
---|---|
ServiceConfigVersionResponse |
Cluster.addDesiredConfig(String user,
Set<Config> configs)
Adds and sets a DESIRED configuration to be applied to a cluster.
|
ServiceConfigVersionResponse |
Cluster.addDesiredConfig(String user,
Set<Config> configs,
String serviceConfigVersionNote)
Adds and sets a DESIRED configuration to be applied to a cluster.
|
Modifier and Type | Method and Description |
---|---|
Config |
ClusterImpl.getConfig(String configType,
String versionTag) |
Config |
ClusterImpl.getConfigByVersion(String configType,
Long configVersion) |
Config |
ClusterImpl.getDesiredConfigByType(String configType) |
Modifier and Type | Method and Description |
---|---|
Collection<Config> |
ClusterImpl.getAllConfigs() |
Map<String,Config> |
ClusterImpl.getConfigsByType(String configType) |
List<Config> |
ClusterImpl.getLatestConfigsWithTypes(Collection<String> types) |
Modifier and Type | Method and Description |
---|---|
void |
ClusterImpl.addConfig(Config config) |
Modifier and Type | Method and Description |
---|---|
ServiceConfigVersionResponse |
ClusterImpl.addDesiredConfig(String user,
Set<Config> configs) |
ServiceConfigVersionResponse |
ClusterImpl.addDesiredConfig(String user,
Set<Config> configs,
String serviceConfigVersionNote) |
Modifier and Type | Method and Description |
---|---|
Map<String,Config> |
ConfigGroupImpl.getConfigurations() |
Map<String,Config> |
ConfigGroup.getConfigurations()
Gets an unmodifiable map of
Config s. |
Modifier and Type | Method and Description |
---|---|
ConfigGroup |
ConfigGroupFactory.createNew(Cluster cluster,
String serviceName,
String name,
String tag,
String description,
Map<String,Config> configs,
Map<Long,Host> hosts)
Creates and saves a new
ConfigGroup . |
void |
ConfigGroupImpl.setConfigurations(Map<String,Config> configurations)
Helper method to recreate configs mapping
|
void |
ConfigGroup.setConfigurations(Map<String,Config> configs)
Reassign the set of configs associated with this config group
|
Constructor and Description |
---|
ConfigGroupImpl(Cluster cluster,
String serviceName,
String name,
String tag,
String description,
Map<String,Config> configurations,
Map<Long,Host> hosts,
Clusters clusters,
ConfigFactory configFactory,
ClusterDAO clusterDAO,
HostDAO hostDAO,
ConfigGroupDAO configGroupDAO,
ConfigGroupConfigMappingDAO configGroupConfigMappingDAO,
ConfigGroupHostMappingDAO configGroupHostMappingDAO,
LockFactory lockFactory) |
Modifier and Type | Method and Description |
---|---|
boolean |
HostImpl.addDesiredConfig(long clusterId,
boolean selected,
String user,
Config config) |
Copyright © 2022 Apache Software Foundation. All rights reserved.