Skip to content

Commit

Permalink
Set final mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
miwurster committed Jan 10, 2020
1 parent 80e6f3f commit 886afb0
Show file tree
Hide file tree
Showing 11 changed files with 153 additions and 16 deletions.
52 changes: 45 additions & 7 deletions admin/edmmmappings/EdmmMappings.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,46 @@
{
"oneToOneMapping": [

],
"edmmTypeMapping": [

]
}
"oneToOneMapping" : [ {
"edmmType" : "compute",
"toscaType" : "{https://edmm.uni-stuttgart.de/nodetypes}Compute"
}, {
"edmmType" : "dbms",
"toscaType" : "{https://edmm.uni-stuttgart.de/nodetypes}DBMS"
}, {
"edmmType" : "database",
"toscaType" : "{https://edmm.uni-stuttgart.de/nodetypes}Database"
}, {
"edmmType" : "software_component",
"toscaType" : "{https://edmm.uni-stuttgart.de/nodetypes}Software_Component"
}, {
"edmmType" : "web_application",
"toscaType" : "{https://edmm.uni-stuttgart.de/nodetypes}Web_Application"
}, {
"edmmType" : "web_server",
"toscaType" : "{https://edmm.uni-stuttgart.de/nodetypes}Web_Server"
}, {
"edmmType" : "connects_to",
"toscaType" : "{https://edmm.uni-stuttgart.de/relationtypes}ConnectsTo"
}, {
"edmmType" : "depends_on",
"toscaType" : "{https://edmm.uni-stuttgart.de/relationtypes}DependsOn"
}, {
"edmmType" : "hosted_on",
"toscaType" : "{https://edmm.uni-stuttgart.de/relationtypes}HostedOn"
}, {
"edmmType" : "mysql_dbms",
"toscaType" : "{https://edmm.uni-stuttgart.de/nodetypes}MySQL_DBMS"
}, {
"edmmType" : "mysql_database",
"toscaType" : "{https://edmm.uni-stuttgart.de/nodetypes}MySQL_Database"
}, {
"edmmType" : "tomcat",
"toscaType" : "{https://edmm.uni-stuttgart.de/nodetypes}Tomcat"
}, {
"edmmType" : "web_application",
"toscaType" : "{https://edmm.uni-stuttgart.de/nodetypes}PetClinic"
} ],
"edmmTypeMapping" : [ {
"edmmType" : "web_application",
"toscaType" : "{https://edmm.uni-stuttgart.de/nodetypes}PetClinic"
} ]
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
<ImplementationArtifact xmlns:atyIgeneral="https://edmm.uni-stuttgart.de/artifacttypes" xmlns:ateIgeneral1="https://edmm.uni-stuttgart.de/artifacttemplates" name="configure" interfaceName="http://opentosca.org/interfaces/lifecycle" operationName="configure" artifactType="atyIgeneral:Script" artifactRef="ateIgeneral1:PetClinic-Configure"/>
<ImplementationArtifact xmlns:atyIgeneral="https://edmm.uni-stuttgart.de/artifacttypes" xmlns:ateIgeneral1="https://edmm.uni-stuttgart.de/artifacttemplates" name="start" interfaceName="http://opentosca.org/interfaces/lifecycle" operationName="start" artifactType="atyIgeneral:Script" artifactRef="ateIgeneral1:PetClinic-Start"/>
</ImplementationArtifacts>
<DeploymentArtifacts>
<DeploymentArtifact xmlns:atyIgeneral="https://edmm.uni-stuttgart.de/artifacttypes" xmlns:ateIgeneral1="https://edmm.uni-stuttgart.de/artifacttemplates" name="war" artifactType="atyIgeneral:WAR" artifactRef="ateIgeneral1:PetClinic-App"/>
</DeploymentArtifacts>
<DeploymentArtifacts/>
</NodeTypeImplementation>
</Definitions>
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Definitions xmlns="http://docs.oasis-open.org/tosca/ns/2011/12" xmlns:winery="http://www.opentosca.org/winery/extensions/tosca/2013/02/12" xmlns:selfservice="http://www.eclipse.org/winery/model/selfservice" xmlns:testwineryopentoscaorg="http://test.winery.opentosca.org" targetNamespace="https://edmm.uni-stuttgart.de/nodetypes" id="winery-defs-for_ntyIgeneral2-MySQL_DBMS">
<NodeType name="MySQL_DBMS" abstract="no" final="no" targetNamespace="https://edmm.uni-stuttgart.de/nodetypes">
<DerivedFrom xmlns:ntyIgeneral2="https://edmm.uni-stuttgart.de/nodetypes" typeRef="ntyIgeneral2:DBMS"/>
<winery:PropertiesDefinition elementname="properties" namespace="https://edmm.uni-stuttgart.de/nodetypes/propertiesdefinition/winery">
<winery:properties>
<winery:key>port</winery:key>
<winery:type>xsd:integer</winery:type>
</winery:properties>
<winery:properties>
<winery:key>root_password</winery:key>
<winery:type>xsd:string</winery:type>
</winery:properties>
</winery:PropertiesDefinition>
<DerivedFrom xmlns:ntyIgeneral="https://edmm.uni-stuttgart.de/nodetypes" typeRef="ntyIgeneral:DBMS"/>
<Interfaces>
<Interface name="http://opentosca.org/interfaces/lifecycle">
<Operation name="create"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Definitions xmlns="http://docs.oasis-open.org/tosca/ns/2011/12" xmlns:winery="http://www.opentosca.org/winery/extensions/tosca/2013/02/12" xmlns:selfservice="http://www.eclipse.org/winery/model/selfservice" xmlns:testwineryopentoscaorg="http://test.winery.opentosca.org" targetNamespace="https://edmm.uni-stuttgart.de/nodetypes" id="winery-defs-for_ntyIgeneral2-MySQL_Database">
<NodeType name="MySQL_Database" abstract="no" final="no" targetNamespace="https://edmm.uni-stuttgart.de/nodetypes">
<DerivedFrom xmlns:ntyIgeneral2="https://edmm.uni-stuttgart.de/nodetypes" typeRef="ntyIgeneral2:Database"/>
<winery:PropertiesDefinition elementname="properties" namespace="https://edmm.uni-stuttgart.de/nodetypes/propertiesdefinition/winery">
<winery:properties>
<winery:key>schema_name</winery:key>
<winery:type>xsd:string</winery:type>
</winery:properties>
<winery:properties>
<winery:key>user</winery:key>
<winery:type>xsd:string</winery:type>
</winery:properties>
<winery:properties>
<winery:key>password</winery:key>
<winery:type>xsd:string</winery:type>
</winery:properties>
</winery:PropertiesDefinition>
<DerivedFrom xmlns:ntyIgeneral="https://edmm.uni-stuttgart.de/nodetypes" typeRef="ntyIgeneral:Database"/>
<Interfaces>
<Interface name="http://opentosca.org/interfaces/lifecycle">
<Operation name="configure"/>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
image/png
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Definitions xmlns="http://docs.oasis-open.org/tosca/ns/2011/12" xmlns:winery="http://www.opentosca.org/winery/extensions/tosca/2013/02/12" xmlns:selfservice="http://www.eclipse.org/winery/model/selfservice" xmlns:testwineryopentoscaorg="http://test.winery.opentosca.org" targetNamespace="https://edmm.uni-stuttgart.de/nodetypes" id="winery-defs-for_ntyIgeneral2-Tomcat">
<NodeType name="Tomcat" abstract="no" final="no" targetNamespace="https://edmm.uni-stuttgart.de/nodetypes">
<winery:PropertiesDefinition elementname="properties" namespace="https://edmm.uni-stuttgart.de/nodetypes/propertiesdefinition/winery">
<winery:properties>
<winery:key>port</winery:key>
<winery:type>xsd:integer</winery:type>
</winery:properties>
</winery:PropertiesDefinition>
<DerivedFrom xmlns:ntyIgeneral="https://edmm.uni-stuttgart.de/nodetypes" typeRef="ntyIgeneral:Web_Server"/>
<Interfaces>
<Interface name="http://opentosca.org/interfaces/lifecycle">
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Definitions xmlns="http://docs.oasis-open.org/tosca/ns/2011/12" xmlns:winery="http://www.opentosca.org/winery/extensions/tosca/2013/02/12" xmlns:selfservice="http://www.eclipse.org/winery/model/selfservice" xmlns:testwineryopentoscaorg="http://test.winery.opentosca.org" targetNamespace="https://edmm.uni-stuttgart.de/servicetemplates" id="winery-defs-for_steIgeneral2-PetClinic-IaaS">
<ServiceTemplate name="PetClinic-IaaS" targetNamespace="https://edmm.uni-stuttgart.de/servicetemplates" id="PetClinic-IaaS">
<TopologyTemplate>
<NodeTemplate xmlns:ntyIgeneral="https://edmm.uni-stuttgart.de/nodetypes" name="pet_clinic" minInstances="1" maxInstances="1" type="ntyIgeneral:PetClinic" id="PetClinic" winery:x="350" winery:y="109">
<DeploymentArtifacts>
<DeploymentArtifact xmlns:atyIgeneral="https://edmm.uni-stuttgart.de/artifacttypes" xmlns:ateIgeneral1="https://edmm.uni-stuttgart.de/artifacttemplates" name="war" artifactType="atyIgeneral:WAR" artifactRef="ateIgeneral1:PetClinic-App"/>
</DeploymentArtifacts>
</NodeTemplate>
<NodeTemplate xmlns:ntyIgeneral="https://edmm.uni-stuttgart.de/nodetypes" name="ubuntu" minInstances="1" maxInstances="1" type="ntyIgeneral:Compute" id="Compute" winery:x="586" winery:y="742">
<Properties>
<Properties xmlns="http://www.example.org">
<os_family>linux</os_family>
<machine_image>ubuntu</machine_image>
<instance_type>large</instance_type>
<key_name>edmm</key_name>
<public_key>-----BEGIN PUBLIC KEY-----
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqGKukO1De7zhZj6+H0qtjTkVxwTCpvKe4eCZ0
FPqri0cb2JZfXJ/DgYSF6vUpwmJG8wVQZKjeGcjDOL5UlsuusFncCzWBQ7RKNUSesmQRMSGkVb1/
3j+skZ6UtW+5u09lHNsj6tQ51s1SPrCBkedbNf0Tp0GbMJDyR4e9T04ZZwIDAQAB
-----END PUBLIC KEY-----</public_key>
</Properties>
</Properties>
</NodeTemplate>
<NodeTemplate xmlns:ntyIgeneral="https://edmm.uni-stuttgart.de/nodetypes" name="pet_clinic_tomcat" minInstances="1" maxInstances="1" type="ntyIgeneral:Tomcat" id="Tomcat_2" winery:x="351" winery:y="402">
<Properties>
<Properties xmlns="http://www.example.org">
<port>8080</port>
</Properties>
</Properties>
</NodeTemplate>
<NodeTemplate xmlns:ntyIgeneral="https://edmm.uni-stuttgart.de/nodetypes" name="dbms" minInstances="1" maxInstances="1" type="ntyIgeneral:MySQL_DBMS" id="MySQL_DBMS" winery:x="799" winery:y="402">
<Properties>
<Properties xmlns="http://www.example.org">
<port>3306</port>
<root_password>petclinic</root_password>
</Properties>
</Properties>
</NodeTemplate>
<NodeTemplate xmlns:ntyIgeneral="https://edmm.uni-stuttgart.de/nodetypes" name="db" minInstances="1" maxInstances="1" type="ntyIgeneral:MySQL_Database" id="MySQL_Database" winery:x="799" winery:y="105">
<Properties>
<Properties xmlns="http://www.example.org">
<schema_name>petclinic</schema_name>
<user>pc</user>
<password>petclinic</password>
</Properties>
</Properties>
<DeploymentArtifacts>
<DeploymentArtifact xmlns:atyIgeneral="https://edmm.uni-stuttgart.de/artifacttypes" xmlns:ateIgeneral1="https://edmm.uni-stuttgart.de/artifacttemplates" name="sql" artifactType="atyIgeneral:SQL" artifactRef="ateIgeneral1:Petclinic-Schema"/>
</DeploymentArtifacts>
</NodeTemplate>
<RelationshipTemplate xmlns:tyIgeneral="https://edmm.uni-stuttgart.de/relationtypes" name="HostedOn" type="tyIgeneral:HostedOn" id="con_HostedOn_0">
<SourceElement ref="Tomcat_2"/>
<TargetElement ref="Compute"/>
</RelationshipTemplate>
<RelationshipTemplate xmlns:tyIgeneral="https://edmm.uni-stuttgart.de/relationtypes" name="HostedOn" type="tyIgeneral:HostedOn" id="con_HostedOn_2">
<SourceElement ref="PetClinic"/>
<TargetElement ref="Tomcat_2"/>
</RelationshipTemplate>
<RelationshipTemplate xmlns:tyIgeneral="https://edmm.uni-stuttgart.de/relationtypes" name="HostedOn" type="tyIgeneral:HostedOn" id="con_HostedOn_1">
<SourceElement ref="MySQL_DBMS"/>
<TargetElement ref="Compute"/>
</RelationshipTemplate>
<RelationshipTemplate xmlns:tyIgeneral="https://edmm.uni-stuttgart.de/relationtypes" name="HostedOn" type="tyIgeneral:HostedOn" id="con_HostedOn_3">
<SourceElement ref="MySQL_Database"/>
<TargetElement ref="MySQL_DBMS"/>
</RelationshipTemplate>
<RelationshipTemplate xmlns:tyIgeneral="https://edmm.uni-stuttgart.de/relationtypes" name="ConnectsTo" type="tyIgeneral:ConnectsTo" id="con_ConnectsTo_0">
<SourceElement ref="PetClinic"/>
<TargetElement ref="MySQL_Database"/>
</RelationshipTemplate>
</TopologyTemplate>
</ServiceTemplate>
</Definitions>

This file was deleted.

0 comments on commit 886afb0

Please sign in to comment.