Search in sources :

Example 11 with MatchingConfiguration

use of alien4cloud.model.deployment.matching.MatchingConfiguration in project yorc-a4c-plugin by ystia.

the class AbstractLocationConfigurer method printMatchingConfigurations.

private void printMatchingConfigurations(Map<String, MatchingConfiguration> mcm) {
    for (String key : mcm.keySet()) {
        log.debug("MatchingConfiguration for " + key);
        MatchingConfiguration mc = mcm.get(key);
        log.debug("Sort ordering: " + mc.getSortOrdering());
        // capabilities
        Map<String, MatchingFilterDefinition> cap = mc.getCapabilities();
        if (cap != null) {
            for (String kcap : cap.keySet()) {
                log.debug("Capability " + kcap);
                MatchingFilterDefinition mfd = cap.get(kcap);
                printProperties(mfd.getProperties());
            }
        }
        log.debug("Properties");
        printProperties(mc.getProperties());
    }
}
Also used : MatchingConfiguration(alien4cloud.model.deployment.matching.MatchingConfiguration) MatchingFilterDefinition(alien4cloud.model.deployment.matching.MatchingFilterDefinition)

Aggregations

MatchingConfiguration (alien4cloud.model.deployment.matching.MatchingConfiguration)11 NodeTemplate (org.alien4cloud.tosca.model.templates.NodeTemplate)7 NodeType (org.alien4cloud.tosca.model.types.NodeType)7 Test (org.junit.Test)7 LocationResourceTemplate (alien4cloud.model.orchestrators.locations.LocationResourceTemplate)6 HashMap (java.util.HashMap)6 MatchingFilterDefinition (alien4cloud.model.deployment.matching.MatchingFilterDefinition)2 INodeMatcherPlugin (alien4cloud.deployment.matching.plugins.INodeMatcherPlugin)1 MatchingConfigurations (alien4cloud.deployment.matching.services.nodes.MatchingConfigurations)1 InvalidArgumentException (alien4cloud.exception.InvalidArgumentException)1 LocationResources (alien4cloud.model.orchestrators.locations.LocationResources)1 ServiceResource (alien4cloud.model.service.ServiceResource)1 ParsingException (alien4cloud.tosca.parser.ParsingException)1 Path (java.nio.file.Path)1 List (java.util.List)1 Map (java.util.Map)1 CapabilityDefinition (org.alien4cloud.tosca.model.definitions.CapabilityDefinition)1 PropertyDefinition (org.alien4cloud.tosca.model.definitions.PropertyDefinition)1 ScalarPropertyValue (org.alien4cloud.tosca.model.definitions.ScalarPropertyValue)1 EqualConstraint (org.alien4cloud.tosca.model.definitions.constraints.EqualConstraint)1