protected static class BlueprintConfigurationProcessor.MultipleHostTopologyUpdater extends Object implements BlueprintConfigurationProcessor.PropertyUpdater
Constructor and Description |
---|
MultipleHostTopologyUpdater(String component)
Constructor.
|
MultipleHostTopologyUpdater(String component,
Character separator,
boolean usePrefixForEachHost,
boolean useSuffixForEachHost,
boolean usePortForEachHost)
Constructor
|
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.
|
protected String |
resolveHostGroupPlaceholder(String originalValue,
Collection<String> hostStrings)
Resolves the host group place holders in the passed in original value.
|
String |
updateForClusterCreate(String propertyName,
String origValue,
Map<String,Map<String,String>> properties,
ClusterTopology topology)
Update all host names included in the original property value with new host names which run the associated
component.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
defaultUpdater, updateForBlueprintExport
public MultipleHostTopologyUpdater(String component)
component
- component name associated with the propertypublic MultipleHostTopologyUpdater(String component, Character separator, boolean usePrefixForEachHost, boolean useSuffixForEachHost, boolean usePortForEachHost)
component
- component name associated with this propertyseparator
- the separator character to use when multiple hosts
are specified in a property or URLpublic String updateForClusterCreate(String propertyName, String origValue, Map<String,Map<String,String>> properties, ClusterTopology topology)
updateForClusterCreate
in interface BlueprintConfigurationProcessor.PropertyUpdater
propertyName
- property nameorigValue
- original value of propertyproperties
- all propertiestopology
- cluster topologyprotected String resolveHostGroupPlaceholder(String originalValue, Collection<String> hostStrings)
originalValue
- The original value containing the place holders to be resolved.hostStrings
- The collection of host names that are mapped to the host groups to be resolvedpublic 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.