| Modifier and Type | Field and Description |
|---|---|
static String |
GENERATED_TAG_PREFIX |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteProperties(List<String> propertyKeysToRemove)
Delete certain properties
|
Cluster |
getCluster() |
Map<String,String> |
getProperties() |
Map<String,Map<String,String>> |
getPropertiesAttributes() |
Map<PropertyInfo.PropertyType,Set<String>> |
getPropertiesTypes() |
List<Long> |
getServiceConfigVersions()
Ger service config versions containing this config
|
StackId |
getStackId()
Gets the stack that this configuration belongs to.
|
String |
getTag() |
String |
getType() |
Long |
getVersion() |
void |
save()
Persist the configuration.
|
void |
setProperties(Map<String,String> properties)
Replace properties with new provided set
|
void |
setPropertiesAttributes(Map<String,Map<String,String>> propertiesAttributes)
Replace property attributes with new provided set
|
void |
setPropertiesTypes(Map<PropertyInfo.PropertyType,Set<String>> propertiesTypes) |
void |
updateProperties(Map<String,String> propertiesToUpdate)
Update provided properties' values.
|
public static final String GENERATED_TAG_PREFIX
public StackId getStackId()
getStackId in interface Configpublic Map<PropertyInfo.PropertyType,Set<String>> getPropertiesTypes()
getPropertiesTypes in interface Configpublic void setPropertiesTypes(Map<PropertyInfo.PropertyType,Set<String>> propertiesTypes)
setPropertiesTypes in interface Configpublic String getTag()
public Long getVersion()
getVersion in interface Configpublic Map<String,String> getProperties()
getProperties in interface Configpublic Map<String,Map<String,String>> getPropertiesAttributes()
getPropertiesAttributes in interface Configpublic void setProperties(Map<String,String> properties)
ConfigsetProperties in interface Configproperties - Property Map to replace existing onepublic void setPropertiesAttributes(Map<String,Map<String,String>> propertiesAttributes)
ConfigsetPropertiesAttributes in interface ConfigpropertiesAttributes - Property Attributes Map to replace existing onepublic void updateProperties(Map<String,String> propertiesToUpdate)
ConfigupdateProperties in interface ConfigpropertiesToUpdate - Property Map with updated valuespublic Cluster getCluster()
getCluster in interface Configpublic List<Long> getServiceConfigVersions()
ConfiggetServiceConfigVersions in interface Configpublic void deleteProperties(List<String> propertyKeysToRemove)
ConfigdeleteProperties in interface ConfigpropertyKeysToRemove - Property keys to be deletedCopyright © 2022 Apache Software Foundation. All rights reserved.