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 Config
public Map<PropertyInfo.PropertyType,Set<String>> getPropertiesTypes()
getPropertiesTypes
in interface Config
public void setPropertiesTypes(Map<PropertyInfo.PropertyType,Set<String>> propertiesTypes)
setPropertiesTypes
in interface Config
public String getTag()
public Long getVersion()
getVersion
in interface Config
public Map<String,String> getProperties()
getProperties
in interface Config
public Map<String,Map<String,String>> getPropertiesAttributes()
getPropertiesAttributes
in interface Config
public void setProperties(Map<String,String> properties)
Config
setProperties
in interface Config
properties
- Property Map to replace existing onepublic void setPropertiesAttributes(Map<String,Map<String,String>> propertiesAttributes)
Config
setPropertiesAttributes
in interface Config
propertiesAttributes
- Property Attributes Map to replace existing onepublic void updateProperties(Map<String,String> propertiesToUpdate)
Config
updateProperties
in interface Config
propertiesToUpdate
- Property Map with updated valuespublic Cluster getCluster()
getCluster
in interface Config
public List<Long> getServiceConfigVersions()
Config
getServiceConfigVersions
in interface Config
public void deleteProperties(List<String> propertyKeysToRemove)
Config
deleteProperties
in interface Config
propertyKeysToRemove
- Property keys to be deletedCopyright © 2022 Apache Software Foundation. All rights reserved.