From bcfc0aa86b8f5c1a347aaec2f965894fbfe5de6f Mon Sep 17 00:00:00 2001 From: Carsten Lund Date: Wed, 12 Apr 2017 21:28:50 +0000 Subject: fixed issues with : in file names for Windows Change-Id: I899e3f8cf7a798efc0ccadac44e11f7efadd56d2 Signed-off-by: Carsten Lund --- .../META-INF/adaptor%MANIFEST.MF | 14 ++ .../META-INF/adaptor:MANIFEST.MF | 14 -- .../META-INF/dcae-cdap-manager%MANIFEST.MF | 14 ++ .../META-INF/dcae-cdap-manager:MANIFEST.MF | 14 -- .../META-INF/dcae-docker-manager%MANIFEST.MF | 14 ++ .../META-INF/dcae-docker-manager:MANIFEST.MF | 14 -- .../META-INF/dcae-vm-manager%MANIFEST.MF | 14 ++ .../META-INF/dcae-vm-manager:MANIFEST.MF | 14 -- .../TOOLS/adaptor%Generator.java | 67 ++++++++++ .../TOOLS/adaptor:Generator.java | 67 ---------- .../TOOLS/dcae-cdap-manager%Generator.java | 88 +++++++++++++ .../TOOLS/dcae-cdap-manager:Generator.java | 88 ------------- .../TOOLS/dcae-docker-manager%Generator.java | 99 ++++++++++++++ .../TOOLS/dcae-docker-manager:Generator.java | 99 -------------- .../TOOLS/dcae-vm-manager%Generator.java | 91 +++++++++++++ .../TOOLS/dcae-vm-manager%TestManager.java | 75 +++++++++++ .../TOOLS/dcae-vm-manager%TestManagerServer.java | 90 +++++++++++++ .../dcae-vm-manager%TestServiceToManager.java | 50 +++++++ .../TOOLS/dcae-vm-manager:Generator.java | 91 ------------- .../TOOLS/dcae-vm-manager:TestManager.java | 75 ----------- .../TOOLS/dcae-vm-manager:TestManagerServer.java | 90 ------------- .../dcae-vm-manager:TestServiceToManager.java | 50 ------- .../archetype-resources/dcae-cdap-manager%pom.xml | 143 +++++++++++++++++++++ .../archetype-resources/dcae-cdap-manager:pom.xml | 143 --------------------- .../dcae-docker-manager%pom.xml | 143 +++++++++++++++++++++ .../dcae-docker-manager:pom.xml | 143 --------------------- .../archetype-resources/dcae-vm-manager%pom.xml | 143 +++++++++++++++++++++ .../archetype-resources/dcae-vm-manager:pom.xml | 143 --------------------- .../src/main/server/scripts/adaptor%console.groovy | 27 ++++ .../src/main/server/scripts/adaptor:console.groovy | 27 ---- .../scripts/dcae-cdap-service%console.groovy | 27 ++++ .../scripts/dcae-cdap-service:console.groovy | 27 ---- .../scripts/dcae-docker-service%console.groovy | 27 ++++ .../scripts/dcae-docker-service:console.groovy | 27 ---- .../server/scripts/dcae-vm-service%console.groovy | 27 ++++ .../server/scripts/dcae-vm-service:console.groovy | 27 ---- .../META-INF/adaptor%MANIFEST.MF | 21 +++ .../META-INF/adaptor:MANIFEST.MF | 21 --- .../META-INF/dcae-cdap-manager%MANIFEST.MF | 28 ++++ .../META-INF/dcae-cdap-manager:MANIFEST.MF | 28 ---- .../META-INF/dcae-docker-manager%MANIFEST.MF | 28 ++++ .../META-INF/dcae-docker-manager:MANIFEST.MF | 28 ---- .../META-INF/dcae-vm-manager%MANIFEST.MF | 28 ++++ .../META-INF/dcae-vm-manager:MANIFEST.MF | 28 ---- .../dcae-cdap-manager%plugin.xml | 25 ++++ .../archetype-resources/dcae-cdap-manager%pom.xml | 23 ++++ .../dcae-cdap-manager:plugin.xml | 25 ---- .../archetype-resources/dcae-cdap-manager:pom.xml | 23 ---- .../dcae-docker-manager%plugin.xml | 25 ++++ .../dcae-docker-manager%pom.xml | 23 ++++ .../dcae-docker-manager:plugin.xml | 25 ---- .../dcae-docker-manager:pom.xml | 23 ---- .../archetype-resources/dcae-vm-manager%plugin.xml | 25 ++++ .../archetype-resources/dcae-vm-manager%pom.xml | 23 ++++ .../archetype-resources/dcae-vm-manager:plugin.xml | 25 ---- .../archetype-resources/dcae-vm-manager:pom.xml | 23 ---- .../src/main/xcore/adaptor%adaptor.xcore | 30 +++++ .../src/main/xcore/adaptor:adaptor.xcore | 30 ----- .../src/main/xcore/dcae-cdap-manager%manager.xcore | 36 ++++++ .../src/main/xcore/dcae-cdap-manager%service.xcore | 65 ++++++++++ .../src/main/xcore/dcae-cdap-manager:manager.xcore | 36 ------ .../src/main/xcore/dcae-cdap-manager:service.xcore | 65 ---------- .../main/xcore/dcae-docker-manager%manager.xcore | 34 +++++ .../main/xcore/dcae-docker-manager%service.xcore | 46 +++++++ .../main/xcore/dcae-docker-manager:manager.xcore | 34 ----- .../main/xcore/dcae-docker-manager:service.xcore | 46 ------- .../src/main/xcore/dcae-vm-manager%manager.xcore | 36 ++++++ .../src/main/xcore/dcae-vm-manager%service.xcore | 65 ++++++++++ .../src/main/xcore/dcae-vm-manager:manager.xcore | 36 ------ .../src/main/xcore/dcae-vm-manager:service.xcore | 65 ---------- .../src/main/xcore/server%server.xcore | 32 +++++ .../src/main/xcore/server:server.xcore | 32 ----- 72 files changed, 1746 insertions(+), 1746 deletions(-) create mode 100644 ncomp-maven-sirius-project/src/main/resources/archetype-resources/META-INF/adaptor%MANIFEST.MF delete mode 100644 ncomp-maven-sirius-project/src/main/resources/archetype-resources/META-INF/adaptor:MANIFEST.MF create mode 100644 ncomp-maven-sirius-project/src/main/resources/archetype-resources/META-INF/dcae-cdap-manager%MANIFEST.MF delete mode 100644 ncomp-maven-sirius-project/src/main/resources/archetype-resources/META-INF/dcae-cdap-manager:MANIFEST.MF create mode 100644 ncomp-maven-sirius-project/src/main/resources/archetype-resources/META-INF/dcae-docker-manager%MANIFEST.MF delete mode 100644 ncomp-maven-sirius-project/src/main/resources/archetype-resources/META-INF/dcae-docker-manager:MANIFEST.MF create mode 100644 ncomp-maven-sirius-project/src/main/resources/archetype-resources/META-INF/dcae-vm-manager%MANIFEST.MF delete mode 100644 ncomp-maven-sirius-project/src/main/resources/archetype-resources/META-INF/dcae-vm-manager:MANIFEST.MF create mode 100644 ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/adaptor%Generator.java delete mode 100644 ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/adaptor:Generator.java create mode 100644 ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-cdap-manager%Generator.java delete mode 100644 ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-cdap-manager:Generator.java create mode 100644 ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-docker-manager%Generator.java delete mode 100644 ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-docker-manager:Generator.java create mode 100644 ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-vm-manager%Generator.java create mode 100644 ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-vm-manager%TestManager.java create mode 100644 ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-vm-manager%TestManagerServer.java create mode 100644 ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-vm-manager%TestServiceToManager.java delete mode 100644 ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-vm-manager:Generator.java delete mode 100644 ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-vm-manager:TestManager.java delete mode 100644 ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-vm-manager:TestManagerServer.java delete mode 100644 ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-vm-manager:TestServiceToManager.java create mode 100644 ncomp-maven-sirius-project/src/main/resources/archetype-resources/dcae-cdap-manager%pom.xml delete mode 100644 ncomp-maven-sirius-project/src/main/resources/archetype-resources/dcae-cdap-manager:pom.xml create mode 100644 ncomp-maven-sirius-project/src/main/resources/archetype-resources/dcae-docker-manager%pom.xml delete mode 100644 ncomp-maven-sirius-project/src/main/resources/archetype-resources/dcae-docker-manager:pom.xml create mode 100644 ncomp-maven-sirius-project/src/main/resources/archetype-resources/dcae-vm-manager%pom.xml delete mode 100644 ncomp-maven-sirius-project/src/main/resources/archetype-resources/dcae-vm-manager:pom.xml create mode 100644 ncomp-maven-sirius-project/src/main/resources/archetype-resources/src/main/server/scripts/adaptor%console.groovy delete mode 100644 ncomp-maven-sirius-project/src/main/resources/archetype-resources/src/main/server/scripts/adaptor:console.groovy create mode 100644 ncomp-maven-sirius-project/src/main/resources/archetype-resources/src/main/server/scripts/dcae-cdap-service%console.groovy delete mode 100644 ncomp-maven-sirius-project/src/main/resources/archetype-resources/src/main/server/scripts/dcae-cdap-service:console.groovy create mode 100644 ncomp-maven-sirius-project/src/main/resources/archetype-resources/src/main/server/scripts/dcae-docker-service%console.groovy delete mode 100644 ncomp-maven-sirius-project/src/main/resources/archetype-resources/src/main/server/scripts/dcae-docker-service:console.groovy create mode 100644 ncomp-maven-sirius-project/src/main/resources/archetype-resources/src/main/server/scripts/dcae-vm-service%console.groovy delete mode 100644 ncomp-maven-sirius-project/src/main/resources/archetype-resources/src/main/server/scripts/dcae-vm-service:console.groovy create mode 100644 ncomp-maven-xcore-project/src/main/resources/archetype-resources/META-INF/adaptor%MANIFEST.MF delete mode 100644 ncomp-maven-xcore-project/src/main/resources/archetype-resources/META-INF/adaptor:MANIFEST.MF create mode 100644 ncomp-maven-xcore-project/src/main/resources/archetype-resources/META-INF/dcae-cdap-manager%MANIFEST.MF delete mode 100644 ncomp-maven-xcore-project/src/main/resources/archetype-resources/META-INF/dcae-cdap-manager:MANIFEST.MF create mode 100644 ncomp-maven-xcore-project/src/main/resources/archetype-resources/META-INF/dcae-docker-manager%MANIFEST.MF delete mode 100644 ncomp-maven-xcore-project/src/main/resources/archetype-resources/META-INF/dcae-docker-manager:MANIFEST.MF create mode 100644 ncomp-maven-xcore-project/src/main/resources/archetype-resources/META-INF/dcae-vm-manager%MANIFEST.MF delete mode 100644 ncomp-maven-xcore-project/src/main/resources/archetype-resources/META-INF/dcae-vm-manager:MANIFEST.MF create mode 100644 ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-cdap-manager%plugin.xml create mode 100644 ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-cdap-manager%pom.xml delete mode 100644 ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-cdap-manager:plugin.xml delete mode 100644 ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-cdap-manager:pom.xml create mode 100644 ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-docker-manager%plugin.xml create mode 100644 ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-docker-manager%pom.xml delete mode 100644 ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-docker-manager:plugin.xml delete mode 100644 ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-docker-manager:pom.xml create mode 100644 ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-vm-manager%plugin.xml create mode 100644 ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-vm-manager%pom.xml delete mode 100644 ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-vm-manager:plugin.xml delete mode 100644 ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-vm-manager:pom.xml create mode 100644 ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/adaptor%adaptor.xcore delete mode 100644 ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/adaptor:adaptor.xcore create mode 100644 ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-cdap-manager%manager.xcore create mode 100644 ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-cdap-manager%service.xcore delete mode 100644 ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-cdap-manager:manager.xcore delete mode 100644 ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-cdap-manager:service.xcore create mode 100644 ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-docker-manager%manager.xcore create mode 100644 ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-docker-manager%service.xcore delete mode 100644 ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-docker-manager:manager.xcore delete mode 100644 ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-docker-manager:service.xcore create mode 100644 ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-vm-manager%manager.xcore create mode 100644 ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-vm-manager%service.xcore delete mode 100644 ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-vm-manager:manager.xcore delete mode 100644 ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-vm-manager:service.xcore create mode 100644 ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/server%server.xcore delete mode 100644 ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/server:server.xcore diff --git a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/META-INF/adaptor%MANIFEST.MF b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/META-INF/adaptor%MANIFEST.MF new file mode 100644 index 0000000..0fcefb1 --- /dev/null +++ b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/META-INF/adaptor%MANIFEST.MF @@ -0,0 +1,14 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: NCOMPNAME-PPPP-QQQQ +Bundle-SymbolicName: NCOMPNAME-PPPP-QQQQ +Bundle-Version: 0.1.0.qualifier +Export-Package: NCOMPBASE.SSSS.TTTT.tools, + NCOMPBASE.servers.SSSS +Require-Bundle: ncomp-core-types, + ncomp-sirius-manager-model, + ncomp-sirius-manager-server, + ncomp-sirius-manager-console, + ncomp-sirius-manager-generator, + NCOMPNAME-PPPP-model;bundle-version="0.1.0", + ncomp-utils-java;bundle-version="0.1.0" diff --git a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/META-INF/adaptor:MANIFEST.MF b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/META-INF/adaptor:MANIFEST.MF deleted file mode 100644 index 0fcefb1..0000000 --- a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/META-INF/adaptor:MANIFEST.MF +++ /dev/null @@ -1,14 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: NCOMPNAME-PPPP-QQQQ -Bundle-SymbolicName: NCOMPNAME-PPPP-QQQQ -Bundle-Version: 0.1.0.qualifier -Export-Package: NCOMPBASE.SSSS.TTTT.tools, - NCOMPBASE.servers.SSSS -Require-Bundle: ncomp-core-types, - ncomp-sirius-manager-model, - ncomp-sirius-manager-server, - ncomp-sirius-manager-console, - ncomp-sirius-manager-generator, - NCOMPNAME-PPPP-model;bundle-version="0.1.0", - ncomp-utils-java;bundle-version="0.1.0" diff --git a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/META-INF/dcae-cdap-manager%MANIFEST.MF b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/META-INF/dcae-cdap-manager%MANIFEST.MF new file mode 100644 index 0000000..d9e0351 --- /dev/null +++ b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/META-INF/dcae-cdap-manager%MANIFEST.MF @@ -0,0 +1,14 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: NCOMPNAME-PPPP-QQQQ +Bundle-SymbolicName: NCOMPNAME-PPPP-QQQQ +Bundle-Version: 0.1.0.qualifier +Export-Package: NCOMPBASE.SSSS.TTTT.tools, + NCOMPBASE.SSSS.servers.TTTT +Require-Bundle: ncomp-core-types, + ncomp-sirius-manager-model, + ncomp-sirius-manager-server, + ncomp-sirius-manager-console, + ncomp-sirius-manager-generator, + NCOMPNAME-PPPP-model;bundle-version="0.1.0", + ncomp-utils-java;bundle-version="0.1.0" diff --git a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/META-INF/dcae-cdap-manager:MANIFEST.MF b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/META-INF/dcae-cdap-manager:MANIFEST.MF deleted file mode 100644 index d9e0351..0000000 --- a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/META-INF/dcae-cdap-manager:MANIFEST.MF +++ /dev/null @@ -1,14 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: NCOMPNAME-PPPP-QQQQ -Bundle-SymbolicName: NCOMPNAME-PPPP-QQQQ -Bundle-Version: 0.1.0.qualifier -Export-Package: NCOMPBASE.SSSS.TTTT.tools, - NCOMPBASE.SSSS.servers.TTTT -Require-Bundle: ncomp-core-types, - ncomp-sirius-manager-model, - ncomp-sirius-manager-server, - ncomp-sirius-manager-console, - ncomp-sirius-manager-generator, - NCOMPNAME-PPPP-model;bundle-version="0.1.0", - ncomp-utils-java;bundle-version="0.1.0" diff --git a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/META-INF/dcae-docker-manager%MANIFEST.MF b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/META-INF/dcae-docker-manager%MANIFEST.MF new file mode 100644 index 0000000..d9e0351 --- /dev/null +++ b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/META-INF/dcae-docker-manager%MANIFEST.MF @@ -0,0 +1,14 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: NCOMPNAME-PPPP-QQQQ +Bundle-SymbolicName: NCOMPNAME-PPPP-QQQQ +Bundle-Version: 0.1.0.qualifier +Export-Package: NCOMPBASE.SSSS.TTTT.tools, + NCOMPBASE.SSSS.servers.TTTT +Require-Bundle: ncomp-core-types, + ncomp-sirius-manager-model, + ncomp-sirius-manager-server, + ncomp-sirius-manager-console, + ncomp-sirius-manager-generator, + NCOMPNAME-PPPP-model;bundle-version="0.1.0", + ncomp-utils-java;bundle-version="0.1.0" diff --git a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/META-INF/dcae-docker-manager:MANIFEST.MF b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/META-INF/dcae-docker-manager:MANIFEST.MF deleted file mode 100644 index d9e0351..0000000 --- a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/META-INF/dcae-docker-manager:MANIFEST.MF +++ /dev/null @@ -1,14 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: NCOMPNAME-PPPP-QQQQ -Bundle-SymbolicName: NCOMPNAME-PPPP-QQQQ -Bundle-Version: 0.1.0.qualifier -Export-Package: NCOMPBASE.SSSS.TTTT.tools, - NCOMPBASE.SSSS.servers.TTTT -Require-Bundle: ncomp-core-types, - ncomp-sirius-manager-model, - ncomp-sirius-manager-server, - ncomp-sirius-manager-console, - ncomp-sirius-manager-generator, - NCOMPNAME-PPPP-model;bundle-version="0.1.0", - ncomp-utils-java;bundle-version="0.1.0" diff --git a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/META-INF/dcae-vm-manager%MANIFEST.MF b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/META-INF/dcae-vm-manager%MANIFEST.MF new file mode 100644 index 0000000..d9e0351 --- /dev/null +++ b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/META-INF/dcae-vm-manager%MANIFEST.MF @@ -0,0 +1,14 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: NCOMPNAME-PPPP-QQQQ +Bundle-SymbolicName: NCOMPNAME-PPPP-QQQQ +Bundle-Version: 0.1.0.qualifier +Export-Package: NCOMPBASE.SSSS.TTTT.tools, + NCOMPBASE.SSSS.servers.TTTT +Require-Bundle: ncomp-core-types, + ncomp-sirius-manager-model, + ncomp-sirius-manager-server, + ncomp-sirius-manager-console, + ncomp-sirius-manager-generator, + NCOMPNAME-PPPP-model;bundle-version="0.1.0", + ncomp-utils-java;bundle-version="0.1.0" diff --git a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/META-INF/dcae-vm-manager:MANIFEST.MF b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/META-INF/dcae-vm-manager:MANIFEST.MF deleted file mode 100644 index d9e0351..0000000 --- a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/META-INF/dcae-vm-manager:MANIFEST.MF +++ /dev/null @@ -1,14 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: NCOMPNAME-PPPP-QQQQ -Bundle-SymbolicName: NCOMPNAME-PPPP-QQQQ -Bundle-Version: 0.1.0.qualifier -Export-Package: NCOMPBASE.SSSS.TTTT.tools, - NCOMPBASE.SSSS.servers.TTTT -Require-Bundle: ncomp-core-types, - ncomp-sirius-manager-model, - ncomp-sirius-manager-server, - ncomp-sirius-manager-console, - ncomp-sirius-manager-generator, - NCOMPNAME-PPPP-model;bundle-version="0.1.0", - ncomp-utils-java;bundle-version="0.1.0" diff --git a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/adaptor%Generator.java b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/adaptor%Generator.java new file mode 100644 index 0000000..cf1b251 --- /dev/null +++ b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/adaptor%Generator.java @@ -0,0 +1,67 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +package NCOMPBASE.SSSS.TTTT.tools; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; + +import org.openecomp.ncomp.sirius.manager.controllermodel.ControllerModel; +import org.openecomp.ncomp.sirius.manager.controllermodel.ControllermodelFactory; +import org.openecomp.ncomp.sirius.manager.generator.ControllerGenerator; +import org.openecomp.ncomp.gwt.siriusportal.model.*; +import org.openecomp.ncomp.sirius.manager.server.ServerPackage; +import NCOMPBASE.SSSS.AAAAFactory; + + +public class Generator { + + /** + * @param args + */ + public static void main(String[] args) { + @SuppressWarnings("unused") + ServerPackage f = ServerPackage.eINSTANCE; + EObject o = AAAAFactory.eINSTANCE.createAAAAAdaptor(); + EPackage p = o.eClass().getEPackage(); + String dir = p.getNsURI().replaceAll(p.getNsPrefix()+'$',"") + "servers." + p.getNsPrefix(); + dir= "src/main/sirius-gen/" + dir.replace('.', '/'); + ControllerModel m = ControllermodelFactory.eINSTANCE.createControllerModel(); + m.setTemplateDirectory("../../dcae-org.openecomp.ncomp.sirius.manager/ncomp-sirius-manager-generator/src/main/templates"); + m.setPrefix("PREFIXXXX"); + m.setPluginName(p.getNsURI()); + m.setName("AAAA"); + m.setTitle("AAAA"); + ControllerGenerator g = new ControllerGenerator(o,m); + g.setEnableIRequestHandler(false); + g.setEnableISiriusPlugin(false); + EObject gui = ModelFactory.eINSTANCE.createGuiClientApi(); + g.addObject("gui",gui,m); + //EObject e = ZZZZFactory.eINSTANCE.createVpnEnterprise(); + //g.addApi("e",e,m); + //g.addFactory("org.openecomp.ncomp.sirius.servers.openstack.OsOpenstackFactory"); + //g.enableDrools(); + g.generate(dir); + g.generateScripts("src/main/server-gen/bin","PPPP-QQQQ"); + } + + +} diff --git a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/adaptor:Generator.java b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/adaptor:Generator.java deleted file mode 100644 index cf1b251..0000000 --- a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/adaptor:Generator.java +++ /dev/null @@ -1,67 +0,0 @@ - -/*- - * ============LICENSE_START========================================== - * OPENECOMP - DCAE - * =================================================================== - * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. - * =================================================================== - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END============================================ - */ - -package NCOMPBASE.SSSS.TTTT.tools; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; - -import org.openecomp.ncomp.sirius.manager.controllermodel.ControllerModel; -import org.openecomp.ncomp.sirius.manager.controllermodel.ControllermodelFactory; -import org.openecomp.ncomp.sirius.manager.generator.ControllerGenerator; -import org.openecomp.ncomp.gwt.siriusportal.model.*; -import org.openecomp.ncomp.sirius.manager.server.ServerPackage; -import NCOMPBASE.SSSS.AAAAFactory; - - -public class Generator { - - /** - * @param args - */ - public static void main(String[] args) { - @SuppressWarnings("unused") - ServerPackage f = ServerPackage.eINSTANCE; - EObject o = AAAAFactory.eINSTANCE.createAAAAAdaptor(); - EPackage p = o.eClass().getEPackage(); - String dir = p.getNsURI().replaceAll(p.getNsPrefix()+'$',"") + "servers." + p.getNsPrefix(); - dir= "src/main/sirius-gen/" + dir.replace('.', '/'); - ControllerModel m = ControllermodelFactory.eINSTANCE.createControllerModel(); - m.setTemplateDirectory("../../dcae-org.openecomp.ncomp.sirius.manager/ncomp-sirius-manager-generator/src/main/templates"); - m.setPrefix("PREFIXXXX"); - m.setPluginName(p.getNsURI()); - m.setName("AAAA"); - m.setTitle("AAAA"); - ControllerGenerator g = new ControllerGenerator(o,m); - g.setEnableIRequestHandler(false); - g.setEnableISiriusPlugin(false); - EObject gui = ModelFactory.eINSTANCE.createGuiClientApi(); - g.addObject("gui",gui,m); - //EObject e = ZZZZFactory.eINSTANCE.createVpnEnterprise(); - //g.addApi("e",e,m); - //g.addFactory("org.openecomp.ncomp.sirius.servers.openstack.OsOpenstackFactory"); - //g.enableDrools(); - g.generate(dir); - g.generateScripts("src/main/server-gen/bin","PPPP-QQQQ"); - } - - -} diff --git a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-cdap-manager%Generator.java b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-cdap-manager%Generator.java new file mode 100644 index 0000000..96e6864 --- /dev/null +++ b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-cdap-manager%Generator.java @@ -0,0 +1,88 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +package NCOMPBASE.SSSS.TTTT.tools; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; + +import org.openecomp.dcae.controller.service.cdap.CdapFactory; +import org.openecomp.ncomp.sirius.manager.controllermodel.ControllerModel; +import org.openecomp.ncomp.sirius.manager.controllermodel.ControllermodelFactory; +import org.openecomp.ncomp.sirius.manager.generator.ControllerGenerator; +import org.openecomp.ncomp.gwt.siriusportal.model.*; +import org.openecomp.ncomp.sirius.manager.server.ServerPackage; + +import NCOMPBASE.SSSS.service.ServiceFactory; +import NCOMPBASE.SSSS.manager.ManagerFactory; + +public class Generator { + + /** + * @param args + */ + public static void main(String[] args) { + @SuppressWarnings("unused") + ServerPackage f = ServerPackage.eINSTANCE; + genManager(); + genService(); + } + + public static void genManager() { + EObject o = ManagerFactory.eINSTANCE.createAAAAManager(); + EPackage p = o.eClass().getEPackage(); + String dir = p.getNsURI().replaceAll(p.getNsPrefix()+'$',"") + "servers." + p.getNsPrefix(); + dir = "src/main/sirius-gen/" + dir.replace('.', '/'); + ControllerModel m = ControllermodelFactory.eINSTANCE.createControllerModel(); + m.setTemplateDirectory("../../dcae-org.openecomp.ncomp.sirius.manager/ncomp-sirius-manager-generator/src/main/templates"); + m.setPrefix("Dcae"); + m.setPluginName(p.getNsURI()); + m.setName("AAAAManager"); + m.setTitle("AAAAManager"); + ControllerGenerator g = new ControllerGenerator(o, m); + g.setEnableIRequestHandler(false); + g.setEnableISiriusPlugin(false); + g.addFactory(ServiceFactory.eINSTANCE); + EObject gui = ModelFactory.eINSTANCE.createGuiClientApi(); + g.addObject("gui", gui, m); + g.generate(dir); + g.generateScripts("src/main/server-gen/bin", "PPPP-QQQQ"); + } + + public static void genService() { + EObject o = ServiceFactory.eINSTANCE.createAAAAService(); + EPackage p = o.eClass().getEPackage(); + String dir = p.getNsURI().replaceAll(p.getNsPrefix()+"$", "") + "servers." + p.getNsPrefix(); + dir = "src/main/sirius-gen/" + dir.replace('.', '/'); + ControllerModel m = ControllermodelFactory.eINSTANCE.createControllerModel(); + m.setTemplateDirectory("../../dcae-org.openecomp.ncomp.sirius.manager/ncomp-sirius-manager-generator/src/main/templates"); + m.setPrefix("Dcae"); + m.setPluginName(p.getNsURI()); + m.setName("AAAAService"); + m.setTitle("AAAAService"); + ControllerGenerator g = new ControllerGenerator(o, m); + g.setEnableIRequestHandler(false); + g.setEnableISiriusPlugin(true); + g.setProvider(CdapFactory.eINSTANCE.createCdapService(), "Dcae"); + g.generate(dir); + } + +} diff --git a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-cdap-manager:Generator.java b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-cdap-manager:Generator.java deleted file mode 100644 index 96e6864..0000000 --- a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-cdap-manager:Generator.java +++ /dev/null @@ -1,88 +0,0 @@ - -/*- - * ============LICENSE_START========================================== - * OPENECOMP - DCAE - * =================================================================== - * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. - * =================================================================== - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END============================================ - */ - -package NCOMPBASE.SSSS.TTTT.tools; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; - -import org.openecomp.dcae.controller.service.cdap.CdapFactory; -import org.openecomp.ncomp.sirius.manager.controllermodel.ControllerModel; -import org.openecomp.ncomp.sirius.manager.controllermodel.ControllermodelFactory; -import org.openecomp.ncomp.sirius.manager.generator.ControllerGenerator; -import org.openecomp.ncomp.gwt.siriusportal.model.*; -import org.openecomp.ncomp.sirius.manager.server.ServerPackage; - -import NCOMPBASE.SSSS.service.ServiceFactory; -import NCOMPBASE.SSSS.manager.ManagerFactory; - -public class Generator { - - /** - * @param args - */ - public static void main(String[] args) { - @SuppressWarnings("unused") - ServerPackage f = ServerPackage.eINSTANCE; - genManager(); - genService(); - } - - public static void genManager() { - EObject o = ManagerFactory.eINSTANCE.createAAAAManager(); - EPackage p = o.eClass().getEPackage(); - String dir = p.getNsURI().replaceAll(p.getNsPrefix()+'$',"") + "servers." + p.getNsPrefix(); - dir = "src/main/sirius-gen/" + dir.replace('.', '/'); - ControllerModel m = ControllermodelFactory.eINSTANCE.createControllerModel(); - m.setTemplateDirectory("../../dcae-org.openecomp.ncomp.sirius.manager/ncomp-sirius-manager-generator/src/main/templates"); - m.setPrefix("Dcae"); - m.setPluginName(p.getNsURI()); - m.setName("AAAAManager"); - m.setTitle("AAAAManager"); - ControllerGenerator g = new ControllerGenerator(o, m); - g.setEnableIRequestHandler(false); - g.setEnableISiriusPlugin(false); - g.addFactory(ServiceFactory.eINSTANCE); - EObject gui = ModelFactory.eINSTANCE.createGuiClientApi(); - g.addObject("gui", gui, m); - g.generate(dir); - g.generateScripts("src/main/server-gen/bin", "PPPP-QQQQ"); - } - - public static void genService() { - EObject o = ServiceFactory.eINSTANCE.createAAAAService(); - EPackage p = o.eClass().getEPackage(); - String dir = p.getNsURI().replaceAll(p.getNsPrefix()+"$", "") + "servers." + p.getNsPrefix(); - dir = "src/main/sirius-gen/" + dir.replace('.', '/'); - ControllerModel m = ControllermodelFactory.eINSTANCE.createControllerModel(); - m.setTemplateDirectory("../../dcae-org.openecomp.ncomp.sirius.manager/ncomp-sirius-manager-generator/src/main/templates"); - m.setPrefix("Dcae"); - m.setPluginName(p.getNsURI()); - m.setName("AAAAService"); - m.setTitle("AAAAService"); - ControllerGenerator g = new ControllerGenerator(o, m); - g.setEnableIRequestHandler(false); - g.setEnableISiriusPlugin(true); - g.setProvider(CdapFactory.eINSTANCE.createCdapService(), "Dcae"); - g.generate(dir); - } - -} diff --git a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-docker-manager%Generator.java b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-docker-manager%Generator.java new file mode 100644 index 0000000..88766ec --- /dev/null +++ b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-docker-manager%Generator.java @@ -0,0 +1,99 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +package NCOMPBASE.SSSS.TTTT.tools; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; + +import org.openecomp.dcae.controller.service.docker.DockerFactory; +import org.openecomp.dcae.controller.service.dockermanager.DockermanagerFactory; +import org.openecomp.ncomp.sirius.manager.controllermodel.ControllerModel; +import org.openecomp.ncomp.sirius.manager.controllermodel.ControllermodelFactory; +import org.openecomp.ncomp.sirius.manager.generator.ControllerGenerator; +import org.openecomp.ncomp.gwt.siriusportal.model.*; +import org.openecomp.ncomp.sirius.manager.server.ServerPackage; + +import NCOMPBASE.SSSS.service.ServiceFactory; +import NCOMPBASE.SSSS.manager.ManagerFactory; + +import org.openecomp.utils.YamlToJava; + +public class Generator { + + /** + * @param args + */ + public static void main(String[] args) { + @SuppressWarnings("unused") + ServerPackage f = ServerPackage.eINSTANCE; + genManager(); + genService(); + } + + public static void genManager() { + EObject o = ManagerFactory.eINSTANCE.createAAAAManager(); + EPackage p = o.eClass().getEPackage(); + String dir = p.getNsURI().replaceAll(p.getNsPrefix()+'$',"") + "servers." + p.getNsPrefix(); + dir = "src/main/sirius-gen/" + dir.replace('.', '/'); + ControllerModel m = ControllermodelFactory.eINSTANCE.createControllerModel(); + m.setTemplateDirectory("../../dcae-org.openecomp.ncomp.sirius.manager/ncomp-sirius-manager-generator/src/main/templates"); + m.setPrefix("Dcae"); + m.setPluginName(p.getNsURI()); + m.setName("AAAAManager"); + m.setTitle("AAAAManager"); + ControllerGenerator g = new ControllerGenerator(o, m); + g.setEnableIRequestHandler(false); + g.setEnableISiriusPlugin(false); + g.addFactory(ServiceFactory.eINSTANCE); + EObject gui = ModelFactory.eINSTANCE.createGuiClientApi(); + g.addObject("gui", gui, m); + g.setProvider(DockermanagerFactory.eINSTANCE.createDockerManager(), "Dcae"); + g.generate(dir); + g.generateScripts("src/main/server-gen/bin", "PPPP-QQQQ"); + String pName = p.getNsURI().replaceAll(p.getNsPrefix()+'$',"") + "servers." + p.getNsPrefix() +".logging"; + YamlToJava.convert("src/main/sirius-gen/AAAAManager.yaml", dir + "/logging", pName); + String pName1 = p.getNsURI().replaceAll(p.getNsPrefix()+'$',"") + "servers." + p.getNsPrefix() +".gui.logging"; + YamlToJava.convert("src/main/sirius-gen/GuiClientApi.yaml", dir + "/gui/logging", pName1); + + } + + public static void genService() { + EObject o = ServiceFactory.eINSTANCE.createAAAAService(); + EPackage p = o.eClass().getEPackage(); + String dir = p.getNsURI().replaceAll(p.getNsPrefix()+"$", "") + "servers." + p.getNsPrefix(); + dir = "src/main/sirius-gen/" + dir.replace('.', '/'); + ControllerModel m = ControllermodelFactory.eINSTANCE.createControllerModel(); + m.setTemplateDirectory("../../dcae-org.openecomp.ncomp.sirius.manager/ncomp-sirius-manager-generator/src/main/templates"); + m.setPrefix("Dcae"); + m.setPluginName(p.getNsURI()); + m.setName("AAAAService"); + m.setTitle("AAAAService"); + ControllerGenerator g = new ControllerGenerator(o, m); + g.setEnableIRequestHandler(false); + g.setEnableISiriusPlugin(true); + g.setProvider(DockerFactory.eINSTANCE.createDockerService(), "Dcae"); + g.generate(dir); + String pName = p.getNsURI().replaceAll(p.getNsPrefix()+'$',"") + "servers." + p.getNsPrefix() +".logging"; + YamlToJava.convert("src/main/sirius-gen/AAAAService.yaml", dir + "/logging", pName); + } + +} diff --git a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-docker-manager:Generator.java b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-docker-manager:Generator.java deleted file mode 100644 index 88766ec..0000000 --- a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-docker-manager:Generator.java +++ /dev/null @@ -1,99 +0,0 @@ - -/*- - * ============LICENSE_START========================================== - * OPENECOMP - DCAE - * =================================================================== - * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. - * =================================================================== - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END============================================ - */ - -package NCOMPBASE.SSSS.TTTT.tools; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; - -import org.openecomp.dcae.controller.service.docker.DockerFactory; -import org.openecomp.dcae.controller.service.dockermanager.DockermanagerFactory; -import org.openecomp.ncomp.sirius.manager.controllermodel.ControllerModel; -import org.openecomp.ncomp.sirius.manager.controllermodel.ControllermodelFactory; -import org.openecomp.ncomp.sirius.manager.generator.ControllerGenerator; -import org.openecomp.ncomp.gwt.siriusportal.model.*; -import org.openecomp.ncomp.sirius.manager.server.ServerPackage; - -import NCOMPBASE.SSSS.service.ServiceFactory; -import NCOMPBASE.SSSS.manager.ManagerFactory; - -import org.openecomp.utils.YamlToJava; - -public class Generator { - - /** - * @param args - */ - public static void main(String[] args) { - @SuppressWarnings("unused") - ServerPackage f = ServerPackage.eINSTANCE; - genManager(); - genService(); - } - - public static void genManager() { - EObject o = ManagerFactory.eINSTANCE.createAAAAManager(); - EPackage p = o.eClass().getEPackage(); - String dir = p.getNsURI().replaceAll(p.getNsPrefix()+'$',"") + "servers." + p.getNsPrefix(); - dir = "src/main/sirius-gen/" + dir.replace('.', '/'); - ControllerModel m = ControllermodelFactory.eINSTANCE.createControllerModel(); - m.setTemplateDirectory("../../dcae-org.openecomp.ncomp.sirius.manager/ncomp-sirius-manager-generator/src/main/templates"); - m.setPrefix("Dcae"); - m.setPluginName(p.getNsURI()); - m.setName("AAAAManager"); - m.setTitle("AAAAManager"); - ControllerGenerator g = new ControllerGenerator(o, m); - g.setEnableIRequestHandler(false); - g.setEnableISiriusPlugin(false); - g.addFactory(ServiceFactory.eINSTANCE); - EObject gui = ModelFactory.eINSTANCE.createGuiClientApi(); - g.addObject("gui", gui, m); - g.setProvider(DockermanagerFactory.eINSTANCE.createDockerManager(), "Dcae"); - g.generate(dir); - g.generateScripts("src/main/server-gen/bin", "PPPP-QQQQ"); - String pName = p.getNsURI().replaceAll(p.getNsPrefix()+'$',"") + "servers." + p.getNsPrefix() +".logging"; - YamlToJava.convert("src/main/sirius-gen/AAAAManager.yaml", dir + "/logging", pName); - String pName1 = p.getNsURI().replaceAll(p.getNsPrefix()+'$',"") + "servers." + p.getNsPrefix() +".gui.logging"; - YamlToJava.convert("src/main/sirius-gen/GuiClientApi.yaml", dir + "/gui/logging", pName1); - - } - - public static void genService() { - EObject o = ServiceFactory.eINSTANCE.createAAAAService(); - EPackage p = o.eClass().getEPackage(); - String dir = p.getNsURI().replaceAll(p.getNsPrefix()+"$", "") + "servers." + p.getNsPrefix(); - dir = "src/main/sirius-gen/" + dir.replace('.', '/'); - ControllerModel m = ControllermodelFactory.eINSTANCE.createControllerModel(); - m.setTemplateDirectory("../../dcae-org.openecomp.ncomp.sirius.manager/ncomp-sirius-manager-generator/src/main/templates"); - m.setPrefix("Dcae"); - m.setPluginName(p.getNsURI()); - m.setName("AAAAService"); - m.setTitle("AAAAService"); - ControllerGenerator g = new ControllerGenerator(o, m); - g.setEnableIRequestHandler(false); - g.setEnableISiriusPlugin(true); - g.setProvider(DockerFactory.eINSTANCE.createDockerService(), "Dcae"); - g.generate(dir); - String pName = p.getNsURI().replaceAll(p.getNsPrefix()+'$',"") + "servers." + p.getNsPrefix() +".logging"; - YamlToJava.convert("src/main/sirius-gen/AAAAService.yaml", dir + "/logging", pName); - } - -} diff --git a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-vm-manager%Generator.java b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-vm-manager%Generator.java new file mode 100644 index 0000000..fa08130 --- /dev/null +++ b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-vm-manager%Generator.java @@ -0,0 +1,91 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +package NCOMPBASE.SSSS.manager.tools; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; + +import org.openecomp.dcae.controller.service.vm.VmFactory; +import org.openecomp.ncomp.sirius.manager.controllermodel.ControllerModel; +import org.openecomp.ncomp.sirius.manager.controllermodel.ControllermodelFactory; +import org.openecomp.ncomp.sirius.manager.generator.ControllerGenerator; +import org.openecomp.ncomp.gwt.siriusportal.model.*; +import org.openecomp.ncomp.sirius.manager.server.ServerPackage; +import org.openecomp.dcae.controller.service.vmmanager.VmmanagerFactory; + +import NCOMPBASE.SSSS.service.ServiceFactory; +import NCOMPBASE.SSSS.manager.ManagerFactory; + +public class Generator { + + /** + * @param args + */ + public static void main(String[] args) { + @SuppressWarnings("unused") + ServerPackage f = ServerPackage.eINSTANCE; + genManager(); + genService(); + } + + public static void genManager() { + EObject o = ManagerFactory.eINSTANCE.createAAAAManager(); + EPackage p = o.eClass().getEPackage(); + String dir = p.getNsURI().replaceAll(p.getNsPrefix()+'$',"") + "servers." + p.getNsPrefix(); + dir = "src/main/sirius-gen/" + dir.replace('.', '/'); + ControllerModel m = ControllermodelFactory.eINSTANCE.createControllerModel(); + m.setTemplateDirectory("../../dcae-org.openecomp.ncomp.sirius.manager/ncomp-sirius-manager-generator/src/main/templates"); + m.setPrefix("Dcae"); + m.setPluginName(p.getNsURI()); + m.setName("AAAAManager"); + m.setTitle("AAAAManager"); + ControllerGenerator g = new ControllerGenerator(o, m); + g.setEnableIRequestHandler(false); + g.setEnableISiriusPlugin(false); + g.addFactory(ServiceFactory.eINSTANCE); + EObject gui = ModelFactory.eINSTANCE.createGuiClientApi(); + g.addObject("gui", gui, m); + g.setProvider(VmmanagerFactory.eINSTANCE.createVirtualMachineManager(), "Dcae"); + g.generate(dir); + g.generateScripts("src/main/server-gen/bin", "PPPP-QQQQ"); + } + + public static void genService() { + EObject o = ServiceFactory.eINSTANCE.createAAAAService(); + EPackage p = o.eClass().getEPackage(); + String dir = p.getNsURI().replaceAll(p.getNsPrefix()+"$", "") + "servers." + p.getNsPrefix(); + dir = "src/main/sirius-gen/" + dir.replace('.', '/'); + ControllerModel m = ControllermodelFactory.eINSTANCE.createControllerModel(); + m.setTemplateDirectory("../../dcae-org.openecomp.ncomp.sirius.manager/ncomp-sirius-manager-generator/src/main/templates"); + m.setPrefix("Dcae"); + m.setPluginName(p.getNsURI()); + m.setName("AAAAService"); + m.setTitle("AAAAService"); + ControllerGenerator g = new ControllerGenerator(o, m); + g.setEnableIRequestHandler(false); + g.setEnableISiriusPlugin(true); + g.addFactory(ServiceFactory.eINSTANCE); + g.setProvider(VmFactory.eINSTANCE.createVirtualMachineService(), "Dcae"); + g.generate(dir); + } + +} diff --git a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-vm-manager%TestManager.java b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-vm-manager%TestManager.java new file mode 100644 index 0000000..fdc4f7f --- /dev/null +++ b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-vm-manager%TestManager.java @@ -0,0 +1,75 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +package NCOMPBASE.SSSS.manager.tools; + +import java.io.IOException; + +import org.json.JSONObject; + +import NCOMPBASE.SSSS.manager.AAAAManager; +import NCOMPBASE.SSSS.manager.ManagerFactory; +import NCOMPBASE.SSSS.servers.manager.DcaeManagerFactory; +import NCOMPBASE.SSSS.servers.service.DcaeServiceFactory; +import NCOMPBASE.SSSS.service.ContrailController; +import NCOMPBASE.SSSS.service.ServiceFactory; +import org.openecomp.ncomp.sirius.manager.ISiriusServer; +import org.openecomp.ncomp.sirius.manager.ManagementServer; + +// Testing manager from inside standard Java Process +// Manager process and Test Process in the same Java JVM in the same thread +public class TestManager implements ISiriusServer { + + public static void main(String[] args) throws IOException { + TestManager t = new TestManager(); + t.test(); + } + + private ManagementServer server; + + public void test() throws IOException { + server = new ManagementServer(null, null, null, "manager.properties"); + ManagerFactory f1 = new DcaeManagerFactory(this); + server.addFactory(f1); + AAAAManager m = f1.createAAAAManager(); + server.setObject(m); + server.start(); + // Start interacting with the manager. + ServiceFactory f2 = new DcaeServiceFactory(this); + ContrailController x = f2.createContrailController(); + x.setContrailIp("1.2.3.4"); + x.setName("local1"); + m.getLocalControllers().add(x); + JSONObject j = ManagementServer.ecore2json(m, 100, null, true); + System.err.println(j.toString(2)); + x.setContrailIp("1.2.3.5"); + j = ManagementServer.ecore2json(m, 100, null, true); + System.err.println(j.toString(2)); + m.restart(); + m.hello_manager("hi"); + } + + @Override + public ManagementServer getServer() { + return server; + } + +} diff --git a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-vm-manager%TestManagerServer.java b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-vm-manager%TestManagerServer.java new file mode 100644 index 0000000..c054073 --- /dev/null +++ b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-vm-manager%TestManagerServer.java @@ -0,0 +1,90 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +package NCOMPBASE.SSSS.manager.tools; + +import java.io.File; +import java.io.IOException; +import java.util.TimeZone; + +import org.json.JSONObject; + +import NCOMPBASE.SSSS.servers.manager.DcaeAAAAManagerConsole; +import NCOMPBASE.SSSS.servers.manager.DcaeAAAAManagerServer; +import NCOMPBASE.SSSS.servers.service.DcaeServiceFactory; +import NCOMPBASE.SSSS.service.ContrailController; +import NCOMPBASE.SSSS.service.ServiceFactory; +import org.openecomp.ncomp.sirius.manager.ISiriusServer; +import org.openecomp.ncomp.sirius.manager.ManagementServer; +import org.openecomp.ncomp.webservice.utils.FileUtils; + +// Testing manager from inside standard Java Process +// Manager process and Test Process in the same Java JVM in the different threads +// Manager thread is starting HTTP server end point. +// Testing thread (or other external clients) can use the manager. +public class TestManagerServer implements ISiriusServer { + + public static void main(String[] args) throws IOException { + TestManagerServer t = new TestManagerServer(); + t.test(); + } + + private ManagementServer server; + + public void test() throws IOException { + TimeZone.setDefault(TimeZone.getTimeZone("GMT")); + FileUtils.deleteDirectory(new File("data")); + final DcaeAAAAManagerServer s = new DcaeAAAAManagerServer( + "manager.properties"); + Thread t = new Thread("AAAA host server") { + @Override + public void run() { + try { + s.runWebserver(); + } catch (IOException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + }; + t.start(); + DcaeAAAAManagerConsole c = + new DcaeAAAAManagerConsole("console.properties", "localhost"); + // ManagerFactory f1 = new DcaeManagerFactory(this); + ServiceFactory f2 = new DcaeServiceFactory(this); + ContrailController x = f2.createContrailController(); + x.setContrailIp("1.2.3.4"); + c.create("/localControllers/local1", x); + JSONObject j = (JSONObject) c.list("/", 100); + System.err.println(j.toString(2)); + x.setContrailIp("1.2.3.5"); + c.update("/localControllers/local1", x); + j = (JSONObject) c.list("/", 100); + System.err.println(j.toString(2)); + c.restart(); + c.hello_manager("hi"); + } + + public ManagementServer getServer() { + return server; + } + +} diff --git a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-vm-manager%TestServiceToManager.java b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-vm-manager%TestServiceToManager.java new file mode 100644 index 0000000..2a66c5a --- /dev/null +++ b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-vm-manager%TestServiceToManager.java @@ -0,0 +1,50 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +package NCOMPBASE.SSSS.manager.tools; + +import NCOMPBASE.SSSS.servers.service.DcaeServiceFactory; +import NCOMPBASE.SSSS.service.AAAAService; +import NCOMPBASE.SSSS.service.AAAAServiceInstance; +import NCOMPBASE.SSSS.service.ServiceFactory; +import org.openecomp.dcae.controller.service.vm.PhysicalMachine; +import org.openecomp.dcae.controller.service.vm.VmFactory; + +// Testing service from inside standard Java Process +// This connects to a manager server +public class TestServiceToManager { + + public static void main(String[] args) { + ServiceFactory f = new DcaeServiceFactory(null); + AAAAService s = f.createAAAAService(); + AAAAServiceInstance i = f.createAAAAServiceInstance(); + s.getInstances().add(i); + i.setName("myInstance"); + PhysicalMachine p = VmFactory.eINSTANCE.createPhysicalMachine(); + i.getServers().add(p); + // Setup connection parameters. + p.setPublicIp("localhost"); + p.setManagerPortNumber(9922); + s.pollManagerConfiguration("myInstance"); + // TODO more examples + } + +} diff --git a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-vm-manager:Generator.java b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-vm-manager:Generator.java deleted file mode 100644 index fa08130..0000000 --- a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-vm-manager:Generator.java +++ /dev/null @@ -1,91 +0,0 @@ - -/*- - * ============LICENSE_START========================================== - * OPENECOMP - DCAE - * =================================================================== - * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. - * =================================================================== - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END============================================ - */ - -package NCOMPBASE.SSSS.manager.tools; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; - -import org.openecomp.dcae.controller.service.vm.VmFactory; -import org.openecomp.ncomp.sirius.manager.controllermodel.ControllerModel; -import org.openecomp.ncomp.sirius.manager.controllermodel.ControllermodelFactory; -import org.openecomp.ncomp.sirius.manager.generator.ControllerGenerator; -import org.openecomp.ncomp.gwt.siriusportal.model.*; -import org.openecomp.ncomp.sirius.manager.server.ServerPackage; -import org.openecomp.dcae.controller.service.vmmanager.VmmanagerFactory; - -import NCOMPBASE.SSSS.service.ServiceFactory; -import NCOMPBASE.SSSS.manager.ManagerFactory; - -public class Generator { - - /** - * @param args - */ - public static void main(String[] args) { - @SuppressWarnings("unused") - ServerPackage f = ServerPackage.eINSTANCE; - genManager(); - genService(); - } - - public static void genManager() { - EObject o = ManagerFactory.eINSTANCE.createAAAAManager(); - EPackage p = o.eClass().getEPackage(); - String dir = p.getNsURI().replaceAll(p.getNsPrefix()+'$',"") + "servers." + p.getNsPrefix(); - dir = "src/main/sirius-gen/" + dir.replace('.', '/'); - ControllerModel m = ControllermodelFactory.eINSTANCE.createControllerModel(); - m.setTemplateDirectory("../../dcae-org.openecomp.ncomp.sirius.manager/ncomp-sirius-manager-generator/src/main/templates"); - m.setPrefix("Dcae"); - m.setPluginName(p.getNsURI()); - m.setName("AAAAManager"); - m.setTitle("AAAAManager"); - ControllerGenerator g = new ControllerGenerator(o, m); - g.setEnableIRequestHandler(false); - g.setEnableISiriusPlugin(false); - g.addFactory(ServiceFactory.eINSTANCE); - EObject gui = ModelFactory.eINSTANCE.createGuiClientApi(); - g.addObject("gui", gui, m); - g.setProvider(VmmanagerFactory.eINSTANCE.createVirtualMachineManager(), "Dcae"); - g.generate(dir); - g.generateScripts("src/main/server-gen/bin", "PPPP-QQQQ"); - } - - public static void genService() { - EObject o = ServiceFactory.eINSTANCE.createAAAAService(); - EPackage p = o.eClass().getEPackage(); - String dir = p.getNsURI().replaceAll(p.getNsPrefix()+"$", "") + "servers." + p.getNsPrefix(); - dir = "src/main/sirius-gen/" + dir.replace('.', '/'); - ControllerModel m = ControllermodelFactory.eINSTANCE.createControllerModel(); - m.setTemplateDirectory("../../dcae-org.openecomp.ncomp.sirius.manager/ncomp-sirius-manager-generator/src/main/templates"); - m.setPrefix("Dcae"); - m.setPluginName(p.getNsURI()); - m.setName("AAAAService"); - m.setTitle("AAAAService"); - ControllerGenerator g = new ControllerGenerator(o, m); - g.setEnableIRequestHandler(false); - g.setEnableISiriusPlugin(true); - g.addFactory(ServiceFactory.eINSTANCE); - g.setProvider(VmFactory.eINSTANCE.createVirtualMachineService(), "Dcae"); - g.generate(dir); - } - -} diff --git a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-vm-manager:TestManager.java b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-vm-manager:TestManager.java deleted file mode 100644 index fdc4f7f..0000000 --- a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-vm-manager:TestManager.java +++ /dev/null @@ -1,75 +0,0 @@ - -/*- - * ============LICENSE_START========================================== - * OPENECOMP - DCAE - * =================================================================== - * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. - * =================================================================== - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END============================================ - */ - -package NCOMPBASE.SSSS.manager.tools; - -import java.io.IOException; - -import org.json.JSONObject; - -import NCOMPBASE.SSSS.manager.AAAAManager; -import NCOMPBASE.SSSS.manager.ManagerFactory; -import NCOMPBASE.SSSS.servers.manager.DcaeManagerFactory; -import NCOMPBASE.SSSS.servers.service.DcaeServiceFactory; -import NCOMPBASE.SSSS.service.ContrailController; -import NCOMPBASE.SSSS.service.ServiceFactory; -import org.openecomp.ncomp.sirius.manager.ISiriusServer; -import org.openecomp.ncomp.sirius.manager.ManagementServer; - -// Testing manager from inside standard Java Process -// Manager process and Test Process in the same Java JVM in the same thread -public class TestManager implements ISiriusServer { - - public static void main(String[] args) throws IOException { - TestManager t = new TestManager(); - t.test(); - } - - private ManagementServer server; - - public void test() throws IOException { - server = new ManagementServer(null, null, null, "manager.properties"); - ManagerFactory f1 = new DcaeManagerFactory(this); - server.addFactory(f1); - AAAAManager m = f1.createAAAAManager(); - server.setObject(m); - server.start(); - // Start interacting with the manager. - ServiceFactory f2 = new DcaeServiceFactory(this); - ContrailController x = f2.createContrailController(); - x.setContrailIp("1.2.3.4"); - x.setName("local1"); - m.getLocalControllers().add(x); - JSONObject j = ManagementServer.ecore2json(m, 100, null, true); - System.err.println(j.toString(2)); - x.setContrailIp("1.2.3.5"); - j = ManagementServer.ecore2json(m, 100, null, true); - System.err.println(j.toString(2)); - m.restart(); - m.hello_manager("hi"); - } - - @Override - public ManagementServer getServer() { - return server; - } - -} diff --git a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-vm-manager:TestManagerServer.java b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-vm-manager:TestManagerServer.java deleted file mode 100644 index c054073..0000000 --- a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-vm-manager:TestManagerServer.java +++ /dev/null @@ -1,90 +0,0 @@ - -/*- - * ============LICENSE_START========================================== - * OPENECOMP - DCAE - * =================================================================== - * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. - * =================================================================== - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END============================================ - */ - -package NCOMPBASE.SSSS.manager.tools; - -import java.io.File; -import java.io.IOException; -import java.util.TimeZone; - -import org.json.JSONObject; - -import NCOMPBASE.SSSS.servers.manager.DcaeAAAAManagerConsole; -import NCOMPBASE.SSSS.servers.manager.DcaeAAAAManagerServer; -import NCOMPBASE.SSSS.servers.service.DcaeServiceFactory; -import NCOMPBASE.SSSS.service.ContrailController; -import NCOMPBASE.SSSS.service.ServiceFactory; -import org.openecomp.ncomp.sirius.manager.ISiriusServer; -import org.openecomp.ncomp.sirius.manager.ManagementServer; -import org.openecomp.ncomp.webservice.utils.FileUtils; - -// Testing manager from inside standard Java Process -// Manager process and Test Process in the same Java JVM in the different threads -// Manager thread is starting HTTP server end point. -// Testing thread (or other external clients) can use the manager. -public class TestManagerServer implements ISiriusServer { - - public static void main(String[] args) throws IOException { - TestManagerServer t = new TestManagerServer(); - t.test(); - } - - private ManagementServer server; - - public void test() throws IOException { - TimeZone.setDefault(TimeZone.getTimeZone("GMT")); - FileUtils.deleteDirectory(new File("data")); - final DcaeAAAAManagerServer s = new DcaeAAAAManagerServer( - "manager.properties"); - Thread t = new Thread("AAAA host server") { - @Override - public void run() { - try { - s.runWebserver(); - } catch (IOException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - } - }; - t.start(); - DcaeAAAAManagerConsole c = - new DcaeAAAAManagerConsole("console.properties", "localhost"); - // ManagerFactory f1 = new DcaeManagerFactory(this); - ServiceFactory f2 = new DcaeServiceFactory(this); - ContrailController x = f2.createContrailController(); - x.setContrailIp("1.2.3.4"); - c.create("/localControllers/local1", x); - JSONObject j = (JSONObject) c.list("/", 100); - System.err.println(j.toString(2)); - x.setContrailIp("1.2.3.5"); - c.update("/localControllers/local1", x); - j = (JSONObject) c.list("/", 100); - System.err.println(j.toString(2)); - c.restart(); - c.hello_manager("hi"); - } - - public ManagementServer getServer() { - return server; - } - -} diff --git a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-vm-manager:TestServiceToManager.java b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-vm-manager:TestServiceToManager.java deleted file mode 100644 index 2a66c5a..0000000 --- a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/TOOLS/dcae-vm-manager:TestServiceToManager.java +++ /dev/null @@ -1,50 +0,0 @@ - -/*- - * ============LICENSE_START========================================== - * OPENECOMP - DCAE - * =================================================================== - * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. - * =================================================================== - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END============================================ - */ - -package NCOMPBASE.SSSS.manager.tools; - -import NCOMPBASE.SSSS.servers.service.DcaeServiceFactory; -import NCOMPBASE.SSSS.service.AAAAService; -import NCOMPBASE.SSSS.service.AAAAServiceInstance; -import NCOMPBASE.SSSS.service.ServiceFactory; -import org.openecomp.dcae.controller.service.vm.PhysicalMachine; -import org.openecomp.dcae.controller.service.vm.VmFactory; - -// Testing service from inside standard Java Process -// This connects to a manager server -public class TestServiceToManager { - - public static void main(String[] args) { - ServiceFactory f = new DcaeServiceFactory(null); - AAAAService s = f.createAAAAService(); - AAAAServiceInstance i = f.createAAAAServiceInstance(); - s.getInstances().add(i); - i.setName("myInstance"); - PhysicalMachine p = VmFactory.eINSTANCE.createPhysicalMachine(); - i.getServers().add(p); - // Setup connection parameters. - p.setPublicIp("localhost"); - p.setManagerPortNumber(9922); - s.pollManagerConfiguration("myInstance"); - // TODO more examples - } - -} diff --git a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/dcae-cdap-manager%pom.xml b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/dcae-cdap-manager%pom.xml new file mode 100644 index 0000000..6b7040b --- /dev/null +++ b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/dcae-cdap-manager%pom.xml @@ -0,0 +1,143 @@ + + 4.0.0 + GNAMEEEE + NCOMPNAME-PPPP-QQQQ + + org.openecomp.ncomp.sirius.manager + ncomp-sirius-manager-base + 0.1.0-SNAPSHOT + + + + + + maven-assembly-plugin + 2.6 + + + zipfile + + single + + package + + false + ${project.artifactId}-${project.version} + + src/assembly/assemble_zip.xml + + + + + + + org.apache.maven.plugins + maven-dependency-plugin + 2.8 + + + copy-dependencies + + copy-dependencies + + prepare-package + + false + ${project.build.directory}/assembly/lib + false + true + true + false + false + false + org.opendaylight,com.brocade.odl + provided + + + + + + maven-resources-plugin + 2.6 + + + copy-version + + copy-resources + + validate + + ${basedir}/target/versions + + + src/main/resources/versions + + version.properties + + true + + + + + + copy-resources + + copy-resources + + validate + + ${basedir}/target/etc/bvc-extensions + + + src/main/resources/etc/bvc-extensions + + feature_config_template.cfg + feature_custom.install + + true + + + + + + + + org.codehaus.mojo + build-helper-maven-plugin + 1.10 + + + attach-artifacts + package + + attach-artifact + + + + + target/${project.artifactId}-${project.version}-runtime.zip + zip + runtime + + + + + + + + + + + + GNAMEEEE + MODELPROJECTNAME + 0.1.0-SNAPSHOT + + + org.openecomp.dcae.controller + dcae-controller-service-cdap-adaptor + 0.1.0-SNAPSHOT + + + diff --git a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/dcae-cdap-manager:pom.xml b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/dcae-cdap-manager:pom.xml deleted file mode 100644 index 6b7040b..0000000 --- a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/dcae-cdap-manager:pom.xml +++ /dev/null @@ -1,143 +0,0 @@ - - 4.0.0 - GNAMEEEE - NCOMPNAME-PPPP-QQQQ - - org.openecomp.ncomp.sirius.manager - ncomp-sirius-manager-base - 0.1.0-SNAPSHOT - - - - - - maven-assembly-plugin - 2.6 - - - zipfile - - single - - package - - false - ${project.artifactId}-${project.version} - - src/assembly/assemble_zip.xml - - - - - - - org.apache.maven.plugins - maven-dependency-plugin - 2.8 - - - copy-dependencies - - copy-dependencies - - prepare-package - - false - ${project.build.directory}/assembly/lib - false - true - true - false - false - false - org.opendaylight,com.brocade.odl - provided - - - - - - maven-resources-plugin - 2.6 - - - copy-version - - copy-resources - - validate - - ${basedir}/target/versions - - - src/main/resources/versions - - version.properties - - true - - - - - - copy-resources - - copy-resources - - validate - - ${basedir}/target/etc/bvc-extensions - - - src/main/resources/etc/bvc-extensions - - feature_config_template.cfg - feature_custom.install - - true - - - - - - - - org.codehaus.mojo - build-helper-maven-plugin - 1.10 - - - attach-artifacts - package - - attach-artifact - - - - - target/${project.artifactId}-${project.version}-runtime.zip - zip - runtime - - - - - - - - - - - - GNAMEEEE - MODELPROJECTNAME - 0.1.0-SNAPSHOT - - - org.openecomp.dcae.controller - dcae-controller-service-cdap-adaptor - 0.1.0-SNAPSHOT - - - diff --git a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/dcae-docker-manager%pom.xml b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/dcae-docker-manager%pom.xml new file mode 100644 index 0000000..3f62af3 --- /dev/null +++ b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/dcae-docker-manager%pom.xml @@ -0,0 +1,143 @@ + + 4.0.0 + GNAMEEEE + NCOMPNAME-PPPP-QQQQ + + org.openecomp.ncomp.sirius.manager + ncomp-sirius-manager-base + 0.1.0-SNAPSHOT + + + + + + maven-assembly-plugin + 2.6 + + + zipfile + + single + + package + + false + ${project.artifactId}-${project.version} + + src/assembly/assemble_zip.xml + + + + + + + org.apache.maven.plugins + maven-dependency-plugin + 2.8 + + + copy-dependencies + + copy-dependencies + + prepare-package + + false + ${project.build.directory}/assembly/lib + false + true + true + false + false + false + org.opendaylight,com.brocade.odl + provided + + + + + + maven-resources-plugin + 2.6 + + + copy-version + + copy-resources + + validate + + ${basedir}/target/versions + + + src/main/resources/versions + + version.properties + + true + + + + + + copy-resources + + copy-resources + + validate + + ${basedir}/target/etc/bvc-extensions + + + src/main/resources/etc/bvc-extensions + + feature_config_template.cfg + feature_custom.install + + true + + + + + + + + org.codehaus.mojo + build-helper-maven-plugin + 1.10 + + + attach-artifacts + package + + attach-artifact + + + + + target/${project.artifactId}-${project.version}-runtime.zip + zip + runtime + + + + + + + + + + + + GNAMEEEE + MODELPROJECTNAME + 0.1.0-SNAPSHOT + + + org.openecomp.dcae.controller + dcae-controller-service-docker-adaptor + 0.1.0-SNAPSHOT + + + diff --git a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/dcae-docker-manager:pom.xml b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/dcae-docker-manager:pom.xml deleted file mode 100644 index 3f62af3..0000000 --- a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/dcae-docker-manager:pom.xml +++ /dev/null @@ -1,143 +0,0 @@ - - 4.0.0 - GNAMEEEE - NCOMPNAME-PPPP-QQQQ - - org.openecomp.ncomp.sirius.manager - ncomp-sirius-manager-base - 0.1.0-SNAPSHOT - - - - - - maven-assembly-plugin - 2.6 - - - zipfile - - single - - package - - false - ${project.artifactId}-${project.version} - - src/assembly/assemble_zip.xml - - - - - - - org.apache.maven.plugins - maven-dependency-plugin - 2.8 - - - copy-dependencies - - copy-dependencies - - prepare-package - - false - ${project.build.directory}/assembly/lib - false - true - true - false - false - false - org.opendaylight,com.brocade.odl - provided - - - - - - maven-resources-plugin - 2.6 - - - copy-version - - copy-resources - - validate - - ${basedir}/target/versions - - - src/main/resources/versions - - version.properties - - true - - - - - - copy-resources - - copy-resources - - validate - - ${basedir}/target/etc/bvc-extensions - - - src/main/resources/etc/bvc-extensions - - feature_config_template.cfg - feature_custom.install - - true - - - - - - - - org.codehaus.mojo - build-helper-maven-plugin - 1.10 - - - attach-artifacts - package - - attach-artifact - - - - - target/${project.artifactId}-${project.version}-runtime.zip - zip - runtime - - - - - - - - - - - - GNAMEEEE - MODELPROJECTNAME - 0.1.0-SNAPSHOT - - - org.openecomp.dcae.controller - dcae-controller-service-docker-adaptor - 0.1.0-SNAPSHOT - - - diff --git a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/dcae-vm-manager%pom.xml b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/dcae-vm-manager%pom.xml new file mode 100644 index 0000000..4e7deff --- /dev/null +++ b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/dcae-vm-manager%pom.xml @@ -0,0 +1,143 @@ + + 4.0.0 + GNAMEEEE + NCOMPNAME-PPPP-QQQQ + + org.openecomp.ncomp.sirius.manager + ncomp-sirius-manager-base + 0.1.0-SNAPSHOT + + + + + + maven-assembly-plugin + 2.6 + + + zipfile + + single + + package + + false + ${project.artifactId}-${project.version} + + src/assembly/assemble_zip.xml + + + + + + + org.apache.maven.plugins + maven-dependency-plugin + 2.8 + + + copy-dependencies + + copy-dependencies + + prepare-package + + false + ${project.build.directory}/assembly/lib + false + true + true + false + false + false + org.opendaylight,com.brocade.odl + provided + + + + + + maven-resources-plugin + 2.6 + + + copy-version + + copy-resources + + validate + + ${basedir}/target/versions + + + src/main/resources/versions + + version.properties + + true + + + + + + copy-resources + + copy-resources + + validate + + ${basedir}/target/etc/bvc-extensions + + + src/main/resources/etc/bvc-extensions + + feature_config_template.cfg + feature_custom.install + + true + + + + + + + + org.codehaus.mojo + build-helper-maven-plugin + 1.10 + + + attach-artifacts + package + + attach-artifact + + + + + target/${project.artifactId}-${project.version}-runtime.zip + zip + runtime + + + + + + + + + + + + GNAMEEEE + MODELPROJECTNAME + 0.1.0-SNAPSHOT + + + org.openecomp.dcae.controller + dcae-controller-service-vm-adaptor + 0.1.0-SNAPSHOT + + + diff --git a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/dcae-vm-manager:pom.xml b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/dcae-vm-manager:pom.xml deleted file mode 100644 index 4e7deff..0000000 --- a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/dcae-vm-manager:pom.xml +++ /dev/null @@ -1,143 +0,0 @@ - - 4.0.0 - GNAMEEEE - NCOMPNAME-PPPP-QQQQ - - org.openecomp.ncomp.sirius.manager - ncomp-sirius-manager-base - 0.1.0-SNAPSHOT - - - - - - maven-assembly-plugin - 2.6 - - - zipfile - - single - - package - - false - ${project.artifactId}-${project.version} - - src/assembly/assemble_zip.xml - - - - - - - org.apache.maven.plugins - maven-dependency-plugin - 2.8 - - - copy-dependencies - - copy-dependencies - - prepare-package - - false - ${project.build.directory}/assembly/lib - false - true - true - false - false - false - org.opendaylight,com.brocade.odl - provided - - - - - - maven-resources-plugin - 2.6 - - - copy-version - - copy-resources - - validate - - ${basedir}/target/versions - - - src/main/resources/versions - - version.properties - - true - - - - - - copy-resources - - copy-resources - - validate - - ${basedir}/target/etc/bvc-extensions - - - src/main/resources/etc/bvc-extensions - - feature_config_template.cfg - feature_custom.install - - true - - - - - - - - org.codehaus.mojo - build-helper-maven-plugin - 1.10 - - - attach-artifacts - package - - attach-artifact - - - - - target/${project.artifactId}-${project.version}-runtime.zip - zip - runtime - - - - - - - - - - - - GNAMEEEE - MODELPROJECTNAME - 0.1.0-SNAPSHOT - - - org.openecomp.dcae.controller - dcae-controller-service-vm-adaptor - 0.1.0-SNAPSHOT - - - diff --git a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/src/main/server/scripts/adaptor%console.groovy b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/src/main/server/scripts/adaptor%console.groovy new file mode 100644 index 0000000..81a5366 --- /dev/null +++ b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/src/main/server/scripts/adaptor%console.groovy @@ -0,0 +1,27 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +import NCOMPBASE.servers.SSSS.PREFIXXXXAAAAAdaptorConsole +import org.openecomp.ncomp.sirius.manager.console.Utils + +TTTT = new PREFIXXXXAAAAAdaptorConsole("console.properties","localhost") + +def p(x) { Utils.object2json(x).toString(2) } diff --git a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/src/main/server/scripts/adaptor:console.groovy b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/src/main/server/scripts/adaptor:console.groovy deleted file mode 100644 index 81a5366..0000000 --- a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/src/main/server/scripts/adaptor:console.groovy +++ /dev/null @@ -1,27 +0,0 @@ - -/*- - * ============LICENSE_START========================================== - * OPENECOMP - DCAE - * =================================================================== - * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. - * =================================================================== - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END============================================ - */ - -import NCOMPBASE.servers.SSSS.PREFIXXXXAAAAAdaptorConsole -import org.openecomp.ncomp.sirius.manager.console.Utils - -TTTT = new PREFIXXXXAAAAAdaptorConsole("console.properties","localhost") - -def p(x) { Utils.object2json(x).toString(2) } diff --git a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/src/main/server/scripts/dcae-cdap-service%console.groovy b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/src/main/server/scripts/dcae-cdap-service%console.groovy new file mode 100644 index 0000000..e1f1d98 --- /dev/null +++ b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/src/main/server/scripts/dcae-cdap-service%console.groovy @@ -0,0 +1,27 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +import NCOMPBASE.SSSS.servers.TTTT.PREFIXXXXAAAAConsole +import org.openecomp.ncomp.sirius.manager.console.Utils + +TTTT = new PREFIXXXXAAAAConsole("console.properties","localhost") + +def p(x) { Utils.object2json(x).toString(2) } diff --git a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/src/main/server/scripts/dcae-cdap-service:console.groovy b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/src/main/server/scripts/dcae-cdap-service:console.groovy deleted file mode 100644 index e1f1d98..0000000 --- a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/src/main/server/scripts/dcae-cdap-service:console.groovy +++ /dev/null @@ -1,27 +0,0 @@ - -/*- - * ============LICENSE_START========================================== - * OPENECOMP - DCAE - * =================================================================== - * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. - * =================================================================== - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END============================================ - */ - -import NCOMPBASE.SSSS.servers.TTTT.PREFIXXXXAAAAConsole -import org.openecomp.ncomp.sirius.manager.console.Utils - -TTTT = new PREFIXXXXAAAAConsole("console.properties","localhost") - -def p(x) { Utils.object2json(x).toString(2) } diff --git a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/src/main/server/scripts/dcae-docker-service%console.groovy b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/src/main/server/scripts/dcae-docker-service%console.groovy new file mode 100644 index 0000000..e1f1d98 --- /dev/null +++ b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/src/main/server/scripts/dcae-docker-service%console.groovy @@ -0,0 +1,27 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +import NCOMPBASE.SSSS.servers.TTTT.PREFIXXXXAAAAConsole +import org.openecomp.ncomp.sirius.manager.console.Utils + +TTTT = new PREFIXXXXAAAAConsole("console.properties","localhost") + +def p(x) { Utils.object2json(x).toString(2) } diff --git a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/src/main/server/scripts/dcae-docker-service:console.groovy b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/src/main/server/scripts/dcae-docker-service:console.groovy deleted file mode 100644 index e1f1d98..0000000 --- a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/src/main/server/scripts/dcae-docker-service:console.groovy +++ /dev/null @@ -1,27 +0,0 @@ - -/*- - * ============LICENSE_START========================================== - * OPENECOMP - DCAE - * =================================================================== - * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. - * =================================================================== - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END============================================ - */ - -import NCOMPBASE.SSSS.servers.TTTT.PREFIXXXXAAAAConsole -import org.openecomp.ncomp.sirius.manager.console.Utils - -TTTT = new PREFIXXXXAAAAConsole("console.properties","localhost") - -def p(x) { Utils.object2json(x).toString(2) } diff --git a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/src/main/server/scripts/dcae-vm-service%console.groovy b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/src/main/server/scripts/dcae-vm-service%console.groovy new file mode 100644 index 0000000..e1f1d98 --- /dev/null +++ b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/src/main/server/scripts/dcae-vm-service%console.groovy @@ -0,0 +1,27 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +import NCOMPBASE.SSSS.servers.TTTT.PREFIXXXXAAAAConsole +import org.openecomp.ncomp.sirius.manager.console.Utils + +TTTT = new PREFIXXXXAAAAConsole("console.properties","localhost") + +def p(x) { Utils.object2json(x).toString(2) } diff --git a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/src/main/server/scripts/dcae-vm-service:console.groovy b/ncomp-maven-sirius-project/src/main/resources/archetype-resources/src/main/server/scripts/dcae-vm-service:console.groovy deleted file mode 100644 index e1f1d98..0000000 --- a/ncomp-maven-sirius-project/src/main/resources/archetype-resources/src/main/server/scripts/dcae-vm-service:console.groovy +++ /dev/null @@ -1,27 +0,0 @@ - -/*- - * ============LICENSE_START========================================== - * OPENECOMP - DCAE - * =================================================================== - * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. - * =================================================================== - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END============================================ - */ - -import NCOMPBASE.SSSS.servers.TTTT.PREFIXXXXAAAAConsole -import org.openecomp.ncomp.sirius.manager.console.Utils - -TTTT = new PREFIXXXXAAAAConsole("console.properties","localhost") - -def p(x) { Utils.object2json(x).toString(2) } diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/META-INF/adaptor%MANIFEST.MF b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/META-INF/adaptor%MANIFEST.MF new file mode 100644 index 0000000..2c0b508 --- /dev/null +++ b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/META-INF/adaptor%MANIFEST.MF @@ -0,0 +1,21 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %pluginName +Bundle-SymbolicName: NCOMPNAME-PPPP-model;singleton:=true +Bundle-Version: 0.1.0.qualifier +Bundle-ClassPath: . +Bundle-Vendor: %providerName +Bundle-Localization: plugin +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 +Export-Package: NCOMPBASE.SSSS, + NCOMPBASE.SSSS.impl, + NCOMPBASE.SSSS.util +Require-Bundle: org.eclipse.core.runtime, + org.eclipse.emf.ecore;visibility:=reexport, + org.eclipse.xtext.xbase.lib, + org.eclipse.emf.ecore.xcore.lib, + ncomp-core-model;bundle-version="0.1.0";visibility:=reexport, + ncomp-sirius-manager-model;bundle-version="0.1.0";visibility:=reexport, + ncomp-core-types;bundle-version="0.1.0", + ncomp-utils-java;bundle-version="0.1.0" +Bundle-ActivationPolicy: lazy diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/META-INF/adaptor:MANIFEST.MF b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/META-INF/adaptor:MANIFEST.MF deleted file mode 100644 index 2c0b508..0000000 --- a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/META-INF/adaptor:MANIFEST.MF +++ /dev/null @@ -1,21 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: %pluginName -Bundle-SymbolicName: NCOMPNAME-PPPP-model;singleton:=true -Bundle-Version: 0.1.0.qualifier -Bundle-ClassPath: . -Bundle-Vendor: %providerName -Bundle-Localization: plugin -Bundle-RequiredExecutionEnvironment: JavaSE-1.7 -Export-Package: NCOMPBASE.SSSS, - NCOMPBASE.SSSS.impl, - NCOMPBASE.SSSS.util -Require-Bundle: org.eclipse.core.runtime, - org.eclipse.emf.ecore;visibility:=reexport, - org.eclipse.xtext.xbase.lib, - org.eclipse.emf.ecore.xcore.lib, - ncomp-core-model;bundle-version="0.1.0";visibility:=reexport, - ncomp-sirius-manager-model;bundle-version="0.1.0";visibility:=reexport, - ncomp-core-types;bundle-version="0.1.0", - ncomp-utils-java;bundle-version="0.1.0" -Bundle-ActivationPolicy: lazy diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/META-INF/dcae-cdap-manager%MANIFEST.MF b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/META-INF/dcae-cdap-manager%MANIFEST.MF new file mode 100644 index 0000000..b9b8695 --- /dev/null +++ b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/META-INF/dcae-cdap-manager%MANIFEST.MF @@ -0,0 +1,28 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %pluginName +Bundle-SymbolicName: NCOMPNAME-PPPP-model;singleton:=true +Bundle-Version: 0.1.0.qualifier +Bundle-ClassPath: . +Bundle-Vendor: %providerName +Bundle-Localization: plugin +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 +Export-Package: NCOMPBASE.SSSS.manager, + NCOMPBASE.SSSS.manager.impl, + NCOMPBASE.SSSS.manager.util, + NCOMPBASE.SSSS.service, + NCOMPBASE.SSSS.service.impl, + NCOMPBASE.SSSS.service.util +Require-Bundle: org.eclipse.core.runtime, + org.eclipse.emf.ecore;visibility:=reexport, + org.eclipse.xtext.xbase.lib, + org.eclipse.emf.ecore.xcore.lib, + dcae-controller-core-model;visibility:=reexport, + ncomp-core-model;bundle-version="0.1.0";visibility:=reexport, + ncomp-openstack-model;visibility:=reexport, + ncomp-sirius-manager-model;bundle-version="0.1.0";visibility:=reexport, + ncomp-core-types;bundle-version="0.1.0", + ncomp-utils-java;bundle-version="0.1.0", + dcae-controller-service-cdap-model;bundle-version="0.1.0";visibility:=reexport, + ncomp-sirius-manager-agent-model;visibility:=reexport +Bundle-ActivationPolicy: lazy diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/META-INF/dcae-cdap-manager:MANIFEST.MF b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/META-INF/dcae-cdap-manager:MANIFEST.MF deleted file mode 100644 index b9b8695..0000000 --- a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/META-INF/dcae-cdap-manager:MANIFEST.MF +++ /dev/null @@ -1,28 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: %pluginName -Bundle-SymbolicName: NCOMPNAME-PPPP-model;singleton:=true -Bundle-Version: 0.1.0.qualifier -Bundle-ClassPath: . -Bundle-Vendor: %providerName -Bundle-Localization: plugin -Bundle-RequiredExecutionEnvironment: JavaSE-1.7 -Export-Package: NCOMPBASE.SSSS.manager, - NCOMPBASE.SSSS.manager.impl, - NCOMPBASE.SSSS.manager.util, - NCOMPBASE.SSSS.service, - NCOMPBASE.SSSS.service.impl, - NCOMPBASE.SSSS.service.util -Require-Bundle: org.eclipse.core.runtime, - org.eclipse.emf.ecore;visibility:=reexport, - org.eclipse.xtext.xbase.lib, - org.eclipse.emf.ecore.xcore.lib, - dcae-controller-core-model;visibility:=reexport, - ncomp-core-model;bundle-version="0.1.0";visibility:=reexport, - ncomp-openstack-model;visibility:=reexport, - ncomp-sirius-manager-model;bundle-version="0.1.0";visibility:=reexport, - ncomp-core-types;bundle-version="0.1.0", - ncomp-utils-java;bundle-version="0.1.0", - dcae-controller-service-cdap-model;bundle-version="0.1.0";visibility:=reexport, - ncomp-sirius-manager-agent-model;visibility:=reexport -Bundle-ActivationPolicy: lazy diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/META-INF/dcae-docker-manager%MANIFEST.MF b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/META-INF/dcae-docker-manager%MANIFEST.MF new file mode 100644 index 0000000..ae75246 --- /dev/null +++ b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/META-INF/dcae-docker-manager%MANIFEST.MF @@ -0,0 +1,28 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %pluginName +Bundle-SymbolicName: NCOMPNAME-PPPP-model;singleton:=true +Bundle-Version: 0.1.0.qualifier +Bundle-ClassPath: . +Bundle-Vendor: %providerName +Bundle-Localization: plugin +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 +Export-Package: NCOMPBASE.SSSS.manager, + NCOMPBASE.SSSS.manager.impl, + NCOMPBASE.SSSS.manager.util, + NCOMPBASE.SSSS.service, + NCOMPBASE.SSSS.service.impl, + NCOMPBASE.SSSS.service.util +Require-Bundle: org.eclipse.core.runtime, + org.eclipse.emf.ecore;visibility:=reexport, + org.eclipse.xtext.xbase.lib, + org.eclipse.emf.ecore.xcore.lib, + dcae-controller-core-model;visibility:=reexport, + ncomp-core-model;bundle-version="0.1.0";visibility:=reexport, + ncomp-openstack-model;visibility:=reexport, + ncomp-sirius-manager-model;bundle-version="0.1.0";visibility:=reexport, + ncomp-core-types;bundle-version="0.1.0", + ncomp-utils-java;bundle-version="0.1.0", + dcae-controller-service-docker-model;bundle-version="0.1.0";visibility:=reexport, + ncomp-sirius-manager-agent-model;visibility:=reexport +Bundle-ActivationPolicy: lazy diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/META-INF/dcae-docker-manager:MANIFEST.MF b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/META-INF/dcae-docker-manager:MANIFEST.MF deleted file mode 100644 index ae75246..0000000 --- a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/META-INF/dcae-docker-manager:MANIFEST.MF +++ /dev/null @@ -1,28 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: %pluginName -Bundle-SymbolicName: NCOMPNAME-PPPP-model;singleton:=true -Bundle-Version: 0.1.0.qualifier -Bundle-ClassPath: . -Bundle-Vendor: %providerName -Bundle-Localization: plugin -Bundle-RequiredExecutionEnvironment: JavaSE-1.7 -Export-Package: NCOMPBASE.SSSS.manager, - NCOMPBASE.SSSS.manager.impl, - NCOMPBASE.SSSS.manager.util, - NCOMPBASE.SSSS.service, - NCOMPBASE.SSSS.service.impl, - NCOMPBASE.SSSS.service.util -Require-Bundle: org.eclipse.core.runtime, - org.eclipse.emf.ecore;visibility:=reexport, - org.eclipse.xtext.xbase.lib, - org.eclipse.emf.ecore.xcore.lib, - dcae-controller-core-model;visibility:=reexport, - ncomp-core-model;bundle-version="0.1.0";visibility:=reexport, - ncomp-openstack-model;visibility:=reexport, - ncomp-sirius-manager-model;bundle-version="0.1.0";visibility:=reexport, - ncomp-core-types;bundle-version="0.1.0", - ncomp-utils-java;bundle-version="0.1.0", - dcae-controller-service-docker-model;bundle-version="0.1.0";visibility:=reexport, - ncomp-sirius-manager-agent-model;visibility:=reexport -Bundle-ActivationPolicy: lazy diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/META-INF/dcae-vm-manager%MANIFEST.MF b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/META-INF/dcae-vm-manager%MANIFEST.MF new file mode 100644 index 0000000..9198ee6 --- /dev/null +++ b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/META-INF/dcae-vm-manager%MANIFEST.MF @@ -0,0 +1,28 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %pluginName +Bundle-SymbolicName: NCOMPNAME-PPPP-model;singleton:=true +Bundle-Version: 0.1.0.qualifier +Bundle-ClassPath: . +Bundle-Vendor: %providerName +Bundle-Localization: plugin +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 +Export-Package: NCOMPBASE.SSSS.manager, + NCOMPBASE.SSSS.manager.impl, + NCOMPBASE.SSSS.manager.util, + NCOMPBASE.SSSS.service, + NCOMPBASE.SSSS.service.impl, + NCOMPBASE.SSSS.service.util +Require-Bundle: org.eclipse.core.runtime, + org.eclipse.emf.ecore;visibility:=reexport, + org.eclipse.xtext.xbase.lib, + org.eclipse.emf.ecore.xcore.lib, + dcae-controller-core-model;visibility:=reexport, + ncomp-core-model;bundle-version="0.1.0";visibility:=reexport, + ncomp-openstack-model;visibility:=reexport, + ncomp-sirius-manager-model;bundle-version="0.1.0";visibility:=reexport, + ncomp-core-types;bundle-version="0.1.0", + ncomp-utils-java;bundle-version="0.1.0", + dcae-controller-service-vm-model;bundle-version="0.1.0";visibility:=reexport, + ncomp-sirius-manager-agent-model;visibility:=reexport +Bundle-ActivationPolicy: lazy diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/META-INF/dcae-vm-manager:MANIFEST.MF b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/META-INF/dcae-vm-manager:MANIFEST.MF deleted file mode 100644 index 9198ee6..0000000 --- a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/META-INF/dcae-vm-manager:MANIFEST.MF +++ /dev/null @@ -1,28 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: %pluginName -Bundle-SymbolicName: NCOMPNAME-PPPP-model;singleton:=true -Bundle-Version: 0.1.0.qualifier -Bundle-ClassPath: . -Bundle-Vendor: %providerName -Bundle-Localization: plugin -Bundle-RequiredExecutionEnvironment: JavaSE-1.7 -Export-Package: NCOMPBASE.SSSS.manager, - NCOMPBASE.SSSS.manager.impl, - NCOMPBASE.SSSS.manager.util, - NCOMPBASE.SSSS.service, - NCOMPBASE.SSSS.service.impl, - NCOMPBASE.SSSS.service.util -Require-Bundle: org.eclipse.core.runtime, - org.eclipse.emf.ecore;visibility:=reexport, - org.eclipse.xtext.xbase.lib, - org.eclipse.emf.ecore.xcore.lib, - dcae-controller-core-model;visibility:=reexport, - ncomp-core-model;bundle-version="0.1.0";visibility:=reexport, - ncomp-openstack-model;visibility:=reexport, - ncomp-sirius-manager-model;bundle-version="0.1.0";visibility:=reexport, - ncomp-core-types;bundle-version="0.1.0", - ncomp-utils-java;bundle-version="0.1.0", - dcae-controller-service-vm-model;bundle-version="0.1.0";visibility:=reexport, - ncomp-sirius-manager-agent-model;visibility:=reexport -Bundle-ActivationPolicy: lazy diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-cdap-manager%plugin.xml b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-cdap-manager%plugin.xml new file mode 100644 index 0000000..8e8a0ed --- /dev/null +++ b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-cdap-manager%plugin.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-cdap-manager%pom.xml b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-cdap-manager%pom.xml new file mode 100644 index 0000000..ec2944d --- /dev/null +++ b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-cdap-manager%pom.xml @@ -0,0 +1,23 @@ + + 4.0.0 + GNAMEEEE + NCOMPNAME-PPPP-model + + org.openecomp.ncomp.maven + ncomp-maven-xcore + 0.1.0-SNAPSHOT + + + + org.openecomp.ncomp.sirius.manager + ncomp-sirius-manager-model + 0.1.0-SNAPSHOT + + + org.openecomp.dcae.controller + dcae-controller-service-cdap-model + 0.1.0-SNAPSHOT + + + diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-cdap-manager:plugin.xml b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-cdap-manager:plugin.xml deleted file mode 100644 index 8e8a0ed..0000000 --- a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-cdap-manager:plugin.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-cdap-manager:pom.xml b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-cdap-manager:pom.xml deleted file mode 100644 index ec2944d..0000000 --- a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-cdap-manager:pom.xml +++ /dev/null @@ -1,23 +0,0 @@ - - 4.0.0 - GNAMEEEE - NCOMPNAME-PPPP-model - - org.openecomp.ncomp.maven - ncomp-maven-xcore - 0.1.0-SNAPSHOT - - - - org.openecomp.ncomp.sirius.manager - ncomp-sirius-manager-model - 0.1.0-SNAPSHOT - - - org.openecomp.dcae.controller - dcae-controller-service-cdap-model - 0.1.0-SNAPSHOT - - - diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-docker-manager%plugin.xml b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-docker-manager%plugin.xml new file mode 100644 index 0000000..8e8a0ed --- /dev/null +++ b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-docker-manager%plugin.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-docker-manager%pom.xml b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-docker-manager%pom.xml new file mode 100644 index 0000000..84200c4 --- /dev/null +++ b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-docker-manager%pom.xml @@ -0,0 +1,23 @@ + + 4.0.0 + GNAMEEEE + NCOMPNAME-PPPP-model + + org.openecomp.ncomp.maven + ncomp-maven-xcore + 0.1.0-SNAPSHOT + + + + org.openecomp.ncomp.sirius.manager + ncomp-sirius-manager-model + 0.1.0-SNAPSHOT + + + org.openecomp.dcae.controller + dcae-controller-service-docker-model + 0.1.0-SNAPSHOT + + + diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-docker-manager:plugin.xml b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-docker-manager:plugin.xml deleted file mode 100644 index 8e8a0ed..0000000 --- a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-docker-manager:plugin.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-docker-manager:pom.xml b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-docker-manager:pom.xml deleted file mode 100644 index 84200c4..0000000 --- a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-docker-manager:pom.xml +++ /dev/null @@ -1,23 +0,0 @@ - - 4.0.0 - GNAMEEEE - NCOMPNAME-PPPP-model - - org.openecomp.ncomp.maven - ncomp-maven-xcore - 0.1.0-SNAPSHOT - - - - org.openecomp.ncomp.sirius.manager - ncomp-sirius-manager-model - 0.1.0-SNAPSHOT - - - org.openecomp.dcae.controller - dcae-controller-service-docker-model - 0.1.0-SNAPSHOT - - - diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-vm-manager%plugin.xml b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-vm-manager%plugin.xml new file mode 100644 index 0000000..8e8a0ed --- /dev/null +++ b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-vm-manager%plugin.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-vm-manager%pom.xml b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-vm-manager%pom.xml new file mode 100644 index 0000000..c0ae0c5 --- /dev/null +++ b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-vm-manager%pom.xml @@ -0,0 +1,23 @@ + + 4.0.0 + GNAMEEEE + NCOMPNAME-PPPP-model + + org.openecomp.ncomp.maven + ncomp-maven-xcore + 0.1.0-SNAPSHOT + + + + org.openecomp.ncomp.sirius.manager + ncomp-sirius-manager-model + 0.1.0-SNAPSHOT + + + org.openecomp.dcae.controller + dcae-controller-service-vm-model + 0.1.0-SNAPSHOT + + + diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-vm-manager:plugin.xml b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-vm-manager:plugin.xml deleted file mode 100644 index 8e8a0ed..0000000 --- a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-vm-manager:plugin.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-vm-manager:pom.xml b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-vm-manager:pom.xml deleted file mode 100644 index c0ae0c5..0000000 --- a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-vm-manager:pom.xml +++ /dev/null @@ -1,23 +0,0 @@ - - 4.0.0 - GNAMEEEE - NCOMPNAME-PPPP-model - - org.openecomp.ncomp.maven - ncomp-maven-xcore - 0.1.0-SNAPSHOT - - - - org.openecomp.ncomp.sirius.manager - ncomp-sirius-manager-model - 0.1.0-SNAPSHOT - - - org.openecomp.dcae.controller - dcae-controller-service-vm-model - 0.1.0-SNAPSHOT - - - diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/adaptor%adaptor.xcore b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/adaptor%adaptor.xcore new file mode 100644 index 0000000..6cff5cc --- /dev/null +++ b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/adaptor%adaptor.xcore @@ -0,0 +1,30 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +@GenModel(modelDirectory="/NCOMPNAME-PPPP-model/src/main/xcore-gen") + + +package NCOMPBASE.SSSS + + +class AAAAAdaptor { +} + diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/adaptor:adaptor.xcore b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/adaptor:adaptor.xcore deleted file mode 100644 index 6cff5cc..0000000 --- a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/adaptor:adaptor.xcore +++ /dev/null @@ -1,30 +0,0 @@ - -/*- - * ============LICENSE_START========================================== - * OPENECOMP - DCAE - * =================================================================== - * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. - * =================================================================== - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END============================================ - */ - -@GenModel(modelDirectory="/NCOMPNAME-PPPP-model/src/main/xcore-gen") - - -package NCOMPBASE.SSSS - - -class AAAAAdaptor { -} - diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-cdap-manager%manager.xcore b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-cdap-manager%manager.xcore new file mode 100644 index 0000000..4ed7427 --- /dev/null +++ b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-cdap-manager%manager.xcore @@ -0,0 +1,36 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +@GenModel(modelDirectory="/NCOMPNAME-PPPP-model/src/main/xcore-gen") + + +package NCOMPBASE.SSSS.manager + + +import org.openecomp.ncomp.sirius.manager.server.AbstractManagementServer +import NCOMPBASE.SSSS.service.AAAAServiceConfiguration + +// state of manager +class AAAAManager extends AbstractManagementServer, AAAAServiceConfiguration { + op void restart() + op String hello_manager(String str) +} + diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-cdap-manager%service.xcore b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-cdap-manager%service.xcore new file mode 100644 index 0000000..2f702b6 --- /dev/null +++ b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-cdap-manager%service.xcore @@ -0,0 +1,65 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +@GenModel(modelDirectory="/NCOMPNAME-PPPP-model/src/main/xcore-gen") + + +package NCOMPBASE.SSSS.service + + +import org.openecomp.ncomp.core.IncreasingULongMetricAttribute +import org.openecomp.dcae.controller.service.cdap.CdapService +import org.openecomp.dcae.controller.service.cdap.CdapServiceInstance +import org.openecomp.ncomp.core.NamedEntity + +annotation "http://openecomp.org" as ecomp + +class AAAAService extends CdapService { + op String hello_service(String instanceName, String str) + op void restart(String instanceName) +} + +// state in the controller +class AAAAServiceInstance extends CdapServiceInstance, AAAAServiceConfiguration { +} + +// state in both controller and manager +class AAAAServiceConfiguration { + @ecomp(^type = "configuration") + String cdapUrl + @ecomp(^type = "operational") + IncreasingULongMetricAttribute numberOfCdapRecords + @ecomp(^type = "operational") + IncreasingULongMetricAttribute numberOfCdapErrors + @ecomp(^type = "configuration") + contains ContrailController[] localControllers +} + +class ContrailController extends NamedEntity { + @ecomp(^type = "configuration") + String contailIp + @ecomp(^type = "operational") + IncreasingULongMetricAttribute numberOfRecords + @ecomp(^type = "operational") + IncreasingULongMetricAttribute numberOfErrors +} + + diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-cdap-manager:manager.xcore b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-cdap-manager:manager.xcore deleted file mode 100644 index 4ed7427..0000000 --- a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-cdap-manager:manager.xcore +++ /dev/null @@ -1,36 +0,0 @@ - -/*- - * ============LICENSE_START========================================== - * OPENECOMP - DCAE - * =================================================================== - * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. - * =================================================================== - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END============================================ - */ - -@GenModel(modelDirectory="/NCOMPNAME-PPPP-model/src/main/xcore-gen") - - -package NCOMPBASE.SSSS.manager - - -import org.openecomp.ncomp.sirius.manager.server.AbstractManagementServer -import NCOMPBASE.SSSS.service.AAAAServiceConfiguration - -// state of manager -class AAAAManager extends AbstractManagementServer, AAAAServiceConfiguration { - op void restart() - op String hello_manager(String str) -} - diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-cdap-manager:service.xcore b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-cdap-manager:service.xcore deleted file mode 100644 index 2f702b6..0000000 --- a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-cdap-manager:service.xcore +++ /dev/null @@ -1,65 +0,0 @@ - -/*- - * ============LICENSE_START========================================== - * OPENECOMP - DCAE - * =================================================================== - * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. - * =================================================================== - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END============================================ - */ - -@GenModel(modelDirectory="/NCOMPNAME-PPPP-model/src/main/xcore-gen") - - -package NCOMPBASE.SSSS.service - - -import org.openecomp.ncomp.core.IncreasingULongMetricAttribute -import org.openecomp.dcae.controller.service.cdap.CdapService -import org.openecomp.dcae.controller.service.cdap.CdapServiceInstance -import org.openecomp.ncomp.core.NamedEntity - -annotation "http://openecomp.org" as ecomp - -class AAAAService extends CdapService { - op String hello_service(String instanceName, String str) - op void restart(String instanceName) -} - -// state in the controller -class AAAAServiceInstance extends CdapServiceInstance, AAAAServiceConfiguration { -} - -// state in both controller and manager -class AAAAServiceConfiguration { - @ecomp(^type = "configuration") - String cdapUrl - @ecomp(^type = "operational") - IncreasingULongMetricAttribute numberOfCdapRecords - @ecomp(^type = "operational") - IncreasingULongMetricAttribute numberOfCdapErrors - @ecomp(^type = "configuration") - contains ContrailController[] localControllers -} - -class ContrailController extends NamedEntity { - @ecomp(^type = "configuration") - String contailIp - @ecomp(^type = "operational") - IncreasingULongMetricAttribute numberOfRecords - @ecomp(^type = "operational") - IncreasingULongMetricAttribute numberOfErrors -} - - diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-docker-manager%manager.xcore b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-docker-manager%manager.xcore new file mode 100644 index 0000000..4be92d2 --- /dev/null +++ b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-docker-manager%manager.xcore @@ -0,0 +1,34 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +@GenModel(modelDirectory="/NCOMPNAME-PPPP-model/src/main/xcore-gen") + + +package NCOMPBASE.SSSS.manager + + +import org.openecomp.dcae.controller.service.dockermanager.DockerManager +import NCOMPBASE.SSSS.service.AAAAServiceConfiguration + +// state of manager +class AAAAManager extends DockerManager, AAAAServiceConfiguration { +} + diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-docker-manager%service.xcore b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-docker-manager%service.xcore new file mode 100644 index 0000000..18d97ba --- /dev/null +++ b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-docker-manager%service.xcore @@ -0,0 +1,46 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +@GenModel(modelDirectory="/NCOMPNAME-PPPP-model/src/main/xcore-gen") + + +package NCOMPBASE.SSSS.service + + +import org.openecomp.dcae.controller.service.docker.DockerService +import org.openecomp.dcae.controller.service.docker.DockerServiceInstance + +annotation "http://openecomp.org" as ecomp + +class AAAAService extends DockerService { +} + +// state in the controller +class AAAAServiceInstance extends DockerServiceInstance, AAAAServiceConfiguration { +} + +// state in both controller and manager +class AAAAServiceConfiguration { +// @ecomp(^type = "configuration") +// String cdapUrl +} + + diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-docker-manager:manager.xcore b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-docker-manager:manager.xcore deleted file mode 100644 index 4be92d2..0000000 --- a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-docker-manager:manager.xcore +++ /dev/null @@ -1,34 +0,0 @@ - -/*- - * ============LICENSE_START========================================== - * OPENECOMP - DCAE - * =================================================================== - * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. - * =================================================================== - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END============================================ - */ - -@GenModel(modelDirectory="/NCOMPNAME-PPPP-model/src/main/xcore-gen") - - -package NCOMPBASE.SSSS.manager - - -import org.openecomp.dcae.controller.service.dockermanager.DockerManager -import NCOMPBASE.SSSS.service.AAAAServiceConfiguration - -// state of manager -class AAAAManager extends DockerManager, AAAAServiceConfiguration { -} - diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-docker-manager:service.xcore b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-docker-manager:service.xcore deleted file mode 100644 index 18d97ba..0000000 --- a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-docker-manager:service.xcore +++ /dev/null @@ -1,46 +0,0 @@ - -/*- - * ============LICENSE_START========================================== - * OPENECOMP - DCAE - * =================================================================== - * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. - * =================================================================== - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END============================================ - */ - -@GenModel(modelDirectory="/NCOMPNAME-PPPP-model/src/main/xcore-gen") - - -package NCOMPBASE.SSSS.service - - -import org.openecomp.dcae.controller.service.docker.DockerService -import org.openecomp.dcae.controller.service.docker.DockerServiceInstance - -annotation "http://openecomp.org" as ecomp - -class AAAAService extends DockerService { -} - -// state in the controller -class AAAAServiceInstance extends DockerServiceInstance, AAAAServiceConfiguration { -} - -// state in both controller and manager -class AAAAServiceConfiguration { -// @ecomp(^type = "configuration") -// String cdapUrl -} - - diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-vm-manager%manager.xcore b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-vm-manager%manager.xcore new file mode 100644 index 0000000..421935e --- /dev/null +++ b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-vm-manager%manager.xcore @@ -0,0 +1,36 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +@GenModel(modelDirectory="/NCOMPNAME-PPPP-model/src/main/xcore-gen") + + +package NCOMPBASE.SSSS.manager + + +import NCOMPBASE.SSSS.service.AAAAServiceConfiguration +import org.openecomp.dcae.controller.service.vmmanager.VirtualMachineManager + +// state of manager +class AAAAManager extends VirtualMachineManager, AAAAServiceConfiguration { + op void restart() + op String hello_manager(String str) +} + diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-vm-manager%service.xcore b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-vm-manager%service.xcore new file mode 100644 index 0000000..cab5096 --- /dev/null +++ b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-vm-manager%service.xcore @@ -0,0 +1,65 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +@GenModel(modelDirectory="/NCOMPNAME-PPPP-model/src/main/xcore-gen") + + +package NCOMPBASE.SSSS.service + + +import org.openecomp.ncomp.core.IncreasingULongMetricAttribute +import org.openecomp.dcae.controller.service.vm.VirtualMachineService +import org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance +import org.openecomp.ncomp.core.NamedEntity + +annotation "http://openecomp.org" as ecomp + +class AAAAService extends VirtualMachineService { + op String hello_service(String instanceName, String str) + op void restart(String instanceName) +} + +// state in the controller +class AAAAServiceInstance extends VirtualMachineServiceInstance, AAAAServiceConfiguration { +} + +// state in both controller and manager +class AAAAServiceConfiguration { + @ecomp(^type = "configuration") + String cdapUrl + @ecomp(^type = "operational") + IncreasingULongMetricAttribute numberOfCdapRecords + @ecomp(^type = "operational") + IncreasingULongMetricAttribute numberOfCdapErrors + @ecomp(^type = "configuration") + contains ContrailController[] localControllers +} + +class ContrailController extends NamedEntity { + @ecomp(^type = "configuration") + String contrailIp + @ecomp(^type = "operational") + IncreasingULongMetricAttribute numberOfRecords + @ecomp(^type = "operational") + IncreasingULongMetricAttribute numberOfErrors +} + + diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-vm-manager:manager.xcore b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-vm-manager:manager.xcore deleted file mode 100644 index 421935e..0000000 --- a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-vm-manager:manager.xcore +++ /dev/null @@ -1,36 +0,0 @@ - -/*- - * ============LICENSE_START========================================== - * OPENECOMP - DCAE - * =================================================================== - * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. - * =================================================================== - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END============================================ - */ - -@GenModel(modelDirectory="/NCOMPNAME-PPPP-model/src/main/xcore-gen") - - -package NCOMPBASE.SSSS.manager - - -import NCOMPBASE.SSSS.service.AAAAServiceConfiguration -import org.openecomp.dcae.controller.service.vmmanager.VirtualMachineManager - -// state of manager -class AAAAManager extends VirtualMachineManager, AAAAServiceConfiguration { - op void restart() - op String hello_manager(String str) -} - diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-vm-manager:service.xcore b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-vm-manager:service.xcore deleted file mode 100644 index cab5096..0000000 --- a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-vm-manager:service.xcore +++ /dev/null @@ -1,65 +0,0 @@ - -/*- - * ============LICENSE_START========================================== - * OPENECOMP - DCAE - * =================================================================== - * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. - * =================================================================== - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END============================================ - */ - -@GenModel(modelDirectory="/NCOMPNAME-PPPP-model/src/main/xcore-gen") - - -package NCOMPBASE.SSSS.service - - -import org.openecomp.ncomp.core.IncreasingULongMetricAttribute -import org.openecomp.dcae.controller.service.vm.VirtualMachineService -import org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance -import org.openecomp.ncomp.core.NamedEntity - -annotation "http://openecomp.org" as ecomp - -class AAAAService extends VirtualMachineService { - op String hello_service(String instanceName, String str) - op void restart(String instanceName) -} - -// state in the controller -class AAAAServiceInstance extends VirtualMachineServiceInstance, AAAAServiceConfiguration { -} - -// state in both controller and manager -class AAAAServiceConfiguration { - @ecomp(^type = "configuration") - String cdapUrl - @ecomp(^type = "operational") - IncreasingULongMetricAttribute numberOfCdapRecords - @ecomp(^type = "operational") - IncreasingULongMetricAttribute numberOfCdapErrors - @ecomp(^type = "configuration") - contains ContrailController[] localControllers -} - -class ContrailController extends NamedEntity { - @ecomp(^type = "configuration") - String contrailIp - @ecomp(^type = "operational") - IncreasingULongMetricAttribute numberOfRecords - @ecomp(^type = "operational") - IncreasingULongMetricAttribute numberOfErrors -} - - diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/server%server.xcore b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/server%server.xcore new file mode 100644 index 0000000..bcd8cf6 --- /dev/null +++ b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/server%server.xcore @@ -0,0 +1,32 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +@GenModel(modelDirectory="/NCOMPNAME-PPPP-model/src/main/xcore-gen") + + +package NCOMPBASE.SSSS + +import org.openecomp.ncomp.sirius.manager.server.SouthBoundApiWithProxy +import org.openecomp.ncomp.sirius.manager.server.AbstractManagementServer + +class AAAAServer extends SouthBoundApiWithProxy, AbstractManagementServer { +} + diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/server:server.xcore b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/server:server.xcore deleted file mode 100644 index bcd8cf6..0000000 --- a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/server:server.xcore +++ /dev/null @@ -1,32 +0,0 @@ - -/*- - * ============LICENSE_START========================================== - * OPENECOMP - DCAE - * =================================================================== - * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. - * =================================================================== - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END============================================ - */ - -@GenModel(modelDirectory="/NCOMPNAME-PPPP-model/src/main/xcore-gen") - - -package NCOMPBASE.SSSS - -import org.openecomp.ncomp.sirius.manager.server.SouthBoundApiWithProxy -import org.openecomp.ncomp.sirius.manager.server.AbstractManagementServer - -class AAAAServer extends SouthBoundApiWithProxy, AbstractManagementServer { -} - -- cgit 1.2.3-korg