public class BlueprintValidatorImpl extends Object implements BlueprintValidator
Modifier and Type | Field and Description |
---|---|
static String |
CODEC_CLASSES_PROPERTY_NAME |
static String |
LZO_CODEC_CLASS |
static String |
LZO_CODEC_CLASS_PROPERTY_NAME |
Constructor and Description |
---|
BlueprintValidatorImpl(Blueprint blueprint) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isDependencyManaged(Stack stack,
String component,
Map<String,Map<String,String>> clusterConfig)
Determine if a component is managed, meaning that it is running inside of the cluster
topology.
|
void |
validateRequiredProperties()
Validate that required properties are provided.
|
void |
validateTopology()
Validate blueprint topology.
|
Collection<String> |
verifyComponentCardinalityCount(String component,
Cardinality cardinality,
AutoDeployInfo autoDeploy)
Verify that a component meets cardinality requirements.
|
public static final String LZO_CODEC_CLASS_PROPERTY_NAME
public static final String CODEC_CLASSES_PROPERTY_NAME
public static final String LZO_CODEC_CLASS
public BlueprintValidatorImpl(Blueprint blueprint)
public void validateTopology() throws InvalidTopologyException
BlueprintValidator
validateTopology
in interface BlueprintValidator
InvalidTopologyException
- if the topology is invalidpublic void validateRequiredProperties() throws InvalidTopologyException, GPLLicenseNotAcceptedException
BlueprintValidator
validateRequiredProperties
in interface BlueprintValidator
InvalidTopologyException
- if required properties are not set in blueprintGPLLicenseNotAcceptedException
- ambari was configured to use gpl software, but gpl license is not acceptedpublic Collection<String> verifyComponentCardinalityCount(String component, Cardinality cardinality, AutoDeployInfo autoDeploy)
component
- component to validatecardinality
- required cardinalityautoDeploy
- auto-deploy information for componentprotected boolean isDependencyManaged(Stack stack, String component, Map<String,Map<String,String>> clusterConfig)
stack
- stack instancecomponent
- component to determine if it is managedclusterConfig
- cluster configurationCopyright © 2022 Apache Software Foundation. All rights reserved.