public class UnitUpdater extends Object implements BlueprintConfigurationProcessor.PropertyUpdater
Modifier and Type | Class and Description |
---|---|
static class |
UnitUpdater.PropertyUnit |
static class |
UnitUpdater.PropertyValue |
Constructor and Description |
---|
UnitUpdater(String serviceName,
String configType) |
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getRequiredHostGroups(String propertyName,
String origValue,
Map<String,Map<String,String>> properties,
ClusterTopology topology)
Determine the required host groups for the provided property.
|
static void |
removeUnits(Configuration configuration,
Stack stack) |
String |
updateForBlueprintExport(String propertyName,
String origValue,
Map<String,Map<String,String>> properties,
ClusterTopology topology) |
static String |
updateForClusterCreate(Stack stack,
String serviceName,
String configType,
String propertyName,
String origValue) |
String |
updateForClusterCreate(String propertyName,
String origValue,
Map<String,Map<String,String>> properties,
ClusterTopology topology)
Update a property value.
|
static void |
updateUnits(Configuration configuration,
Stack stack) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
defaultUpdater
public String updateForClusterCreate(String propertyName, String origValue, Map<String,Map<String,String>> properties, ClusterTopology topology)
BlueprintConfigurationProcessor.PropertyUpdater
updateForClusterCreate
in interface BlueprintConfigurationProcessor.PropertyUpdater
propertyName
- property nameorigValue
- original value of propertyproperties
- all propertiestopology
- cluster topologypublic static String updateForClusterCreate(Stack stack, String serviceName, String configType, String propertyName, String origValue)
public static void updateUnits(Configuration configuration, Stack stack)
public static void removeUnits(Configuration configuration, Stack stack)
public String updateForBlueprintExport(String propertyName, String origValue, Map<String,Map<String,String>> properties, ClusterTopology topology)
updateForBlueprintExport
in interface BlueprintConfigurationProcessor.PropertyUpdater
public Collection<String> getRequiredHostGroups(String propertyName, String origValue, Map<String,Map<String,String>> properties, ClusterTopology topology)
BlueprintConfigurationProcessor.PropertyUpdater
getRequiredHostGroups
in interface BlueprintConfigurationProcessor.PropertyUpdater
propertyName
- property nameorigValue
- original value of propertyproperties
- all propertiestopology
- cluster topologyCopyright © 2022 Apache Software Foundation. All rights reserved.