public class PdpProcessor
extends java.lang.Object
Constructor and Description |
---|
PdpProcessor(CampPlatform campPlatform) |
Modifier and Type | Method and Description |
---|---|
void |
addInterpreter(PlanInterpreter interpreter) |
void |
addMatcher(PdpMatcher m) |
java.util.Map<java.lang.String,java.lang.Object> |
applyInterpreters(java.util.Map<java.lang.String,?> originalDeploymentPlan)
returns a DeploymentPlan object which is the result of running the interpretation
(with all interpreters) against the supplied deployment plan YAML object,
essentially a post-parse processing step before matching
|
java.util.List<PdpMatcher> |
getMatchers() |
DeploymentPlan |
parseDeploymentPlan(java.io.Reader yaml) |
DeploymentPlan |
parseDeploymentPlan(java.lang.String yaml) |
AssemblyTemplate |
registerDeploymentPlan(DeploymentPlan plan)
as
registerDeploymentPlan(Reader) but taking a parsed plan |
AssemblyTemplate |
registerDeploymentPlan(java.io.Reader yaml)
create and return an AssemblyTemplate based on the given DP (yaml),
applying matchers to the given deployment plan to create an assembly template,
and registering with the platform for re-use
|
AssemblyTemplate |
registerPdpFromArchive(java.io.InputStream archiveInput) |
AssemblyTemplate |
resolveDeploymentPlan(DeploymentPlan plan)
as
registerDeploymentPlan(DeploymentPlan) but not registering it |
AssemblyTemplate |
resolveDeploymentPlan(java.io.Reader yaml)
as
registerDeploymentPlan(Reader) but not registering it |
public PdpProcessor(CampPlatform campPlatform)
public DeploymentPlan parseDeploymentPlan(java.io.Reader yaml)
public DeploymentPlan parseDeploymentPlan(java.lang.String yaml)
public AssemblyTemplate registerDeploymentPlan(java.io.Reader yaml)
public AssemblyTemplate registerDeploymentPlan(DeploymentPlan plan)
registerDeploymentPlan(Reader)
but taking a parsed planpublic AssemblyTemplate resolveDeploymentPlan(java.io.Reader yaml)
registerDeploymentPlan(Reader)
but not registering itpublic AssemblyTemplate resolveDeploymentPlan(DeploymentPlan plan)
registerDeploymentPlan(DeploymentPlan)
but not registering itpublic AssemblyTemplate registerPdpFromArchive(java.io.InputStream archiveInput)
public void addMatcher(PdpMatcher m)
public java.util.List<PdpMatcher> getMatchers()
public void addInterpreter(PlanInterpreter interpreter)
public java.util.Map<java.lang.String,java.lang.Object> applyInterpreters(java.util.Map<java.lang.String,?> originalDeploymentPlan)