public class BrooklynEntityMatcher extends Object implements io.brooklyn.camp.spi.resolve.PdpMatcher
| Modifier and Type | Field and Description |
|---|---|
protected brooklyn.management.ManagementContext |
mgmt |
| Constructor and Description |
|---|
BrooklynEntityMatcher(brooklyn.management.ManagementContext bmc) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(Object deploymentPlanItem) |
boolean |
apply(Object deploymentPlanItem,
io.brooklyn.camp.spi.pdp.AssemblyTemplateConstructor atc) |
protected List<FlagUtils.FlagConfigKeyAndValueRecord> |
extractValidConfigFlagsOrKeys(String typeName,
Map<String,Object> attrs,
boolean removeIfFound)
finds flags and keys on the given typeName which are present in the given map;
returns those (using the config key name), and removes them from attrs
|
protected String |
lookupType(Object deploymentPlanItem)
returns the type of the given plan item,
typically whether a Service can be matched to a Brooklyn entity,
or null if not supported
|
protected final brooklyn.management.ManagementContext mgmt
public BrooklynEntityMatcher(brooklyn.management.ManagementContext bmc)
public boolean accepts(Object deploymentPlanItem)
accepts in interface io.brooklyn.camp.spi.resolve.PdpMatcherprotected String lookupType(Object deploymentPlanItem)
public boolean apply(Object deploymentPlanItem, io.brooklyn.camp.spi.pdp.AssemblyTemplateConstructor atc)
apply in interface io.brooklyn.camp.spi.resolve.PdpMatcherprotected List<FlagUtils.FlagConfigKeyAndValueRecord> extractValidConfigFlagsOrKeys(String typeName, Map<String,Object> attrs, boolean removeIfFound)
Copyright © 2014. All Rights Reserved.