private void buildApplicationAgnosticMetadata() { if (toscaParser.getServiceTemplateOfTopology() != null) { this.setApplicationAgnosticMetadata( new ApplicationAgnosticMetadata(toscaParser.getServiceTemplateOfTopology())); } else { this.setApplicationAgnosticMetadata(new ApplicationAgnosticMetadata()); } }
private List<AgnosticDeploymentArtifact> getAgnosticDeploymentArtifacts( TNodeTemplate nodeTemplate) throws TopologyTemplateFormatException { List<AgnosticDeploymentArtifact> result; List<TDeploymentArtifact> deploymentArtifacts = toscaParser.getDeploymentArtifact(nodeTemplate); result = getAgnosticDeploymentArtifacts(deploymentArtifacts); return result; }
private void buildAgnosticComponentList() throws NodeTemplateTypeNotSupportedException, AgnosticPropertyException, TopologyTemplateFormatException { generatedAgnosticComponents = new LinkedList<>(); for (TNodeTemplate nodeTemplate : toscaParser.getNodeTemplatesOfTopology()) { generatedAgnosticComponents.add(buildAgnosticComponent(nodeTemplate)); } }
private AgnosticDeploymentArtifact getAgnosticDeploymentArtifact( TDeploymentArtifact deploymentArtifact) throws TopologyTemplateFormatException { TArtifactTemplate artifactTemplate = toscaParser.getArtifactTemplate(deploymentArtifact); if (artifactTemplate == null) { throwExceptionForNotFoundArtifactTemplate(deploymentArtifact); } return new AgnosticDeploymentArtifact(artifactTemplate); }
private void buildAgnosticComponentRelations() throws TopologyTemplateFormatException { MatchingDictionary capabilityIdsNodeTemplateIsDictionary = createCapabilityIdsNodeTemplateIdsDictionary(generatedAgnosticComponents); MatchingDictionary requirementIdsNodeTemplateIsDictionary = createRequirementIdsNodeTemplateIdsDictionary(generatedAgnosticComponents); agnosticRelations = new HashMap<>(); for (TRelationshipTemplate relationshipTemplate : toscaParser.getRelationshipTemplatesOfTopology()) { addRelationTemplateToAgnosticRelation( relationshipTemplate, capabilityIdsNodeTemplateIsDictionary, requirementIdsNodeTemplateIsDictionary); } }
private ToscaProcessor parsingApplicationTopology(File definitionFilePath) throws TopologyTemplateFormatException, NodeTemplateTypeNotSupportedException { toscaParser.parsingApplicationTopology(definitionFilePath); return this; }