├── .docker ├── application.properties.tpl └── server.xml.tpl ├── .dockerignore ├── .editorconfig ├── .gitattributes ├── .github └── workflows │ ├── image.yml │ ├── image_stable.yml │ ├── maven.yml │ └── stable.yml ├── .gitignore ├── .idea ├── codeStyles │ ├── Project.xml │ └── codeStyleConfig.xml ├── copyright │ └── Container.xml └── runConfigurations │ ├── Container.xml │ └── removeTemp.ps1 ├── Dockerfile ├── ISSUE_TEMPLATE.md ├── LICENSE ├── NOTICE ├── PULL_REQUEST_TEMPLATE.md ├── README.md ├── checkstyle-suppressions.xml ├── checkstyle.xml ├── docs ├── .editorconfig ├── .gitignore ├── DeveloperGuide.md ├── PITCHME.md ├── _config.yml ├── adr │ ├── 0000-use-architectural-decision-records.md │ ├── 0001-use-maven.md │ ├── 0002-use-spring-dependency-incjection.md │ ├── requirements.md │ └── template.md ├── codestyle │ ├── IAAS_CleanUp.xml │ ├── IAAS_CodeStyle.xml │ ├── IAAS_SaveActions.png │ ├── IAAS_SaveActions_1.png │ ├── IAAS_SaveActions_2.png │ ├── IAAS_SaveActions_3.png │ ├── IAAS_SaveActions_4.png │ ├── IAAS_SaveActions_5.png │ └── Readme.md ├── components │ ├── ApplicationBus.md │ ├── PlanBuilder.md │ ├── ServiceInvoker.md │ └── graphics │ │ ├── ApplicationBus │ │ ├── ApplicationBusArchitektur.png │ │ ├── BearbeitungsablaufInvokeProcessor.png │ │ ├── Beispielszenario.png │ │ ├── FunktionsweiseApplicationBusProxy.png │ │ ├── GenerierungCodeSkelett.png │ │ ├── KommunikationAnwendungApplicationBus.png │ │ ├── KommunikationApplicationBusAnwendung.png │ │ ├── KommunikationsdiagrammApplicationBus.png │ │ ├── OpenTOSCAArchitekturApplicationBus.png │ │ ├── RoutingApplicationBusEngine.png │ │ ├── SetupApplicationBusAnwendung.png │ │ ├── StubsKommunkationApplicationBus.png │ │ └── WorkflowApplicationBusStubGenerators.png │ │ ├── PlanBuilder │ │ ├── buildplans.png │ │ ├── overview.png │ │ ├── scaleoutplans.png │ │ └── terminationplans.png │ │ └── ServiceInvoker │ │ ├── ArchitectureOpentoscaContainerWithServiceInvocationInterface.png │ │ ├── ConceptualStructureOfComponents.png │ │ ├── ExamplaryMessagesInvocations.png │ │ ├── ExpandendMessageFromSiEnginToSiPlugin.png │ │ ├── FlowchartInvokeoperationInvokeplan.png │ │ ├── MessageFromInvocationApiToSiEngine.png │ │ ├── MoreServiceInvocationApi.png │ │ ├── PlanInvocationWithPlanInvocationEngine.png │ │ ├── ReturnFromSiPlugin.png │ │ ├── SequencediagramSiEngine.png │ │ ├── ServiceInvocationInterfaceAsLayerdiagram.png │ │ ├── SupportedMeps.png │ │ ├── UsecaseOtherPluginType.png │ │ └── WorkflowServiceInvocation.png ├── container-api │ ├── OpenTOSCA.pdf │ ├── OpenTOSCA.png │ ├── swagger_ui_1.PNG │ └── swagger_ui_2.PNG ├── graphics │ ├── ArchitekturContainerAPI.png │ ├── OpenTOSCALogo.jpg │ └── pitchme │ │ ├── Build-Tree.png │ │ ├── CSARtoBPEL.png │ │ ├── DockerContainer.png │ │ ├── Invoker.png │ │ ├── NT.NodeTypeImplementation.png │ │ ├── NodeTemplate_Form.png │ │ ├── ProvisioningTerminals.png │ │ ├── Ubuntu.png │ │ ├── connectPlugInPlanCompletion.png │ │ ├── connectPlugInTopology.png │ │ └── startStopVMmitBPELFlow.png ├── index.md └── third-party-content │ └── third-party-libraries.xlsx ├── org.opentosca.broker.mqtt ├── pom.xml └── src │ └── main │ ├── java │ └── org │ │ └── opentosca │ │ └── broker │ │ └── mqtt │ │ └── BrokerSupport.java │ └── resources │ ├── credentials │ └── password.config │ └── spring │ └── context-mqtt-broker.xml ├── org.opentosca.bus ├── org.opentosca.bus.application.api.jsonhttp │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── opentosca │ │ │ └── bus │ │ │ └── application │ │ │ └── api │ │ │ └── jsonhttp │ │ │ ├── processor │ │ │ ├── ExceptionProcessor.java │ │ │ ├── GetResultRequestProcessor.java │ │ │ ├── GetResultResponseProcessor.java │ │ │ ├── InvocationRequestProcessor.java │ │ │ ├── InvocationResponseProcessor.java │ │ │ ├── IsFinishedRequestProcessor.java │ │ │ └── IsFinishedResponseProcessor.java │ │ │ └── route │ │ │ └── Route.java │ │ └── resources │ │ └── spring │ │ └── context-bus-application-api.xml ├── org.opentosca.bus.application.api.resthttp │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── opentosca │ │ │ └── bus │ │ │ └── application │ │ │ └── api │ │ │ └── resthttp │ │ │ ├── processor │ │ │ ├── ExceptionProcessor.java │ │ │ ├── GetResultRequestProcessor.java │ │ │ ├── GetResultResponseProcessor.java │ │ │ ├── InvocationRequestProcessor.java │ │ │ ├── InvocationResponseProcessor.java │ │ │ ├── IsFinishedRequestProcessor.java │ │ │ └── IsFinishedResponseProcessor.java │ │ │ └── route │ │ │ └── Route.java │ │ └── resources │ │ └── spring │ │ └── context-bus-application-api.xml ├── org.opentosca.bus.application.api.soaphttp │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── opentosca │ │ │ └── bus │ │ │ └── application │ │ │ └── api │ │ │ └── soaphttp │ │ │ ├── model │ │ │ ├── ApplicationBusException.java │ │ │ ├── GetResult.java │ │ │ ├── GetResultResponse.java │ │ │ ├── InvokeMethodWithNodeInstanceID.java │ │ │ ├── InvokeMethodWithNodeInstanceIDResponse.java │ │ │ ├── InvokeMethodWithServiceInstanceID.java │ │ │ ├── InvokeMethodWithServiceInstanceIDResponse.java │ │ │ ├── IsFinished.java │ │ │ ├── IsFinishedResponse.java │ │ │ ├── ObjectFactory.java │ │ │ ├── ParamsMap.java │ │ │ ├── ParamsMapItemType.java │ │ │ └── package-info.java │ │ │ ├── processor │ │ │ ├── RequestProcessor.java │ │ │ └── ResponseProcessor.java │ │ │ └── route │ │ │ └── Route.java │ │ └── resources │ │ ├── spring │ │ └── context-bus-application-api.xml │ │ └── wsdl │ │ ├── SoapAPI.wsdl │ │ └── SoapAPI.xsd ├── org.opentosca.bus.application.model │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── org │ │ └── opentosca │ │ └── bus │ │ └── application │ │ └── model │ │ ├── constants │ │ └── ApplicationBusConstants.java │ │ └── exception │ │ ├── ApplicationBusExternalException.java │ │ └── ApplicationBusInternalException.java ├── org.opentosca.bus.application.plugin.jsonhttp.service.impl │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── opentosca │ │ │ └── bus │ │ │ └── application │ │ │ └── plugin │ │ │ └── jsonhttp │ │ │ └── service │ │ │ └── impl │ │ │ ├── ApplicationBusJsonHttpPluginServiceImpl.java │ │ │ ├── processor │ │ │ ├── RequestProcessor.java │ │ │ └── ResponseProcessor.java │ │ │ └── route │ │ │ └── Route.java │ │ └── resources │ │ └── spring │ │ └── context-mb-application-plugin.xml ├── org.opentosca.bus.application.plugin.service │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── org │ │ └── opentosca │ │ └── bus │ │ └── application │ │ └── plugin │ │ └── service │ │ └── IApplicationBusPluginService.java ├── org.opentosca.bus.application.service │ ├── Instructions.txt │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── opentosca │ │ │ └── bus │ │ │ └── application │ │ │ └── service │ │ │ ├── IApplicationBusService.java │ │ │ └── impl │ │ │ ├── ApplicationBusServiceImpl.java │ │ │ ├── ContainerProxy.java │ │ │ ├── model │ │ │ ├── QueueMap.java │ │ │ ├── RequestID.java │ │ │ └── ResultMap.java │ │ │ ├── processor │ │ │ ├── GetResultProcessor.java │ │ │ ├── InvocationRequestProcessor.java │ │ │ ├── IsFinishedProcessor.java │ │ │ └── ParameterCheckProcessor.java │ │ │ ├── route │ │ │ ├── GetResultRoute.java │ │ │ ├── InvokeOperationRoute.java │ │ │ ├── IsFinishedRoute.java │ │ │ └── MainRoute.java │ │ │ └── servicehandler │ │ │ └── ApplicationBusPluginRegistry.java │ │ └── resources │ │ └── spring │ │ └── context-bus-application-service.xml ├── org.opentosca.bus.management.api.java │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── opentosca │ │ │ └── bus │ │ │ └── management │ │ │ └── api │ │ │ └── java │ │ │ ├── ExposedManagementBusOperations.java │ │ │ ├── MBJavaApi.java │ │ │ ├── package-info.java │ │ │ └── route │ │ │ ├── Route.java │ │ │ └── package-info.java │ │ └── resources │ │ └── spring │ │ └── context-bus-management-api.xml ├── org.opentosca.bus.management.api.resthttp │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── opentosca │ │ │ └── bus │ │ │ └── management │ │ │ └── api │ │ │ └── resthttp │ │ │ ├── model │ │ │ ├── QueueMap.java │ │ │ ├── RequestID.java │ │ │ └── ResultMap.java │ │ │ ├── processor │ │ │ ├── ExceptionProcessor.java │ │ │ ├── GetResultProcessor.java │ │ │ ├── GetResultRequestProcessor.java │ │ │ ├── GetResultResponseProcessor.java │ │ │ ├── InvocationRequestProcessor.java │ │ │ ├── IsFinishedProcessor.java │ │ │ ├── IsFinishedRequestProcessor.java │ │ │ └── IsFinishedResponseProcessor.java │ │ │ └── route │ │ │ ├── DeleteRoute.java │ │ │ ├── GetRestResultRoute.java │ │ │ ├── InvocationRoute.java │ │ │ └── IsFinishedRoute.java │ │ └── resources │ │ ├── META-INF │ │ └── swagger.json │ │ └── spring │ │ └── context-bus-management-api.xml ├── org.opentosca.bus.management.api.soaphttp │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── opentosca │ │ │ └── bus │ │ │ └── management │ │ │ └── api │ │ │ └── soaphttp │ │ │ ├── model │ │ │ ├── Doc.java │ │ │ ├── InvokeOperationAsync.java │ │ │ ├── InvokeOperationSync.java │ │ │ ├── InvokePlan.java │ │ │ ├── InvokeResponse.java │ │ │ ├── NotifyPartner.java │ │ │ ├── NotifyPartners.java │ │ │ ├── ObjectFactory.java │ │ │ ├── ParamsMap.java │ │ │ ├── ParamsMapItemType.java │ │ │ ├── ReceiveNotifyPartner.java │ │ │ ├── ReceiveNotifyPartners.java │ │ │ └── package-info.java │ │ │ ├── package-info.java │ │ │ ├── processor │ │ │ ├── RequestProcessor.java │ │ │ ├── ResponseProcessor.java │ │ │ └── package-info.java │ │ │ └── route │ │ │ ├── Route.java │ │ │ └── package-info.java │ │ └── resources │ │ ├── spring │ │ └── context-bus-management-api.xml │ │ └── wsdl │ │ ├── invoker.wsdl │ │ └── invoker.xsd ├── org.opentosca.bus.management.deployment.plugin.remote │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── opentosca │ │ │ └── bus │ │ │ └── management │ │ │ └── deployment │ │ │ └── plugin │ │ │ └── remote │ │ │ └── ManagementBusDeploymentPluginRemote.java │ │ └── resources │ │ └── spring │ │ └── context-bus-deployment-plugin.xml ├── org.opentosca.bus.management.deployment.plugin.script │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── opentosca │ │ │ └── bus │ │ │ └── management │ │ │ └── deployment │ │ │ └── plugin │ │ │ └── script │ │ │ └── ManagementBusDeploymentPluginScript.java │ │ └── resources │ │ └── spring │ │ └── context-bus-deployment-plugin.xml ├── org.opentosca.bus.management.deployment.plugin.tomcat │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── opentosca │ │ │ └── bus │ │ │ └── management │ │ │ └── deployment │ │ │ └── plugin │ │ │ └── tomcat │ │ │ └── ManagementBusDeploymentPluginTomcat.java │ │ └── resources │ │ └── spring │ │ └── context-bus-deployment-plugin.xml ├── org.opentosca.bus.management.deployment.plugin │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── org │ │ └── opentosca │ │ └── bus │ │ └── management │ │ └── deployment │ │ └── plugin │ │ └── IManagementBusDeploymentPluginService.java ├── org.opentosca.bus.management.invocation.plugin.remote │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── opentosca │ │ │ └── bus │ │ │ └── management │ │ │ └── invocation │ │ │ └── plugin │ │ │ └── remote │ │ │ └── ManagementBusInvocationPluginRemote.java │ │ └── resources │ │ └── spring │ │ └── context-bus-invocation-plugin.xml ├── org.opentosca.bus.management.invocation.plugin.rest │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── opentosca │ │ │ └── bus │ │ │ └── management │ │ │ └── invocation │ │ │ └── plugin │ │ │ └── rest │ │ │ ├── ManagementBusInvocationPluginRest.java │ │ │ └── model │ │ │ ├── ContentType.java │ │ │ ├── DataAssign.java │ │ │ ├── EndpointType.java │ │ │ ├── MethodeType.java │ │ │ ├── ObjectFactory.java │ │ │ ├── ParamsType.java │ │ │ └── package-info.java │ │ └── resources │ │ ├── schema │ │ └── SpecificContentRestSchema.xsd │ │ └── spring │ │ └── context-bus-invocation-plugin.xml ├── org.opentosca.bus.management.invocation.plugin.script │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── opentosca │ │ │ └── bus │ │ │ └── management │ │ │ └── invocation │ │ │ └── plugin │ │ │ └── script │ │ │ ├── ManagementBusInvocationPluginScript.java │ │ │ ├── model │ │ │ └── artifacttypes │ │ │ │ ├── Artifacttype.java │ │ │ │ ├── Commandstype.java │ │ │ │ ├── ObjectFactory.java │ │ │ │ └── Packagestype.java │ │ │ └── typeshandler │ │ │ └── ArtifactTypesHandler.java │ │ └── resources │ │ ├── artifacttypes │ │ ├── Ansible.xml │ │ ├── Chef.xml │ │ ├── PythonArchive.xml │ │ ├── PythonScript.xml │ │ ├── Script.xml │ │ ├── TypesSchema.xsd │ │ ├── Wheel.xml │ │ └── readme.txt │ │ └── spring │ │ └── context-bus-invocation-plugin.xml ├── org.opentosca.bus.management.invocation.plugin.soaphttp │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── opentosca │ │ │ └── bus │ │ │ └── management │ │ │ └── invocation │ │ │ └── plugin │ │ │ └── soaphttp │ │ │ ├── ManagementBusInvocationPluginSoapHttp.java │ │ │ ├── package-info.java │ │ │ ├── processor │ │ │ ├── CallbackProcessor.java │ │ │ ├── HeaderProcessor.java │ │ │ └── package-info.java │ │ │ └── route │ │ │ ├── AsyncRoute.java │ │ │ ├── RequestOnlyRoute.java │ │ │ ├── SyncRoute.java │ │ │ └── package-info.java │ │ └── resources │ │ └── spring │ │ └── context-bus-invocation-plugin.xml ├── org.opentosca.bus.management.invocation.plugin │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── org │ │ └── opentosca │ │ └── bus │ │ └── management │ │ └── invocation │ │ └── plugin │ │ └── IManagementBusInvocationPluginService.java ├── org.opentosca.bus.management.service │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── opentosca │ │ │ └── bus │ │ │ └── management │ │ │ └── service │ │ │ ├── IManagementBusService.java │ │ │ ├── impl │ │ │ ├── Constants.java │ │ │ ├── ManagementBusServiceImpl.java │ │ │ ├── PluginRegistry.java │ │ │ ├── collaboration │ │ │ │ ├── CollaborationContext.java │ │ │ │ ├── DeploymentDistributionDecisionMaker.java │ │ │ │ ├── RequestReceiver.java │ │ │ │ ├── RequestSender.java │ │ │ │ ├── model │ │ │ │ │ ├── BodyType.java │ │ │ │ │ ├── CollaborationMessage.java │ │ │ │ │ ├── Doc.java │ │ │ │ │ ├── IAInvocationRequest.java │ │ │ │ │ ├── InstanceDataMatchingRequest.java │ │ │ │ │ ├── KeyValueMap.java │ │ │ │ │ ├── KeyValueType.java │ │ │ │ │ ├── ObjectFactory.java │ │ │ │ │ ├── RemoteOperations.java │ │ │ │ │ └── package-info.java │ │ │ │ ├── package-info.java │ │ │ │ ├── processor │ │ │ │ │ ├── IncomingProcessor.java │ │ │ │ │ ├── OutgoingProcessor.java │ │ │ │ │ └── package-info.java │ │ │ │ └── route │ │ │ │ │ ├── ReceiveRequestRoute.java │ │ │ │ │ ├── ReceiveResponseRoute.java │ │ │ │ │ ├── SendRequestResponseRoute.java │ │ │ │ │ └── package-info.java │ │ │ ├── instance │ │ │ │ └── plan │ │ │ │ │ ├── CorrelationIdAlreadySetException.java │ │ │ │ │ └── PlanInstanceHandler.java │ │ │ ├── package-info.java │ │ │ └── util │ │ │ │ ├── DeploymentPluginCapabilityChecker.java │ │ │ │ ├── ParameterHandler.java │ │ │ │ ├── PluginHandler.java │ │ │ │ ├── Util.java │ │ │ │ └── package-info.java │ │ │ └── package-info.java │ │ └── resources │ │ ├── spring │ │ └── context-bus-management-service.xml │ │ └── xsd │ │ └── collaboration.xsd ├── org.opentosca.bus.management │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── opentosca │ │ │ └── bus │ │ │ └── management │ │ │ ├── header │ │ │ ├── MBHeader.java │ │ │ └── package-info.java │ │ │ └── utils │ │ │ └── MBUtils.java │ │ └── resources │ │ └── spring │ │ └── context-bus-management.xml └── pom.xml ├── org.opentosca.container.api ├── README.md ├── pom.xml └── src │ └── main │ ├── java │ └── org │ │ └── opentosca │ │ └── container │ │ └── api │ │ ├── config │ │ ├── CorsFilter.java │ │ ├── JAXBContextProvider.java │ │ ├── LogFilter.java │ │ ├── LoggingExceptionMapper.java │ │ ├── ObjectMapperProvider.java │ │ ├── PlainTextMessageBodyWriter.java │ │ └── URI2XMLMessageBodyWriter.java │ │ ├── controller │ │ ├── BoundaryDefinitionController.java │ │ ├── BuildPlanController.java │ │ ├── CsarController.java │ │ ├── ManagementPlanController.java │ │ ├── NodeTemplateController.java │ │ ├── NodeTemplateInstanceController.java │ │ ├── PlacementController.java │ │ ├── PlanbuilderController.java │ │ ├── RelationshipTemplateController.java │ │ ├── RelationshipTemplateInstanceController.java │ │ ├── RootController.java │ │ ├── ServiceTemplateController.java │ │ ├── ServiceTemplateInstanceController.java │ │ ├── SituationsController.java │ │ └── content │ │ │ ├── DirectoryController.java │ │ │ └── FileController.java │ │ ├── dto │ │ ├── CsarDTO.java │ │ ├── CsarListDTO.java │ │ ├── NodeOperationDTO.java │ │ ├── NodeTemplateDTO.java │ │ ├── NodeTemplateInstanceDTO.java │ │ ├── NodeTemplateInstanceListDTO.java │ │ ├── NodeTemplateListDTO.java │ │ ├── PropertyDTO.java │ │ ├── RelationshipTemplateDTO.java │ │ ├── RelationshipTemplateInstanceDTO.java │ │ ├── RelationshipTemplateInstanceListDTO.java │ │ ├── RelationshipTemplateListDTO.java │ │ ├── ResourceDecorator.java │ │ ├── ResourceSupport.java │ │ ├── ServiceTemplateDTO.java │ │ ├── ServiceTemplateInstanceDTO.java │ │ ├── ServiceTemplateInstanceListDTO.java │ │ ├── ServiceTemplateListDTO.java │ │ ├── boundarydefinitions │ │ │ ├── InterfaceDTO.java │ │ │ ├── InterfaceListDTO.java │ │ │ ├── OperationDTO.java │ │ │ ├── PropertiesDTO.java │ │ │ └── PropertyMappingDTO.java │ │ ├── plan │ │ │ ├── PlanDTO.java │ │ │ ├── PlanInstanceDTO.java │ │ │ ├── PlanInstanceEventDTO.java │ │ │ ├── PlanInstanceEventListDTO.java │ │ │ ├── PlanInstanceInputDTO.java │ │ │ ├── PlanInstanceListDTO.java │ │ │ ├── PlanInstanceOutputDTO.java │ │ │ └── PlanListDTO.java │ │ ├── request │ │ │ ├── CreatePlanInstanceLogEntryRequest.java │ │ │ ├── CreateRelationshipTemplateInstanceRequest.java │ │ │ ├── CreateServiceTemplateInstanceRequest.java │ │ │ ├── CsarTransformRequest.java │ │ │ ├── CsarUploadRequest.java │ │ │ ├── ServiceTransformRequest.java │ │ │ └── package-info.java │ │ └── situations │ │ │ ├── SituationDTO.java │ │ │ ├── SituationListDTO.java │ │ │ ├── SituationTriggerDTO.java │ │ │ ├── SituationTriggerInputDTO.java │ │ │ ├── SituationTriggerInstanceDTO.java │ │ │ ├── SituationTriggerListDTO.java │ │ │ ├── SituationsMonitorDTO.java │ │ │ └── SituationsMonitorListDTO.java │ │ ├── planbuilder │ │ ├── PlanbuilderWorker.java │ │ ├── RunningTasks.java │ │ ├── Util.java │ │ └── model │ │ │ ├── GeneratePlanForTopology.java │ │ │ └── PlanGenerationState.java │ │ ├── service │ │ ├── NodeTemplateService.java │ │ └── PlanInvokerService.java │ │ └── util │ │ └── Utils.java │ └── resources │ ├── META-INF │ └── persistence.xml │ └── spring │ └── context-api.xml ├── org.opentosca.container.control ├── pom.xml └── src │ └── main │ ├── java │ └── org │ │ └── opentosca │ │ └── container │ │ └── control │ │ ├── OpenToscaControlService.java │ │ ├── OpenToscaControlServiceImpl.java │ │ ├── plan │ │ └── PlanGenerationService.java │ │ └── winery │ │ └── WineryConnector.java │ └── resources │ └── spring │ └── context-control.xml ├── org.opentosca.container.core ├── pom.xml └── src │ └── main │ ├── java │ └── org │ │ └── opentosca │ │ └── container │ │ └── core │ │ ├── common │ │ ├── NotFoundException.java │ │ ├── ReferenceNotFoundException.java │ │ ├── Settings.java │ │ ├── SystemException.java │ │ ├── UserException.java │ │ ├── file │ │ │ └── ResourceAccess.java │ │ ├── jpa │ │ │ ├── CsarIdConverter.java │ │ │ ├── DocumentConverter.java │ │ │ ├── PathConverter.java │ │ │ ├── QNameConverter.java │ │ │ └── UriConverter.java │ │ ├── uri │ │ │ └── UriUtil.java │ │ └── xml │ │ │ └── XMLHelper.java │ │ ├── convention │ │ ├── Interfaces.java │ │ ├── PlanConstants.java │ │ ├── Properties.java │ │ ├── Types.java │ │ └── Utils.java │ │ ├── engine │ │ ├── ResolvedArtifacts.java │ │ ├── ToscaEngine.java │ │ ├── management │ │ │ └── IManagementBus.java │ │ ├── next │ │ │ └── ContainerEngine.java │ │ └── xml │ │ │ ├── IXMLSerializer.java │ │ │ ├── IXMLSerializerFactory.java │ │ │ ├── IXMLSerializerService.java │ │ │ └── impl │ │ │ ├── FormatOutputUtil.java │ │ │ ├── IOutputFormatter.java │ │ │ ├── XMLSerializer.java │ │ │ ├── XMLSerializerFactory.java │ │ │ └── XMLSerializerServiceImpl.java │ │ ├── extension │ │ ├── TParameter.java │ │ ├── TParameterDTO.java │ │ └── TPlanDTO.java │ │ ├── impl │ │ └── service │ │ │ ├── CoreCapabilityServiceImpl.java │ │ │ ├── CoreEndpointServiceImpl.java │ │ │ ├── CsarStorageServiceImpl.java │ │ │ ├── DeploymentTrackerImpl.java │ │ │ ├── FileSystem.java │ │ │ ├── HttpServiceImpl.java │ │ │ └── internal │ │ │ └── file │ │ │ └── visitors │ │ │ ├── DirectoryDeleteVisitor.java │ │ │ └── DirectoryVisitor.java │ │ ├── model │ │ ├── ModelUtils.java │ │ ├── choreography │ │ │ ├── SituationExpression.java │ │ │ └── SituationRule.java │ │ ├── csar │ │ │ ├── Csar.java │ │ │ ├── CsarId.java │ │ │ └── CsarImpl.java │ │ └── deployment │ │ │ ├── AbstractDeploymentInfo.java │ │ │ └── AbstractFileDeploymentInfo.java │ │ ├── next │ │ ├── model │ │ │ ├── Capability.java │ │ │ ├── DeploymentProcessInfo.java │ │ │ ├── DeploymentProcessOperation.java │ │ │ ├── DeploymentProcessState.java │ │ │ ├── DeploymentTest.java │ │ │ ├── DeploymentTestResult.java │ │ │ ├── DeploymentTestState.java │ │ │ ├── Endpoint.java │ │ │ ├── IADeploymentInfo.java │ │ │ ├── IADeploymentState.java │ │ │ ├── NodeTemplateInstance.java │ │ │ ├── NodeTemplateInstanceProperty.java │ │ │ ├── NodeTemplateInstanceState.java │ │ │ ├── PersistenceObject.java │ │ │ ├── PlanDeploymentInfo.java │ │ │ ├── PlanDeploymentState.java │ │ │ ├── PlanInstance.java │ │ │ ├── PlanInstanceEvent.java │ │ │ ├── PlanInstanceInput.java │ │ │ ├── PlanInstanceOutput.java │ │ │ ├── PlanInstanceState.java │ │ │ ├── PlanLanguage.java │ │ │ ├── PlanType.java │ │ │ ├── Property.java │ │ │ ├── ProviderType.java │ │ │ ├── RelationshipTemplateInstance.java │ │ │ ├── RelationshipTemplateInstanceProperty.java │ │ │ ├── RelationshipTemplateInstanceState.java │ │ │ ├── ServiceTemplateInstance.java │ │ │ ├── ServiceTemplateInstanceProperty.java │ │ │ ├── ServiceTemplateInstanceState.java │ │ │ ├── Situation.java │ │ │ ├── SituationTrigger.java │ │ │ ├── SituationTriggerInstance.java │ │ │ ├── SituationTriggerInstanceProperty.java │ │ │ ├── SituationTriggerProperty.java │ │ │ ├── SituationsMonitor.java │ │ │ └── SituationsMonitorIdCollection.java │ │ ├── repository │ │ │ ├── CapabilityRepository.java │ │ │ ├── DataSourceRegistry.java │ │ │ ├── DeploymentProcessInfoRepository.java │ │ │ ├── DeploymentTestRepository.java │ │ │ ├── EndpointRepository.java │ │ │ ├── IADeploymentInfoRepository.java │ │ │ ├── NodeTemplateInstanceRepository.java │ │ │ ├── PlanDeploymentInfoRepository.java │ │ │ ├── PlanInstanceRepository.java │ │ │ ├── RelationshipTemplateInstanceRepository.java │ │ │ ├── Repository.java │ │ │ ├── ServiceTemplateInstanceRepository.java │ │ │ ├── SituationRepository.java │ │ │ ├── SituationTriggerInstanceRepository.java │ │ │ ├── SituationTriggerRepository.java │ │ │ └── SituationsMonitorRepository.java │ │ ├── services │ │ │ ├── instances │ │ │ │ ├── NodeTemplateInstanceService.java │ │ │ │ ├── PlanInstanceService.java │ │ │ │ ├── RelationshipTemplateInstanceService.java │ │ │ │ ├── ServiceTemplateInstanceService.java │ │ │ │ └── SituationInstanceService.java │ │ │ └── templates │ │ │ │ ├── RelationshipTemplateService.java │ │ │ │ └── ServiceTemplateService.java │ │ ├── trigger │ │ │ ├── PlanInstanceSubscriptionService.java │ │ │ ├── SituationListener.java │ │ │ └── SituationTriggerInstanceListener.java │ │ ├── utils │ │ │ ├── Enums.java │ │ │ ├── Exceptions.java │ │ │ ├── PropertyMappingsHelper.java │ │ │ └── Types.java │ │ └── xml │ │ │ ├── DomUtil.java │ │ │ └── PropertyParser.java │ │ ├── plan │ │ ├── ChoreographyHandler.java │ │ ├── PlanInvocationEngine.java │ │ └── RulesChecker.java │ │ └── service │ │ ├── CsarStorageService.java │ │ ├── DeploymentTracker.java │ │ ├── ICoreCapabilityService.java │ │ ├── ICoreEndpointService.java │ │ ├── IHTTPService.java │ │ └── IPlanInvocationEngine.java │ └── resources │ ├── TOSCA-v1.0.xsd │ ├── application.properties │ └── spring │ └── context-container-core.xml ├── org.opentosca.container.integration.tests ├── pom.xml └── src │ └── test │ └── java │ └── org │ └── opentosca │ ├── container │ ├── api │ │ └── dto │ │ │ └── request │ │ │ └── CreateServiceTemplateInstanceRequestTest.java │ └── core │ │ └── next │ │ ├── model │ │ └── RelationshipTemplateInstanceTest.java │ │ └── xml │ │ ├── DomUtilTest.java │ │ └── PropertyParserTest.java │ └── deployment │ └── checks │ └── DeploymentTestResultTest.java ├── org.opentosca.container.plan.deployment ├── org.opentosca.container.plan.deployment.core │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── org │ │ └── opentosca │ │ └── container │ │ └── plan │ │ └── deployment │ │ └── core │ │ ├── IPlanEngineService.java │ │ ├── impl │ │ └── PlanEngineImpl.java │ │ └── plugin │ │ ├── IPlanEnginePlanModelPluginService.java │ │ ├── IPlanEnginePlanRefPluginService.java │ │ └── IPlanEnginePluginService.java ├── org.opentosca.container.plan.deployment.plugin.bpel │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ ├── apache │ │ │ └── ode │ │ │ │ └── schemas │ │ │ │ └── dd │ │ │ │ └── _2007 │ │ │ │ └── _03 │ │ │ │ ├── ObjectFactory.java │ │ │ │ ├── TCleanup.java │ │ │ │ ├── TDeployment.java │ │ │ │ ├── TEnableEventList.java │ │ │ │ ├── TEnableSharing.java │ │ │ │ ├── TInvoke.java │ │ │ │ ├── TMexInterceptor.java │ │ │ │ ├── TProcessEvents.java │ │ │ │ ├── TProvide.java │ │ │ │ ├── TSchedule.java │ │ │ │ ├── TScopeEvents.java │ │ │ │ ├── TService.java │ │ │ │ └── package-info.java │ │ │ └── opentosca │ │ │ └── container │ │ │ └── plan │ │ │ └── deployment │ │ │ └── plugin │ │ │ └── bpel │ │ │ ├── BpelPlanEnginePlugin.java │ │ │ ├── OdeConnector.java │ │ │ └── util │ │ │ └── ODEEndpointUpdater.java │ │ └── resources │ │ ├── deploy.wsdl │ │ ├── imapi.wsdl │ │ ├── pmapi.wsdl │ │ ├── pmapi.xsd │ │ └── xmlmime.xsd ├── org.opentosca.container.plan.deployment.plugin.camunda │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── org │ │ └── opentosca │ │ └── container │ │ └── plan │ │ └── deployment │ │ └── plugin │ │ └── camunda │ │ └── CamundaPlanEnginePlugin.java └── pom.xml ├── org.opentosca.container.reporting └── pom.xml ├── org.opentosca.container.war ├── .DS_Store ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── opentosca │ │ │ └── container │ │ │ └── war │ │ │ ├── Application.java │ │ │ ├── Config.java │ │ │ └── SpringJaxRSConfiguration.java │ ├── resources │ │ ├── META-INF │ │ │ └── cxf │ │ │ │ └── org.apache.cxf.logger │ │ ├── logback.xml │ │ └── spring │ │ │ └── root-context.xml │ └── webapp │ │ └── WEB-INF │ │ └── web.xml │ └── test │ └── java │ └── org │ └── opentosca │ └── container │ └── war │ └── tests │ ├── AdaptMultiMyTinyToDoIntegrationTest.java │ ├── ApacheWebAppIntegrationTest.java │ ├── ConnectToIntegrationTest.java │ ├── MigrateMyTinyToDo2MultiMyTinyToDoIntegrationTest.java │ ├── MultiMyTinyToDoIntegrationTest.java │ ├── MyTinyToDoBPMNIntegrationTest.java │ ├── MyTinyToDoIntegrationTest.java │ ├── MyTinyToDoSqlIntegrationTest.java │ ├── PlanQKServiceIntegrationTest.java │ ├── QHAnaTest.java │ └── TestUtils.java ├── org.opentosca.deployment.checks ├── pom.xml └── src │ └── main │ ├── java │ └── org │ │ └── opentosca │ │ └── deployment │ │ └── checks │ │ ├── DeploymentTestService.java │ │ ├── TestContext.java │ │ ├── TestExecutor.java │ │ ├── TestUtil.java │ │ ├── camel │ │ └── RouteConfiguration.java │ │ └── test │ │ ├── HttpTest.java │ │ ├── ManagementOperationTest.java │ │ ├── PortBindingTest.java │ │ ├── SqlConnectionTest.java │ │ ├── TcpPingTest.java │ │ └── TestExecutionPlugin.java │ └── resources │ └── spring │ └── context-deployment-checks.xml ├── org.opentosca.planbuilder ├── .DS_Store ├── org.opentosca.planbuilder.core.bpel │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── opentosca │ │ │ └── planbuilder │ │ │ └── core │ │ │ └── bpel │ │ │ ├── artifactbasednodehandler │ │ │ ├── BPELScopeBuilder.java │ │ │ ├── DANodeTypeImplCandidate.java │ │ │ ├── IANodeTypeImplCandidate.java │ │ │ ├── InterfaceDummy.java │ │ │ ├── OperationChain.java │ │ │ └── OperationNodeTypeImplCandidate.java │ │ │ ├── context │ │ │ └── BPELPlanContext.java │ │ │ ├── fragments │ │ │ └── BPELProcessFragments.java │ │ │ ├── handlers │ │ │ ├── AbstractServiceInstanceHandler.java │ │ │ ├── BPELFinalizer.java │ │ │ ├── BPELPlanHandler.java │ │ │ ├── BPELScopeHandler.java │ │ │ ├── CorrelationIDInitializer.java │ │ │ ├── DeployTechDescriptorHandler.java │ │ │ ├── EmptyPropertyToInputHandler.java │ │ │ ├── NodeRelationInstanceVariablesHandler.java │ │ │ ├── OpenTOSCARuntimeHandler.java │ │ │ ├── PropertyVariableHandler.java │ │ │ ├── ServiceTemplateBoundaryPropertyMappingsToOutputHandler.java │ │ │ ├── SimplePlanBuilderServiceInstanceHandler.java │ │ │ ├── SituationTriggerRegistration.java │ │ │ └── TOSCAManagementInfrastructureNodeTemplate.java │ │ │ ├── typebasednodehandler │ │ │ └── BPELPluginHandler.java │ │ │ └── typebasedplanbuilder │ │ │ ├── BPELBackupManagementProcessBuilder.java │ │ │ ├── BPELBuildProcessBuilder.java │ │ │ ├── BPELDefrostProcessBuilder.java │ │ │ ├── BPELFreezeProcessBuilder.java │ │ │ ├── BPELPolicyAwareBuildProcessBuilder.java │ │ │ ├── BPELScaleOutProcessBuilder.java │ │ │ ├── BPELSituationAwareBuildProcessBuilder.java │ │ │ ├── BPELTerminationProcessBuilder.java │ │ │ ├── BPELTestManagementProcessBuilder.java │ │ │ ├── BPELTransformationProcessBuilder.java │ │ │ └── BPELUpdateProcessBuilder.java │ │ └── resources │ │ ├── core-bpel │ │ ├── BPEL4RESTLightDELETE.xml │ │ ├── BPEL4RESTLightGET_NodeInstance_InstanceDataAPI.xml │ │ ├── BPEL4RESTLightGET_NodeInstance_Properties.xml │ │ ├── BPEL4RESTLightGET_NodeInstances_InstanceDataAPI.xml │ │ ├── BPEL4RESTLightGET_RelationInstance_InstanceDataAPI.xml │ │ ├── BPEL4RESTLightGET_RelationInstances_InstanceDataAPI.xml │ │ ├── BPEL4RESTLightGET_RelationInstances_QueryOnTargetInstance_InstanceDataAPI.xml │ │ ├── BPEL4RESTLightGET_URL_ApplicationXML.xml │ │ ├── BPEL4RESTLightPOST_PlanInstance_Logs.xml │ │ ├── BPEL4RESTLightPOST_ServiceInstance_InstanceDataAPI.xml │ │ ├── BPEL4RESTLightPOST_ServiceInstance_InstanceDataAPI_WithBody.xml │ │ ├── BPEL4RESTLightPUTInstanceState.xml │ │ ├── BPELCompareInstanceCounts.xml │ │ ├── BPELIfTrueThrowFault.xml │ │ ├── BPELMonitoringSituation.xml │ │ ├── BPELWait.xml │ │ ├── BPELWaitTillTrue.xml │ │ ├── BpelAssignFromInputToStringVar.xml │ │ ├── BpelAssignFromNodeInstanceRequestToStringVar.xml │ │ ├── BpelAssignSelectFromNodeInstancesRequestToStringVar.xml │ │ ├── BpelAssignSelectFromRelationInstancesRequestToStringVar.xml │ │ ├── BpelAssignServiceInstanceCorrelationIdPOSTRequest.xml │ │ ├── BpelAssignServiceInstanceIDFromServiceInstanceUrl.xml │ │ ├── BpelAssignServiceInstancePOSTResponse.xml │ │ ├── BpelAssignServiceInstancePOSTResponse2.xml │ │ ├── BpelCopyFromPropertyVarToNodeInstanceProperty.xml │ │ ├── BpelCopyOutputVarFromStringVariable.xml │ │ ├── assignStringVarWithXpath2Query.xml │ │ ├── assignVarFromVarWithXpath2Queries.xml │ │ ├── assignVarFromVarWithXpath2Query.xml │ │ └── assignVarWithLiteral.xml │ │ ├── schemas │ │ └── opentoscaapischema.xsd │ │ └── spring │ │ └── context-planbuilder-bpel.xml ├── org.opentosca.planbuilder.core │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── opentosca │ │ │ └── planbuilder │ │ │ └── core │ │ │ ├── AbstractBuildPlanBuilder.java │ │ │ ├── AbstractDefrostPlanBuilder.java │ │ │ ├── AbstractFreezePlanBuilder.java │ │ │ ├── AbstractManagementFeaturePlanBuilder.java │ │ │ ├── AbstractPlanBuilder.java │ │ │ ├── AbstractScaleOutPlanBuilder.java │ │ │ ├── AbstractSimplePlanBuilder.java │ │ │ ├── AbstractTerminationPlanBuilder.java │ │ │ ├── AbstractTransformingPlanbuilder.java │ │ │ ├── AbstractUpdatePlanBuilder.java │ │ │ ├── ChoreographyBuilder.java │ │ │ ├── NCName.java │ │ │ ├── ScalingPlanDefinition.java │ │ │ └── plugins │ │ │ ├── artifactbased │ │ │ ├── IPlanBuilderCompensationOperationPlugin.java │ │ │ ├── IPlanBuilderPrePhaseDAPlugin.java │ │ │ ├── IPlanBuilderPrePhaseIAPlugin.java │ │ │ ├── IPlanBuilderProvPhaseOperationPlugin.java │ │ │ └── IPlanBuilderProvPhaseParamOperationPlugin.java │ │ │ ├── choreography │ │ │ └── IPlanBuilderChoreographyPlugin.java │ │ │ ├── context │ │ │ ├── DeployTechDescriptorMapping.java │ │ │ ├── PlanContext.java │ │ │ ├── Property2VariableMapping.java │ │ │ ├── PropertyVariable.java │ │ │ └── Variable.java │ │ │ ├── registry │ │ │ └── PluginRegistry.java │ │ │ ├── typebased │ │ │ ├── IPlanBuilderPlugin.java │ │ │ ├── IPlanBuilderPolicyAwarePostPhasePlugin.java │ │ │ ├── IPlanBuilderPolicyAwarePrePhasePlugin.java │ │ │ ├── IPlanBuilderPolicyAwareTypePlugin.java │ │ │ ├── IPlanBuilderPostPhasePlugin.java │ │ │ ├── IPlanBuilderPrePhasePlugin.java │ │ │ ├── IPlanBuilderTypePlugin.java │ │ │ └── IScalingPlanBuilderSelectionPlugin.java │ │ │ └── utils │ │ │ └── PluginUtils.java │ │ └── resources │ │ └── spring │ │ └── context-planbuilder.xml ├── org.opentosca.planbuilder.integration │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ ├── eclipse │ │ │ └── winery │ │ │ │ └── model │ │ │ │ └── selfservice │ │ │ │ ├── Application.java │ │ │ │ ├── ApplicationOption.java │ │ │ │ ├── ObjectFactory.java │ │ │ │ └── package-info.java │ │ │ └── opentosca │ │ │ └── planbuilder │ │ │ ├── export │ │ │ ├── VinothekKnownParameters.java │ │ │ ├── WineryExporter.java │ │ │ └── exporters │ │ │ │ └── SimpleFileExporter.java │ │ │ ├── importer │ │ │ └── Importer.java │ │ │ └── integration │ │ │ └── layer │ │ │ ├── AbstractExporter.java │ │ │ └── AbstractImporter.java │ │ └── resources │ │ └── spring │ │ └── context-planbuilder-integration.xml ├── org.opentosca.planbuilder.model │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ ├── apache │ │ │ └── ode │ │ │ │ ├── activityrecovery │ │ │ │ ├── FailureHandling.java │ │ │ │ ├── ObjectFactory.java │ │ │ │ └── package-info.java │ │ │ │ └── schemas │ │ │ │ └── dd │ │ │ │ └── _2007 │ │ │ │ └── _03 │ │ │ │ ├── ObjectFactory.java │ │ │ │ ├── TCleanup.java │ │ │ │ ├── TDeployment.java │ │ │ │ ├── TEnableEventList.java │ │ │ │ ├── TEnableSharing.java │ │ │ │ ├── TInvoke.java │ │ │ │ ├── TMexInterceptor.java │ │ │ │ ├── TProcessEvents.java │ │ │ │ ├── TProvide.java │ │ │ │ ├── TSchedule.java │ │ │ │ ├── TScopeEvents.java │ │ │ │ ├── TService.java │ │ │ │ └── package-info.java │ │ │ └── opentosca │ │ │ └── planbuilder │ │ │ └── model │ │ │ └── plan │ │ │ ├── AbstractActivity.java │ │ │ ├── AbstractPlan.java │ │ │ ├── AbstractTransformationPlan.java │ │ │ ├── ActivityType.java │ │ │ ├── MonitoringActivity.java │ │ │ ├── NodeTemplateActivity.java │ │ │ ├── RelationshipTemplateActivity.java │ │ │ └── bpel │ │ │ ├── BPELPlan.java │ │ │ ├── BPELScope.java │ │ │ ├── Deploy.java │ │ │ └── GenericWsdlWrapper.java │ │ └── resources │ │ ├── activityRecovery.xsd │ │ ├── dd.xsd │ │ ├── generated │ │ └── org │ │ │ └── apache │ │ │ └── ode │ │ │ ├── activityrecovery │ │ │ ├── FailureHandling.java │ │ │ ├── ObjectFactory.java │ │ │ └── package-info.java │ │ │ └── schemas │ │ │ └── dd │ │ │ └── _2007 │ │ │ └── _03 │ │ │ ├── ObjectFactory.java │ │ │ ├── TCleanup.java │ │ │ ├── TDeployment.java │ │ │ ├── TEnableEventList.java │ │ │ ├── TEnableSharing.java │ │ │ ├── TInvoke.java │ │ │ ├── TMexInterceptor.java │ │ │ ├── TProcessEvents.java │ │ │ ├── TProvide.java │ │ │ ├── TSchedule.java │ │ │ ├── TScopeEvents.java │ │ │ ├── TService.java │ │ │ └── package-info.java │ │ ├── genericProcessWsdl.wsdl │ │ └── spring │ │ └── context-planbuilder-model.xml ├── org.opentosca.planbuilder.postphase.plugin.instancedata │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── opentosca │ │ │ └── planbuilder │ │ │ └── postphase │ │ │ └── plugin │ │ │ └── instancedata │ │ │ ├── bpel │ │ │ ├── BPELInstanceDataPlugin.java │ │ │ ├── Fragments.java │ │ │ ├── Handler.java │ │ │ └── InstanceStates.java │ │ │ └── core │ │ │ └── InstanceStates.java │ │ └── resources │ │ ├── instancedata-plugin │ │ ├── BPEL4RESTLightDELETE.xml │ │ ├── BPEL4RESTLightGET.xml │ │ ├── BPEL4RESTLightGET_Instance_Properties.xml │ │ ├── BPEL4RESTLightGET_Instance_State_InstanceDataAPI.xml │ │ ├── BPEL4RESTLightGET_NodeInstance_InstanceDataAPI.xml │ │ ├── BPEL4RESTLightPOST_NodeInstance_InstanceDataAPI.xml │ │ ├── BPEL4RESTLightPOST_RelationInstance_InstanceDataAPI.xml │ │ ├── BPEL4RESTLightPOST_ServiceInstance_InstanceDataAPI.xml │ │ ├── BPEL4RESTLightPUT_Instance_InstanceDataAPI.xml │ │ ├── BPEL4RESTLightPUT_Instance_State_InstanceDataAPI.xml │ │ ├── BPELAssignFromNodeInstancePOSTResponseToStringVar.xml │ │ ├── BPELAssignFromRelationInstancePOSTResponseToStringVar.xml │ │ ├── BpelAssignFromInputToStringVar.xml │ │ ├── BpelAssignFromNodeInstanceRequestToStringVar.xml │ │ ├── BpelAssignFromServiceInstanceRequestToStringVar.xml │ │ ├── BpelAssignServiceInstancePOSTResponse.xml │ │ └── BpelCopyFromPropertyVarToNodeInstanceProperty.xml │ │ └── spring │ │ └── context-planbuilder-plugin.xml ├── org.opentosca.planbuilder.postphase.plugin.monitoring │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── opentosca │ │ │ └── planbuilder │ │ │ └── postphase │ │ │ └── plugin │ │ │ └── monitoring │ │ │ └── bpel │ │ │ └── impl │ │ │ └── BPELMonitoringPlugin.java │ │ └── resources │ │ └── spring │ │ └── context-planbuilder-plugin.xml ├── org.opentosca.planbuilder.postphase.plugin.situations │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── opentosca │ │ │ └── planbuilder │ │ │ └── postphase │ │ │ └── plugin │ │ │ └── situations │ │ │ └── bpel │ │ │ ├── BPELSituationPlugin.java │ │ │ ├── Fragments.java │ │ │ └── SituationPluginUtils.java │ │ └── resources │ │ ├── BPEL4RESTLightDELETE.xml │ │ ├── BPEL4RESTLightGET.xml │ │ ├── BPEL4RESTLightGET_Instance_Properties.xml │ │ ├── BPEL4RESTLightGET_Instance_State_InstanceDataAPI.xml │ │ ├── BPEL4RESTLightGET_NodeInstance_InstanceDataAPI.xml │ │ ├── BPEL4RESTLightPOST_NodeInstance_InstanceDataAPI.xml │ │ ├── BPEL4RESTLightPOST_RelationInstance_InstanceDataAPI.xml │ │ ├── BPEL4RESTLightPOST_ServiceInstance_InstanceDataAPI.xml │ │ ├── BPEL4RESTLightPUT_Instance_InstanceDataAPI.xml │ │ ├── BPEL4RESTLightPUT_Instance_State_InstanceDataAPI.xml │ │ ├── BPELAssignFromNodeInstancePOSTResponseToStringVar.xml │ │ ├── BPELAssignFromRelationInstancePOSTResponseToStringVar.xml │ │ ├── BpelAssignFromInputToStringVar.xml │ │ ├── BpelAssignFromNodeInstanceRequestToStringVar.xml │ │ ├── BpelAssignFromServiceInstanceRequestToStringVar.xml │ │ ├── BpelAssignServiceInstancePOSTResponse.xml │ │ ├── BpelCopyFromPropertyVarToNodeInstanceProperty.xml │ │ └── spring │ │ └── context-planbuilder-plugin.xml ├── org.opentosca.planbuilder.prephase.plugin.fileupload │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── opentosca │ │ │ └── planbuilder │ │ │ └── prephase │ │ │ └── plugin │ │ │ └── fileupload │ │ │ └── bpel │ │ │ ├── BPELPrePhasePlugin.java │ │ │ └── handler │ │ │ └── BPELPrePhasePluginHandler.java │ │ └── resources │ │ └── spring │ │ └── context-planbuilder-plugin.xml ├── org.opentosca.planbuilder.provphase.plugin.ansibleoperation │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── opentosca │ │ │ └── planbuilder │ │ │ └── provphase │ │ │ └── plugin │ │ │ └── ansibleoperation │ │ │ ├── bpel │ │ │ ├── BPELAnsibleOperationPlugin.java │ │ │ └── handler │ │ │ │ └── BPELAnsibleOperationPluginHandler.java │ │ │ └── core │ │ │ └── AnsibleOperationPlugin.java │ │ └── resources │ │ ├── ansibleoperation-plugin │ │ └── assignStringVarWithXpath2Query.xml │ │ └── spring │ │ └── context-planbuilder-plugin.xml ├── org.opentosca.planbuilder.provphase.plugin.invoker │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── opentosca │ │ │ └── planbuilder │ │ │ └── provphase │ │ │ └── plugin │ │ │ └── invoker │ │ │ └── bpel │ │ │ ├── BPELInvokerPlugin.java │ │ │ └── handlers │ │ │ ├── BPELInvokeOperationHandler.java │ │ │ ├── BPELInvokerPluginHandler.java │ │ │ ├── BPELNotifyHandler.java │ │ │ ├── PluginHandler.java │ │ │ └── ResourceHandler.java │ │ └── resources │ │ ├── invoker-plugin │ │ ├── EPRCopyToInvokerReplyTo.xml │ │ ├── addressingCopy.xml │ │ ├── addressingInit.xml │ │ ├── assignInvokerAsyncMessage.xml │ │ ├── assignNotifyMessage.xml │ │ ├── assignStringVarWithXpath2Query.xml │ │ ├── copyReplyTo.xml │ │ ├── correlationIdCopy.xml │ │ ├── externalParamCopy.xml │ │ ├── externalParamCopy2.xml │ │ ├── ifFaultMessageThrowFault.xml │ │ ├── initMessageId.xml │ │ ├── internalParamCopy.xml │ │ ├── invoker.wsdl │ │ ├── invoker.xsd │ │ ├── nodeInstanceCopy.xml │ │ └── serviceInstanceCopy.xml │ │ └── spring │ │ └── context-planbuilder-plugin.xml ├── org.opentosca.planbuilder.selection.plugin.firstavailable │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── opentosca │ │ │ └── planbuilder │ │ │ └── selection │ │ │ └── plugin │ │ │ └── firstavailable │ │ │ ├── bpel │ │ │ └── BPELFirstAvailablePlugin.java │ │ │ └── core │ │ │ └── FirstAvailablePlugin.java │ │ └── resources │ │ └── spring │ │ └── context-planbuilder-plugin.xml ├── org.opentosca.planbuilder.selection.plugin.input │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── opentosca │ │ │ └── planbuilder │ │ │ └── selection │ │ │ └── plugin │ │ │ └── input │ │ │ ├── bpel │ │ │ └── BPELSelectionInputPlugin.java │ │ │ └── core │ │ │ └── SelectionInputPlugin.java │ │ └── resources │ │ └── spring │ │ └── context-planbuilder-plugin.xml ├── org.opentosca.planbuilder.selection.plugin.mosquitto.workload │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── opentosca │ │ │ └── planbuilder │ │ │ └── selection │ │ │ └── plugin │ │ │ └── mosquitto │ │ │ └── workload │ │ │ ├── bpel │ │ │ └── BPELMosquittoSelectionPlugin.java │ │ │ └── core │ │ │ └── MosquittoSelectionPlugin.java │ │ └── resources │ │ └── spring │ │ └── context-planbuilder-plugin.xml ├── org.opentosca.planbuilder.type.plugin.connectsto │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── opentosca │ │ │ └── planbuilder │ │ │ └── type │ │ │ └── plugin │ │ │ └── connectsto │ │ │ ├── bpel │ │ │ ├── BPELConfigureRelationsPlugin.java │ │ │ ├── BPELConnectsToPlugin.java │ │ │ ├── Constants.java │ │ │ └── handler │ │ │ │ ├── BPELConfigureRelationsPluginHandler.java │ │ │ │ └── BPELConnectsToPluginHandler.java │ │ │ └── core │ │ │ ├── ConfigureRelationsPlugin.java │ │ │ ├── ConnectsToPlugin.java │ │ │ └── handler │ │ │ └── ConnectsToPluginHandler.java │ │ └── resources │ │ ├── connectsto-plugin │ │ └── assignStringVarWithXpath2Query.xml │ │ └── spring │ │ └── context-planbuilder-plugin.xml ├── org.opentosca.planbuilder.type.plugin.dockercontainer │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── opentosca │ │ │ └── planbuilder │ │ │ └── type │ │ │ └── plugin │ │ │ └── dockercontainer │ │ │ ├── bpel │ │ │ ├── BPELDockerContainerTypePlugin.java │ │ │ ├── BPELOpenMTCDockerContainerTypePlugin.java │ │ │ └── handler │ │ │ │ ├── BPELDockerContainerTypePluginHandler.java │ │ │ │ └── BPELOpenMTCDockerContainerTypePluginHandler.java │ │ │ └── core │ │ │ ├── DockerContainerTypePlugin.java │ │ │ ├── DockerContainerTypePluginPluginConstants.java │ │ │ ├── DockerUtils.java │ │ │ ├── OpenMTCDockerContainerTypePlugin.java │ │ │ └── handler │ │ │ └── DockerContainerTypePluginHandler.java │ │ └── resources │ │ └── spring │ │ └── context-planbuilder-plugin.xml ├── org.opentosca.planbuilder.type.plugin.hardware │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── opentosca │ │ │ └── planbuilder │ │ │ └── type │ │ │ └── plugin │ │ │ └── hardware │ │ │ └── HardwarePlugin.java │ │ └── resources │ │ ├── hardware-plugin │ │ └── assignStringVarWithXpath2Query.xml │ │ └── spring │ │ └── context-planbuilder-plugin.xml ├── org.opentosca.planbuilder.type.plugin.mosquittoconnectsto │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── opentosca │ │ │ └── planbuilder │ │ │ └── type │ │ │ └── plugin │ │ │ └── mosquittoconnectsto │ │ │ ├── bpel │ │ │ ├── BPELConnectsToTypePlugin.java │ │ │ └── handler │ │ │ │ └── BPELConnectsToPluginHandler.java │ │ │ └── core │ │ │ ├── ConnectsToTypePlugin.java │ │ │ └── ConnectsToTypePluginConstants.java │ │ └── resources │ │ ├── mosquittoconnectsto-plugin │ │ └── assignStringVarWithXpath2Query.xml │ │ └── spring │ │ └── context-planbuilder-plugin.xml ├── org.opentosca.planbuilder.type.plugin.patternbased │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── opentosca │ │ │ └── planbuilder │ │ │ └── type │ │ │ └── plugin │ │ │ └── patternbased │ │ │ └── bpel │ │ │ ├── ContainerPatternBasedHandler.java │ │ │ ├── LifecyclePatternBasedHandler.java │ │ │ ├── PatternBasedHandler.java │ │ │ ├── PatternBasedPlugin.java │ │ │ └── RemoteManagerPatternBasedHandler.java │ │ └── resources │ │ ├── patternbased-plugin │ │ └── assignStringVarWithXpath2Query.xml │ │ └── spring │ │ └── context-planbuilder-plugin.xml ├── org.opentosca.planbuilder.type.plugin.platforms │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── opentosca │ │ │ └── planbuilder │ │ │ └── type │ │ │ └── plugin │ │ │ └── platforms │ │ │ └── PlatformPlugin.java │ │ └── resources │ │ ├── platforms-plugin │ │ └── assignStringVarWithXpath2Query.xml │ │ └── spring │ │ └── context-planbuilder-plugin.xml ├── org.opentosca.planbuilder.type.plugin.ubuntuvm │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── opentosca │ │ │ └── planbuilder │ │ │ └── type │ │ │ └── plugin │ │ │ └── ubuntuvm │ │ │ └── bpel │ │ │ ├── BPELUbuntuVmTypePlugin.java │ │ │ └── BPELUbuntuVmTypePluginHandler.java │ │ └── resources │ │ ├── iptables.sh │ │ └── spring │ │ └── context-planbuilder-plugin.xml └── pom.xml ├── pom.xml ├── test.properties └── test.yml /.dockerignore: -------------------------------------------------------------------------------- 1 | **/.idea/ 2 | **/.settings/ 3 | **/bin/ 4 | **/target/ 5 | **/.project 6 | **/.classpath 7 | **/*.iml 8 | !target-definition/target-definition.target 9 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # Editor configuration, see http://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | charset = utf-8 6 | indent_style = space 7 | indent_size = 4 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | end_of_line = lf 11 | 12 | [*.md] 13 | max_line_length = off 14 | trim_trailing_whitespace = false 15 | 16 | [*.yml] 17 | indent_size = 2 18 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | target-definition/binaries/winery-2.0.0.jar filter=lfs diff=lfs merge=lfs -text 2 | -------------------------------------------------------------------------------- /.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | -------------------------------------------------------------------------------- /.idea/copyright/Container.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | -------------------------------------------------------------------------------- /.idea/runConfigurations/removeTemp.ps1: -------------------------------------------------------------------------------- 1 | Remove-Item -Path C:\tools\apache-tomcat-9.0.41\temp -Recurse -Force -EA SilentlyContinue 2 | mkdir C:\tools\apache-tomcat-9.0.41\temp 3 | -------------------------------------------------------------------------------- /ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | **Current Behavior:** 2 | 3 | 4 | **Expected Behavior:** 5 | 6 | 7 | **Steps to Reproduce:** 8 | 9 | 10 | 1. 11 | 1. 12 | 1. 13 | 14 | **Other Information:** 15 | 16 | 17 | **System Information:** 18 | 19 | -------------------------------------------------------------------------------- /PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | #### Short Description 2 | 3 | 4 | #### Proposed Changes 5 | 6 | 7 | * 8 | * 9 | * 10 | 11 | **Fixes**: # 12 | -------------------------------------------------------------------------------- /docs/.editorconfig: -------------------------------------------------------------------------------- 1 | [*] 2 | charset = utf-8 3 | indent_style = space 4 | insert_final_newline = true 5 | trim_trailing_whitespace = true 6 | -------------------------------------------------------------------------------- /docs/_config.yml: -------------------------------------------------------------------------------- 1 | remote_theme: pages-themes/minimal@v0.2.0 2 | anchor: true 3 | exclude: graphics/pptx 4 | -------------------------------------------------------------------------------- /docs/adr/0000-use-architectural-decision-records.md: -------------------------------------------------------------------------------- 1 | # Use Markdown Architectural Decision Records 2 | 3 | ## Context and Problem Statement 4 | 5 | We want to record architectural decisions made in this project. 6 | Which format and structure should these records follow? 7 | 8 | ## Considered Options 9 | 10 | * Follow winery project standard 11 | * Deviate from winery project standard by using a different structure 12 | 13 | ## Decision Outcome 14 | 15 | Follow winery project standard, using ["MADR 2.1.0"][MADR] 16 | 17 | * See the related reasoning outlined in the [winery adr 0000][winery-adr] 18 | * Additional consistency across the projects of the OpenTOSCA ecosystem is highly beneficial 19 | 20 | [MADR]: https://adr.github.io/madr/ 21 | [winery-adr]: https://github.com/eclipse/winery/tree/master/docs/adr/0000-use-architectural-decision-records.md 22 | 23 | -------------------------------------------------------------------------------- /docs/adr/requirements.md: -------------------------------------------------------------------------------- 1 | # Preexisting requirements 2 | 3 | The following is a non-exhaustive list of requirements that serve as basis for architectural decisions. 4 | Requirements that are not imposed by the problem domain (of provisioning a TOSCA CSAR) are marked as "pragmatic requirement" 5 | 6 | - Availability as a REST API 7 | - Deploy as Web Archive to a Java application server (pragmatic requirement) 8 | - Use Tomcat as application Server (pragmatic requirement) 9 | - Persistent Storage capabilities for CSARs as well as metadata surrounding deployment 10 | - Use of the already existing support for persistent storage of CSARs implemented in OpenTOSCA Winery 11 | - Support for existing "Planbuilder" service capabilities 12 | - Support for existing Application Bus code and infrastructure 13 | - Support for existing Management Bus code and infrastructure 14 | - Support for Plugin-Based extension of the capabilities implemented by the Container application 15 | - Specifically this refers to supporting the existing plugin systems of Planbuilder, Plan Engine as well as Management and Application Bus 16 | - … -------------------------------------------------------------------------------- /docs/codestyle/IAAS_SaveActions.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/codestyle/IAAS_SaveActions.png -------------------------------------------------------------------------------- /docs/codestyle/IAAS_SaveActions_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/codestyle/IAAS_SaveActions_1.png -------------------------------------------------------------------------------- /docs/codestyle/IAAS_SaveActions_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/codestyle/IAAS_SaveActions_2.png -------------------------------------------------------------------------------- /docs/codestyle/IAAS_SaveActions_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/codestyle/IAAS_SaveActions_3.png -------------------------------------------------------------------------------- /docs/codestyle/IAAS_SaveActions_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/codestyle/IAAS_SaveActions_4.png -------------------------------------------------------------------------------- /docs/codestyle/IAAS_SaveActions_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/codestyle/IAAS_SaveActions_5.png -------------------------------------------------------------------------------- /docs/components/graphics/ApplicationBus/ApplicationBusArchitektur.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/components/graphics/ApplicationBus/ApplicationBusArchitektur.png -------------------------------------------------------------------------------- /docs/components/graphics/ApplicationBus/BearbeitungsablaufInvokeProcessor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/components/graphics/ApplicationBus/BearbeitungsablaufInvokeProcessor.png -------------------------------------------------------------------------------- /docs/components/graphics/ApplicationBus/Beispielszenario.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/components/graphics/ApplicationBus/Beispielszenario.png -------------------------------------------------------------------------------- /docs/components/graphics/ApplicationBus/FunktionsweiseApplicationBusProxy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/components/graphics/ApplicationBus/FunktionsweiseApplicationBusProxy.png -------------------------------------------------------------------------------- /docs/components/graphics/ApplicationBus/GenerierungCodeSkelett.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/components/graphics/ApplicationBus/GenerierungCodeSkelett.png -------------------------------------------------------------------------------- /docs/components/graphics/ApplicationBus/KommunikationAnwendungApplicationBus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/components/graphics/ApplicationBus/KommunikationAnwendungApplicationBus.png -------------------------------------------------------------------------------- /docs/components/graphics/ApplicationBus/KommunikationApplicationBusAnwendung.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/components/graphics/ApplicationBus/KommunikationApplicationBusAnwendung.png -------------------------------------------------------------------------------- /docs/components/graphics/ApplicationBus/KommunikationsdiagrammApplicationBus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/components/graphics/ApplicationBus/KommunikationsdiagrammApplicationBus.png -------------------------------------------------------------------------------- /docs/components/graphics/ApplicationBus/OpenTOSCAArchitekturApplicationBus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/components/graphics/ApplicationBus/OpenTOSCAArchitekturApplicationBus.png -------------------------------------------------------------------------------- /docs/components/graphics/ApplicationBus/RoutingApplicationBusEngine.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/components/graphics/ApplicationBus/RoutingApplicationBusEngine.png -------------------------------------------------------------------------------- /docs/components/graphics/ApplicationBus/SetupApplicationBusAnwendung.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/components/graphics/ApplicationBus/SetupApplicationBusAnwendung.png -------------------------------------------------------------------------------- /docs/components/graphics/ApplicationBus/StubsKommunkationApplicationBus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/components/graphics/ApplicationBus/StubsKommunkationApplicationBus.png -------------------------------------------------------------------------------- /docs/components/graphics/ApplicationBus/WorkflowApplicationBusStubGenerators.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/components/graphics/ApplicationBus/WorkflowApplicationBusStubGenerators.png -------------------------------------------------------------------------------- /docs/components/graphics/PlanBuilder/buildplans.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/components/graphics/PlanBuilder/buildplans.png -------------------------------------------------------------------------------- /docs/components/graphics/PlanBuilder/overview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/components/graphics/PlanBuilder/overview.png -------------------------------------------------------------------------------- /docs/components/graphics/PlanBuilder/scaleoutplans.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/components/graphics/PlanBuilder/scaleoutplans.png -------------------------------------------------------------------------------- /docs/components/graphics/PlanBuilder/terminationplans.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/components/graphics/PlanBuilder/terminationplans.png -------------------------------------------------------------------------------- /docs/components/graphics/ServiceInvoker/ArchitectureOpentoscaContainerWithServiceInvocationInterface.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/components/graphics/ServiceInvoker/ArchitectureOpentoscaContainerWithServiceInvocationInterface.png -------------------------------------------------------------------------------- /docs/components/graphics/ServiceInvoker/ConceptualStructureOfComponents.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/components/graphics/ServiceInvoker/ConceptualStructureOfComponents.png -------------------------------------------------------------------------------- /docs/components/graphics/ServiceInvoker/ExamplaryMessagesInvocations.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/components/graphics/ServiceInvoker/ExamplaryMessagesInvocations.png -------------------------------------------------------------------------------- /docs/components/graphics/ServiceInvoker/ExpandendMessageFromSiEnginToSiPlugin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/components/graphics/ServiceInvoker/ExpandendMessageFromSiEnginToSiPlugin.png -------------------------------------------------------------------------------- /docs/components/graphics/ServiceInvoker/FlowchartInvokeoperationInvokeplan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/components/graphics/ServiceInvoker/FlowchartInvokeoperationInvokeplan.png -------------------------------------------------------------------------------- /docs/components/graphics/ServiceInvoker/MessageFromInvocationApiToSiEngine.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/components/graphics/ServiceInvoker/MessageFromInvocationApiToSiEngine.png -------------------------------------------------------------------------------- /docs/components/graphics/ServiceInvoker/MoreServiceInvocationApi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/components/graphics/ServiceInvoker/MoreServiceInvocationApi.png -------------------------------------------------------------------------------- /docs/components/graphics/ServiceInvoker/PlanInvocationWithPlanInvocationEngine.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/components/graphics/ServiceInvoker/PlanInvocationWithPlanInvocationEngine.png -------------------------------------------------------------------------------- /docs/components/graphics/ServiceInvoker/ReturnFromSiPlugin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/components/graphics/ServiceInvoker/ReturnFromSiPlugin.png -------------------------------------------------------------------------------- /docs/components/graphics/ServiceInvoker/SequencediagramSiEngine.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/components/graphics/ServiceInvoker/SequencediagramSiEngine.png -------------------------------------------------------------------------------- /docs/components/graphics/ServiceInvoker/ServiceInvocationInterfaceAsLayerdiagram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/components/graphics/ServiceInvoker/ServiceInvocationInterfaceAsLayerdiagram.png -------------------------------------------------------------------------------- /docs/components/graphics/ServiceInvoker/SupportedMeps.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/components/graphics/ServiceInvoker/SupportedMeps.png -------------------------------------------------------------------------------- /docs/components/graphics/ServiceInvoker/UsecaseOtherPluginType.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/components/graphics/ServiceInvoker/UsecaseOtherPluginType.png -------------------------------------------------------------------------------- /docs/components/graphics/ServiceInvoker/WorkflowServiceInvocation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/components/graphics/ServiceInvoker/WorkflowServiceInvocation.png -------------------------------------------------------------------------------- /docs/container-api/OpenTOSCA.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/container-api/OpenTOSCA.pdf -------------------------------------------------------------------------------- /docs/container-api/OpenTOSCA.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/container-api/OpenTOSCA.png -------------------------------------------------------------------------------- /docs/container-api/swagger_ui_1.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/container-api/swagger_ui_1.PNG -------------------------------------------------------------------------------- /docs/container-api/swagger_ui_2.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/container-api/swagger_ui_2.PNG -------------------------------------------------------------------------------- /docs/graphics/ArchitekturContainerAPI.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/graphics/ArchitekturContainerAPI.png -------------------------------------------------------------------------------- /docs/graphics/OpenTOSCALogo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/graphics/OpenTOSCALogo.jpg -------------------------------------------------------------------------------- /docs/graphics/pitchme/Build-Tree.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/graphics/pitchme/Build-Tree.png -------------------------------------------------------------------------------- /docs/graphics/pitchme/CSARtoBPEL.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/graphics/pitchme/CSARtoBPEL.png -------------------------------------------------------------------------------- /docs/graphics/pitchme/DockerContainer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/graphics/pitchme/DockerContainer.png -------------------------------------------------------------------------------- /docs/graphics/pitchme/Invoker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/graphics/pitchme/Invoker.png -------------------------------------------------------------------------------- /docs/graphics/pitchme/NT.NodeTypeImplementation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/graphics/pitchme/NT.NodeTypeImplementation.png -------------------------------------------------------------------------------- /docs/graphics/pitchme/NodeTemplate_Form.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/graphics/pitchme/NodeTemplate_Form.png -------------------------------------------------------------------------------- /docs/graphics/pitchme/ProvisioningTerminals.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/graphics/pitchme/ProvisioningTerminals.png -------------------------------------------------------------------------------- /docs/graphics/pitchme/Ubuntu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/graphics/pitchme/Ubuntu.png -------------------------------------------------------------------------------- /docs/graphics/pitchme/connectPlugInPlanCompletion.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/graphics/pitchme/connectPlugInPlanCompletion.png -------------------------------------------------------------------------------- /docs/graphics/pitchme/connectPlugInTopology.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/graphics/pitchme/connectPlugInTopology.png -------------------------------------------------------------------------------- /docs/graphics/pitchme/startStopVMmitBPELFlow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/graphics/pitchme/startStopVMmitBPELFlow.png -------------------------------------------------------------------------------- /docs/index.md: -------------------------------------------------------------------------------- 1 | # OpenTOSCA Documentation 2 | 3 | - [DeveloperGuide](DeveloperGuide.md) - outlines how to develop the OpenTOSCA container 4 | 5 | ## Description of components 6 | 7 | - [ApplicationBus](components/ApplicationBus.md) - describes the architecture and implementation of the application bus 8 | - [PlanBuilder](components/PlanBuilder.md) - OpenTOSCA Container (OpenTOSCA Runtime) enables management of TOSCA Topologies either by executing build plans directly or by generated these based on an application topology. This describes the generation. 9 | - [ServiceInvoker](components/ServiceInvoker.md) - Overview on the service invocation concept 10 | -------------------------------------------------------------------------------- /docs/third-party-content/third-party-libraries.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/docs/third-party-content/third-party-libraries.xlsx -------------------------------------------------------------------------------- /org.opentosca.broker.mqtt/src/main/resources/credentials/password.config: -------------------------------------------------------------------------------- 1 | admin:8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918 2 | -------------------------------------------------------------------------------- /org.opentosca.broker.mqtt/src/main/resources/spring/context-mqtt-broker.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.application.api.resthttp/src/main/resources/spring/context-bus-application-api.xml: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | org.opentosca.bus.application.api.resthttp.route 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.application.api.soaphttp/src/main/java/org/opentosca/bus/application/api/soaphttp/model/package-info.java: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference 3 | // Implementation, v2.2.4-2 4 | // See http://java.sun.com/xml/jaxb 5 | // Any modifications to this file will be lost upon recompilation of the source schema. 6 | // Generated on: 2016.02.25 at 04:54:56 PM CET 7 | // 8 | 9 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://opentosca.org/appinvoker/") 10 | package org.opentosca.bus.application.api.soaphttp.model; 11 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.application.model/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | 7 | org.opentosca 8 | org.opentosca.bus 9 | 3.0.0-SNAPSHOT 10 | 11 | 12 | org.opentosca.bus.application.model 13 | 14 | 15 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.application.model/src/main/java/org/opentosca/bus/application/model/constants/ApplicationBusConstants.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.bus.application.model.constants; 2 | 3 | /** 4 | * Enum needed for the Application Bus components.
5 | *
6 | *

7 | * This enum defines the headers of the camel exchange message that is used from the Application Bus components. 8 | * 9 | * @author Michael Zimmermann - zimmerml@studi.informatik.uni-stuttgart.de 10 | */ 11 | public enum ApplicationBusConstants { 12 | NODE_INSTANCE_ID_INT, SERVICE_INSTANCE_ID_INT, NODE_TEMPLATE_ID, INTERFACE_NAME, OPERATION_NAME, APPLICATION_BUS_METHOD, APPLICATION_BUS_METHOD_IS_FINISHED, APPLICATION_BUS_METHOD_GET_RESULT, APPLICATION_BUS_METHOD_INVOKE, INVOCATION_ENDPOINT_URL, CLASS_NAME 13 | } 14 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.application.plugin.service/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | 7 | org.opentosca 8 | org.opentosca.bus 9 | 3.0.0-SNAPSHOT 10 | 11 | 12 | org.opentosca.bus.application.plugin.service 13 | 14 | 15 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.application.plugin.service/src/main/java/org/opentosca/bus/application/plugin/service/IApplicationBusPluginService.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.bus.application.plugin.service; 2 | 3 | import java.util.List; 4 | 5 | /** 6 | * Interface of the Application Bus plugins.
7 | *
8 | *

9 | *

10 | * The interface specifies two methods. One that returns the supported invocation-types of the plugin and one method 11 | * that returns the routing endpoint of the bundle. 12 | * 13 | * @author Michael Zimmermann - zimmerml@studi.informatik.uni-stuttgart.de 14 | */ 15 | public interface IApplicationBusPluginService { 16 | 17 | /** 18 | * @return supported invocation-types of the plugin. 19 | */ 20 | List getSupportedInvocationTypes(); 21 | 22 | /** 23 | * @return the routing endpoint of this bundle 24 | */ 25 | String getRoutingEndpoint(); 26 | } 27 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.application.service/src/main/java/org/opentosca/bus/application/service/IApplicationBusService.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.bus.application.service; 2 | 3 | /** 4 | * Interface of the Application Bus.
5 | *
6 | *

7 | *

8 | * The interface specifies one method that returns the routing endpoint of the Application Bus. 9 | * 10 | * @author Michael Zimmermann - zimmerml@studi.informatik.uni-stuttgart.de 11 | */ 12 | public interface IApplicationBusService { 13 | 14 | /** 15 | * @return the routing endpoint of this bundle 16 | */ 17 | String getRoutingEndpoint(); 18 | } 19 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.application.service/src/main/java/org/opentosca/bus/application/service/impl/ApplicationBusServiceImpl.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.bus.application.service.impl; 2 | 3 | import org.opentosca.bus.application.service.IApplicationBusService; 4 | import org.springframework.stereotype.Service; 5 | 6 | /** 7 | * Application Bus implementation.
8 | *
9 | *

10 | * The routing endpoint is defined here. The Application Bus APIs need this endpoint to send requests to the Application 11 | * Bus. The endpoint is handed over during the bind process in the respective API implementation. 12 | * 13 | * @author Michael Zimmermann - zimmerml@studi.informatik.uni-stuttgart.de 14 | * @see IApplicationBusService 15 | */ 16 | @Service 17 | public class ApplicationBusServiceImpl implements IApplicationBusService { 18 | 19 | // Routing endpoint of the Application Bus bundle 20 | public static final String ENDPOINT = "direct-vm:org.opentosca.bus.application.service"; 21 | 22 | @Override 23 | public String getRoutingEndpoint() { 24 | return ENDPOINT; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.application.service/src/main/java/org/opentosca/bus/application/service/impl/model/RequestID.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.bus.application.service.impl.model; 2 | 3 | import java.util.concurrent.atomic.AtomicLong; 4 | 5 | /** 6 | * Manages the requestIDs needed to correlate the invocation-requests, the isFinished-requests as well as the 7 | * getResult-requests. 8 | * 9 | * @author Michael Zimmermann - zimmerml@studi.informatik.uni-stuttgart.de 10 | */ 11 | public class RequestID { 12 | 13 | private static final AtomicLong incrementer = new AtomicLong(0); 14 | 15 | /** 16 | * @return requestID 17 | */ 18 | public synchronized static Long getNextID() { 19 | 20 | final Long id = incrementer.getAndIncrement(); 21 | 22 | // For the unlikely case, that MAX_Value is reached, begin with 0 23 | // again. Assumption: old requests were processed in the mean time. 24 | if (id == Long.MAX_VALUE) { 25 | incrementer.set(0); 26 | } 27 | 28 | return id; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.application.service/src/main/java/org/opentosca/bus/application/service/impl/route/GetResultRoute.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.bus.application.service.impl.route; 2 | 3 | import org.apache.camel.Exchange; 4 | import org.apache.camel.builder.RouteBuilder; 5 | import org.opentosca.bus.application.service.impl.processor.GetResultProcessor; 6 | import org.springframework.stereotype.Component; 7 | 8 | /** 9 | * GetResultRoute of the Application Bus.
10 | *
11 | *

12 | * "getResult" requests are handed over to the GetResultProcessor. 13 | * 14 | * @author Michael Zimmermann - zimmerml@studi.informatik.uni-stuttgart.de 15 | */ 16 | @Component 17 | public class GetResultRoute extends RouteBuilder { 18 | @Override 19 | public void configure() throws Exception { 20 | // handle exceptions 21 | onException(Exception.class).setBody(exchangeProperty(Exchange.EXCEPTION_CAUGHT)); 22 | from(MainRoute.GET_RESULT_ENDPOINT).process(GetResultProcessor.BEAN_NAME); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.application.service/src/main/java/org/opentosca/bus/application/service/impl/route/IsFinishedRoute.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.bus.application.service.impl.route; 2 | 3 | import org.apache.camel.Exchange; 4 | import org.apache.camel.builder.RouteBuilder; 5 | import org.opentosca.bus.application.service.impl.processor.IsFinishedProcessor; 6 | import org.springframework.stereotype.Component; 7 | 8 | /** 9 | * IsFinishedRoute of the Application Bus.
10 | *
11 | *

12 | * "isFinished" requests are handed over to the IsFinishedProcessor. 13 | * 14 | * @author Michael Zimmermann - zimmerml@studi.informatik.uni-stuttgart.de 15 | */ 16 | @Component 17 | public class IsFinishedRoute extends RouteBuilder { 18 | 19 | @Override 20 | public void configure() throws Exception { 21 | // handle exceptions 22 | onException(Exception.class).setBody(exchangeProperty(Exchange.EXCEPTION_CAUGHT)); 23 | from(MainRoute.IS_FINISHED_ENDPOINT).process(IsFinishedProcessor.BEAN_NAME); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.management.api.java/src/main/java/org/opentosca/bus/management/api/java/ExposedManagementBusOperations.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.bus.management.api.java; 2 | 3 | /** 4 | * This enum defines the operations which can be invoked through the Java API of the Management Bus. The enum is used by 5 | * the route to forward the invocations to the correct receiver. 6 | */ 7 | public enum ExposedManagementBusOperations { 8 | 9 | INVOKE_PLAN("invokePlan"), INVOKE_IA("invokeIA"), NOTIFY_PARTNER("notifyPartner"), NOTIFY_PARTNERS("notifyPartners"); 10 | 11 | private final String headerValue; 12 | 13 | ExposedManagementBusOperations(final String headerValue) { 14 | this.headerValue = headerValue; 15 | } 16 | 17 | public String getHeaderValue() { 18 | return this.headerValue; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.management.api.java/src/main/java/org/opentosca/bus/management/api/java/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This package contains the Management Bus Java API implementation exposed to external consumers.

3 | * Copyright 2012-2022 IAAS University of Stuttgart

4 | * 5 | * @author Michael Zimmermann - zimmerml@studi.informatik.uni-stuttgart.de 6 | */ 7 | package org.opentosca.bus.management.api.java; 8 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.management.api.java/src/main/java/org/opentosca/bus/management/api/java/route/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This package contains the camel routes of the Management Bus-OSGI/EVENT-API.

Copyright 2012-2022 IAAS 3 | * University of Stuttgart

4 | * 5 | * @author Michael Zimmermann - zimmerml@studi.informatik.uni-stuttgart.de 6 | */ 7 | package org.opentosca.bus.management.api.java.route; 8 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.management.api.resthttp/src/main/java/org/opentosca/bus/management/api/resthttp/model/RequestID.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.bus.management.api.resthttp.model; 2 | 3 | import java.util.concurrent.atomic.AtomicLong; 4 | 5 | /** 6 | * Manages the requestIDs needed to correlate the invocation-requests, the isFinished-requests as well as the 7 | * getResult-requests. 8 | * 9 | * @author Michael Zimmermann - zimmerml@iaas.uni-stuttgart.de 10 | */ 11 | public class RequestID { 12 | 13 | private static final AtomicLong incrementer = new AtomicLong(0); 14 | 15 | /** 16 | * @return requestID 17 | */ 18 | public synchronized static String getNextID() { 19 | 20 | final Long id = incrementer.getAndIncrement(); 21 | 22 | // Prototype: 23 | // For the unlikely case, that MAX_Value is reached, begin with 0 24 | // again. Assumption: old requests were processed in the 25 | // mean time. 26 | if (id == Long.MAX_VALUE) { 27 | incrementer.set(0); 28 | } 29 | 30 | return Long.toString(id); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.management.api.soaphttp/src/main/java/org/opentosca/bus/management/api/soaphttp/model/package-info.java: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference 3 | // Implementation, v2.2.8-b130911.1802 4 | // See http://java.sun.com/xml/jaxb 5 | // Any modifications to this file will be lost upon recompilation of the source schema. 6 | // Generated on: 2018.07.16 at 01:55:00 PM CEST 7 | // 8 | 9 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://siserver.org/schema", 10 | elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) 11 | package org.opentosca.bus.management.api.soaphttp.model; 12 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.management.api.soaphttp/src/main/java/org/opentosca/bus/management/api/soaphttp/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This package contains the activator for starting the camel context and with it the routes of the Management 3 | * Bus-SOAP/HTTP-API.

Copyright 2012-2022 IAAS University of Stuttgart

4 | * 5 | * @author Michael Zimmermann - zimmerml@studi.informatik.uni-stuttgart.de 6 | */ 7 | package org.opentosca.bus.management.api.soaphttp; 8 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.management.api.soaphttp/src/main/java/org/opentosca/bus/management/api/soaphttp/processor/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This package contains the two camel processors of the Management Bus-SOAP/HTTP-API. One for processing the request 3 | * and one for processing the response.

Copyright 2012-2022 IAAS University of Stuttgart

4 | * 5 | * @author Michael Zimmermann - zimmerml@studi.informatik.uni-stuttgart.de 6 | */ 7 | package org.opentosca.bus.management.api.soaphttp.processor; 8 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.management.api.soaphttp/src/main/java/org/opentosca/bus/management/api/soaphttp/route/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This package contains the camel routes of the Management Bus-SOAP/HTTP-API.

Copyright 2012-2022 IAAS 3 | * University of Stuttgart

4 | * 5 | * @author Michael Zimmermann - zimmerml@studi.informatik.uni-stuttgart.de 6 | */ 7 | package org.opentosca.bus.management.api.soaphttp.route; 8 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.management.deployment.plugin.remote/src/main/resources/spring/context-bus-deployment-plugin.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | Register the beans within the tomcat management bus deployment plugin. 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.management.deployment.plugin.script/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | org.opentosca 7 | org.opentosca.bus 8 | 3.0.0-SNAPSHOT 9 | 10 | 11 | org.opentosca.bus.management.deployment.plugin.script 12 | 13 | 14 | 15 | org.opentosca 16 | org.opentosca.bus.management.deployment.plugin 17 | ${project.version} 18 | compile 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.management.deployment.plugin.script/src/main/resources/spring/context-bus-deployment-plugin.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | Register the beans within the script management bus deployment plugin. 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.management.deployment.plugin.tomcat/src/main/resources/spring/context-bus-deployment-plugin.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | Register the beans within the tomcat management bus deployment plugin. 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.management.deployment.plugin/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | 7 | org.opentosca 8 | org.opentosca.bus 9 | 3.0.0-SNAPSHOT 10 | 11 | 12 | org.opentosca.bus.management.deployment.plugin 13 | 14 | 15 | 16 | org.opentosca 17 | org.opentosca.bus.management 18 | ${project.version} 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.management.invocation.plugin.remote/src/main/resources/spring/context-bus-invocation-plugin.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | Register the beans within the remote management bus invocation plugin. 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.management.invocation.plugin.rest/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | org.opentosca 7 | org.opentosca.bus 8 | 3.0.0-SNAPSHOT 9 | 10 | 11 | org.opentosca.bus.management.invocation.plugin.rest 12 | 13 | 14 | 15 | org.opentosca 16 | org.opentosca.bus.management 17 | ${project.version} 18 | 19 | 20 | org.opentosca 21 | org.opentosca.bus.management.invocation.plugin 22 | ${project.version} 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.management.invocation.plugin.rest/src/main/java/org/opentosca/bus/management/invocation/plugin/rest/model/package-info.java: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference 3 | // Implementation, vJAXB 2.1.10 in JDK 6 4 | // See http://java.sun.com/xml/jaxb 5 | // Any modifications to this file will be lost upon recompilation of the source schema. 6 | // Generated on: 2013.07.29 at 03:39:23 PM MESZ 7 | // 8 | 9 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://www.siengine.restplugin.org/SpecificContentRestSchema", 10 | elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) 11 | package org.opentosca.bus.management.invocation.plugin.rest.model; 12 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.management.invocation.plugin.rest/src/main/resources/spring/context-bus-invocation-plugin.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | Register the beans within the rest management bus invocation plugin. 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.management.invocation.plugin.script/src/main/resources/artifacttypes/Ansible.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | unzip 5 | 6 | 7 | 8 | sudo apt-add-repository -y ppa:ansible/ansible 9 | sudo apt-get update 10 | sudo apt-get install -y ansible 11 | 12 | cd {TARGET_FILE_FOLDER_PATH} 13 | unzip {TARGET_FILE_NAME_WITH_E} 14 | cd {TARGET_FILE_NAME_WITHOUT_E} 15 | ansible-playbook {{Playbook}} {{Variables}} 16 | 17 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.management.invocation.plugin.script/src/main/resources/artifacttypes/Chef.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | unzip 5 | 6 | 7 | 8 | wget https://packages.chef.io/stable/ubuntu/12.04/chefdk_0.16.28-1_amd64.deb 9 | sudo dpkg -i chefdk_0.16.28-1_amd64.deb 10 | 11 | cd {TARGET_FILE_FOLDER_PATH} 12 | tar zxvf {TARGET_FILE_NAME_WITH_E} 13 | cd {TARGET_FILE_NAME_WITHOUT_E} 14 | 15 | berks vendor ~/cookbooks 16 | cd ~/cookbooks 17 | sudo apt-get update 18 | 19 | sudo chef-client --local-mode --runlist 'recipe[{{Recipe}}]' 20 | 21 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.management.invocation.plugin.script/src/main/resources/artifacttypes/PythonArchive.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | unzip 6 | zip 7 | python3 8 | python3-pip 9 | 10 | 11 | unzip -o {TARGET_FILE_PATH} -d $(dirname {TARGET_FILE_PATH}) && if [ -f "$($(dirname {TARGET_FILE_PATH})/requirements.txt)"]; then yes | pip3 install -r $(dirname {TARGET_FILE_PATH})/requirements.txt --quiet; fi && if [ -f "$($(dirname {TARGET_FILE_PATH})/*.py)"]; then sudo python3 $(dirname {TARGET_FILE_PATH})/*.py {DA_NAME_PATH_MAP} {INPUT_PARAMETER}; else echo "Execution=fault"; fi 12 | 13 | 14 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.management.invocation.plugin.script/src/main/resources/artifacttypes/PythonScript.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | python3 6 | python3-pip 7 | 8 | 9 | chmod +x {TARGET_FILE_PATH} 10 | sudo python3 {TARGET_FILE_PATH} {DA_NAME_PATH_MAP} {INPUT_PARAMETER} 11 | 12 | 13 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.management.invocation.plugin.script/src/main/resources/artifacttypes/Script.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | chmod +x {TARGET_FILE_PATH} 8 | CAN_SUDO=$(sudo -n uptime 2>&1|grep "load"|wc -l); if [ ${CAN_SUDO} -gt 0 ]; then sudo -E {DA_NAME_PATH_MAP}{INPUT_PARAMETER}{TARGET_FILE_PATH}; else {DA_NAME_PATH_MAP}{INPUT_PARAMETER}{TARGET_FILE_PATH}; fi 9 | 10 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.management.invocation.plugin.script/src/main/resources/artifacttypes/TypesSchema.xsd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 8 | 9 | 10 | 11 | 12 | 13 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.management.invocation.plugin.script/src/main/resources/artifacttypes/Wheel.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | python-pip 5 | 6 | 7 | cd {TARGET_FILE_FOLDER_PATH} 8 | pip install {TARGET_FILE_NAME_WITH_E} 9 | 10 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.management.invocation.plugin.soaphttp/src/main/java/org/opentosca/bus/management/invocation/plugin/soaphttp/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This package contains one implementation of the {@link org.opentosca.bus.management.invocation.plugin.IManagementBusInvocationPluginService}. 3 | * This one supports the invocation of soap web services.

Copyright 2012-2022 IAAS University of Stuttgart 4 | *

5 | * 6 | * @author Michael Zimmermann - zimmerml@studi.informatik.uni-stuttgart.de 7 | */ 8 | package org.opentosca.bus.management.invocation.plugin.soaphttp; 9 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.management.invocation.plugin.soaphttp/src/main/java/org/opentosca/bus/management/invocation/plugin/soaphttp/processor/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This package contains a camel processor needed to handle the callback response of an asynchronous invocation.
3 | *
Copyright 2012-2022 IAAS University of Stuttgart

4 | * 5 | * @author Michael Zimmermann - zimmerml@studi.informatik.uni-stuttgart.de 6 | */ 7 | package org.opentosca.bus.management.invocation.plugin.soaphttp.processor; 8 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.management.invocation.plugin.soaphttp/src/main/java/org/opentosca/bus/management/invocation/plugin/soaphttp/route/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This package contains three camel routes needed to invoke a soap web service in synchronous, asynchronous with 3 | * callbacks and request-only style.

Copyright 2012-2022 IAAS University of Stuttgart

4 | * 5 | * @author Michael Zimmermann - zimmerml@studi.informatik.uni-stuttgart.de 6 | */ 7 | package org.opentosca.bus.management.invocation.plugin.soaphttp.route; 8 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.management.invocation.plugin/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | org.opentosca.bus.management.invocation.plugin 7 | 8 | 9 | org.opentosca 10 | org.opentosca.bus 11 | 3.0.0-SNAPSHOT 12 | 13 | 14 | 15 | 16 | org.opentosca 17 | org.opentosca.bus.management 18 | ${project.version} 19 | 20 | 21 | org.opentosca 22 | org.opentosca.container.core 23 | ${project.version} 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.management.service/src/main/java/org/opentosca/bus/management/service/impl/collaboration/model/RemoteOperations.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.bus.management.service.impl.collaboration.model; 2 | 3 | /** 4 | * Enum which contains all possible operations which can currently be requested on other OpenTOSCA Containers by sending 5 | * a collaboration message via MQTT.
6 | *
7 | *

8 | * Copyright 2018 IAAS University of Stuttgart 9 | */ 10 | public enum RemoteOperations { 11 | 12 | /** 13 | * Requests the conduct of instance data matching between the local instance data and the NodeType and properties 14 | * contained in the collaboration message. 15 | */ 16 | INVOKE_INSTANCE_DATA_MATCHING, 17 | 18 | /** 19 | * Requests the deployment of a certain IA. 20 | */ 21 | INVOKE_IA_DEPLOYMENT, 22 | 23 | /** 24 | * Requests the undeployment of a certain IA. 25 | */ 26 | INVOKE_IA_UNDEPLOYMENT, 27 | 28 | /** 29 | * Requests the operation on a deployed IA. 30 | */ 31 | INVOKE_IA_OPERATION, 32 | } 33 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.management.service/src/main/java/org/opentosca/bus/management/service/impl/collaboration/model/package-info.java: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference 3 | // Implementation, v2.2.4-2 4 | // See http://java.sun.com/xml/jaxb 5 | // Any modifications to this file will be lost upon recompilation of the source schema. 6 | // Generated on: 2018.07.05 at 09:07:58 PM CEST 7 | // 8 | 9 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://collaboration.org/schema", 10 | elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) 11 | package org.opentosca.bus.management.service.impl.collaboration.model; 12 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.management.service/src/main/java/org/opentosca/bus/management/service/impl/collaboration/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This package contains the classes related to collaboration between the Management Buses of different OpenTOSCA 3 | * instances.

4 | *

5 | * Copyright 2018 IAAS University of Stuttgart 6 | */ 7 | package org.opentosca.bus.management.service.impl.collaboration; 8 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.management.service/src/main/java/org/opentosca/bus/management/service/impl/collaboration/processor/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This package contains the Camel processors which are needed for communication between Management Buses of different 3 | * OpenTOSCA instances.

Copyright 2018 IAAS University of Stuttgart

4 | * 5 | * @author Benjamin Weder - st100495@stud.uni-stuttgart.de 6 | */ 7 | package org.opentosca.bus.management.service.impl.collaboration.processor; 8 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.management.service/src/main/java/org/opentosca/bus/management/service/impl/collaboration/route/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This package contains the Camel routes which are needed for communication between the Management Buses of different 3 | * OpenTOSCA instances.

Copyright 2018 IAAS University of Stuttgart

4 | * 5 | * @author Benjamin Weder - st100495@stud.uni-stuttgart.de 6 | */ 7 | package org.opentosca.bus.management.service.impl.collaboration.route; 8 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.management.service/src/main/java/org/opentosca/bus/management/service/impl/instance/plan/CorrelationIdAlreadySetException.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.bus.management.service.impl.instance.plan; 2 | 3 | public class CorrelationIdAlreadySetException extends Exception { 4 | private static final long serialVersionUID = -3979025557075877047L; 5 | 6 | public CorrelationIdAlreadySetException(final String errorMessage) { 7 | super(errorMessage); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.management.service/src/main/java/org/opentosca/bus/management/service/impl/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This package contains the implementation of the {@link org.opentosca.bus.management.service.IManagementBusService}. 3 | * Determining which IA/Plan should be invoked as well as collecting needed information like the endpoint for example 4 | * are done here.

Copyright 2012-2022 IAAS University of Stuttgart

5 | * 6 | * @author Michael Zimmermann - zimmerml@studi.informatik.uni-stuttgart.de 7 | */ 8 | package org.opentosca.bus.management.service.impl; 9 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.management.service/src/main/java/org/opentosca/bus/management/service/impl/util/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This package contains the utility classes for the Management Bus implementation.

Copyright 2018 IAAS 3 | * University of Stuttgart

4 | * 5 | * @author Benjamin Weder - st100495@stud.uni-stuttgart.de 6 | */ 7 | package org.opentosca.bus.management.service.impl.util; 8 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.management.service/src/main/java/org/opentosca/bus/management/service/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This package contains the interface of the Management Bus. It defines two methods: One for invoking an 3 | * ImplementationArtifact and one for invoking a Plan.

Copyright 2012-2022 IAAS University of Stuttgart

5 | * 6 | * @author Michael Zimmermann - zimmerml@studi.informatik.uni-stuttgart.de 7 | */ 8 | package org.opentosca.bus.management.service; 9 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.management/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 4.0.0 7 | 8 | org.opentosca 9 | org.opentosca.bus 10 | 3.0.0-SNAPSHOT 11 | 12 | 13 | org.opentosca.bus.management 14 | 15 | 16 | 17 | org.opentosca 18 | org.opentosca.container.core 19 | ${project.version} 20 | 21 | 22 | xml-apis 23 | xml-apis 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.management/src/main/java/org/opentosca/bus/management/header/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This package contains an enum that defines needed headers of the camel exchange message used in all *MB-bundles.

Copyright 2012-2022 IAAS University of Stuttgart

4 | * 5 | * @author Michael Zimmermann - zimmerml@studi.informatik.uni-stuttgart.de 6 | */ 7 | package org.opentosca.bus.management.header; 8 | -------------------------------------------------------------------------------- /org.opentosca.bus/org.opentosca.bus.management/src/main/resources/spring/context-bus-management.xml: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /org.opentosca.container.api/src/main/java/org/opentosca/container/api/dto/CsarListDTO.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.api.dto; 2 | 3 | import java.util.ArrayList; 4 | import java.util.Arrays; 5 | import java.util.List; 6 | 7 | import javax.xml.bind.annotation.XmlElement; 8 | import javax.xml.bind.annotation.XmlElementWrapper; 9 | import javax.xml.bind.annotation.XmlRootElement; 10 | 11 | import com.fasterxml.jackson.annotation.JsonProperty; 12 | 13 | @XmlRootElement(name = "CsarResources") 14 | public class CsarListDTO extends ResourceSupport { 15 | 16 | @JsonProperty 17 | @XmlElement(name = "Csar") 18 | @XmlElementWrapper(name = "Csars") 19 | private final List csars = new ArrayList<>(); 20 | 21 | public List getCsars() { 22 | return this.csars; 23 | } 24 | 25 | public void add(final CsarDTO... csars) { 26 | this.csars.addAll(Arrays.asList(csars)); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /org.opentosca.container.api/src/main/java/org/opentosca/container/api/dto/NodeTemplateListDTO.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.api.dto; 2 | 3 | import java.util.ArrayList; 4 | import java.util.Arrays; 5 | import java.util.List; 6 | 7 | import javax.xml.bind.annotation.XmlElement; 8 | import javax.xml.bind.annotation.XmlElementWrapper; 9 | import javax.xml.bind.annotation.XmlRootElement; 10 | 11 | import com.fasterxml.jackson.annotation.JsonProperty; 12 | import io.swagger.annotations.ApiModelProperty; 13 | 14 | @XmlRootElement(name = "NodeTemplateResources") 15 | public class NodeTemplateListDTO extends ResourceSupport { 16 | 17 | @JsonProperty 18 | @XmlElement(name = "NodeTemplate") 19 | @XmlElementWrapper(name = "NodeTemplates") 20 | private final List nodeTemplates = new ArrayList<>(); 21 | 22 | @ApiModelProperty(name = "node_templates") 23 | public List getNodeTemplates() { 24 | return this.nodeTemplates; 25 | } 26 | 27 | public void add(final NodeTemplateDTO... nodeTemplates) { 28 | this.nodeTemplates.addAll(Arrays.asList(nodeTemplates)); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /org.opentosca.container.api/src/main/java/org/opentosca/container/api/dto/ResourceDecorator.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.api.dto; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import com.fasterxml.jackson.annotation.JsonUnwrapped; 6 | import io.swagger.annotations.ApiModelProperty; 7 | 8 | @JsonInclude(JsonInclude.Include.NON_NULL) 9 | public class ResourceDecorator extends ResourceSupport { 10 | 11 | @JsonUnwrapped 12 | @JsonProperty("items") 13 | private Object object; 14 | 15 | @JsonProperty("_embedded") 16 | @ApiModelProperty(hidden = true) 17 | private Object embedded; 18 | 19 | public Object getObject() { 20 | return this.object; 21 | } 22 | 23 | public void setObject(final Object object) { 24 | this.object = object; 25 | } 26 | 27 | public Object getEmbedded() { 28 | return this.embedded; 29 | } 30 | 31 | public void setEmbedded(final Object embedded) { 32 | this.embedded = embedded; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /org.opentosca.container.api/src/main/java/org/opentosca/container/api/dto/boundarydefinitions/InterfaceListDTO.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.api.dto.boundarydefinitions; 2 | 3 | import java.util.ArrayList; 4 | import java.util.Arrays; 5 | import java.util.List; 6 | 7 | import javax.xml.bind.annotation.XmlElement; 8 | import javax.xml.bind.annotation.XmlElementWrapper; 9 | import javax.xml.bind.annotation.XmlRootElement; 10 | 11 | import com.fasterxml.jackson.annotation.JsonProperty; 12 | import org.opentosca.container.api.dto.ResourceSupport; 13 | 14 | @XmlRootElement(name = "InterfaceResources") 15 | public class InterfaceListDTO extends ResourceSupport { 16 | 17 | @JsonProperty 18 | @XmlElement(name = "Interface") 19 | @XmlElementWrapper(name = "Interfaces") 20 | private final List interfaces = new ArrayList<>(); 21 | 22 | public List getInterfaces() { 23 | return this.interfaces; 24 | } 25 | 26 | public void add(final InterfaceDTO... interfaces) { 27 | this.interfaces.addAll(Arrays.asList(interfaces)); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /org.opentosca.container.api/src/main/java/org/opentosca/container/api/dto/plan/PlanInstanceInputDTO.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.api.dto.plan; 2 | 3 | import javax.xml.bind.annotation.XmlAccessType; 4 | import javax.xml.bind.annotation.XmlAccessorType; 5 | import javax.xml.bind.annotation.XmlRootElement; 6 | 7 | import org.opentosca.container.api.dto.PropertyDTO; 8 | import org.opentosca.container.core.next.model.PlanInstanceInput; 9 | 10 | @XmlRootElement(name = "PlanInstanceInput") 11 | @XmlAccessorType(XmlAccessType.FIELD) 12 | public class PlanInstanceInputDTO extends PropertyDTO { 13 | public static class Converter { 14 | public static PlanInstanceInputDTO convert(final PlanInstanceInput object) { 15 | final PlanInstanceInputDTO result = new PlanInstanceInputDTO(); 16 | PropertyDTO.Converter.fillValues(object, result); 17 | return result; 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /org.opentosca.container.api/src/main/java/org/opentosca/container/api/dto/plan/PlanInstanceOutputDTO.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.api.dto.plan; 2 | 3 | import javax.xml.bind.annotation.XmlAccessType; 4 | import javax.xml.bind.annotation.XmlAccessorType; 5 | import javax.xml.bind.annotation.XmlRootElement; 6 | 7 | import org.opentosca.container.api.dto.PropertyDTO; 8 | import org.opentosca.container.core.next.model.PlanInstanceOutput; 9 | 10 | @XmlRootElement(name = "PlanInstanceOutput") 11 | @XmlAccessorType(XmlAccessType.FIELD) 12 | public class PlanInstanceOutputDTO extends PropertyDTO { 13 | public static class Converter { 14 | public static PlanInstanceOutputDTO convert(final PlanInstanceOutput object) { 15 | final PlanInstanceOutputDTO result = new PlanInstanceOutputDTO(); 16 | PropertyDTO.Converter.fillValues(object, result); 17 | return result; 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /org.opentosca.container.api/src/main/java/org/opentosca/container/api/dto/plan/PlanListDTO.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.api.dto.plan; 2 | 3 | import java.util.ArrayList; 4 | import java.util.Arrays; 5 | import java.util.Collection; 6 | import java.util.List; 7 | 8 | import javax.xml.bind.annotation.XmlElement; 9 | import javax.xml.bind.annotation.XmlElementWrapper; 10 | import javax.xml.bind.annotation.XmlRootElement; 11 | 12 | import com.fasterxml.jackson.annotation.JsonProperty; 13 | import org.opentosca.container.api.dto.ResourceSupport; 14 | 15 | @XmlRootElement(name = "PlanResources") 16 | public class PlanListDTO extends ResourceSupport { 17 | 18 | @JsonProperty 19 | @XmlElement(name = "Plan") 20 | @XmlElementWrapper(name = "Plans") 21 | private final List plans = new ArrayList<>(); 22 | 23 | public List getPlans() { 24 | return this.plans; 25 | } 26 | 27 | public void add(final PlanDTO... plans) { 28 | this.plans.addAll(Arrays.asList(plans)); 29 | } 30 | 31 | public void add(final Collection plans) { 32 | this.plans.addAll(plans); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /org.opentosca.container.api/src/main/java/org/opentosca/container/api/dto/request/CreatePlanInstanceLogEntryRequest.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.api.dto.request; 2 | 3 | import javax.xml.bind.annotation.XmlAccessType; 4 | import javax.xml.bind.annotation.XmlAccessorType; 5 | import javax.xml.bind.annotation.XmlRootElement; 6 | import javax.xml.bind.annotation.XmlValue; 7 | 8 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 9 | 10 | @XmlRootElement(name = "log") 11 | @XmlAccessorType(XmlAccessType.FIELD) 12 | @JsonIgnoreProperties(ignoreUnknown = true) 13 | public class CreatePlanInstanceLogEntryRequest { 14 | 15 | @XmlValue 16 | private String logEntry; 17 | 18 | public String getLogEntry() { 19 | return this.logEntry; 20 | } 21 | 22 | public void setLogEntry(final String logEntry) { 23 | this.logEntry = logEntry; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /org.opentosca.container.api/src/main/java/org/opentosca/container/api/dto/request/CreateServiceTemplateInstanceRequest.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.api.dto.request; 2 | 3 | import javax.xml.bind.annotation.XmlAccessType; 4 | import javax.xml.bind.annotation.XmlAccessorType; 5 | import javax.xml.bind.annotation.XmlRootElement; 6 | import javax.xml.bind.annotation.XmlValue; 7 | 8 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 9 | 10 | @XmlRootElement(name = "correlationID") 11 | @XmlAccessorType(XmlAccessType.FIELD) 12 | @JsonIgnoreProperties(ignoreUnknown = true) 13 | public class CreateServiceTemplateInstanceRequest { 14 | 15 | @XmlValue 16 | private String correlationId; 17 | 18 | public String getCorrelationId() { 19 | return this.correlationId; 20 | } 21 | 22 | public void setCorrelationId(final String correlationId) { 23 | this.correlationId = correlationId; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /org.opentosca.container.api/src/main/java/org/opentosca/container/api/dto/request/package-info.java: -------------------------------------------------------------------------------- 1 | @XmlSchema(namespace = "http://opentosca.org/api", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) 2 | package org.opentosca.container.api.dto.request; 3 | 4 | import javax.xml.bind.annotation.XmlSchema; 5 | -------------------------------------------------------------------------------- /org.opentosca.container.api/src/main/java/org/opentosca/container/api/dto/situations/SituationListDTO.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.api.dto.situations; 2 | 3 | import java.util.Arrays; 4 | import java.util.List; 5 | 6 | import javax.xml.bind.annotation.XmlElement; 7 | import javax.xml.bind.annotation.XmlElementWrapper; 8 | import javax.xml.bind.annotation.XmlRootElement; 9 | 10 | import com.fasterxml.jackson.annotation.JsonProperty; 11 | import com.google.common.collect.Lists; 12 | import org.opentosca.container.api.dto.ResourceSupport; 13 | 14 | @XmlRootElement(name = "SituationResources") 15 | public class SituationListDTO extends ResourceSupport { 16 | 17 | @JsonProperty 18 | @XmlElement(name = "Situation") 19 | @XmlElementWrapper(name = "Situations") 20 | private final List situations = Lists.newArrayList(); 21 | 22 | public List getSituations() { 23 | return this.situations; 24 | } 25 | 26 | public void add(final SituationDTO... situations) { 27 | this.situations.addAll(Arrays.asList(situations)); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /org.opentosca.container.api/src/main/java/org/opentosca/container/api/dto/situations/SituationTriggerInputDTO.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.api.dto.situations; 2 | 3 | import javax.xml.bind.annotation.XmlAccessType; 4 | import javax.xml.bind.annotation.XmlAccessorType; 5 | import javax.xml.bind.annotation.XmlRootElement; 6 | 7 | import org.opentosca.container.api.dto.PropertyDTO; 8 | import org.opentosca.container.core.next.model.Property; 9 | 10 | @XmlRootElement(name = "InputParameter") 11 | @XmlAccessorType(XmlAccessType.FIELD) 12 | public class SituationTriggerInputDTO extends PropertyDTO { 13 | public static class Converter { 14 | public static SituationTriggerInputDTO convert(final Property object) { 15 | final SituationTriggerInputDTO result = new SituationTriggerInputDTO(); 16 | PropertyDTO.Converter.fillValues(object, result); 17 | 18 | return result; 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /org.opentosca.container.api/src/main/java/org/opentosca/container/api/planbuilder/model/GeneratePlanForTopology.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | */ 4 | package org.opentosca.container.api.planbuilder.model; 5 | 6 | import javax.xml.bind.annotation.XmlElement; 7 | import javax.xml.bind.annotation.XmlRootElement; 8 | 9 | /** 10 | * Copyright 2015 IAAS University of Stuttgart
11 | *
12 | * 13 | *

14 | * This class represent the request body for generating Plans 15 | *

16 | * 17 | * 18 | * @author Kalman Kepes - kepeskn@studi.informatik.uni-stuttgart.de 19 | * 20 | */ 21 | @XmlRootElement 22 | public class GeneratePlanForTopology { 23 | 24 | @XmlElement 25 | public String CSARURL; 26 | 27 | @XmlElement 28 | public String PLANPOSTURL; 29 | } 30 | -------------------------------------------------------------------------------- /org.opentosca.container.api/src/main/resources/spring/context-api.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 11 | Configuration for Spring-Bean service discovery of beans within the org.opentosca.container.api module 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /org.opentosca.container.core/src/main/java/org/opentosca/container/core/common/NotFoundException.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.core.common; 2 | 3 | public class NotFoundException extends UserException { 4 | 5 | private static final long serialVersionUID = -115094386403129666L; 6 | 7 | public NotFoundException(String message) { 8 | super(message); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /org.opentosca.container.core/src/main/java/org/opentosca/container/core/common/ReferenceNotFoundException.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.core.common; 2 | 3 | /** 4 | * Exception which can be thrown if a reference was not found 5 | * 6 | * @author Marcus Eisele - marcus.eisele@gmail.com 7 | */ 8 | public class ReferenceNotFoundException extends Exception { 9 | 10 | /** 11 | * 12 | */ 13 | private static final long serialVersionUID = 9063573149552450133L; 14 | 15 | public ReferenceNotFoundException() { 16 | super(); 17 | } 18 | 19 | public ReferenceNotFoundException(final String message) { 20 | super(message); 21 | } 22 | 23 | public ReferenceNotFoundException(final String message, final Throwable cause) { 24 | super(message, cause); 25 | } 26 | 27 | public ReferenceNotFoundException(final Throwable cause) { 28 | super(cause); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /org.opentosca.container.core/src/main/java/org/opentosca/container/core/common/SystemException.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2012-2022 - 2017, University of Stuttgart and the OpenTOSCA contributors 3 | * SPDX-License-Identifier: Apache-2.0 4 | *******************************************************************************/ 5 | package org.opentosca.container.core.common; 6 | 7 | public class SystemException extends Exception { 8 | 9 | private static final long serialVersionUID = 8660020602966311086L; 10 | 11 | public SystemException() { 12 | super(); 13 | } 14 | 15 | public SystemException(final String message) { 16 | super(message); 17 | } 18 | 19 | public SystemException(final String message, final Throwable cause) { 20 | super(message, cause); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /org.opentosca.container.core/src/main/java/org/opentosca/container/core/common/UserException.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2012-2022 - 2017, University of Stuttgart and the OpenTOSCA contributors 3 | * SPDX-License-Identifier: Apache-2.0 4 | *******************************************************************************/ 5 | package org.opentosca.container.core.common; 6 | 7 | public class UserException extends Exception { 8 | 9 | private static final long serialVersionUID = 3247334536178572202L; 10 | 11 | public UserException() { 12 | super(); 13 | } 14 | 15 | public UserException(final String message) { 16 | super(message); 17 | } 18 | 19 | public UserException(final String message, final Throwable cause) { 20 | super(message, cause); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /org.opentosca.container.core/src/main/java/org/opentosca/container/core/common/jpa/CsarIdConverter.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.core.common.jpa; 2 | 3 | import javax.persistence.AttributeConverter; 4 | import javax.persistence.Converter; 5 | 6 | import org.opentosca.container.core.model.csar.CsarId; 7 | 8 | @Converter 9 | public class CsarIdConverter implements AttributeConverter { 10 | 11 | public static final String name = "CsarIdConverter"; 12 | private static final long serialVersionUID = -2552365749611257786L; 13 | 14 | @Override 15 | public String convertToDatabaseColumn(CsarId csarId) { 16 | return csarId == null ? null : csarId.csarName(); 17 | } 18 | 19 | @Override 20 | public CsarId convertToEntityAttribute(String s) { 21 | return s == null ? null : new CsarId(s); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /org.opentosca.container.core/src/main/java/org/opentosca/container/core/common/jpa/PathConverter.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.core.common.jpa; 2 | 3 | import java.nio.file.Path; 4 | import java.nio.file.Paths; 5 | 6 | import javax.persistence.AttributeConverter; 7 | 8 | /** 9 | * This class is used to convert {@link Path} to String, and {@link String} back to {@link Path} when persisting {@link 10 | * Path} fields with JPA. The conversion needs to be done, as we cannot directly query for {@link Path} in JPQL. 11 | */ 12 | @javax.persistence.Converter 13 | public class PathConverter implements AttributeConverter { 14 | 15 | public static final String name = "PathConverter"; 16 | 17 | private static final long serialVersionUID = 3747978557147488965L; 18 | 19 | @Override 20 | public String convertToDatabaseColumn(Path path) { 21 | return path == null ? null : path.toString(); 22 | } 23 | 24 | @Override 25 | public Path convertToEntityAttribute(String s) { 26 | return s == null ? null : Paths.get(s); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /org.opentosca.container.core/src/main/java/org/opentosca/container/core/common/jpa/QNameConverter.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.core.common.jpa; 2 | 3 | import javax.persistence.AttributeConverter; 4 | import javax.persistence.Converter; 5 | import javax.xml.namespace.QName; 6 | 7 | /** 8 | * This class is used to convert QNames to String, and Strings back to QNames when persisting QName fields with JPA. The 9 | * conversion needs to be done, as we cannot directly query for QNames in JPQL. 10 | */ 11 | @Converter 12 | public class QNameConverter implements AttributeConverter { 13 | 14 | public static final String name = "QNameConverter"; 15 | 16 | private static final long serialVersionUID = 5695923859083900495L; 17 | 18 | @Override 19 | public String convertToDatabaseColumn(QName qName) { 20 | return qName == null ? null : qName.toString(); 21 | } 22 | 23 | @Override 24 | public QName convertToEntityAttribute(String s) { 25 | return s == null ? null : QName.valueOf(s); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /org.opentosca.container.core/src/main/java/org/opentosca/container/core/common/xml/XMLHelper.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.core.common.xml; 2 | 3 | import javax.xml.parsers.DocumentBuilder; 4 | import javax.xml.parsers.DocumentBuilderFactory; 5 | import javax.xml.parsers.ParserConfigurationException; 6 | 7 | import org.w3c.dom.Document; 8 | import org.w3c.dom.Node; 9 | 10 | public final class XMLHelper { 11 | 12 | public static Document fromRootNode(Node node) { 13 | if (node == null) { 14 | return null; 15 | } 16 | DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); 17 | DocumentBuilder builder; 18 | try { 19 | builder = dbf.newDocumentBuilder(); 20 | } catch (ParserConfigurationException e) { 21 | // YA we dun fucked up... 22 | // LOGGER.error(e); 23 | return null; 24 | } 25 | Document result = builder.newDocument(); 26 | Node imported = result.importNode(node, true); 27 | result.appendChild(imported); 28 | return result; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /org.opentosca.container.core/src/main/java/org/opentosca/container/core/convention/PlanConstants.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.core.convention; 2 | 3 | public abstract class PlanConstants { 4 | 5 | public static final String OpenTOSCA_LifecycleInterface = "OpenTOSCA-Lifecycle-Interface"; 6 | public static final String OpenTOSCA_StatefulLifecycleInterface = "OpenTOSCA-Stateful-Lifecycle-Interface"; 7 | public static final String OpenTOSCA_ManagementFeatureInterface = "OpenTOSCA-Management-Feature-Interface"; 8 | 9 | public static final String OpenTOSCA_BuildPlanOperation = "initiate"; 10 | public static final String OpenTOSCA_TerminationPlanOperation = "terminate"; 11 | 12 | public static final String OpenTOSCA_FreezePlanOperation = "freeze"; 13 | public static final String OpenTOSCA_DefrostPlanOperation = "defrost"; 14 | public static final String OpenTOSCA_UpdatePlanOperation = "update"; 15 | public static final String OpenTOSCA_BackupPlanOperation = "backup"; 16 | public static final String OpenTOSCA_TestPlanOperation = "test"; 17 | } 18 | -------------------------------------------------------------------------------- /org.opentosca.container.core/src/main/java/org/opentosca/container/core/engine/xml/IXMLSerializerFactory.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.core.engine.xml; 2 | 3 | import java.net.URL; 4 | 5 | public interface IXMLSerializerFactory { 6 | 7 | /** 8 | * Creates a new instance of the XML Serializer of the TOSCA universe for a passed class which marks the context and 9 | * a File object which represents the TOSCA Schema. 10 | * 11 | * @param classContext A JAXB class which marks the context in which the Serializer is instantiated. 12 | * @param schemaFile A File object which provides the Schema file of TOSCA. 13 | * @return An instance of the XML Serializer of the TOSCA universe. 14 | */ 15 | IXMLSerializer createSerializer(Class classContext, URL schemaFile); 16 | } 17 | -------------------------------------------------------------------------------- /org.opentosca.container.core/src/main/java/org/opentosca/container/core/engine/xml/IXMLSerializerService.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.core.engine.xml; 2 | 3 | /** 4 | * This interface describes the XMLSerializerService which provides the IXMLSerializer which serializes data of the 5 | * TOSCA universe and related data like WSDL or XML Schema. Furthermore the service provides access to the ObjectFactory 6 | * of JAXB objects of TOSCA. 7 | * 8 | * @author Christian Endres - endrescn@studi.informatik.uni-stuttgart.de 9 | */ 10 | public interface IXMLSerializerService { 11 | 12 | /** 13 | * Getter for the XMLSerializer which handles data of TOSCA or is used by TOSCA. 14 | * 15 | * @return The xmlSerializer for data which is TOSCA or is used by TOSCA. 16 | */ 17 | IXMLSerializer getXmlSerializer(); 18 | } 19 | -------------------------------------------------------------------------------- /org.opentosca.container.core/src/main/java/org/opentosca/container/core/engine/xml/impl/IOutputFormatter.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.core.engine.xml.impl; 2 | 3 | import org.w3c.dom.Node; 4 | 5 | /** 6 | * Interface of the OutputFormatter. 7 | * 8 | * @author Christian Endres - endrescn@studi.informatik.uni-stuttgart.de 9 | */ 10 | public interface IOutputFormatter { 11 | 12 | /** 13 | * Serializes a passed DOM node to a String. 14 | * 15 | * @param node A DOM Node which is needed in a String representation. 16 | * @param removeWhitespaces Flag for removing whitespace. 17 | * @return String representation of the passed DOM Node. 18 | */ 19 | String docToString(Node node, boolean removeWhitespaces); 20 | } 21 | -------------------------------------------------------------------------------- /org.opentosca.container.core/src/main/java/org/opentosca/container/core/model/choreography/SituationRule.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.core.model.choreography; 2 | 3 | import java.net.URL; 4 | 5 | public class SituationRule { 6 | 7 | private final URL situationRuleUrl; 8 | 9 | private final String situationCompliantPartnerName; 10 | 11 | private final String alternativePartnerName; 12 | 13 | public SituationRule(URL situationRuleUrl, String situationCompliantPartnerName, String alternativePartnerName) { 14 | this.situationRuleUrl = situationRuleUrl; 15 | this.situationCompliantPartnerName = situationCompliantPartnerName; 16 | this.alternativePartnerName = alternativePartnerName; 17 | } 18 | 19 | public String getSituationCompliantPartnerName() { 20 | return this.situationCompliantPartnerName; 21 | } 22 | 23 | public String getAlternativePartnerName() { 24 | return this.alternativePartnerName; 25 | } 26 | 27 | public URL getSituationRuleUrl() { 28 | return this.situationRuleUrl; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /org.opentosca.container.core/src/main/java/org/opentosca/container/core/model/csar/CsarId.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.core.model.csar; 2 | 3 | public class CsarId implements Comparable { 4 | 5 | private final String name; 6 | 7 | public CsarId(String name) { 8 | this.name = name; 9 | } 10 | 11 | public String csarName() { 12 | return name; 13 | } 14 | 15 | @Override 16 | public int compareTo(CsarId other) { 17 | return name.compareTo(other.name); 18 | } 19 | 20 | @Override 21 | public String toString() { 22 | return csarName(); 23 | } 24 | 25 | @Override 26 | public int hashCode() { 27 | return name.hashCode(); 28 | } 29 | 30 | @Override 31 | public boolean equals(Object o) { 32 | return o instanceof CsarId && 33 | name.equals(((CsarId) o).name); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /org.opentosca.container.core/src/main/java/org/opentosca/container/core/next/model/DeploymentProcessOperation.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.core.next.model; 2 | 3 | /** 4 | * All methods that can be performed in the Container. 5 | */ 6 | public enum DeploymentProcessOperation { 7 | PROCESS_TOSCA, INVOKE_PLAN_DEPL 8 | } 9 | -------------------------------------------------------------------------------- /org.opentosca.container.core/src/main/java/org/opentosca/container/core/next/model/DeploymentProcessState.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.core.next.model; 2 | 3 | /** 4 | * Deployment states of a THOR file. 5 | */ 6 | public enum DeploymentProcessState { 7 | STORED, TOSCAPROCESSING_ACTIVE, TOSCA_PROCESSED, PLAN_DEPLOYMENT_ACTIVE, PLANS_DEPLOYED 8 | } 9 | -------------------------------------------------------------------------------- /org.opentosca.container.core/src/main/java/org/opentosca/container/core/next/model/DeploymentTestState.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.core.next.model; 2 | 3 | public enum DeploymentTestState { 4 | STARTED, FINISHED, FAILED, SUCCESS, UNKNOWN 5 | } 6 | -------------------------------------------------------------------------------- /org.opentosca.container.core/src/main/java/org/opentosca/container/core/next/model/IADeploymentState.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.core.next.model; 2 | 3 | /** 4 | * Deployment and undeployment states of a Implementation Artifact. 5 | */ 6 | public enum IADeploymentState { 7 | IA_DEPLOYING, IA_DEPLOYED, IA_DEPLOYMENT_FAILED, IA_UNDEPLOYING, IA_UNDEPLOYED, IA_UNDEPLOYMENT_FAILED 8 | } 9 | -------------------------------------------------------------------------------- /org.opentosca.container.core/src/main/java/org/opentosca/container/core/next/model/NodeTemplateInstanceState.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.core.next.model; 2 | 3 | public enum NodeTemplateInstanceState { 4 | INITIAL, CREATING, CREATED, CONFIGURING, CONFIGURED, STARTING, STARTED, STOPPING, STOPPED, DELETING, DELETED, ERROR, MIGRATED, TERMINATING, TERMINATED 5 | } 6 | -------------------------------------------------------------------------------- /org.opentosca.container.core/src/main/java/org/opentosca/container/core/next/model/PlanDeploymentState.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.core.next.model; 2 | 3 | /** 4 | * Deployment and undeployment states of a Plan. 5 | */ 6 | public enum PlanDeploymentState { 7 | PLAN_DEPLOYING, PLAN_DEPLOYED, PLAN_DEPLOYMENT_FAILED, PLAN_UNDEPLOYING, PLAN_UNDEPLOYED, PLAN_UNDEPLOYMENT_FAILED 8 | } 9 | -------------------------------------------------------------------------------- /org.opentosca.container.core/src/main/java/org/opentosca/container/core/next/model/PlanInstanceState.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.core.next.model; 2 | 3 | public enum PlanInstanceState { 4 | RUNNING, FINISHED, FAILED, UNKNOWN 5 | } 6 | -------------------------------------------------------------------------------- /org.opentosca.container.core/src/main/java/org/opentosca/container/core/next/model/PlanLanguage.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.core.next.model; 2 | 3 | public enum PlanLanguage { 4 | 5 | BPEL("http://docs.oasis-open.org/wsbpel/2.0/process/executable"), BPMN("http://www.omg.org/spec/BPMN/20100524/MODEL"); 6 | 7 | private final String name; 8 | 9 | PlanLanguage(final String name) { 10 | this.name = name; 11 | } 12 | 13 | public static PlanLanguage fromString(final String name) { 14 | if (name != null) { 15 | for (final PlanLanguage o : PlanLanguage.values()) { 16 | if (name.equalsIgnoreCase(o.name)) { 17 | return o; 18 | } 19 | } 20 | } 21 | throw new IllegalArgumentException("Parameter 'name' does not match an Enum type"); 22 | } 23 | 24 | @Override 25 | public String toString() { 26 | return this.name; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /org.opentosca.container.core/src/main/java/org/opentosca/container/core/next/model/ProviderType.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.core.next.model; 2 | 3 | /** 4 | * This enum defines types of provider that can have capabilities to store. 5 | */ 6 | public enum ProviderType { 7 | CONTAINER, IA_PLUGIN, PLAN_PLUGIN 8 | } 9 | -------------------------------------------------------------------------------- /org.opentosca.container.core/src/main/java/org/opentosca/container/core/next/model/RelationshipTemplateInstanceState.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.core.next.model; 2 | 3 | public enum RelationshipTemplateInstanceState { 4 | INITIAL, CREATING, CREATED, DELETING, DELETED, ERROR, MIGRATED 5 | } 6 | -------------------------------------------------------------------------------- /org.opentosca.container.core/src/main/java/org/opentosca/container/core/next/model/ServiceTemplateInstanceState.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.core.next.model; 2 | 3 | public enum ServiceTemplateInstanceState { 4 | INITIAL, CREATING, CREATED, DELETING, DELETED, ERROR, MIGRATING, MIGRATED, ADAPTING 5 | } 6 | -------------------------------------------------------------------------------- /org.opentosca.container.core/src/main/java/org/opentosca/container/core/next/model/SituationsMonitorIdCollection.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.core.next.model; 2 | 3 | import java.util.ArrayList; 4 | import java.util.Collection; 5 | 6 | import javax.persistence.Column; 7 | import javax.persistence.ElementCollection; 8 | import javax.persistence.Entity; 9 | import javax.persistence.Id; 10 | 11 | // FIXME this is a messy workaround for embedding a collection as the value type of an @ElementCollection 12 | @Entity 13 | public class SituationsMonitorIdCollection { 14 | @Id 15 | @Column 16 | private String nodeId; 17 | 18 | @Column 19 | @ElementCollection 20 | private Collection ids = new ArrayList<>(); 21 | 22 | public String getNodeId() { 23 | return nodeId; 24 | } 25 | 26 | public void setNodeId(String nodeId) { 27 | this.nodeId = nodeId; 28 | } 29 | 30 | public Collection getIds() { 31 | return ids; 32 | } 33 | 34 | public void setIds(Collection ids) { 35 | this.ids = ids; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /org.opentosca.container.core/src/main/java/org/opentosca/container/core/next/repository/CapabilityRepository.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.core.next.repository; 2 | 3 | import java.util.List; 4 | 5 | import org.opentosca.container.core.next.model.Capability; 6 | import org.opentosca.container.core.next.model.ProviderType; 7 | import org.springframework.data.jpa.repository.JpaRepository; 8 | import org.springframework.stereotype.Repository; 9 | 10 | @Repository 11 | public interface CapabilityRepository extends JpaRepository { 12 | 13 | List findByProviderType(ProviderType providerType); 14 | 15 | List findByProviderName(String providerName); 16 | 17 | List findByProviderTypeAndProviderName(ProviderType providerType, String providerName); 18 | } 19 | -------------------------------------------------------------------------------- /org.opentosca.container.core/src/main/java/org/opentosca/container/core/next/repository/DataSourceRegistry.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.core.next.repository; 2 | 3 | import javax.sql.DataSource; 4 | 5 | import org.opentosca.container.core.common.Settings; 6 | import org.springframework.context.annotation.Bean; 7 | import org.springframework.jdbc.datasource.DriverManagerDataSource; 8 | 9 | public class DataSourceRegistry { 10 | 11 | @Bean 12 | public DataSource opentoscaDataSource() { 13 | DriverManagerDataSource dataSource = new DriverManagerDataSource(); 14 | 15 | dataSource.setDriverClassName("org.h2.Driver"); 16 | dataSource.setUsername("admin"); 17 | dataSource.setPassword("admin"); 18 | dataSource.setUrl("jdbc:h2:file:" + Settings.DBDIR.resolve("opentosca").toAbsolutePath()); 19 | return dataSource; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /org.opentosca.container.core/src/main/java/org/opentosca/container/core/next/repository/DeploymentProcessInfoRepository.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.core.next.repository; 2 | 3 | import java.util.List; 4 | 5 | import org.opentosca.container.core.model.csar.CsarId; 6 | import org.opentosca.container.core.next.model.DeploymentProcessInfo; 7 | import org.springframework.data.jpa.repository.JpaRepository; 8 | import org.springframework.stereotype.Repository; 9 | 10 | @Repository 11 | public interface DeploymentProcessInfoRepository extends JpaRepository { 12 | 13 | List findByCsarID(CsarId csar); 14 | } 15 | -------------------------------------------------------------------------------- /org.opentosca.container.core/src/main/java/org/opentosca/container/core/next/repository/DeploymentTestRepository.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.core.next.repository; 2 | 3 | import org.opentosca.container.core.next.model.DeploymentTest; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | import org.springframework.stereotype.Repository; 6 | 7 | @Repository 8 | public interface DeploymentTestRepository extends JpaRepository { 9 | } 10 | -------------------------------------------------------------------------------- /org.opentosca.container.core/src/main/java/org/opentosca/container/core/next/repository/IADeploymentInfoRepository.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.core.next.repository; 2 | 3 | import java.util.List; 4 | 5 | import org.opentosca.container.core.model.csar.CsarId; 6 | import org.opentosca.container.core.next.model.IADeploymentInfo; 7 | import org.springframework.data.jpa.repository.JpaRepository; 8 | import org.springframework.stereotype.Repository; 9 | 10 | @Repository 11 | public interface IADeploymentInfoRepository extends JpaRepository { 12 | 13 | List findByCsarIDAndRelPath(CsarId csar, String relPath); 14 | 15 | List findByCsarID(CsarId csar); 16 | } 17 | -------------------------------------------------------------------------------- /org.opentosca.container.core/src/main/java/org/opentosca/container/core/next/repository/PlanDeploymentInfoRepository.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.core.next.repository; 2 | 3 | import java.util.List; 4 | 5 | import org.opentosca.container.core.model.csar.CsarId; 6 | import org.opentosca.container.core.next.model.PlanDeploymentInfo; 7 | import org.springframework.data.jpa.repository.JpaRepository; 8 | import org.springframework.stereotype.Repository; 9 | 10 | @Repository 11 | public interface PlanDeploymentInfoRepository extends JpaRepository { 12 | 13 | List findByCsarID(CsarId csarId); 14 | 15 | List findByCsarIDAndRelPath(CsarId csarId, String relPath); 16 | } 17 | -------------------------------------------------------------------------------- /org.opentosca.container.core/src/main/java/org/opentosca/container/core/next/repository/RelationshipTemplateInstanceRepository.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.core.next.repository; 2 | 3 | import java.util.List; 4 | 5 | import org.opentosca.container.core.next.model.RelationshipTemplateInstance; 6 | import org.springframework.data.jpa.repository.EntityGraph; 7 | import org.springframework.data.jpa.repository.JpaRepository; 8 | import org.springframework.stereotype.Repository; 9 | 10 | @Repository 11 | public interface RelationshipTemplateInstanceRepository extends JpaRepository { 12 | 13 | List findByTemplateId(String templateId); 14 | 15 | @EntityGraph(attributePaths = {"properties"}) 16 | RelationshipTemplateInstance findWithPropertiesById(Long id); 17 | } 18 | -------------------------------------------------------------------------------- /org.opentosca.container.core/src/main/java/org/opentosca/container/core/next/repository/Repository.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.core.next.repository; 2 | 3 | import java.util.Collection; 4 | import java.util.Optional; 5 | 6 | public interface Repository { 7 | 8 | void add(final T entity); 9 | 10 | void add(final Iterable items); 11 | 12 | void update(final T entity); 13 | 14 | void remove(final T entity); 15 | 16 | Optional find(final K id); 17 | 18 | Collection findAll(); 19 | } 20 | -------------------------------------------------------------------------------- /org.opentosca.container.core/src/main/java/org/opentosca/container/core/next/repository/SituationRepository.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.core.next.repository; 2 | 3 | import org.opentosca.container.core.next.model.Situation; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | import org.springframework.stereotype.Repository; 6 | 7 | @Repository 8 | public interface SituationRepository extends JpaRepository { 9 | } 10 | -------------------------------------------------------------------------------- /org.opentosca.container.core/src/main/java/org/opentosca/container/core/next/repository/SituationTriggerInstanceRepository.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.core.next.repository; 2 | 3 | import java.util.List; 4 | 5 | import com.google.common.collect.Lists; 6 | import org.opentosca.container.core.next.model.SituationTriggerInstance; 7 | import org.springframework.data.jpa.repository.JpaRepository; 8 | import org.springframework.stereotype.Repository; 9 | 10 | @Repository 11 | public interface SituationTriggerInstanceRepository extends JpaRepository { 12 | 13 | default List findBySituationTriggerId(final Long situationTriggerId) { 14 | final List result = Lists.newArrayList(); 15 | findAll().forEach(x -> { 16 | if (x.getSituationTrigger().getId().equals(situationTriggerId)) { 17 | result.add(x); 18 | } 19 | }); 20 | return result; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /org.opentosca.container.core/src/main/java/org/opentosca/container/core/next/repository/SituationTriggerRepository.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.core.next.repository; 2 | 3 | import java.util.List; 4 | 5 | import com.google.common.collect.Lists; 6 | import org.opentosca.container.core.next.model.Situation; 7 | import org.opentosca.container.core.next.model.SituationTrigger; 8 | import org.springframework.data.jpa.repository.JpaRepository; 9 | import org.springframework.stereotype.Repository; 10 | 11 | @Repository 12 | public interface SituationTriggerRepository extends JpaRepository { 13 | 14 | default List findSituationTriggersBySituationId(final Long situationId) { 15 | final List result = Lists.newArrayList(); 16 | findAll().forEach(x -> { 17 | for (final Situation situation : x.getSituations()) { 18 | if (situation.getId().equals(situationId)) { 19 | result.add(x); 20 | } 21 | } 22 | }); 23 | return result; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /org.opentosca.container.core/src/main/java/org/opentosca/container/core/next/repository/SituationsMonitorRepository.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.core.next.repository; 2 | 3 | import java.util.Collection; 4 | 5 | import com.google.common.collect.Lists; 6 | import org.opentosca.container.core.next.model.SituationsMonitor; 7 | import org.springframework.data.jpa.repository.JpaRepository; 8 | import org.springframework.stereotype.Repository; 9 | 10 | @Repository 11 | public interface SituationsMonitorRepository extends JpaRepository { 12 | 13 | default Collection findSituationMonitorsBySituationId(Long situationId) { 14 | Collection result = Lists.newArrayList(); 15 | for (SituationsMonitor moni : this.findAll()) { 16 | for (Collection sits : moni.getNode2Situations().values()) { 17 | if (sits.contains(situationId)) { 18 | result.add(moni); 19 | } 20 | } 21 | } 22 | return result; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /org.opentosca.container.core/src/main/java/org/opentosca/container/core/next/utils/Types.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.container.core.next.utils; 2 | 3 | public abstract class Types { 4 | 5 | /** 6 | * Utility function to create a proper type definition using generics. 7 | *

8 | * Usage: Class> mapType = Types.generify(Map.class); 9 | * 10 | * @param clazz The type to generify 11 | * @return The generified type 12 | */ 13 | @SuppressWarnings("unchecked") 14 | public static Class generify(final Class clazz) { 15 | return (Class) clazz; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /org.opentosca.container.plan.deployment/org.opentosca.container.plan.deployment.plugin.bpel/src/main/java/org/apache/ode/schemas/dd/_2007/_03/package-info.java: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference 3 | // Implementation, vJAXB 2.1.10 in JDK 6 4 | // See http://java.sun.com/xml/jaxb 5 | // Any modifications to this file will be lost upon recompilation of the source schema. 6 | // Generated on: 2012.05.16 at 05:29:02 PM MESZ 7 | // 8 | 9 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://www.apache.org/ode/schemas/dd/2007/03", 10 | elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) 11 | package org.apache.ode.schemas.dd._2007._03; 12 | -------------------------------------------------------------------------------- /org.opentosca.container.plan.deployment/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | 7 | org.opentosca 8 | container 9 | 3.0.0-SNAPSHOT 10 | 11 | 12 | org.opentosca.container.plan.deployment 13 | pom 14 | 15 | 16 | org.opentosca.container.plan.deployment.core 17 | org.opentosca.container.plan.deployment.plugin.bpel 18 | org.opentosca.container.plan.deployment.plugin.camunda 19 | 20 | 21 | -------------------------------------------------------------------------------- /org.opentosca.container.war/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/org.opentosca.container.war/.DS_Store -------------------------------------------------------------------------------- /org.opentosca.container.war/src/main/resources/META-INF/cxf/org.apache.cxf.logger: -------------------------------------------------------------------------------- 1 | org.apache.cxf.common.logging.Slf4jLogger 2 | -------------------------------------------------------------------------------- /org.opentosca.deployment.checks/src/main/java/org/opentosca/deployment/checks/camel/RouteConfiguration.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.deployment.checks.camel; 2 | 3 | import javax.inject.Inject; 4 | 5 | import org.apache.camel.builder.RouteBuilder; 6 | import org.opentosca.bus.management.service.IManagementBusService; 7 | 8 | public class RouteConfiguration extends RouteBuilder { 9 | 10 | private final IManagementBusService managementBusService; 11 | 12 | @Inject 13 | public RouteConfiguration(IManagementBusService managementBusService) { 14 | this.managementBusService = managementBusService; 15 | } 16 | 17 | @Override 18 | public void configure() throws Exception { 19 | this.from("direct:invokeIA").to("stream:out").bean(managementBusService, "invokeIA").end(); 20 | this.from("direct-vm:" + "org.opentosca.deployment.checks").recipientList(this.simple("direct:response-${id}")).end(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /org.opentosca.deployment.checks/src/main/java/org/opentosca/deployment/checks/test/TestExecutionPlugin.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.deployment.checks.test; 2 | 3 | import org.eclipse.winery.model.tosca.TNodeTemplate; 4 | import org.eclipse.winery.model.tosca.TPolicyTemplate; 5 | 6 | import org.opentosca.container.core.next.model.DeploymentTestResult; 7 | import org.opentosca.container.core.next.model.NodeTemplateInstance; 8 | import org.opentosca.deployment.checks.TestContext; 9 | 10 | public interface TestExecutionPlugin { 11 | 12 | DeploymentTestResult execute(final TestContext context, final TNodeTemplate nodeTemplate, 13 | final NodeTemplateInstance nodeTemplateInstance, 14 | final TPolicyTemplate policyTemplate); 15 | 16 | boolean canExecute(final TNodeTemplate nodeTemplate, final TPolicyTemplate policyTemplate); 17 | } 18 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTOSCA/container/73f9331b7fd94e4fbd999fee9390f956ffff0a14/org.opentosca.planbuilder/.DS_Store -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.core.bpel/src/main/resources/core-bpel/BPEL4RESTLightDELETE.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.core.bpel/src/main/resources/core-bpel/BPEL4RESTLightGET_NodeInstance_InstanceDataAPI.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.core.bpel/src/main/resources/core-bpel/BPEL4RESTLightGET_NodeInstance_Properties.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.core.bpel/src/main/resources/core-bpel/BPEL4RESTLightGET_NodeInstances_InstanceDataAPI.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.core.bpel/src/main/resources/core-bpel/BPEL4RESTLightGET_RelationInstance_InstanceDataAPI.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.core.bpel/src/main/resources/core-bpel/BPEL4RESTLightGET_RelationInstances_InstanceDataAPI.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.core.bpel/src/main/resources/core-bpel/BPEL4RESTLightGET_RelationInstances_QueryOnTargetInstance_InstanceDataAPI.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.core.bpel/src/main/resources/core-bpel/BPEL4RESTLightGET_URL_ApplicationXML.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.core.bpel/src/main/resources/core-bpel/BPEL4RESTLightPOST_PlanInstance_Logs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | asd 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 22 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.core.bpel/src/main/resources/core-bpel/BPEL4RESTLightPOST_ServiceInstance_InstanceDataAPI.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.core.bpel/src/main/resources/core-bpel/BPEL4RESTLightPOST_ServiceInstance_InstanceDataAPI_WithBody.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.core.bpel/src/main/resources/core-bpel/BPEL4RESTLightPUTInstanceState.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.core.bpel/src/main/resources/core-bpel/BPELIfTrueThrowFault.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | $xpath1Expr 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.core.bpel/src/main/resources/core-bpel/BPELWait.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.core.bpel/src/main/resources/core-bpel/BPELWaitTillTrue.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.core.bpel/src/main/resources/core-bpel/BpelAssignFromInputToStringVar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.core.bpel/src/main/resources/core-bpel/BpelAssignFromNodeInstanceRequestToStringVar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.core.bpel/src/main/resources/core-bpel/BpelAssignSelectFromRelationInstancesRequestToStringVar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.core.bpel/src/main/resources/core-bpel/BpelAssignServiceInstanceCorrelationIdPOSTRequest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | notSet 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.core.bpel/src/main/resources/core-bpel/BpelAssignServiceInstanceIDFromServiceInstanceUrl.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.core.bpel/src/main/resources/core-bpel/BpelCopyFromPropertyVarToNodeInstanceProperty.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.core.bpel/src/main/resources/core-bpel/BpelCopyOutputVarFromStringVariable.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.core.bpel/src/main/resources/core-bpel/assignStringVarWithXpath2Query.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.core.bpel/src/main/resources/core-bpel/assignVarFromVarWithXpath2Queries.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.core.bpel/src/main/resources/core-bpel/assignVarFromVarWithXpath2Query.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.core.bpel/src/main/resources/core-bpel/assignVarWithLiteral.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | $literal 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.core.bpel/src/main/resources/schemas/opentoscaapischema.xsd: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.core.bpel/src/main/resources/spring/context-planbuilder-bpel.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.core/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | org.opentosca 7 | org.opentosca.planbuilder 8 | 3.0.0-SNAPSHOT 9 | 10 | 11 | org.opentosca.planbuilder.core 12 | 13 | 14 | 15 | org.opentosca 16 | org.opentosca.planbuilder.model 17 | ${project.version} 18 | 19 | 20 | org.opentosca 21 | org.opentosca.container.core 22 | ${project.version} 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.core/src/main/java/org/opentosca/planbuilder/core/plugins/context/Variable.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.planbuilder.core.plugins.context; 2 | 3 | /** 4 | *

5 | * This is a Wrapper class for Template Id to Property variable name 6 | *

7 | * Copyright 2013-2022 IAAS University of Stuttgart
8 | *
9 | * 10 | * @author Kalman Kepes - kepeskn@studi.informatik.uni-stuttgart.de 11 | */ 12 | public class Variable { 13 | 14 | private final String variableName; 15 | 16 | /** 17 | * Contructor 18 | * 19 | * @param variableName a property variable name 20 | */ 21 | public Variable(final String variableName) { 22 | 23 | this.variableName = variableName; 24 | } 25 | 26 | /** 27 | * Returns the variable name of this wrapper 28 | * 29 | * @return a String containing the property variable name 30 | */ 31 | public String getVariableName() { 32 | return this.variableName; 33 | } 34 | 35 | @Override 36 | public String toString() { 37 | return "Variable " + this.variableName; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.core/src/main/java/org/opentosca/planbuilder/core/plugins/typebased/IPlanBuilderPrePhasePlugin.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.planbuilder.core.plugins.typebased; 2 | 3 | import org.eclipse.winery.model.tosca.TNodeTemplate; 4 | import org.eclipse.winery.model.tosca.TRelationshipTemplate; 5 | 6 | import org.opentosca.planbuilder.core.plugins.context.PlanContext; 7 | 8 | /** 9 | * Copyright 2013-2022 IAAS University of Stuttgart
10 | *
11 | * 12 | * @author Kalman Kepes - kepeskn@studi.informatik.uni-stuttgart.de 13 | */ 14 | public interface IPlanBuilderPrePhasePlugin extends IPlanBuilderPlugin { 15 | 16 | boolean canHandleCreate(T context, TNodeTemplate nodeTemplate); 17 | 18 | boolean handleCreate(T context, TNodeTemplate nodeTemplate); 19 | 20 | boolean canHandleCreate(T context, TRelationshipTemplate relationshipTemplate); 21 | 22 | boolean handleCreate(T context, TRelationshipTemplate relationshipTemplate); 23 | } 24 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.core/src/main/java/org/opentosca/planbuilder/core/plugins/typebased/IScalingPlanBuilderSelectionPlugin.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.planbuilder.core.plugins.typebased; 2 | 3 | import java.util.List; 4 | 5 | import org.eclipse.winery.model.tosca.TNodeTemplate; 6 | 7 | import org.opentosca.planbuilder.core.plugins.context.PlanContext; 8 | 9 | public interface IScalingPlanBuilderSelectionPlugin extends IPlanBuilderPlugin { 10 | 11 | boolean canHandle(TNodeTemplate nodeTemplate, List selectionStrategies); 12 | 13 | boolean handle(T context, TNodeTemplate nodeTemplate, List selectionStrategies); 14 | } 15 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.core/src/main/java/org/opentosca/planbuilder/core/plugins/utils/PluginUtils.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.planbuilder.core.plugins.utils; 2 | 3 | import org.opentosca.planbuilder.core.plugins.context.PropertyVariable; 4 | 5 | public class PluginUtils { 6 | 7 | /** 8 | * Checks whether the property of the given variable is empty in the TopologyTemplate 9 | * 10 | * @param variable a property variable (var must belong to a topology template property) to check 11 | * @return true iff the content of the given variable is empty in the topology template property 12 | */ 13 | public static boolean isVariableValueEmpty(final PropertyVariable variable) { 14 | final String content = variable.getContent(); 15 | return content == null || content.isEmpty(); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.integration/src/main/java/org/eclipse/winery/model/selfservice/package-info.java: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference 3 | // Implementation, v2.2.8-b130911.1802 4 | // See http://java.sun.com/xml/jaxb 5 | // Any modifications to this file will be lost upon recompilation of the source schema. 6 | // Generated on: 2017.06.28 at 10:18:28 AM CEST 7 | // 8 | 9 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://www.eclipse.org/winery/model/selfservice", 10 | elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) 11 | package org.eclipse.winery.model.selfservice; 12 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.integration/src/main/java/org/opentosca/planbuilder/integration/layer/AbstractExporter.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.planbuilder.integration.layer; 2 | 3 | /** 4 | *

5 | * This abstract class is used to define exporters 6 | *

7 | * Copyright 2013-2022 IAAS University of Stuttgart
8 | *
9 | * 10 | * @author Kalman Kepes - kepeskn@studi.informatik.uni-stuttgart.de 11 | */ 12 | public abstract class AbstractExporter { 13 | 14 | } 15 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.integration/src/main/resources/spring/context-planbuilder-integration.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | Spring DI configuration for planbuilder 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.model/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | org.opentosca 7 | org.opentosca.planbuilder 8 | 3.0.0-SNAPSHOT 9 | 10 | 11 | org.opentosca.planbuilder.model 12 | 13 | 14 | 15 | commons-io 16 | commons-io 17 | 2.7 18 | 19 | 20 | org.opentosca 21 | org.opentosca.container.core 22 | ${project.version} 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.model/src/main/java/org/apache/ode/activityrecovery/package-info.java: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference 3 | // Implementation, vJAXB 2.1.10 in JDK 6 4 | // See http://java.sun.com/xml/jaxb 5 | // Any modifications to this file will be lost upon recompilation of the source schema. 6 | // Generated on: 2013.05.27 at 03:40:55 PM CEST 7 | // 8 | 9 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://ode.apache.org/activityRecovery", 10 | elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) 11 | package org.apache.ode.activityrecovery; 12 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.model/src/main/java/org/apache/ode/schemas/dd/_2007/_03/package-info.java: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference 3 | // Implementation, vJAXB 2.1.10 in JDK 6 4 | // See http://java.sun.com/xml/jaxb 5 | // Any modifications to this file will be lost upon recompilation of the source schema. 6 | // Generated on: 2013.05.27 at 03:40:55 PM CEST 7 | // 8 | 9 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://www.apache.org/ode/schemas/dd/2007/03", 10 | elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) 11 | package org.apache.ode.schemas.dd._2007._03; 12 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.model/src/main/java/org/opentosca/planbuilder/model/plan/ActivityType.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.planbuilder.model.plan; 2 | 3 | /** 4 | * Represents the abstract activity types supported by the planbuilder system 5 | * 6 | * @author Kálmán Képes - kepes@iaas.uni-stuttgart.de 7 | */ 8 | public enum ActivityType { 9 | 10 | PROVISIONING, TERMINATION, RECURSIVESELECTION, STRATEGICSELECTION, FREEZE, DEFROST, MIGRATION, TEST, BACKUP, 11 | NONE, SENDNODENOTIFY, RECEIVENODENOTIFY, NOTIFYALLPARTNERS, UPDATE, 12 | } 13 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.model/src/main/java/org/opentosca/planbuilder/model/plan/MonitoringActivity.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.planbuilder.model.plan; 2 | 3 | public class MonitoringActivity extends AbstractActivity { 4 | 5 | public MonitoringActivity(String id, ActivityType type) { 6 | super(id, type); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.model/src/main/java/org/opentosca/planbuilder/model/plan/NodeTemplateActivity.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.planbuilder.model.plan; 2 | 3 | import org.eclipse.winery.model.tosca.TNodeTemplate; 4 | 5 | /** 6 | * Copyright 2017 IAAS University of Stuttgart
7 | *
8 | * 9 | * @author Kálmán Képes - kalman.kepes@iaas.uni-stuttgart.de 10 | */ 11 | public class NodeTemplateActivity extends AbstractActivity { 12 | 13 | private final TNodeTemplate nodeTemplate; 14 | 15 | public NodeTemplateActivity(final String id, final ActivityType type, final TNodeTemplate nodeTemplate) { 16 | super(id, type); 17 | this.nodeTemplate = nodeTemplate; 18 | } 19 | 20 | public TNodeTemplate getNodeTemplate() { 21 | return this.nodeTemplate; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.model/src/main/java/org/opentosca/planbuilder/model/plan/RelationshipTemplateActivity.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.planbuilder.model.plan; 2 | 3 | import org.eclipse.winery.model.tosca.TRelationshipTemplate; 4 | 5 | public class RelationshipTemplateActivity extends AbstractActivity { 6 | 7 | private final TRelationshipTemplate relationshipTemplate; 8 | 9 | public RelationshipTemplateActivity(final String id, final ActivityType type, 10 | final TRelationshipTemplate relationshipTemplate) { 11 | super(id, type); 12 | this.relationshipTemplate = relationshipTemplate; 13 | } 14 | 15 | public TRelationshipTemplate getRelationshipTemplate() { 16 | return this.relationshipTemplate; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.model/src/main/java/org/opentosca/planbuilder/model/plan/bpel/Deploy.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.planbuilder.model.plan.bpel; 2 | 3 | import javax.xml.bind.annotation.XmlRootElement; 4 | 5 | import org.apache.ode.schemas.dd._2007._03.TDeployment; 6 | 7 | /** 8 | *

9 | * This class is used to be able to generate Apache ODE DeploymentDeskriptors 10 | *

11 | * Copyright 2013-2022 IAAS University of Stuttgart
12 | *
13 | * 14 | * @author Kalman Kepes - kepeskn@studi.informatik.uni-stuttgart.de 15 | */ 16 | @XmlRootElement(namespace = "http://www.apache.org/ode/schemas/dd/2007/03") 17 | public class Deploy extends TDeployment { 18 | 19 | } 20 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.model/src/main/resources/generated/org/apache/ode/activityrecovery/package-info.java: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 3 | // See http://java.sun.com/xml/jaxb 4 | // Any modifications to this file will be lost upon recompilation of the source schema. 5 | // Generated on: 2013.05.27 at 03:40:55 PM CEST 6 | // 7 | 8 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://ode.apache.org/activityRecovery", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) 9 | package org.apache.ode.activityrecovery; 10 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.model/src/main/resources/generated/org/apache/ode/schemas/dd/_2007/_03/package-info.java: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 3 | // See http://java.sun.com/xml/jaxb 4 | // Any modifications to this file will be lost upon recompilation of the source schema. 5 | // Generated on: 2013.05.27 at 03:40:55 PM CEST 6 | // 7 | 8 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://www.apache.org/ode/schemas/dd/2007/03", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) 9 | package org.apache.ode.schemas.dd._2007._03; 10 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.model/src/main/resources/spring/context-planbuilder-model.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.postphase.plugin.instancedata/src/main/resources/instancedata-plugin/BPEL4RESTLightDELETE.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.postphase.plugin.instancedata/src/main/resources/instancedata-plugin/BPEL4RESTLightGET.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.postphase.plugin.instancedata/src/main/resources/instancedata-plugin/BPEL4RESTLightGET_Instance_Properties.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.postphase.plugin.instancedata/src/main/resources/instancedata-plugin/BPEL4RESTLightGET_Instance_State_InstanceDataAPI.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.postphase.plugin.instancedata/src/main/resources/instancedata-plugin/BPEL4RESTLightGET_NodeInstance_InstanceDataAPI.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.postphase.plugin.instancedata/src/main/resources/instancedata-plugin/BPEL4RESTLightPOST_NodeInstance_InstanceDataAPI.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.postphase.plugin.instancedata/src/main/resources/instancedata-plugin/BPEL4RESTLightPOST_ServiceInstance_InstanceDataAPI.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.postphase.plugin.instancedata/src/main/resources/instancedata-plugin/BPEL4RESTLightPUT_Instance_InstanceDataAPI.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.postphase.plugin.instancedata/src/main/resources/instancedata-plugin/BPEL4RESTLightPUT_Instance_State_InstanceDataAPI.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.postphase.plugin.instancedata/src/main/resources/instancedata-plugin/BPELAssignFromNodeInstancePOSTResponseToStringVar.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.postphase.plugin.instancedata/src/main/resources/instancedata-plugin/BPELAssignFromRelationInstancePOSTResponseToStringVar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.postphase.plugin.instancedata/src/main/resources/instancedata-plugin/BpelAssignFromInputToStringVar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.postphase.plugin.instancedata/src/main/resources/instancedata-plugin/BpelAssignFromNodeInstanceRequestToStringVar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.postphase.plugin.instancedata/src/main/resources/instancedata-plugin/BpelAssignFromServiceInstanceRequestToStringVar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.postphase.plugin.instancedata/src/main/resources/instancedata-plugin/BpelAssignServiceInstancePOSTResponse.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.postphase.plugin.instancedata/src/main/resources/instancedata-plugin/BpelCopyFromPropertyVarToNodeInstanceProperty.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.postphase.plugin.instancedata/src/main/resources/spring/context-planbuilder-plugin.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | Register the beans within the planbuilder instancedata postphase plugin 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.postphase.plugin.monitoring/src/main/resources/spring/context-planbuilder-plugin.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | Register the beans within the planbuilder monitoring postphase plugin 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.postphase.plugin.situations/src/main/resources/BPEL4RESTLightDELETE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 8 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.postphase.plugin.situations/src/main/resources/BPEL4RESTLightGET.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.postphase.plugin.situations/src/main/resources/BPEL4RESTLightGET_Instance_Properties.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.postphase.plugin.situations/src/main/resources/BPEL4RESTLightGET_Instance_State_InstanceDataAPI.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.postphase.plugin.situations/src/main/resources/BPEL4RESTLightGET_NodeInstance_InstanceDataAPI.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.postphase.plugin.situations/src/main/resources/BPEL4RESTLightPOST_NodeInstance_InstanceDataAPI.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.postphase.plugin.situations/src/main/resources/BPEL4RESTLightPOST_ServiceInstance_InstanceDataAPI.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.postphase.plugin.situations/src/main/resources/BPEL4RESTLightPUT_Instance_InstanceDataAPI.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.postphase.plugin.situations/src/main/resources/BPEL4RESTLightPUT_Instance_State_InstanceDataAPI.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.postphase.plugin.situations/src/main/resources/BPELAssignFromNodeInstancePOSTResponseToStringVar.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.postphase.plugin.situations/src/main/resources/BPELAssignFromRelationInstancePOSTResponseToStringVar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.postphase.plugin.situations/src/main/resources/BpelAssignFromInputToStringVar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.postphase.plugin.situations/src/main/resources/BpelAssignFromNodeInstanceRequestToStringVar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.postphase.plugin.situations/src/main/resources/BpelAssignFromServiceInstanceRequestToStringVar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.postphase.plugin.situations/src/main/resources/BpelAssignServiceInstancePOSTResponse.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.postphase.plugin.situations/src/main/resources/BpelCopyFromPropertyVarToNodeInstanceProperty.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.postphase.plugin.situations/src/main/resources/spring/context-planbuilder-plugin.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | Register the beans within the planbuilder post-phase situation plugin 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.prephase.plugin.fileupload/src/main/resources/spring/context-planbuilder-plugin.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | Register the beans within the planbuilder monitoring postphase plugin 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.provphase.plugin.ansibleoperation/src/main/resources/ansibleoperation-plugin/assignStringVarWithXpath2Query.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.provphase.plugin.ansibleoperation/src/main/resources/spring/context-planbuilder-plugin.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | Register the beans within the planbuilder ansibleoperation provisioning plugin 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.provphase.plugin.invoker/src/main/java/org/opentosca/planbuilder/provphase/plugin/invoker/bpel/handlers/BPELInvokeOperationHandler.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.planbuilder.provphase.plugin.invoker.bpel.handlers; 2 | 3 | import org.slf4j.Logger; 4 | import org.slf4j.LoggerFactory; 5 | 6 | public class BPELInvokeOperationHandler extends PluginHandler { 7 | 8 | public final static Logger LOG = LoggerFactory.getLogger(BPELInvokeOperationHandler.class); 9 | } 10 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.provphase.plugin.invoker/src/main/resources/invoker-plugin/EPRCopyToInvokerReplyTo.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.provphase.plugin.invoker/src/main/resources/invoker-plugin/addressingCopy.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.provphase.plugin.invoker/src/main/resources/invoker-plugin/addressingInit.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | http://localhost:9763/services/SIServerCallback 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.provphase.plugin.invoker/src/main/resources/invoker-plugin/assignNotifyMessage.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 8 | {planCorrelation} 9 | {csarName} 10 | {serviceTemplateNS} 11 | {serviceTemplateLocalName} 12 | {messageID} 13 | {paramsMap} 14 | 15 | 16 | 17 | 18 | 19 | 20 | {copies} 21 | 22 | 23 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.provphase.plugin.invoker/src/main/resources/invoker-plugin/assignStringVarWithXpath2Query.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.provphase.plugin.invoker/src/main/resources/invoker-plugin/copyReplyTo.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.provphase.plugin.invoker/src/main/resources/invoker-plugin/correlationIdCopy.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.provphase.plugin.invoker/src/main/resources/invoker-plugin/externalParamCopy.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.provphase.plugin.invoker/src/main/resources/invoker-plugin/externalParamCopy2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.provphase.plugin.invoker/src/main/resources/invoker-plugin/ifFaultMessageThrowFault.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.provphase.plugin.invoker/src/main/resources/invoker-plugin/initMessageId.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.provphase.plugin.invoker/src/main/resources/invoker-plugin/internalParamCopy.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.provphase.plugin.invoker/src/main/resources/invoker-plugin/nodeInstanceCopy.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.provphase.plugin.invoker/src/main/resources/invoker-plugin/serviceInstanceCopy.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.provphase.plugin.invoker/src/main/resources/spring/context-planbuilder-plugin.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | Register the beans within the planbuilder provisioning-phase invoker plugin 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.selection.plugin.firstavailable/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | org.opentosca 7 | org.opentosca.planbuilder 8 | 3.0.0-SNAPSHOT 9 | 10 | 11 | org.opentosca.planbuilder.selection.plugin.firstavailable 12 | 13 | 14 | 15 | org.opentosca 16 | org.opentosca.planbuilder.core.bpel 17 | ${project.version} 18 | 19 | 20 | org.opentosca 21 | org.opentosca.planbuilder.model 22 | ${project.version} 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.selection.plugin.firstavailable/src/main/resources/spring/context-planbuilder-plugin.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | Register the beans within the planbuilder firstavailable selection plugin 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.selection.plugin.input/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | org.opentosca 7 | org.opentosca.planbuilder 8 | 3.0.0-SNAPSHOT 9 | 10 | 11 | org.opentosca.planbuilder.selection.plugin.input 12 | 13 | 14 | 15 | org.opentosca 16 | org.opentosca.planbuilder.core.bpel 17 | ${project.version} 18 | 19 | 20 | org.opentosca 21 | org.opentosca.planbuilder.model 22 | ${project.version} 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.selection.plugin.input/src/main/resources/spring/context-planbuilder-plugin.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | Register the beans within the planbuilder input selection plugin 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.selection.plugin.mosquitto.workload/src/main/resources/spring/context-planbuilder-plugin.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | Register the beans within the planbuilder mosquitto workload selection plugin 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.type.plugin.connectsto/src/main/java/org/opentosca/planbuilder/type/plugin/connectsto/bpel/Constants.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.planbuilder.type.plugin.connectsto.bpel; 2 | 3 | import javax.xml.namespace.QName; 4 | 5 | /** 6 | * Copyright 2016 IAAS University of Stuttgart
7 | *
8 | * 9 | * @author Kalman Kepes - kalman.kepes@iaas.uni-stuttgart.de 10 | */ 11 | public final class Constants { 12 | 13 | // the relationshipType this plugin can handle 14 | public static final QName MOSQUITTOC_CONNECTS_TO_RELATIONSHIP_TYPE = 15 | new QName("http://opentosca.org/relationshiptypes", "MosquittoConnectsTo"); 16 | 17 | // the target nodes of the relationshiptTypes must be a stack of topic and 18 | // mosquitto 19 | public static final QName TOPIC_NODE_TYPE = new QName("http://opentosca.org/nodetypes", "Topic"); 20 | public static final QName MOSQUITTO_NODE_TYPE = new QName("http://opentosca.org/nodetypes", "Mosquitto_3.1"); 21 | } 22 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.type.plugin.connectsto/src/main/java/org/opentosca/planbuilder/type/plugin/connectsto/core/handler/ConnectsToPluginHandler.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.planbuilder.type.plugin.connectsto.core.handler; 2 | 3 | import org.opentosca.planbuilder.core.plugins.context.PlanContext; 4 | 5 | /** 6 | * Copyright 2016 IAAS University of Stuttgart
7 | *
8 | * 9 | * @author Kalman Kepes - kalman.kepes@iaas.uni-stuttgart.de 10 | */ 11 | public interface ConnectsToPluginHandler { 12 | 13 | boolean handle(final T templateContext); 14 | } 15 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.type.plugin.connectsto/src/main/resources/connectsto-plugin/assignStringVarWithXpath2Query.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.type.plugin.connectsto/src/main/resources/spring/context-planbuilder-plugin.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | Register the beans within the planbuilder connectsto type plugin 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.type.plugin.dockercontainer/src/main/java/org/opentosca/planbuilder/type/plugin/dockercontainer/core/handler/DockerContainerTypePluginHandler.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.planbuilder.type.plugin.dockercontainer.core.handler; 2 | 3 | import org.opentosca.planbuilder.core.plugins.context.PlanContext; 4 | 5 | /** 6 | *

7 | * This class contains all the logic to add BPEL Code which installs a PhpModule on an Apache HTTP Server 8 | *

9 | * Copyright 2014 IAAS University of Stuttgart
10 | *
11 | * 12 | * @author Kalman Kepes - kepeskn@studi.informatik.uni-stuttgart.de 13 | */ 14 | public interface DockerContainerTypePluginHandler { 15 | boolean handleCreate(final T context); 16 | } 17 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.type.plugin.dockercontainer/src/main/resources/spring/context-planbuilder-plugin.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | Register the beans within the planbuilder dockercontainer type plugin 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.type.plugin.hardware/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | 7 | org.opentosca 8 | org.opentosca.planbuilder 9 | 3.0.0-SNAPSHOT 10 | 11 | 12 | org.opentosca.planbuilder.type.plugin.hardware 13 | 14 | 15 | 16 | org.opentosca 17 | org.opentosca.planbuilder.core 18 | ${project.version} 19 | 20 | 21 | org.opentosca 22 | org.opentosca.planbuilder.core.bpel 23 | ${project.version} 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.type.plugin.hardware/src/main/resources/hardware-plugin/assignStringVarWithXpath2Query.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.type.plugin.hardware/src/main/resources/spring/context-planbuilder-plugin.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | Register the beans within the planbuilder connectsto type plugin 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.type.plugin.mosquittoconnectsto/src/main/java/org/opentosca/planbuilder/type/plugin/mosquittoconnectsto/core/ConnectsToTypePluginConstants.java: -------------------------------------------------------------------------------- 1 | package org.opentosca.planbuilder.type.plugin.mosquittoconnectsto.core; 2 | 3 | import javax.xml.namespace.QName; 4 | 5 | /** 6 | * Copyright 2016 IAAS University of Stuttgart
7 | *
8 | * 9 | * @author Kalman Kepes - kalman.kepes@iaas.uni-stuttgart.de 10 | */ 11 | public final class ConnectsToTypePluginConstants { 12 | 13 | // name of the plugin 14 | // the relationshipType this plugin can handle 15 | public static final QName MOSQUITTO_CONNECTSTO_RELATIONSHIPTYPE = 16 | new QName("http://opentosca.org/relationshiptypes", "MosquittoConnectsTo"); 17 | 18 | // the target nodes of the relationshiptTypes must be a stack of topic and 19 | // mosquitto 20 | public static final QName TOPIC_NODETYPE = new QName("http://opentosca.org/nodetypes", "Topic"); 21 | public static final QName MOSQUITTO_NODETYPE = new QName("http://opentosca.org/nodetypes", "Mosquitto_3.1"); 22 | } 23 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.type.plugin.mosquittoconnectsto/src/main/resources/mosquittoconnectsto-plugin/assignStringVarWithXpath2Query.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.type.plugin.mosquittoconnectsto/src/main/resources/spring/context-planbuilder-plugin.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | Register the beans within the planbuilder connectsto type plugin 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.type.plugin.patternbased/src/main/resources/patternbased-plugin/assignStringVarWithXpath2Query.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.type.plugin.patternbased/src/main/resources/spring/context-planbuilder-plugin.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | Register the beans within the planbuilder connectsto type plugin 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.type.plugin.platforms/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | 7 | org.opentosca 8 | org.opentosca.planbuilder 9 | 3.0.0-SNAPSHOT 10 | 11 | 12 | org.opentosca.planbuilder.type.plugin.platforms 13 | 14 | 15 | 16 | org.opentosca 17 | org.opentosca.planbuilder.core 18 | ${project.version} 19 | 20 | 21 | org.opentosca 22 | org.opentosca.planbuilder.core.bpel 23 | ${project.version} 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.type.plugin.platforms/src/main/resources/platforms-plugin/assignStringVarWithXpath2Query.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.type.plugin.platforms/src/main/resources/spring/context-planbuilder-plugin.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | Register the beans within the planbuilder connectsto type plugin 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.type.plugin.ubuntuvm/src/main/resources/iptables.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | sudo iptables -F 3 | sudo iptables -P INPUT DROP 4 | sudo iptables -A INPUT -i lo -p all -j ACCEPT 5 | sudo iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT 6 | # we still let the ssh port open, as this is a prototype 7 | # sudo iptables -A INPUT -p tcp -m tcp --dport 22 -j ACCEPT 8 | sudo iptables -A INPUT -j DROP 9 | -------------------------------------------------------------------------------- /org.opentosca.planbuilder/org.opentosca.planbuilder.type.plugin.ubuntuvm/src/main/resources/spring/context-planbuilder-plugin.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | Register the beans within the planbuilder connectsto type plugin 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /test.yml: -------------------------------------------------------------------------------- 1 | version: '3' 2 | services: 3 | engine-ia-java8: 4 | image: opentosca/engine-ia:latest-jdk8 5 | ports: 6 | - '8098:8080' 7 | engine-ia-java17: 8 | image: opentosca/engine-ia:latest-jdk17 9 | ports: 10 | - '8099:8080' 11 | engine-plan: 12 | image: opentosca/ode:latest 13 | environment: 14 | _JAVA_OPTIONS: "-Xmx3048m -Xms512m -Xss4m" 15 | ports: 16 | - '9763:9763' 17 | engine-plan-bpmn: 18 | image: opentosca/camunda-bpmn:latest 19 | ports: 20 | - '8092:8080' 21 | container-repository: 22 | image: opentosca/winery:latest 23 | environment: 24 | WINERY_PORT: 8091 25 | WORKFLOWMODELER_PORT: 8091 26 | TOPOLOGYMODELER_PORT: 8091 27 | WINERY_REPOSITORY_URL: https://github.com/OpenTOSCA/tosca-definitions-management-features 28 | ports: 29 | - '8091:8080' --------------------------------------------------------------------------------