From a84b847a3409df445482674feffa2872a8cbae83 Mon Sep 17 00:00:00 2001 From: lj1412 Date: Tue, 14 Feb 2017 15:12:08 +0000 Subject: Init dcae.controller Change-Id: I460f09494faa84b55d9c5d54112e098b0e74d007 Signed-off-by: lj1412 --- .../dcae-controller-service-vm-model/.classpath | 17 + .../dcae-controller-service-vm-model/.gitignore | 2 + .../dcae-controller-service-vm-model/.project | 34 + .../.settings/org.eclipse.jdt.core.prefs | 2 + .../.settings/org.eclipse.m2e.core.prefs | 4 + .../dcae-controller-service-vm-model/LICENSE.txt | 22 + .../META-INF/MANIFEST.MF | 27 + .../build.properties | 11 + .../plugin.properties | 4 + .../dcae-controller-service-vm-model/plugin.xml | 25 + .../dcae-controller-service-vm-model/pom.xml | 28 + .../vm/ControllerVirtualMachineService.java | 38 + .../ControllerVirtualMachineServiceInstance.java | 38 + .../service/vm/HttpInstallationStep.java | 178 ++ .../controller/service/vm/InstallationStep.java | 72 + .../service/vm/MavenArtifactInstallationStep.java | 178 ++ .../controller/service/vm/PhysicalMachine.java | 72 + .../service/vm/ShellInstallationStep.java | 70 + .../dcae/controller/service/vm/VirtualMachine.java | 152 ++ .../service/vm/VirtualMachineService.java | 102 + .../vm/VirtualMachineServiceConfiguration.java | 72 + .../vm/VirtualMachineServiceDescriptor.java | 268 ++ .../service/vm/VirtualMachineServiceInstance.java | 548 ++++ .../dcae/controller/service/vm/VmFactory.java | 135 + .../dcae/controller/service/vm/VmPackage.java | 2813 ++++++++++++++++++++ .../service/vm/impl/HttpInstallationStepImpl.java | 399 +++ .../service/vm/impl/InstallationStepImpl.java | 182 ++ .../vm/impl/MavenArtifactInstallationStepImpl.java | 399 +++ .../service/vm/impl/PhysicalMachineImpl.java | 182 ++ .../service/vm/impl/ShellInstallationStepImpl.java | 183 ++ .../service/vm/impl/VirtualMachineImpl.java | 343 +++ .../VirtualMachineServiceConfigurationImpl.java | 184 ++ .../impl/VirtualMachineServiceDescriptorImpl.java | 585 ++++ .../service/vm/impl/VirtualMachineServiceImpl.java | 285 ++ .../vm/impl/VirtualMachineServiceInstanceImpl.java | 1288 +++++++++ .../controller/service/vm/impl/VmFactoryImpl.java | 204 ++ .../controller/service/vm/impl/VmPackageImpl.java | 1050 ++++++++ .../service/vm/util/VmAdapterFactory.java | 440 +++ .../dcae/controller/service/vm/util/VmSwitch.java | 458 ++++ .../service/vmmanager/VirtualMachineManager.java | 40 + .../service/vmmanager/VmmanagerFactory.java | 63 + .../service/vmmanager/VmmanagerPackage.java | 336 +++ .../vmmanager/impl/VirtualMachineManagerImpl.java | 515 ++++ .../vmmanager/impl/VmmanagerFactoryImpl.java | 116 + .../vmmanager/impl/VmmanagerPackageImpl.java | 219 ++ .../vmmanager/util/VmmanagerAdapterFactory.java | 218 ++ .../service/vmmanager/util/VmmanagerSwitch.java | 200 ++ .../src/main/xcore/manager.xcore | 34 + .../src/main/xcore/service.xcore | 132 + 49 files changed, 12967 insertions(+) create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/.classpath create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/.gitignore create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/.project create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/.settings/org.eclipse.jdt.core.prefs create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/.settings/org.eclipse.m2e.core.prefs create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/LICENSE.txt create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/META-INF/MANIFEST.MF create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/build.properties create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/plugin.properties create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/plugin.xml create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/pom.xml create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/ControllerVirtualMachineService.java create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/ControllerVirtualMachineServiceInstance.java create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/HttpInstallationStep.java create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/InstallationStep.java create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/MavenArtifactInstallationStep.java create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/PhysicalMachine.java create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/ShellInstallationStep.java create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/VirtualMachine.java create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/VirtualMachineService.java create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/VirtualMachineServiceConfiguration.java create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/VirtualMachineServiceDescriptor.java create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/VirtualMachineServiceInstance.java create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/VmFactory.java create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/VmPackage.java create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/HttpInstallationStepImpl.java create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/InstallationStepImpl.java create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/MavenArtifactInstallationStepImpl.java create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/PhysicalMachineImpl.java create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/ShellInstallationStepImpl.java create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/VirtualMachineImpl.java create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/VirtualMachineServiceConfigurationImpl.java create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/VirtualMachineServiceDescriptorImpl.java create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/VirtualMachineServiceImpl.java create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/VirtualMachineServiceInstanceImpl.java create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/VmFactoryImpl.java create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/VmPackageImpl.java create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/util/VmAdapterFactory.java create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/util/VmSwitch.java create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vmmanager/VirtualMachineManager.java create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vmmanager/VmmanagerFactory.java create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vmmanager/VmmanagerPackage.java create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vmmanager/impl/VirtualMachineManagerImpl.java create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vmmanager/impl/VmmanagerFactoryImpl.java create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vmmanager/impl/VmmanagerPackageImpl.java create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vmmanager/util/VmmanagerAdapterFactory.java create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vmmanager/util/VmmanagerSwitch.java create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore/manager.xcore create mode 100644 dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore/service.xcore (limited to 'dcae-controller-service-vm/dcae-controller-service-vm-model') diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/.classpath b/dcae-controller-service-vm/dcae-controller-service-vm-model/.classpath new file mode 100644 index 0000000..69b19c6 --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/.classpath @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/.gitignore b/dcae-controller-service-vm/dcae-controller-service-vm-model/.gitignore new file mode 100644 index 0000000..09e3bc9 --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/.gitignore @@ -0,0 +1,2 @@ +/bin/ +/target/ diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/.project b/dcae-controller-service-vm/dcae-controller-service-vm-model/.project new file mode 100644 index 0000000..c4817ae --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/.project @@ -0,0 +1,34 @@ + + + dcae-controller-service-vm-model + + + + + + org.eclipse.xtext.ui.shared.xtextBuilder + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.jdt.core.javanature + org.eclipse.pde.PluginNature + org.eclipse.xtext.ui.shared.xtextNature + + diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/.settings/org.eclipse.jdt.core.prefs b/dcae-controller-service-vm/dcae-controller-service-vm-model/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..4ede96d --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/.settings/org.eclipse.m2e.core.prefs b/dcae-controller-service-vm/dcae-controller-service-vm-model/.settings/org.eclipse.m2e.core.prefs new file mode 100644 index 0000000..f897a7f --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/.settings/org.eclipse.m2e.core.prefs @@ -0,0 +1,4 @@ +activeProfiles= +eclipse.preferences.version=1 +resolveWorkspaceProjects=true +version=1 diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/LICENSE.txt b/dcae-controller-service-vm/dcae-controller-service-vm-model/LICENSE.txt new file mode 100644 index 0000000..30471b5 --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/LICENSE.txt @@ -0,0 +1,22 @@ + +/*- + * ============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============================================ + */ + +ECOMP and OpenECOMP are trademarks and service marks of AT&T Intellectual Property. diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/META-INF/MANIFEST.MF b/dcae-controller-service-vm/dcae-controller-service-vm-model/META-INF/MANIFEST.MF new file mode 100644 index 0000000..7994e26 --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/META-INF/MANIFEST.MF @@ -0,0 +1,27 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %pluginName +Bundle-SymbolicName: dcae-controller-service-vm-model;singleton:=true +Bundle-Version: 0.1.0.qualifier +Bundle-ClassPath: . +Bundle-Vendor: %providerName +Bundle-Localization: plugin +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 +Export-Package: org.openecomp.dcae.controller.service.vm, + org.openecomp.dcae.controller.service.vm.impl, + org.openecomp.dcae.controller.service.vm.util, + org.openecomp.dcae.controller.service.vmmanager, + org.openecomp.dcae.controller.service.vmmanager.impl, + org.openecomp.dcae.controller.service.vmmanager.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-agent-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", + ncomp-openstack-model;bundle-version="0.1.0";visibility:=reexport, + dcae-controller-core-model;bundle-version="0.1.0";visibility:=reexport +Bundle-ActivationPolicy: lazy diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/build.properties b/dcae-controller-service-vm/dcae-controller-service-vm-model/build.properties new file mode 100644 index 0000000..6d35b6f --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/build.properties @@ -0,0 +1,11 @@ +# + +bin.includes = .,\ + src/main/xcore/,\ + META-INF/,\ + plugin.xml,\ + plugin.properties +jars.compile.order = . +source.. = src/main/xcore-gen/,\ + src/main/xcore/ +output.. = target/classes/ diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/plugin.properties b/dcae-controller-service-vm/dcae-controller-service-vm-model/plugin.properties new file mode 100644 index 0000000..04852d2 --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/plugin.properties @@ -0,0 +1,4 @@ +# + +pluginName = Router Model +providerName = www.example.org diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/plugin.xml b/dcae-controller-service-vm/dcae-controller-service-vm-model/plugin.xml new file mode 100644 index 0000000..4b6bfc6 --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/plugin.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/pom.xml b/dcae-controller-service-vm/dcae-controller-service-vm-model/pom.xml new file mode 100644 index 0000000..ae32ddd --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/pom.xml @@ -0,0 +1,28 @@ + + 4.0.0 + org.openecomp.dcae.controller + dcae-controller-service-vm-model + + org.openecomp.ncomp.maven + ncomp-maven-xcore + 0.1.0-SNAPSHOT + ../../../dcae-org.openecomp.ncomp.maven/ncomp-maven-xcore + + + + org.openecomp.ncomp.sirius.manager + ncomp-sirius-manager-model + ${project.version} + + + org.openecomp.ncomp.openstack + ncomp-openstack-model + ${project.version} + + + org.openecomp.dcae.controller + dcae-controller-core-model + ${project.version} + + + diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/ControllerVirtualMachineService.java b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/ControllerVirtualMachineService.java new file mode 100644 index 0000000..8763179 --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/ControllerVirtualMachineService.java @@ -0,0 +1,38 @@ + +/*- + * ============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 org.openecomp.dcae.controller.service.vm; + + +/** + * + * A representation of the model object 'Controller Virtual Machine Service'. + * + * + * + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getControllerVirtualMachineService() + * @model + * @generated + */ +public interface ControllerVirtualMachineService extends VirtualMachineService { +} // ControllerVirtualMachineService diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/ControllerVirtualMachineServiceInstance.java b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/ControllerVirtualMachineServiceInstance.java new file mode 100644 index 0000000..7535c5d --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/ControllerVirtualMachineServiceInstance.java @@ -0,0 +1,38 @@ + +/*- + * ============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 org.openecomp.dcae.controller.service.vm; + + +/** + * + * A representation of the model object 'Controller Virtual Machine Service Instance'. + * + * + * + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getControllerVirtualMachineServiceInstance() + * @model + * @generated + */ +public interface ControllerVirtualMachineServiceInstance extends VirtualMachineServiceInstance { +} // ControllerVirtualMachineServiceInstance diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/HttpInstallationStep.java b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/HttpInstallationStep.java new file mode 100644 index 0000000..24fe60c --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/HttpInstallationStep.java @@ -0,0 +1,178 @@ + +/*- + * ============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 org.openecomp.dcae.controller.service.vm; + + +/** + * + * A representation of the model object 'Http Installation Step'. + * + * + *

+ * The following features are supported: + *

+ *

+ * + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getHttpInstallationStep() + * @model + * @generated + */ +public interface HttpInstallationStep extends InstallationStep { + /** + * Returns the value of the 'Url' attribute. + * + *

+ * If the meaning of the 'Url' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Url' attribute. + * @see #setUrl(String) + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getHttpInstallationStep_Url() + * @model unique="false" + * @generated + */ + String getUrl(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.service.vm.HttpInstallationStep#getUrl Url}' attribute. + * + * + * @param value the new value of the 'Url' attribute. + * @see #getUrl() + * @generated + */ + void setUrl(String value); + + /** + * Returns the value of the 'User Name' attribute. + * + *

+ * If the meaning of the 'User Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'User Name' attribute. + * @see #setUserName(String) + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getHttpInstallationStep_UserName() + * @model unique="false" + * @generated + */ + String getUserName(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.service.vm.HttpInstallationStep#getUserName User Name}' attribute. + * + * + * @param value the new value of the 'User Name' attribute. + * @see #getUserName() + * @generated + */ + void setUserName(String value); + + /** + * Returns the value of the 'Password' attribute. + * + *

+ * If the meaning of the 'Password' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Password' attribute. + * @see #setPassword(String) + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getHttpInstallationStep_Password() + * @model unique="false" + * @generated + */ + String getPassword(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.service.vm.HttpInstallationStep#getPassword Password}' attribute. + * + * + * @param value the new value of the 'Password' attribute. + * @see #getPassword() + * @generated + */ + void setPassword(String value); + + /** + * Returns the value of the 'Type' attribute. + * + *

+ * If the meaning of the 'Type' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Type' attribute. + * @see #setType(String) + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getHttpInstallationStep_Type() + * @model unique="false" + * @generated + */ + String getType(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.service.vm.HttpInstallationStep#getType Type}' attribute. + * + * + * @param value the new value of the 'Type' attribute. + * @see #getType() + * @generated + */ + void setType(String value); + + /** + * Returns the value of the 'Artifact Id' attribute. + * + *

+ * If the meaning of the 'Artifact Id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Artifact Id' attribute. + * @see #setArtifactId(String) + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getHttpInstallationStep_ArtifactId() + * @model unique="false" + * @generated + */ + String getArtifactId(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.service.vm.HttpInstallationStep#getArtifactId Artifact Id}' attribute. + * + * + * @param value the new value of the 'Artifact Id' attribute. + * @see #getArtifactId() + * @generated + */ + void setArtifactId(String value); + +} // HttpInstallationStep diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/InstallationStep.java b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/InstallationStep.java new file mode 100644 index 0000000..7af4aad --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/InstallationStep.java @@ -0,0 +1,72 @@ + +/*- + * ============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 org.openecomp.dcae.controller.service.vm; + +import org.openecomp.ncomp.core.NamedEntity; + +/** + * + * A representation of the model object 'Installation Step'. + * + * + *

+ * The following features are supported: + *

+ *

+ * + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getInstallationStep() + * @model abstract="true" + * @generated + */ +public interface InstallationStep extends NamedEntity { + + /** + * Returns the value of the 'Application Id' attribute. + * The default value is "dcae". + * + *

+ * If the meaning of the 'Application Id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Application Id' attribute. + * @see #setApplicationId(String) + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getInstallationStep_ApplicationId() + * @model default="dcae" unique="false" + * @generated + */ + String getApplicationId(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.service.vm.InstallationStep#getApplicationId Application Id}' attribute. + * + * + * @param value the new value of the 'Application Id' attribute. + * @see #getApplicationId() + * @generated + */ + void setApplicationId(String value); +} // InstallationStep diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/MavenArtifactInstallationStep.java b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/MavenArtifactInstallationStep.java new file mode 100644 index 0000000..6b01696 --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/MavenArtifactInstallationStep.java @@ -0,0 +1,178 @@ + +/*- + * ============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 org.openecomp.dcae.controller.service.vm; + + +/** + * + * A representation of the model object 'Maven Artifact Installation Step'. + * + * + *

+ * The following features are supported: + *

+ *

+ * + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getMavenArtifactInstallationStep() + * @model + * @generated + */ +public interface MavenArtifactInstallationStep extends InstallationStep { + /** + * Returns the value of the 'Group Id' attribute. + * + *

+ * If the meaning of the 'Group Id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Group Id' attribute. + * @see #setGroupId(String) + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getMavenArtifactInstallationStep_GroupId() + * @model unique="false" + * @generated + */ + String getGroupId(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.service.vm.MavenArtifactInstallationStep#getGroupId Group Id}' attribute. + * + * + * @param value the new value of the 'Group Id' attribute. + * @see #getGroupId() + * @generated + */ + void setGroupId(String value); + + /** + * Returns the value of the 'Artifact Id' attribute. + * + *

+ * If the meaning of the 'Artifact Id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Artifact Id' attribute. + * @see #setArtifactId(String) + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getMavenArtifactInstallationStep_ArtifactId() + * @model unique="false" + * @generated + */ + String getArtifactId(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.service.vm.MavenArtifactInstallationStep#getArtifactId Artifact Id}' attribute. + * + * + * @param value the new value of the 'Artifact Id' attribute. + * @see #getArtifactId() + * @generated + */ + void setArtifactId(String value); + + /** + * Returns the value of the 'Version' attribute. + * + *

+ * If the meaning of the 'Version' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Version' attribute. + * @see #setVersion(String) + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getMavenArtifactInstallationStep_Version() + * @model unique="false" + * @generated + */ + String getVersion(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.service.vm.MavenArtifactInstallationStep#getVersion Version}' attribute. + * + * + * @param value the new value of the 'Version' attribute. + * @see #getVersion() + * @generated + */ + void setVersion(String value); + + /** + * Returns the value of the 'Type' attribute. + * + *

+ * If the meaning of the 'Type' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Type' attribute. + * @see #setType(String) + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getMavenArtifactInstallationStep_Type() + * @model unique="false" + * @generated + */ + String getType(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.service.vm.MavenArtifactInstallationStep#getType Type}' attribute. + * + * + * @param value the new value of the 'Type' attribute. + * @see #getType() + * @generated + */ + void setType(String value); + + /** + * Returns the value of the 'Assembly Id' attribute. + * + *

+ * If the meaning of the 'Assembly Id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Assembly Id' attribute. + * @see #setAssemblyId(String) + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getMavenArtifactInstallationStep_AssemblyId() + * @model unique="false" + * @generated + */ + String getAssemblyId(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.service.vm.MavenArtifactInstallationStep#getAssemblyId Assembly Id}' attribute. + * + * + * @param value the new value of the 'Assembly Id' attribute. + * @see #getAssemblyId() + * @generated + */ + void setAssemblyId(String value); + +} // MavenArtifactInstallationStep diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/PhysicalMachine.java b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/PhysicalMachine.java new file mode 100644 index 0000000..f2ea0ed --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/PhysicalMachine.java @@ -0,0 +1,72 @@ + +/*- + * ============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 org.openecomp.dcae.controller.service.vm; + +import org.openecomp.dcae.controller.core.server.DcaeBasicServer; + +/** + * + * A representation of the model object 'Physical Machine'. + * + * + *

+ * The following features are supported: + *

+ *

+ * + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getPhysicalMachine() + * @model + * @generated + */ +public interface PhysicalMachine extends DcaeBasicServer { + + /** + * Returns the value of the 'Manager Port Number' attribute. + * + *

+ * If the meaning of the 'Manager Port Number' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Manager Port Number' attribute. + * @see #setManagerPortNumber(Integer) + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getPhysicalMachine_ManagerPortNumber() + * @model unique="false" + * annotation="http://openecomp.org type='configuration'" + * @generated + */ + Integer getManagerPortNumber(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.service.vm.PhysicalMachine#getManagerPortNumber Manager Port Number}' attribute. + * + * + * @param value the new value of the 'Manager Port Number' attribute. + * @see #getManagerPortNumber() + * @generated + */ + void setManagerPortNumber(Integer value); +} // PhysicalMachine diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/ShellInstallationStep.java b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/ShellInstallationStep.java new file mode 100644 index 0000000..85a6b2c --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/ShellInstallationStep.java @@ -0,0 +1,70 @@ + +/*- + * ============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 org.openecomp.dcae.controller.service.vm; + + +/** + * + * A representation of the model object 'Shell Installation Step'. + * + * + *

+ * The following features are supported: + *

+ *

+ * + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getShellInstallationStep() + * @model + * @generated + */ +public interface ShellInstallationStep extends InstallationStep { + /** + * Returns the value of the 'Command' attribute. + * + *

+ * If the meaning of the 'Command' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Command' attribute. + * @see #setCommand(String) + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getShellInstallationStep_Command() + * @model unique="false" + * @generated + */ + String getCommand(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.service.vm.ShellInstallationStep#getCommand Command}' attribute. + * + * + * @param value the new value of the 'Command' attribute. + * @see #getCommand() + * @generated + */ + void setCommand(String value); + +} // ShellInstallationStep diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/VirtualMachine.java b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/VirtualMachine.java new file mode 100644 index 0000000..5a96915 --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/VirtualMachine.java @@ -0,0 +1,152 @@ + +/*- + * ============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 org.openecomp.dcae.controller.service.vm; + +import org.openecomp.dcae.controller.core.server.DcaeBasicServer; + +/** + * + * A representation of the model object 'Virtual Machine'. + * + * + *

+ * The following features are supported: + *

+ *

+ * + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachine() + * @model + * @generated + */ +public interface VirtualMachine extends DcaeBasicServer { + /** + * Returns the value of the 'Function Index' attribute. + * + *

+ * If the meaning of the 'Function Index' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Function Index' attribute. + * @see #setFunctionIndex(int) + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachine_FunctionIndex() + * @model unique="false" + * @generated + */ + int getFunctionIndex(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.service.vm.VirtualMachine#getFunctionIndex Function Index}' attribute. + * + * + * @param value the new value of the 'Function Index' attribute. + * @see #getFunctionIndex() + * @generated + */ + void setFunctionIndex(int value); + + /** + * Returns the value of the 'Kvm Name' attribute. + * + *

+ * If the meaning of the 'Kvm Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Kvm Name' attribute. + * @see #setKvmName(String) + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachine_KvmName() + * @model unique="false" + * @generated + */ + String getKvmName(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.service.vm.VirtualMachine#getKvmName Kvm Name}' attribute. + * + * + * @param value the new value of the 'Kvm Name' attribute. + * @see #getKvmName() + * @generated + */ + void setKvmName(String value); + + /** + * Returns the value of the 'Vnc' attribute. + * + *

+ * If the meaning of the 'Vnc' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Vnc' attribute. + * @see #setVnc(String) + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachine_Vnc() + * @model unique="false" + * @generated + */ + String getVnc(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.service.vm.VirtualMachine#getVnc Vnc}' attribute. + * + * + * @param value the new value of the 'Vnc' attribute. + * @see #getVnc() + * @generated + */ + void setVnc(String value); + + /** + * Returns the value of the 'Gateway' attribute. + * + *

+ * If the meaning of the 'Gateway' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Gateway' attribute. + * @see #setGateway(String) + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachine_Gateway() + * @model unique="false" + * @generated + */ + String getGateway(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.service.vm.VirtualMachine#getGateway Gateway}' attribute. + * + * + * @param value the new value of the 'Gateway' attribute. + * @see #getGateway() + * @generated + */ + void setGateway(String value); + +} // VirtualMachine diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/VirtualMachineService.java b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/VirtualMachineService.java new file mode 100644 index 0000000..9c73ebd --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/VirtualMachineService.java @@ -0,0 +1,102 @@ + +/*- + * ============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 org.openecomp.dcae.controller.service.vm; + +import org.openecomp.dcae.controller.core.service.DcaeService; + +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'Virtual Machine Service'. + * + * + *

+ * The following features are supported: + *

+ *

+ * + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachineService() + * @model + * @generated + */ +public interface VirtualMachineService extends DcaeService { + /** + * Returns the value of the 'Instances' containment reference list. + * The list contents are of type {@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance}. + * It is bidirectional and its opposite is '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getService Service}'. + * + *

+ * If the meaning of the 'Instances' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Instances' containment reference list. + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachineService_Instances() + * @see org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getService + * @model opposite="service" containment="true" + * @generated + */ + EList getInstances(); + + /** + * Returns the value of the 'Manager Port Number' attribute. + * The default value is "9999". + * + *

+ * If the meaning of the 'Manager Port Number' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Manager Port Number' attribute. + * @see #setManagerPortNumber(int) + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachineService_ManagerPortNumber() + * @model default="9999" unique="false" + * annotation="http://openecomp.org type='configuration'" + * @generated + */ + int getManagerPortNumber(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineService#getManagerPortNumber Manager Port Number}' attribute. + * + * + * @param value the new value of the 'Manager Port Number' attribute. + * @see #getManagerPortNumber() + * @generated + */ + void setManagerPortNumber(int value); + + /** + * + * + * @model + * @generated + */ + void updateDeploymentStatus(); + +} // VirtualMachineService diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/VirtualMachineServiceConfiguration.java b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/VirtualMachineServiceConfiguration.java new file mode 100644 index 0000000..001bded --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/VirtualMachineServiceConfiguration.java @@ -0,0 +1,72 @@ + +/*- + * ============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 org.openecomp.dcae.controller.service.vm; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Virtual Machine Service Configuration'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceConfiguration#getConfiguration Configuration}
  • + *
+ *

+ * + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachineServiceConfiguration() + * @model + * @generated + */ +public interface VirtualMachineServiceConfiguration extends EObject { + /** + * Returns the value of the 'Configuration' attribute. + * + *

+ * If the meaning of the 'Configuration' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Configuration' attribute. + * @see #setConfiguration(String) + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachineServiceConfiguration_Configuration() + * @model unique="false" + * annotation="http://openecomp.org type='configuration'" + * @generated + */ + String getConfiguration(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceConfiguration#getConfiguration Configuration}' attribute. + * + * + * @param value the new value of the 'Configuration' attribute. + * @see #getConfiguration() + * @generated + */ + void setConfiguration(String value); + +} // VirtualMachineServiceConfiguration diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/VirtualMachineServiceDescriptor.java b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/VirtualMachineServiceDescriptor.java new file mode 100644 index 0000000..5968258 --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/VirtualMachineServiceDescriptor.java @@ -0,0 +1,268 @@ + +/*- + * ============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 org.openecomp.dcae.controller.service.vm; + +import org.openecomp.dcae.controller.core.service.DcaeServiceDescriptor; +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'Virtual Machine Service Descriptor'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor#getServicePackage Service Package}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor#getServiceClass Service Class}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor#getServiceInstanceClass Service Instance Class}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor#getVmType Vm Type}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor#getManagerPortNumber Manager Port Number}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor#getManagerUser Manager User}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor#getEncryptedPassword Encrypted Password}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor#getUsers Users}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor#getAdminUsers Admin Users}
  • + *
+ *

+ * + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachineServiceDescriptor() + * @model + * @generated + */ +public interface VirtualMachineServiceDescriptor extends DcaeServiceDescriptor { + /** + * Returns the value of the 'Service Package' attribute. + * + *

+ * If the meaning of the 'Service Package' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Service Package' attribute. + * @see #setServicePackage(String) + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachineServiceDescriptor_ServicePackage() + * @model unique="false" + * @generated + */ + String getServicePackage(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor#getServicePackage Service Package}' attribute. + * + * + * @param value the new value of the 'Service Package' attribute. + * @see #getServicePackage() + * @generated + */ + void setServicePackage(String value); + + /** + * Returns the value of the 'Service Class' attribute. + * + *

+ * If the meaning of the 'Service Class' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Service Class' attribute. + * @see #setServiceClass(String) + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachineServiceDescriptor_ServiceClass() + * @model unique="false" + * @generated + */ + String getServiceClass(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor#getServiceClass Service Class}' attribute. + * + * + * @param value the new value of the 'Service Class' attribute. + * @see #getServiceClass() + * @generated + */ + void setServiceClass(String value); + + /** + * Returns the value of the 'Service Instance Class' attribute. + * + *

+ * If the meaning of the 'Service Instance Class' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Service Instance Class' attribute. + * @see #setServiceInstanceClass(String) + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachineServiceDescriptor_ServiceInstanceClass() + * @model unique="false" + * @generated + */ + String getServiceInstanceClass(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor#getServiceInstanceClass Service Instance Class}' attribute. + * + * + * @param value the new value of the 'Service Instance Class' attribute. + * @see #getServiceInstanceClass() + * @generated + */ + void setServiceInstanceClass(String value); + + /** + * Returns the value of the 'Vm Type' attribute. + * + *

+ * If the meaning of the 'Vm Type' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Vm Type' attribute. + * @see #setVmType(String) + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachineServiceDescriptor_VmType() + * @model unique="false" + * @generated + */ + String getVmType(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor#getVmType Vm Type}' attribute. + * + * + * @param value the new value of the 'Vm Type' attribute. + * @see #getVmType() + * @generated + */ + void setVmType(String value); + + /** + * Returns the value of the 'Manager Port Number' attribute. + * + *

+ * If the meaning of the 'Manager Port Number' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Manager Port Number' attribute. + * @see #setManagerPortNumber(String) + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachineServiceDescriptor_ManagerPortNumber() + * @model unique="false" + * @generated + */ + String getManagerPortNumber(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor#getManagerPortNumber Manager Port Number}' attribute. + * + * + * @param value the new value of the 'Manager Port Number' attribute. + * @see #getManagerPortNumber() + * @generated + */ + void setManagerPortNumber(String value); + + /** + * Returns the value of the 'Manager User' attribute. + * + *

+ * If the meaning of the 'Manager User' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Manager User' attribute. + * @see #setManagerUser(String) + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachineServiceDescriptor_ManagerUser() + * @model unique="false" + * @generated + */ + String getManagerUser(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor#getManagerUser Manager User}' attribute. + * + * + * @param value the new value of the 'Manager User' attribute. + * @see #getManagerUser() + * @generated + */ + void setManagerUser(String value); + + /** + * Returns the value of the 'Encrypted Password' attribute. + * + *

+ * If the meaning of the 'Encrypted Password' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Encrypted Password' attribute. + * @see #setEncryptedPassword(String) + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachineServiceDescriptor_EncryptedPassword() + * @model unique="false" + * @generated + */ + String getEncryptedPassword(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor#getEncryptedPassword Encrypted Password}' attribute. + * + * + * @param value the new value of the 'Encrypted Password' attribute. + * @see #getEncryptedPassword() + * @generated + */ + void setEncryptedPassword(String value); + + /** + * Returns the value of the 'Users' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Users' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Users' attribute list. + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachineServiceDescriptor_Users() + * @model unique="false" + * @generated + */ + EList getUsers(); + + /** + * Returns the value of the 'Admin Users' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Admin Users' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Admin Users' attribute list. + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachineServiceDescriptor_AdminUsers() + * @model unique="false" + * @generated + */ + EList getAdminUsers(); + +} // VirtualMachineServiceDescriptor diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/VirtualMachineServiceInstance.java b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/VirtualMachineServiceInstance.java new file mode 100644 index 0000000..f095eb8 --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/VirtualMachineServiceInstance.java @@ -0,0 +1,548 @@ + +/*- + * ============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 org.openecomp.dcae.controller.service.vm; + +import org.openecomp.dcae.controller.core.server.DcaeBasicServer; +import org.openecomp.dcae.controller.core.service.DcaeLocation; +import org.openecomp.dcae.controller.core.service.DcaeServiceInstance; +import org.openecomp.ncomp.core.User; +import org.openecomp.ncomp.openstack.core.VirtualMachineType; +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'Virtual Machine Service Instance'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getLocation Location}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getVmType Vm Type}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getUsers Users}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getAdminUsers Admin Users}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getApplicationIds Application Ids}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getAdminId Admin Id}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getNumberOfServers Number Of Servers}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getAvailabilityZone Availability Zone}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getManagerPortNumber Manager Port Number}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getServers Servers}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getLeaderServer Leader Server}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getService Service}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getIedsAdmin Ieds Admin}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getChefUser Chef User}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getChefOrg Chef Org}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getChefTopology Chef Topology}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getOpenstackFlavor Openstack Flavor}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getServiceFqdn Service Fqdn}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getDeploymentTimeoutMinutes Deployment Timeout Minutes}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getSteps Steps}
  • + *
+ *

+ * + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachineServiceInstance() + * @model + * @generated + */ +public interface VirtualMachineServiceInstance extends DcaeServiceInstance, VirtualMachineServiceConfiguration { + /** + * Returns the value of the 'Location' reference. + * + *

+ * If the meaning of the 'Location' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Location' reference. + * @see #setLocation(DcaeLocation) + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachineServiceInstance_Location() + * @model + * @generated + */ + DcaeLocation getLocation(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getLocation Location}' reference. + * + * + * @param value the new value of the 'Location' reference. + * @see #getLocation() + * @generated + */ + void setLocation(DcaeLocation value); + + /** + * Returns the value of the 'Vm Type' reference. + * + *

+ * If the meaning of the 'Vm Type' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Vm Type' reference. + * @see #setVmType(VirtualMachineType) + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachineServiceInstance_VmType() + * @model annotation="http://openecomp.org type='service'" + * @generated + */ + VirtualMachineType getVmType(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getVmType Vm Type}' reference. + * + * + * @param value the new value of the 'Vm Type' reference. + * @see #getVmType() + * @generated + */ + void setVmType(VirtualMachineType value); + + /** + * Returns the value of the 'Users' reference list. + * The list contents are of type {@link org.openecomp.ncomp.core.User}. + * + *

+ * If the meaning of the 'Users' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Users' reference list. + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachineServiceInstance_Users() + * @model annotation="http://openecomp.org type='service'" + * @generated + */ + EList getUsers(); + + /** + * Returns the value of the 'Admin Users' reference list. + * The list contents are of type {@link org.openecomp.ncomp.core.User}. + * + *

+ * If the meaning of the 'Admin Users' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Admin Users' reference list. + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachineServiceInstance_AdminUsers() + * @model annotation="http://openecomp.org type='service'" + * @generated + */ + EList getAdminUsers(); + + /** + * Returns the value of the 'Application Ids' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Application Ids' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Application Ids' attribute list. + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachineServiceInstance_ApplicationIds() + * @model unique="false" + * @generated + */ + EList getApplicationIds(); + + /** + * Returns the value of the 'Admin Id' attribute. + * + *

+ * If the meaning of the 'Admin Id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Admin Id' attribute. + * @see #setAdminId(String) + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachineServiceInstance_AdminId() + * @model unique="false" + * @generated + */ + String getAdminId(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getAdminId Admin Id}' attribute. + * + * + * @param value the new value of the 'Admin Id' attribute. + * @see #getAdminId() + * @generated + */ + void setAdminId(String value); + + /** + * Returns the value of the 'Number Of Servers' attribute. + * The default value is "1". + * + *

+ * If the meaning of the 'Number Of Servers' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Number Of Servers' attribute. + * @see #setNumberOfServers(int) + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachineServiceInstance_NumberOfServers() + * @model default="1" unique="false" + * annotation="http://openecomp.org type='service'" + * @generated + */ + int getNumberOfServers(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getNumberOfServers Number Of Servers}' attribute. + * + * + * @param value the new value of the 'Number Of Servers' attribute. + * @see #getNumberOfServers() + * @generated + */ + void setNumberOfServers(int value); + + /** + * Returns the value of the 'Availability Zone' attribute. + * + *

+ * If the meaning of the 'Availability Zone' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Availability Zone' attribute. + * @see #setAvailabilityZone(String) + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachineServiceInstance_AvailabilityZone() + * @model unique="false" + * annotation="http://openecomp.org type='service'" + * @generated + */ + String getAvailabilityZone(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getAvailabilityZone Availability Zone}' attribute. + * + * + * @param value the new value of the 'Availability Zone' attribute. + * @see #getAvailabilityZone() + * @generated + */ + void setAvailabilityZone(String value); + + /** + * Returns the value of the 'Manager Port Number' attribute. + * + *

+ * If the meaning of the 'Manager Port Number' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Manager Port Number' attribute. + * @see #setManagerPortNumber(Integer) + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachineServiceInstance_ManagerPortNumber() + * @model unique="false" + * annotation="http://openecomp.org type='configuration'" + * @generated + */ + Integer getManagerPortNumber(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getManagerPortNumber Manager Port Number}' attribute. + * + * + * @param value the new value of the 'Manager Port Number' attribute. + * @see #getManagerPortNumber() + * @generated + */ + void setManagerPortNumber(Integer value); + + /** + * Returns the value of the 'Servers' containment reference list. + * The list contents are of type {@link org.openecomp.dcae.controller.core.server.DcaeBasicServer}. + * + *

+ * If the meaning of the 'Servers' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Servers' containment reference list. + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachineServiceInstance_Servers() + * @model containment="true" + * annotation="http://openecomp.org type='operational'" + * @generated + */ + EList getServers(); + + /** + * Returns the value of the 'Leader Server' reference. + * + *

+ * If the meaning of the 'Leader Server' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Leader Server' reference. + * @see #setLeaderServer(DcaeBasicServer) + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachineServiceInstance_LeaderServer() + * @model + * @generated + */ + DcaeBasicServer getLeaderServer(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getLeaderServer Leader Server}' reference. + * + * + * @param value the new value of the 'Leader Server' reference. + * @see #getLeaderServer() + * @generated + */ + void setLeaderServer(DcaeBasicServer value); + + /** + * Returns the value of the 'Service' container reference. + * It is bidirectional and its opposite is '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineService#getInstances Instances}'. + * + *

+ * If the meaning of the 'Service' container reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Service' container reference. + * @see #setService(VirtualMachineService) + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachineServiceInstance_Service() + * @see org.openecomp.dcae.controller.service.vm.VirtualMachineService#getInstances + * @model opposite="instances" transient="false" + * annotation="http://openecomp.org type='operational'" + * @generated + */ + VirtualMachineService getService(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getService Service}' container reference. + * + * + * @param value the new value of the 'Service' container reference. + * @see #getService() + * @generated + */ + void setService(VirtualMachineService value); + + /** + * Returns the value of the 'Ieds Admin' attribute. + * + *

+ * If the meaning of the 'Ieds Admin' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Ieds Admin' attribute. + * @see #setIedsAdmin(String) + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachineServiceInstance_IedsAdmin() + * @model unique="false" + * @generated + */ + String getIedsAdmin(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getIedsAdmin Ieds Admin}' attribute. + * + * + * @param value the new value of the 'Ieds Admin' attribute. + * @see #getIedsAdmin() + * @generated + */ + void setIedsAdmin(String value); + + /** + * Returns the value of the 'Chef User' attribute. + * + *

+ * If the meaning of the 'Chef User' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Chef User' attribute. + * @see #setChefUser(String) + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachineServiceInstance_ChefUser() + * @model unique="false" + * @generated + */ + String getChefUser(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getChefUser Chef User}' attribute. + * + * + * @param value the new value of the 'Chef User' attribute. + * @see #getChefUser() + * @generated + */ + void setChefUser(String value); + + /** + * Returns the value of the 'Chef Org' attribute. + * + *

+ * If the meaning of the 'Chef Org' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Chef Org' attribute. + * @see #setChefOrg(String) + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachineServiceInstance_ChefOrg() + * @model unique="false" + * @generated + */ + String getChefOrg(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getChefOrg Chef Org}' attribute. + * + * + * @param value the new value of the 'Chef Org' attribute. + * @see #getChefOrg() + * @generated + */ + void setChefOrg(String value); + + /** + * Returns the value of the 'Chef Topology' attribute. + * + *

+ * If the meaning of the 'Chef Topology' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Chef Topology' attribute. + * @see #setChefTopology(String) + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachineServiceInstance_ChefTopology() + * @model unique="false" + * @generated + */ + String getChefTopology(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getChefTopology Chef Topology}' attribute. + * + * + * @param value the new value of the 'Chef Topology' attribute. + * @see #getChefTopology() + * @generated + */ + void setChefTopology(String value); + + /** + * Returns the value of the 'Openstack Flavor' attribute. + * + *

+ * If the meaning of the 'Openstack Flavor' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Openstack Flavor' attribute. + * @see #setOpenstackFlavor(String) + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachineServiceInstance_OpenstackFlavor() + * @model unique="false" + * @generated + */ + String getOpenstackFlavor(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getOpenstackFlavor Openstack Flavor}' attribute. + * + * + * @param value the new value of the 'Openstack Flavor' attribute. + * @see #getOpenstackFlavor() + * @generated + */ + void setOpenstackFlavor(String value); + + /** + * Returns the value of the 'Service Fqdn' attribute. + * + *

+ * If the meaning of the 'Service Fqdn' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Service Fqdn' attribute. + * @see #setServiceFqdn(String) + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachineServiceInstance_ServiceFqdn() + * @model unique="false" + * @generated + */ + String getServiceFqdn(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getServiceFqdn Service Fqdn}' attribute. + * + * + * @param value the new value of the 'Service Fqdn' attribute. + * @see #getServiceFqdn() + * @generated + */ + void setServiceFqdn(String value); + + /** + * Returns the value of the 'Deployment Timeout Minutes' attribute. + * The default value is "90". + * + *

+ * If the meaning of the 'Deployment Timeout Minutes' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Deployment Timeout Minutes' attribute. + * @see #setDeploymentTimeoutMinutes(int) + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachineServiceInstance_DeploymentTimeoutMinutes() + * @model default="90" unique="false" + * @generated + */ + int getDeploymentTimeoutMinutes(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getDeploymentTimeoutMinutes Deployment Timeout Minutes}' attribute. + * + * + * @param value the new value of the 'Deployment Timeout Minutes' attribute. + * @see #getDeploymentTimeoutMinutes() + * @generated + */ + void setDeploymentTimeoutMinutes(int value); + + /** + * Returns the value of the 'Steps' containment reference list. + * The list contents are of type {@link org.openecomp.dcae.controller.service.vm.InstallationStep}. + * + *

+ * If the meaning of the 'Steps' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Steps' containment reference list. + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachineServiceInstance_Steps() + * @model containment="true" + * @generated + */ + EList getSteps(); + +} // VirtualMachineServiceInstance diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/VmFactory.java b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/VmFactory.java new file mode 100644 index 0000000..6670a28 --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/VmFactory.java @@ -0,0 +1,135 @@ + +/*- + * ============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 org.openecomp.dcae.controller.service.vm; + +import org.eclipse.emf.ecore.EFactory; + +/** + * + * The Factory for the model. + * It provides a create method for each non-abstract class of the model. + * + * @see org.openecomp.dcae.controller.service.vm.VmPackage + * @generated + */ +public interface VmFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + VmFactory eINSTANCE = org.openecomp.dcae.controller.service.vm.impl.VmFactoryImpl.init(); + + /** + * Returns a new object of class 'Virtual Machine Service'. + * + * + * @return a new object of class 'Virtual Machine Service'. + * @generated + */ + VirtualMachineService createVirtualMachineService(); + + /** + * Returns a new object of class 'Virtual Machine Service Instance'. + * + * + * @return a new object of class 'Virtual Machine Service Instance'. + * @generated + */ + VirtualMachineServiceInstance createVirtualMachineServiceInstance(); + + /** + * Returns a new object of class 'Virtual Machine Service Configuration'. + * + * + * @return a new object of class 'Virtual Machine Service Configuration'. + * @generated + */ + VirtualMachineServiceConfiguration createVirtualMachineServiceConfiguration(); + + /** + * Returns a new object of class 'Virtual Machine Service Descriptor'. + * + * + * @return a new object of class 'Virtual Machine Service Descriptor'. + * @generated + */ + VirtualMachineServiceDescriptor createVirtualMachineServiceDescriptor(); + + /** + * Returns a new object of class 'Physical Machine'. + * + * + * @return a new object of class 'Physical Machine'. + * @generated + */ + PhysicalMachine createPhysicalMachine(); + + /** + * Returns a new object of class 'Virtual Machine'. + * + * + * @return a new object of class 'Virtual Machine'. + * @generated + */ + VirtualMachine createVirtualMachine(); + + /** + * Returns a new object of class 'Shell Installation Step'. + * + * + * @return a new object of class 'Shell Installation Step'. + * @generated + */ + ShellInstallationStep createShellInstallationStep(); + + /** + * Returns a new object of class 'Maven Artifact Installation Step'. + * + * + * @return a new object of class 'Maven Artifact Installation Step'. + * @generated + */ + MavenArtifactInstallationStep createMavenArtifactInstallationStep(); + + /** + * Returns a new object of class 'Http Installation Step'. + * + * + * @return a new object of class 'Http Installation Step'. + * @generated + */ + HttpInstallationStep createHttpInstallationStep(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + VmPackage getVmPackage(); + +} //VmFactory diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/VmPackage.java b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/VmPackage.java new file mode 100644 index 0000000..cd04405 --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/VmPackage.java @@ -0,0 +1,2813 @@ + +/*- + * ============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 org.openecomp.dcae.controller.service.vm; + +import org.openecomp.dcae.controller.core.server.ServerPackage; +import org.openecomp.dcae.controller.core.service.ServicePackage; +import org.openecomp.ncomp.core.CorePackage; +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EOperation; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +/** + * + * The Package for the model. + * It contains accessors for the meta objects to represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each operation of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @see org.openecomp.dcae.controller.service.vm.VmFactory + * @model kind="package" + * annotation="http://www.eclipse.org/emf/2002/GenModel modelDirectory='/dcae-controller-service-vm-model/src/main/xcore-gen' basePackage='org.openecomp.dcae.controller.service'" + * annotation="http://www.eclipse.org/emf/2011/Xcore ecomp='http://openecomp.org'" + * @generated + */ +public interface VmPackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "vm"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "org.openecomp.dcae.controller.service.vm"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "vm"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + VmPackage eINSTANCE = org.openecomp.dcae.controller.service.vm.impl.VmPackageImpl.init(); + + /** + * The meta object id for the '{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceImpl Virtual Machine Service}' class. + * + * + * @see org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceImpl + * @see org.openecomp.dcae.controller.service.vm.impl.VmPackageImpl#getVirtualMachineService() + * @generated + */ + int VIRTUAL_MACHINE_SERVICE = 0; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE__NAME = ServicePackage.DCAE_SERVICE__NAME; + + /** + * The feature id for the 'Last Polled' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE__LAST_POLLED = ServicePackage.DCAE_SERVICE__LAST_POLLED; + + /** + * The feature id for the 'Last Changed' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE__LAST_CHANGED = ServicePackage.DCAE_SERVICE__LAST_CHANGED; + + /** + * The feature id for the 'Created' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE__CREATED = ServicePackage.DCAE_SERVICE__CREATED; + + /** + * The feature id for the 'Instances' containment reference list. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE__INSTANCES = ServicePackage.DCAE_SERVICE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Manager Port Number' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE__MANAGER_PORT_NUMBER = ServicePackage.DCAE_SERVICE_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Virtual Machine Service' class. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_FEATURE_COUNT = ServicePackage.DCAE_SERVICE_FEATURE_COUNT + 2; + + /** + * The operation id for the 'Deploy' operation. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE___DEPLOY__STRING_STRING = ServicePackage.DCAE_SERVICE___DEPLOY__STRING_STRING; + + /** + * The operation id for the 'Undeploy' operation. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE___UNDEPLOY__STRING = ServicePackage.DCAE_SERVICE___UNDEPLOY__STRING; + + /** + * The operation id for the 'Test' operation. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE___TEST__STRING = ServicePackage.DCAE_SERVICE___TEST__STRING; + + /** + * The operation id for the 'Suspend' operation. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE___SUSPEND__STRING = ServicePackage.DCAE_SERVICE___SUSPEND__STRING; + + /** + * The operation id for the 'Resume' operation. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE___RESUME__STRING = ServicePackage.DCAE_SERVICE___RESUME__STRING; + + /** + * The operation id for the 'Push Manager Configuration' operation. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE___PUSH_MANAGER_CONFIGURATION__STRING = ServicePackage.DCAE_SERVICE___PUSH_MANAGER_CONFIGURATION__STRING; + + /** + * The operation id for the 'Poll Manager Configuration' operation. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE___POLL_MANAGER_CONFIGURATION__STRING = ServicePackage.DCAE_SERVICE___POLL_MANAGER_CONFIGURATION__STRING; + + /** + * The operation id for the 'Manager Configuration' operation. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE___MANAGER_CONFIGURATION__STRING = ServicePackage.DCAE_SERVICE___MANAGER_CONFIGURATION__STRING; + + /** + * The operation id for the 'Manager Operation' operation. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE___MANAGER_OPERATION__STRING_STRING_JSONOBJECT = ServicePackage.DCAE_SERVICE___MANAGER_OPERATION__STRING_STRING_JSONOBJECT; + + /** + * The operation id for the 'Update Configuration From Policy' operation. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE___UPDATE_CONFIGURATION_FROM_POLICY__STRING = ServicePackage.DCAE_SERVICE___UPDATE_CONFIGURATION_FROM_POLICY__STRING; + + /** + * The operation id for the 'Run Health Tests' operation. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE___RUN_HEALTH_TESTS = ServicePackage.DCAE_SERVICE___RUN_HEALTH_TESTS; + + /** + * The operation id for the 'Update Deployment Status' operation. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE___UPDATE_DEPLOYMENT_STATUS = ServicePackage.DCAE_SERVICE_OPERATION_COUNT + 0; + + /** + * The number of operations of the 'Virtual Machine Service' class. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_OPERATION_COUNT = ServicePackage.DCAE_SERVICE_OPERATION_COUNT + 1; + + /** + * The meta object id for the '{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceInstanceImpl Virtual Machine Service Instance}' class. + * + * + * @see org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceInstanceImpl + * @see org.openecomp.dcae.controller.service.vm.impl.VmPackageImpl#getVirtualMachineServiceInstance() + * @generated + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE = 1; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__NAME = ServicePackage.DCAE_SERVICE_INSTANCE__NAME; + + /** + * The feature id for the 'Last Polled' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__LAST_POLLED = ServicePackage.DCAE_SERVICE_INSTANCE__LAST_POLLED; + + /** + * The feature id for the 'Last Changed' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__LAST_CHANGED = ServicePackage.DCAE_SERVICE_INSTANCE__LAST_CHANGED; + + /** + * The feature id for the 'Created' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__CREATED = ServicePackage.DCAE_SERVICE_INSTANCE__CREATED; + + /** + * The feature id for the 'Service Container' reference. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__SERVICE_CONTAINER = ServicePackage.DCAE_SERVICE_INSTANCE__SERVICE_CONTAINER; + + /** + * The feature id for the 'Status' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__STATUS = ServicePackage.DCAE_SERVICE_INSTANCE__STATUS; + + /** + * The feature id for the 'Input Streams' containment reference list. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__INPUT_STREAMS = ServicePackage.DCAE_SERVICE_INSTANCE__INPUT_STREAMS; + + /** + * The feature id for the 'Output Streams' containment reference list. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__OUTPUT_STREAMS = ServicePackage.DCAE_SERVICE_INSTANCE__OUTPUT_STREAMS; + + /** + * The feature id for the 'Last Health Test' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__LAST_HEALTH_TEST = ServicePackage.DCAE_SERVICE_INSTANCE__LAST_HEALTH_TEST; + + /** + * The feature id for the 'Health Test Status' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__HEALTH_TEST_STATUS = ServicePackage.DCAE_SERVICE_INSTANCE__HEALTH_TEST_STATUS; + + /** + * The feature id for the 'Health Test Message Code' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__HEALTH_TEST_MESSAGE_CODE = ServicePackage.DCAE_SERVICE_INSTANCE__HEALTH_TEST_MESSAGE_CODE; + + /** + * The feature id for the 'Configuration' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__CONFIGURATION = ServicePackage.DCAE_SERVICE_INSTANCE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Location' reference. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__LOCATION = ServicePackage.DCAE_SERVICE_INSTANCE_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Vm Type' reference. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__VM_TYPE = ServicePackage.DCAE_SERVICE_INSTANCE_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Users' reference list. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__USERS = ServicePackage.DCAE_SERVICE_INSTANCE_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Admin Users' reference list. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__ADMIN_USERS = ServicePackage.DCAE_SERVICE_INSTANCE_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Application Ids' attribute list. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__APPLICATION_IDS = ServicePackage.DCAE_SERVICE_INSTANCE_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Admin Id' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__ADMIN_ID = ServicePackage.DCAE_SERVICE_INSTANCE_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Number Of Servers' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__NUMBER_OF_SERVERS = ServicePackage.DCAE_SERVICE_INSTANCE_FEATURE_COUNT + 7; + + /** + * The feature id for the 'Availability Zone' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__AVAILABILITY_ZONE = ServicePackage.DCAE_SERVICE_INSTANCE_FEATURE_COUNT + 8; + + /** + * The feature id for the 'Manager Port Number' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__MANAGER_PORT_NUMBER = ServicePackage.DCAE_SERVICE_INSTANCE_FEATURE_COUNT + 9; + + /** + * The feature id for the 'Servers' containment reference list. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__SERVERS = ServicePackage.DCAE_SERVICE_INSTANCE_FEATURE_COUNT + 10; + + /** + * The feature id for the 'Leader Server' reference. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__LEADER_SERVER = ServicePackage.DCAE_SERVICE_INSTANCE_FEATURE_COUNT + 11; + + /** + * The feature id for the 'Service' container reference. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__SERVICE = ServicePackage.DCAE_SERVICE_INSTANCE_FEATURE_COUNT + 12; + + /** + * The feature id for the 'Ieds Admin' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__IEDS_ADMIN = ServicePackage.DCAE_SERVICE_INSTANCE_FEATURE_COUNT + 13; + + /** + * The feature id for the 'Chef User' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__CHEF_USER = ServicePackage.DCAE_SERVICE_INSTANCE_FEATURE_COUNT + 14; + + /** + * The feature id for the 'Chef Org' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__CHEF_ORG = ServicePackage.DCAE_SERVICE_INSTANCE_FEATURE_COUNT + 15; + + /** + * The feature id for the 'Chef Topology' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__CHEF_TOPOLOGY = ServicePackage.DCAE_SERVICE_INSTANCE_FEATURE_COUNT + 16; + + /** + * The feature id for the 'Openstack Flavor' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__OPENSTACK_FLAVOR = ServicePackage.DCAE_SERVICE_INSTANCE_FEATURE_COUNT + 17; + + /** + * The feature id for the 'Service Fqdn' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__SERVICE_FQDN = ServicePackage.DCAE_SERVICE_INSTANCE_FEATURE_COUNT + 18; + + /** + * The feature id for the 'Deployment Timeout Minutes' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__DEPLOYMENT_TIMEOUT_MINUTES = ServicePackage.DCAE_SERVICE_INSTANCE_FEATURE_COUNT + 19; + + /** + * The feature id for the 'Steps' containment reference list. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__STEPS = ServicePackage.DCAE_SERVICE_INSTANCE_FEATURE_COUNT + 20; + + /** + * The number of structural features of the 'Virtual Machine Service Instance' class. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE_FEATURE_COUNT = ServicePackage.DCAE_SERVICE_INSTANCE_FEATURE_COUNT + 21; + + /** + * The number of operations of the 'Virtual Machine Service Instance' class. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE_OPERATION_COUNT = ServicePackage.DCAE_SERVICE_INSTANCE_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceConfigurationImpl Virtual Machine Service Configuration}' class. + * + * + * @see org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceConfigurationImpl + * @see org.openecomp.dcae.controller.service.vm.impl.VmPackageImpl#getVirtualMachineServiceConfiguration() + * @generated + */ + int VIRTUAL_MACHINE_SERVICE_CONFIGURATION = 2; + + /** + * The feature id for the 'Configuration' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_CONFIGURATION__CONFIGURATION = 0; + + /** + * The number of structural features of the 'Virtual Machine Service Configuration' class. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_CONFIGURATION_FEATURE_COUNT = 1; + + /** + * The number of operations of the 'Virtual Machine Service Configuration' class. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_CONFIGURATION_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceDescriptorImpl Virtual Machine Service Descriptor}' class. + * + * + * @see org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceDescriptorImpl + * @see org.openecomp.dcae.controller.service.vm.impl.VmPackageImpl#getVirtualMachineServiceDescriptor() + * @generated + */ + int VIRTUAL_MACHINE_SERVICE_DESCRIPTOR = 3; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__NAME = ServicePackage.DCAE_SERVICE_DESCRIPTOR__NAME; + + /** + * The feature id for the 'Last Polled' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__LAST_POLLED = ServicePackage.DCAE_SERVICE_DESCRIPTOR__LAST_POLLED; + + /** + * The feature id for the 'Last Changed' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__LAST_CHANGED = ServicePackage.DCAE_SERVICE_DESCRIPTOR__LAST_CHANGED; + + /** + * The feature id for the 'Created' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__CREATED = ServicePackage.DCAE_SERVICE_DESCRIPTOR__CREATED; + + /** + * The feature id for the 'Group Id' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__GROUP_ID = ServicePackage.DCAE_SERVICE_DESCRIPTOR__GROUP_ID; + + /** + * The feature id for the 'Artifact' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__ARTIFACT = ServicePackage.DCAE_SERVICE_DESCRIPTOR__ARTIFACT; + + /** + * The feature id for the 'Version' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__VERSION = ServicePackage.DCAE_SERVICE_DESCRIPTOR__VERSION; + + /** + * The feature id for the 'Service Package' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__SERVICE_PACKAGE = ServicePackage.DCAE_SERVICE_DESCRIPTOR_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Service Class' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__SERVICE_CLASS = ServicePackage.DCAE_SERVICE_DESCRIPTOR_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Service Instance Class' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__SERVICE_INSTANCE_CLASS = ServicePackage.DCAE_SERVICE_DESCRIPTOR_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Vm Type' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__VM_TYPE = ServicePackage.DCAE_SERVICE_DESCRIPTOR_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Manager Port Number' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__MANAGER_PORT_NUMBER = ServicePackage.DCAE_SERVICE_DESCRIPTOR_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Manager User' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__MANAGER_USER = ServicePackage.DCAE_SERVICE_DESCRIPTOR_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Encrypted Password' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__ENCRYPTED_PASSWORD = ServicePackage.DCAE_SERVICE_DESCRIPTOR_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Users' attribute list. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__USERS = ServicePackage.DCAE_SERVICE_DESCRIPTOR_FEATURE_COUNT + 7; + + /** + * The feature id for the 'Admin Users' attribute list. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__ADMIN_USERS = ServicePackage.DCAE_SERVICE_DESCRIPTOR_FEATURE_COUNT + 8; + + /** + * The number of structural features of the 'Virtual Machine Service Descriptor' class. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_DESCRIPTOR_FEATURE_COUNT = ServicePackage.DCAE_SERVICE_DESCRIPTOR_FEATURE_COUNT + 9; + + /** + * The number of operations of the 'Virtual Machine Service Descriptor' class. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_DESCRIPTOR_OPERATION_COUNT = ServicePackage.DCAE_SERVICE_DESCRIPTOR_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.dcae.controller.service.vm.impl.PhysicalMachineImpl Physical Machine}' class. + * + * + * @see org.openecomp.dcae.controller.service.vm.impl.PhysicalMachineImpl + * @see org.openecomp.dcae.controller.service.vm.impl.VmPackageImpl#getPhysicalMachine() + * @generated + */ + int PHYSICAL_MACHINE = 4; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int PHYSICAL_MACHINE__NAME = ServerPackage.DCAE_BASIC_SERVER__NAME; + + /** + * The feature id for the 'Last Polled' attribute. + * + * + * @generated + * @ordered + */ + int PHYSICAL_MACHINE__LAST_POLLED = ServerPackage.DCAE_BASIC_SERVER__LAST_POLLED; + + /** + * The feature id for the 'Last Changed' attribute. + * + * + * @generated + * @ordered + */ + int PHYSICAL_MACHINE__LAST_CHANGED = ServerPackage.DCAE_BASIC_SERVER__LAST_CHANGED; + + /** + * The feature id for the 'Created' attribute. + * + * + * @generated + * @ordered + */ + int PHYSICAL_MACHINE__CREATED = ServerPackage.DCAE_BASIC_SERVER__CREATED; + + /** + * The feature id for the 'Operational State' attribute. + * + * + * @generated + * @ordered + */ + int PHYSICAL_MACHINE__OPERATIONAL_STATE = ServerPackage.DCAE_BASIC_SERVER__OPERATIONAL_STATE; + + /** + * The feature id for the 'Log Message Configuration' containment reference. + * + * + * @generated + * @ordered + */ + int PHYSICAL_MACHINE__LOG_MESSAGE_CONFIGURATION = ServerPackage.DCAE_BASIC_SERVER__LOG_MESSAGE_CONFIGURATION; + + /** + * The feature id for the 'Log Message Categories' containment reference list. + * + * + * @generated + * @ordered + */ + int PHYSICAL_MACHINE__LOG_MESSAGE_CATEGORIES = ServerPackage.DCAE_BASIC_SERVER__LOG_MESSAGE_CATEGORIES; + + /** + * The feature id for the 'Log Message Stats' containment reference list. + * + * + * @generated + * @ordered + */ + int PHYSICAL_MACHINE__LOG_MESSAGE_STATS = ServerPackage.DCAE_BASIC_SERVER__LOG_MESSAGE_STATS; + + /** + * The feature id for the 'Private Ip' attribute. + * + * + * @generated + * @ordered + */ + int PHYSICAL_MACHINE__PRIVATE_IP = ServerPackage.DCAE_BASIC_SERVER__PRIVATE_IP; + + /** + * The feature id for the 'Public Ip' attribute. + * + * + * @generated + * @ordered + */ + int PHYSICAL_MACHINE__PUBLIC_IP = ServerPackage.DCAE_BASIC_SERVER__PUBLIC_IP; + + /** + * The feature id for the 'Collectd' containment reference. + * + * + * @generated + * @ordered + */ + int PHYSICAL_MACHINE__COLLECTD = ServerPackage.DCAE_BASIC_SERVER__COLLECTD; + + /** + * The feature id for the 'Modules' containment reference list. + * + * + * @generated + * @ordered + */ + int PHYSICAL_MACHINE__MODULES = ServerPackage.DCAE_BASIC_SERVER__MODULES; + + /** + * The feature id for the 'Networks' containment reference list. + * + * + * @generated + * @ordered + */ + int PHYSICAL_MACHINE__NETWORKS = ServerPackage.DCAE_BASIC_SERVER__NETWORKS; + + /** + * The feature id for the 'Last Update' attribute. + * + * + * @generated + * @ordered + */ + int PHYSICAL_MACHINE__LAST_UPDATE = ServerPackage.DCAE_BASIC_SERVER__LAST_UPDATE; + + /** + * The feature id for the 'Using Monitoring Agent' attribute. + * + * + * @generated + * @ordered + */ + int PHYSICAL_MACHINE__USING_MONITORING_AGENT = ServerPackage.DCAE_BASIC_SERVER__USING_MONITORING_AGENT; + + /** + * The feature id for the 'Server' reference. + * + * + * @generated + * @ordered + */ + int PHYSICAL_MACHINE__SERVER = ServerPackage.DCAE_BASIC_SERVER__SERVER; + + /** + * The feature id for the 'Hypervisor' reference. + * + * + * @generated + * @ordered + */ + int PHYSICAL_MACHINE__HYPERVISOR = ServerPackage.DCAE_BASIC_SERVER__HYPERVISOR; + + /** + * The feature id for the 'Vm Type' reference. + * + * + * @generated + * @ordered + */ + int PHYSICAL_MACHINE__VM_TYPE = ServerPackage.DCAE_BASIC_SERVER__VM_TYPE; + + /** + * The feature id for the 'Certificate Password' attribute. + * + * + * @generated + * @ordered + */ + int PHYSICAL_MACHINE__CERTIFICATE_PASSWORD = ServerPackage.DCAE_BASIC_SERVER__CERTIFICATE_PASSWORD; + + /** + * The feature id for the 'Manager Port Number' attribute. + * + * + * @generated + * @ordered + */ + int PHYSICAL_MACHINE__MANAGER_PORT_NUMBER = ServerPackage.DCAE_BASIC_SERVER_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Physical Machine' class. + * + * + * @generated + * @ordered + */ + int PHYSICAL_MACHINE_FEATURE_COUNT = ServerPackage.DCAE_BASIC_SERVER_FEATURE_COUNT + 1; + + /** + * The number of operations of the 'Physical Machine' class. + * + * + * @generated + * @ordered + */ + int PHYSICAL_MACHINE_OPERATION_COUNT = ServerPackage.DCAE_BASIC_SERVER_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineImpl Virtual Machine}' class. + * + * + * @see org.openecomp.dcae.controller.service.vm.impl.VirtualMachineImpl + * @see org.openecomp.dcae.controller.service.vm.impl.VmPackageImpl#getVirtualMachine() + * @generated + */ + int VIRTUAL_MACHINE = 5; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE__NAME = ServerPackage.DCAE_BASIC_SERVER__NAME; + + /** + * The feature id for the 'Last Polled' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE__LAST_POLLED = ServerPackage.DCAE_BASIC_SERVER__LAST_POLLED; + + /** + * The feature id for the 'Last Changed' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE__LAST_CHANGED = ServerPackage.DCAE_BASIC_SERVER__LAST_CHANGED; + + /** + * The feature id for the 'Created' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE__CREATED = ServerPackage.DCAE_BASIC_SERVER__CREATED; + + /** + * The feature id for the 'Operational State' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE__OPERATIONAL_STATE = ServerPackage.DCAE_BASIC_SERVER__OPERATIONAL_STATE; + + /** + * The feature id for the 'Log Message Configuration' containment reference. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE__LOG_MESSAGE_CONFIGURATION = ServerPackage.DCAE_BASIC_SERVER__LOG_MESSAGE_CONFIGURATION; + + /** + * The feature id for the 'Log Message Categories' containment reference list. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE__LOG_MESSAGE_CATEGORIES = ServerPackage.DCAE_BASIC_SERVER__LOG_MESSAGE_CATEGORIES; + + /** + * The feature id for the 'Log Message Stats' containment reference list. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE__LOG_MESSAGE_STATS = ServerPackage.DCAE_BASIC_SERVER__LOG_MESSAGE_STATS; + + /** + * The feature id for the 'Private Ip' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE__PRIVATE_IP = ServerPackage.DCAE_BASIC_SERVER__PRIVATE_IP; + + /** + * The feature id for the 'Public Ip' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE__PUBLIC_IP = ServerPackage.DCAE_BASIC_SERVER__PUBLIC_IP; + + /** + * The feature id for the 'Collectd' containment reference. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE__COLLECTD = ServerPackage.DCAE_BASIC_SERVER__COLLECTD; + + /** + * The feature id for the 'Modules' containment reference list. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE__MODULES = ServerPackage.DCAE_BASIC_SERVER__MODULES; + + /** + * The feature id for the 'Networks' containment reference list. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE__NETWORKS = ServerPackage.DCAE_BASIC_SERVER__NETWORKS; + + /** + * The feature id for the 'Last Update' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE__LAST_UPDATE = ServerPackage.DCAE_BASIC_SERVER__LAST_UPDATE; + + /** + * The feature id for the 'Using Monitoring Agent' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE__USING_MONITORING_AGENT = ServerPackage.DCAE_BASIC_SERVER__USING_MONITORING_AGENT; + + /** + * The feature id for the 'Server' reference. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE__SERVER = ServerPackage.DCAE_BASIC_SERVER__SERVER; + + /** + * The feature id for the 'Hypervisor' reference. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE__HYPERVISOR = ServerPackage.DCAE_BASIC_SERVER__HYPERVISOR; + + /** + * The feature id for the 'Vm Type' reference. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE__VM_TYPE = ServerPackage.DCAE_BASIC_SERVER__VM_TYPE; + + /** + * The feature id for the 'Certificate Password' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE__CERTIFICATE_PASSWORD = ServerPackage.DCAE_BASIC_SERVER__CERTIFICATE_PASSWORD; + + /** + * The feature id for the 'Function Index' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE__FUNCTION_INDEX = ServerPackage.DCAE_BASIC_SERVER_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Kvm Name' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE__KVM_NAME = ServerPackage.DCAE_BASIC_SERVER_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Vnc' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE__VNC = ServerPackage.DCAE_BASIC_SERVER_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Gateway' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE__GATEWAY = ServerPackage.DCAE_BASIC_SERVER_FEATURE_COUNT + 3; + + /** + * The number of structural features of the 'Virtual Machine' class. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_FEATURE_COUNT = ServerPackage.DCAE_BASIC_SERVER_FEATURE_COUNT + 4; + + /** + * The number of operations of the 'Virtual Machine' class. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_OPERATION_COUNT = ServerPackage.DCAE_BASIC_SERVER_OPERATION_COUNT + 0; + + + /** + * The meta object id for the '{@link org.openecomp.dcae.controller.service.vm.impl.InstallationStepImpl Installation Step}' class. + * + * + * @see org.openecomp.dcae.controller.service.vm.impl.InstallationStepImpl + * @see org.openecomp.dcae.controller.service.vm.impl.VmPackageImpl#getInstallationStep() + * @generated + */ + int INSTALLATION_STEP = 6; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int INSTALLATION_STEP__NAME = CorePackage.NAMED_ENTITY__NAME; + + /** + * The feature id for the 'Last Polled' attribute. + * + * + * @generated + * @ordered + */ + int INSTALLATION_STEP__LAST_POLLED = CorePackage.NAMED_ENTITY__LAST_POLLED; + + /** + * The feature id for the 'Last Changed' attribute. + * + * + * @generated + * @ordered + */ + int INSTALLATION_STEP__LAST_CHANGED = CorePackage.NAMED_ENTITY__LAST_CHANGED; + + /** + * The feature id for the 'Created' attribute. + * + * + * @generated + * @ordered + */ + int INSTALLATION_STEP__CREATED = CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the 'Application Id' attribute. + * + * + * @generated + * @ordered + */ + int INSTALLATION_STEP__APPLICATION_ID = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Installation Step' class. + * + * + * @generated + * @ordered + */ + int INSTALLATION_STEP_FEATURE_COUNT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The number of operations of the 'Installation Step' class. + * + * + * @generated + * @ordered + */ + int INSTALLATION_STEP_OPERATION_COUNT = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.dcae.controller.service.vm.impl.ShellInstallationStepImpl Shell Installation Step}' class. + * + * + * @see org.openecomp.dcae.controller.service.vm.impl.ShellInstallationStepImpl + * @see org.openecomp.dcae.controller.service.vm.impl.VmPackageImpl#getShellInstallationStep() + * @generated + */ + int SHELL_INSTALLATION_STEP = 7; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int SHELL_INSTALLATION_STEP__NAME = INSTALLATION_STEP__NAME; + + /** + * The feature id for the 'Last Polled' attribute. + * + * + * @generated + * @ordered + */ + int SHELL_INSTALLATION_STEP__LAST_POLLED = INSTALLATION_STEP__LAST_POLLED; + + /** + * The feature id for the 'Last Changed' attribute. + * + * + * @generated + * @ordered + */ + int SHELL_INSTALLATION_STEP__LAST_CHANGED = INSTALLATION_STEP__LAST_CHANGED; + + /** + * The feature id for the 'Created' attribute. + * + * + * @generated + * @ordered + */ + int SHELL_INSTALLATION_STEP__CREATED = INSTALLATION_STEP__CREATED; + + /** + * The feature id for the 'Application Id' attribute. + * + * + * @generated + * @ordered + */ + int SHELL_INSTALLATION_STEP__APPLICATION_ID = INSTALLATION_STEP__APPLICATION_ID; + + /** + * The feature id for the 'Command' attribute. + * + * + * @generated + * @ordered + */ + int SHELL_INSTALLATION_STEP__COMMAND = INSTALLATION_STEP_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Shell Installation Step' class. + * + * + * @generated + * @ordered + */ + int SHELL_INSTALLATION_STEP_FEATURE_COUNT = INSTALLATION_STEP_FEATURE_COUNT + 1; + + /** + * The number of operations of the 'Shell Installation Step' class. + * + * + * @generated + * @ordered + */ + int SHELL_INSTALLATION_STEP_OPERATION_COUNT = INSTALLATION_STEP_OPERATION_COUNT + 0; + + + /** + * The meta object id for the '{@link org.openecomp.dcae.controller.service.vm.impl.MavenArtifactInstallationStepImpl Maven Artifact Installation Step}' class. + * + * + * @see org.openecomp.dcae.controller.service.vm.impl.MavenArtifactInstallationStepImpl + * @see org.openecomp.dcae.controller.service.vm.impl.VmPackageImpl#getMavenArtifactInstallationStep() + * @generated + */ + int MAVEN_ARTIFACT_INSTALLATION_STEP = 8; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int MAVEN_ARTIFACT_INSTALLATION_STEP__NAME = INSTALLATION_STEP__NAME; + + /** + * The feature id for the 'Last Polled' attribute. + * + * + * @generated + * @ordered + */ + int MAVEN_ARTIFACT_INSTALLATION_STEP__LAST_POLLED = INSTALLATION_STEP__LAST_POLLED; + + /** + * The feature id for the 'Last Changed' attribute. + * + * + * @generated + * @ordered + */ + int MAVEN_ARTIFACT_INSTALLATION_STEP__LAST_CHANGED = INSTALLATION_STEP__LAST_CHANGED; + + /** + * The feature id for the 'Created' attribute. + * + * + * @generated + * @ordered + */ + int MAVEN_ARTIFACT_INSTALLATION_STEP__CREATED = INSTALLATION_STEP__CREATED; + + /** + * The feature id for the 'Application Id' attribute. + * + * + * @generated + * @ordered + */ + int MAVEN_ARTIFACT_INSTALLATION_STEP__APPLICATION_ID = INSTALLATION_STEP__APPLICATION_ID; + + /** + * The feature id for the 'Group Id' attribute. + * + * + * @generated + * @ordered + */ + int MAVEN_ARTIFACT_INSTALLATION_STEP__GROUP_ID = INSTALLATION_STEP_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Artifact Id' attribute. + * + * + * @generated + * @ordered + */ + int MAVEN_ARTIFACT_INSTALLATION_STEP__ARTIFACT_ID = INSTALLATION_STEP_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Version' attribute. + * + * + * @generated + * @ordered + */ + int MAVEN_ARTIFACT_INSTALLATION_STEP__VERSION = INSTALLATION_STEP_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Type' attribute. + * + * + * @generated + * @ordered + */ + int MAVEN_ARTIFACT_INSTALLATION_STEP__TYPE = INSTALLATION_STEP_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Assembly Id' attribute. + * + * + * @generated + * @ordered + */ + int MAVEN_ARTIFACT_INSTALLATION_STEP__ASSEMBLY_ID = INSTALLATION_STEP_FEATURE_COUNT + 4; + + /** + * The number of structural features of the 'Maven Artifact Installation Step' class. + * + * + * @generated + * @ordered + */ + int MAVEN_ARTIFACT_INSTALLATION_STEP_FEATURE_COUNT = INSTALLATION_STEP_FEATURE_COUNT + 5; + + /** + * The number of operations of the 'Maven Artifact Installation Step' class. + * + * + * @generated + * @ordered + */ + int MAVEN_ARTIFACT_INSTALLATION_STEP_OPERATION_COUNT = INSTALLATION_STEP_OPERATION_COUNT + 0; + + + /** + * The meta object id for the '{@link org.openecomp.dcae.controller.service.vm.impl.HttpInstallationStepImpl Http Installation Step}' class. + * + * + * @see org.openecomp.dcae.controller.service.vm.impl.HttpInstallationStepImpl + * @see org.openecomp.dcae.controller.service.vm.impl.VmPackageImpl#getHttpInstallationStep() + * @generated + */ + int HTTP_INSTALLATION_STEP = 9; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int HTTP_INSTALLATION_STEP__NAME = INSTALLATION_STEP__NAME; + + /** + * The feature id for the 'Last Polled' attribute. + * + * + * @generated + * @ordered + */ + int HTTP_INSTALLATION_STEP__LAST_POLLED = INSTALLATION_STEP__LAST_POLLED; + + /** + * The feature id for the 'Last Changed' attribute. + * + * + * @generated + * @ordered + */ + int HTTP_INSTALLATION_STEP__LAST_CHANGED = INSTALLATION_STEP__LAST_CHANGED; + + /** + * The feature id for the 'Created' attribute. + * + * + * @generated + * @ordered + */ + int HTTP_INSTALLATION_STEP__CREATED = INSTALLATION_STEP__CREATED; + + /** + * The feature id for the 'Application Id' attribute. + * + * + * @generated + * @ordered + */ + int HTTP_INSTALLATION_STEP__APPLICATION_ID = INSTALLATION_STEP__APPLICATION_ID; + + /** + * The feature id for the 'Url' attribute. + * + * + * @generated + * @ordered + */ + int HTTP_INSTALLATION_STEP__URL = INSTALLATION_STEP_FEATURE_COUNT + 0; + + /** + * The feature id for the 'User Name' attribute. + * + * + * @generated + * @ordered + */ + int HTTP_INSTALLATION_STEP__USER_NAME = INSTALLATION_STEP_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Password' attribute. + * + * + * @generated + * @ordered + */ + int HTTP_INSTALLATION_STEP__PASSWORD = INSTALLATION_STEP_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Type' attribute. + * + * + * @generated + * @ordered + */ + int HTTP_INSTALLATION_STEP__TYPE = INSTALLATION_STEP_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Artifact Id' attribute. + * + * + * @generated + * @ordered + */ + int HTTP_INSTALLATION_STEP__ARTIFACT_ID = INSTALLATION_STEP_FEATURE_COUNT + 4; + + /** + * The number of structural features of the 'Http Installation Step' class. + * + * + * @generated + * @ordered + */ + int HTTP_INSTALLATION_STEP_FEATURE_COUNT = INSTALLATION_STEP_FEATURE_COUNT + 5; + + /** + * The number of operations of the 'Http Installation Step' class. + * + * + * @generated + * @ordered + */ + int HTTP_INSTALLATION_STEP_OPERATION_COUNT = INSTALLATION_STEP_OPERATION_COUNT + 0; + + + /** + * Returns the meta object for class '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineService Virtual Machine Service}'. + * + * + * @return the meta object for class 'Virtual Machine Service'. + * @see org.openecomp.dcae.controller.service.vm.VirtualMachineService + * @generated + */ + EClass getVirtualMachineService(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineService#getInstances Instances}'. + * + * + * @return the meta object for the containment reference list 'Instances'. + * @see org.openecomp.dcae.controller.service.vm.VirtualMachineService#getInstances() + * @see #getVirtualMachineService() + * @generated + */ + EReference getVirtualMachineService_Instances(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineService#getManagerPortNumber Manager Port Number}'. + * + * + * @return the meta object for the attribute 'Manager Port Number'. + * @see org.openecomp.dcae.controller.service.vm.VirtualMachineService#getManagerPortNumber() + * @see #getVirtualMachineService() + * @generated + */ + EAttribute getVirtualMachineService_ManagerPortNumber(); + + /** + * Returns the meta object for the '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineService#updateDeploymentStatus() Update Deployment Status}' operation. + * + * + * @return the meta object for the 'Update Deployment Status' operation. + * @see org.openecomp.dcae.controller.service.vm.VirtualMachineService#updateDeploymentStatus() + * @generated + */ + EOperation getVirtualMachineService__UpdateDeploymentStatus(); + + /** + * Returns the meta object for class '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance Virtual Machine Service Instance}'. + * + * + * @return the meta object for class 'Virtual Machine Service Instance'. + * @see org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance + * @generated + */ + EClass getVirtualMachineServiceInstance(); + + /** + * Returns the meta object for the reference '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getLocation Location}'. + * + * + * @return the meta object for the reference 'Location'. + * @see org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getLocation() + * @see #getVirtualMachineServiceInstance() + * @generated + */ + EReference getVirtualMachineServiceInstance_Location(); + + /** + * Returns the meta object for the reference '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getVmType Vm Type}'. + * + * + * @return the meta object for the reference 'Vm Type'. + * @see org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getVmType() + * @see #getVirtualMachineServiceInstance() + * @generated + */ + EReference getVirtualMachineServiceInstance_VmType(); + + /** + * Returns the meta object for the reference list '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getUsers Users}'. + * + * + * @return the meta object for the reference list 'Users'. + * @see org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getUsers() + * @see #getVirtualMachineServiceInstance() + * @generated + */ + EReference getVirtualMachineServiceInstance_Users(); + + /** + * Returns the meta object for the reference list '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getAdminUsers Admin Users}'. + * + * + * @return the meta object for the reference list 'Admin Users'. + * @see org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getAdminUsers() + * @see #getVirtualMachineServiceInstance() + * @generated + */ + EReference getVirtualMachineServiceInstance_AdminUsers(); + + /** + * Returns the meta object for the attribute list '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getApplicationIds Application Ids}'. + * + * + * @return the meta object for the attribute list 'Application Ids'. + * @see org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getApplicationIds() + * @see #getVirtualMachineServiceInstance() + * @generated + */ + EAttribute getVirtualMachineServiceInstance_ApplicationIds(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getAdminId Admin Id}'. + * + * + * @return the meta object for the attribute 'Admin Id'. + * @see org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getAdminId() + * @see #getVirtualMachineServiceInstance() + * @generated + */ + EAttribute getVirtualMachineServiceInstance_AdminId(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getNumberOfServers Number Of Servers}'. + * + * + * @return the meta object for the attribute 'Number Of Servers'. + * @see org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getNumberOfServers() + * @see #getVirtualMachineServiceInstance() + * @generated + */ + EAttribute getVirtualMachineServiceInstance_NumberOfServers(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getAvailabilityZone Availability Zone}'. + * + * + * @return the meta object for the attribute 'Availability Zone'. + * @see org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getAvailabilityZone() + * @see #getVirtualMachineServiceInstance() + * @generated + */ + EAttribute getVirtualMachineServiceInstance_AvailabilityZone(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getManagerPortNumber Manager Port Number}'. + * + * + * @return the meta object for the attribute 'Manager Port Number'. + * @see org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getManagerPortNumber() + * @see #getVirtualMachineServiceInstance() + * @generated + */ + EAttribute getVirtualMachineServiceInstance_ManagerPortNumber(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getServers Servers}'. + * + * + * @return the meta object for the containment reference list 'Servers'. + * @see org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getServers() + * @see #getVirtualMachineServiceInstance() + * @generated + */ + EReference getVirtualMachineServiceInstance_Servers(); + + /** + * Returns the meta object for the reference '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getLeaderServer Leader Server}'. + * + * + * @return the meta object for the reference 'Leader Server'. + * @see org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getLeaderServer() + * @see #getVirtualMachineServiceInstance() + * @generated + */ + EReference getVirtualMachineServiceInstance_LeaderServer(); + + /** + * Returns the meta object for the container reference '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getService Service}'. + * + * + * @return the meta object for the container reference 'Service'. + * @see org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getService() + * @see #getVirtualMachineServiceInstance() + * @generated + */ + EReference getVirtualMachineServiceInstance_Service(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getIedsAdmin Ieds Admin}'. + * + * + * @return the meta object for the attribute 'Ieds Admin'. + * @see org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getIedsAdmin() + * @see #getVirtualMachineServiceInstance() + * @generated + */ + EAttribute getVirtualMachineServiceInstance_IedsAdmin(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getChefUser Chef User}'. + * + * + * @return the meta object for the attribute 'Chef User'. + * @see org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getChefUser() + * @see #getVirtualMachineServiceInstance() + * @generated + */ + EAttribute getVirtualMachineServiceInstance_ChefUser(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getChefOrg Chef Org}'. + * + * + * @return the meta object for the attribute 'Chef Org'. + * @see org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getChefOrg() + * @see #getVirtualMachineServiceInstance() + * @generated + */ + EAttribute getVirtualMachineServiceInstance_ChefOrg(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getChefTopology Chef Topology}'. + * + * + * @return the meta object for the attribute 'Chef Topology'. + * @see org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getChefTopology() + * @see #getVirtualMachineServiceInstance() + * @generated + */ + EAttribute getVirtualMachineServiceInstance_ChefTopology(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getOpenstackFlavor Openstack Flavor}'. + * + * + * @return the meta object for the attribute 'Openstack Flavor'. + * @see org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getOpenstackFlavor() + * @see #getVirtualMachineServiceInstance() + * @generated + */ + EAttribute getVirtualMachineServiceInstance_OpenstackFlavor(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getServiceFqdn Service Fqdn}'. + * + * + * @return the meta object for the attribute 'Service Fqdn'. + * @see org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getServiceFqdn() + * @see #getVirtualMachineServiceInstance() + * @generated + */ + EAttribute getVirtualMachineServiceInstance_ServiceFqdn(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getDeploymentTimeoutMinutes Deployment Timeout Minutes}'. + * + * + * @return the meta object for the attribute 'Deployment Timeout Minutes'. + * @see org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getDeploymentTimeoutMinutes() + * @see #getVirtualMachineServiceInstance() + * @generated + */ + EAttribute getVirtualMachineServiceInstance_DeploymentTimeoutMinutes(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getSteps Steps}'. + * + * + * @return the meta object for the containment reference list 'Steps'. + * @see org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getSteps() + * @see #getVirtualMachineServiceInstance() + * @generated + */ + EReference getVirtualMachineServiceInstance_Steps(); + + /** + * Returns the meta object for class '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceConfiguration Virtual Machine Service Configuration}'. + * + * + * @return the meta object for class 'Virtual Machine Service Configuration'. + * @see org.openecomp.dcae.controller.service.vm.VirtualMachineServiceConfiguration + * @generated + */ + EClass getVirtualMachineServiceConfiguration(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceConfiguration#getConfiguration Configuration}'. + * + * + * @return the meta object for the attribute 'Configuration'. + * @see org.openecomp.dcae.controller.service.vm.VirtualMachineServiceConfiguration#getConfiguration() + * @see #getVirtualMachineServiceConfiguration() + * @generated + */ + EAttribute getVirtualMachineServiceConfiguration_Configuration(); + + /** + * Returns the meta object for class '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor Virtual Machine Service Descriptor}'. + * + * + * @return the meta object for class 'Virtual Machine Service Descriptor'. + * @see org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor + * @generated + */ + EClass getVirtualMachineServiceDescriptor(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor#getServicePackage Service Package}'. + * + * + * @return the meta object for the attribute 'Service Package'. + * @see org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor#getServicePackage() + * @see #getVirtualMachineServiceDescriptor() + * @generated + */ + EAttribute getVirtualMachineServiceDescriptor_ServicePackage(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor#getServiceClass Service Class}'. + * + * + * @return the meta object for the attribute 'Service Class'. + * @see org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor#getServiceClass() + * @see #getVirtualMachineServiceDescriptor() + * @generated + */ + EAttribute getVirtualMachineServiceDescriptor_ServiceClass(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor#getServiceInstanceClass Service Instance Class}'. + * + * + * @return the meta object for the attribute 'Service Instance Class'. + * @see org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor#getServiceInstanceClass() + * @see #getVirtualMachineServiceDescriptor() + * @generated + */ + EAttribute getVirtualMachineServiceDescriptor_ServiceInstanceClass(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor#getVmType Vm Type}'. + * + * + * @return the meta object for the attribute 'Vm Type'. + * @see org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor#getVmType() + * @see #getVirtualMachineServiceDescriptor() + * @generated + */ + EAttribute getVirtualMachineServiceDescriptor_VmType(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor#getManagerPortNumber Manager Port Number}'. + * + * + * @return the meta object for the attribute 'Manager Port Number'. + * @see org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor#getManagerPortNumber() + * @see #getVirtualMachineServiceDescriptor() + * @generated + */ + EAttribute getVirtualMachineServiceDescriptor_ManagerPortNumber(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor#getManagerUser Manager User}'. + * + * + * @return the meta object for the attribute 'Manager User'. + * @see org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor#getManagerUser() + * @see #getVirtualMachineServiceDescriptor() + * @generated + */ + EAttribute getVirtualMachineServiceDescriptor_ManagerUser(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor#getEncryptedPassword Encrypted Password}'. + * + * + * @return the meta object for the attribute 'Encrypted Password'. + * @see org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor#getEncryptedPassword() + * @see #getVirtualMachineServiceDescriptor() + * @generated + */ + EAttribute getVirtualMachineServiceDescriptor_EncryptedPassword(); + + /** + * Returns the meta object for the attribute list '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor#getUsers Users}'. + * + * + * @return the meta object for the attribute list 'Users'. + * @see org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor#getUsers() + * @see #getVirtualMachineServiceDescriptor() + * @generated + */ + EAttribute getVirtualMachineServiceDescriptor_Users(); + + /** + * Returns the meta object for the attribute list '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor#getAdminUsers Admin Users}'. + * + * + * @return the meta object for the attribute list 'Admin Users'. + * @see org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor#getAdminUsers() + * @see #getVirtualMachineServiceDescriptor() + * @generated + */ + EAttribute getVirtualMachineServiceDescriptor_AdminUsers(); + + /** + * Returns the meta object for class '{@link org.openecomp.dcae.controller.service.vm.PhysicalMachine Physical Machine}'. + * + * + * @return the meta object for class 'Physical Machine'. + * @see org.openecomp.dcae.controller.service.vm.PhysicalMachine + * @generated + */ + EClass getPhysicalMachine(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.service.vm.PhysicalMachine#getManagerPortNumber Manager Port Number}'. + * + * + * @return the meta object for the attribute 'Manager Port Number'. + * @see org.openecomp.dcae.controller.service.vm.PhysicalMachine#getManagerPortNumber() + * @see #getPhysicalMachine() + * @generated + */ + EAttribute getPhysicalMachine_ManagerPortNumber(); + + /** + * Returns the meta object for class '{@link org.openecomp.dcae.controller.service.vm.VirtualMachine Virtual Machine}'. + * + * + * @return the meta object for class 'Virtual Machine'. + * @see org.openecomp.dcae.controller.service.vm.VirtualMachine + * @generated + */ + EClass getVirtualMachine(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.service.vm.VirtualMachine#getFunctionIndex Function Index}'. + * + * + * @return the meta object for the attribute 'Function Index'. + * @see org.openecomp.dcae.controller.service.vm.VirtualMachine#getFunctionIndex() + * @see #getVirtualMachine() + * @generated + */ + EAttribute getVirtualMachine_FunctionIndex(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.service.vm.VirtualMachine#getKvmName Kvm Name}'. + * + * + * @return the meta object for the attribute 'Kvm Name'. + * @see org.openecomp.dcae.controller.service.vm.VirtualMachine#getKvmName() + * @see #getVirtualMachine() + * @generated + */ + EAttribute getVirtualMachine_KvmName(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.service.vm.VirtualMachine#getVnc Vnc}'. + * + * + * @return the meta object for the attribute 'Vnc'. + * @see org.openecomp.dcae.controller.service.vm.VirtualMachine#getVnc() + * @see #getVirtualMachine() + * @generated + */ + EAttribute getVirtualMachine_Vnc(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.service.vm.VirtualMachine#getGateway Gateway}'. + * + * + * @return the meta object for the attribute 'Gateway'. + * @see org.openecomp.dcae.controller.service.vm.VirtualMachine#getGateway() + * @see #getVirtualMachine() + * @generated + */ + EAttribute getVirtualMachine_Gateway(); + + /** + * Returns the meta object for class '{@link org.openecomp.dcae.controller.service.vm.InstallationStep Installation Step}'. + * + * + * @return the meta object for class 'Installation Step'. + * @see org.openecomp.dcae.controller.service.vm.InstallationStep + * @generated + */ + EClass getInstallationStep(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.service.vm.InstallationStep#getApplicationId Application Id}'. + * + * + * @return the meta object for the attribute 'Application Id'. + * @see org.openecomp.dcae.controller.service.vm.InstallationStep#getApplicationId() + * @see #getInstallationStep() + * @generated + */ + EAttribute getInstallationStep_ApplicationId(); + + /** + * Returns the meta object for class '{@link org.openecomp.dcae.controller.service.vm.ShellInstallationStep Shell Installation Step}'. + * + * + * @return the meta object for class 'Shell Installation Step'. + * @see org.openecomp.dcae.controller.service.vm.ShellInstallationStep + * @generated + */ + EClass getShellInstallationStep(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.service.vm.ShellInstallationStep#getCommand Command}'. + * + * + * @return the meta object for the attribute 'Command'. + * @see org.openecomp.dcae.controller.service.vm.ShellInstallationStep#getCommand() + * @see #getShellInstallationStep() + * @generated + */ + EAttribute getShellInstallationStep_Command(); + + /** + * Returns the meta object for class '{@link org.openecomp.dcae.controller.service.vm.MavenArtifactInstallationStep Maven Artifact Installation Step}'. + * + * + * @return the meta object for class 'Maven Artifact Installation Step'. + * @see org.openecomp.dcae.controller.service.vm.MavenArtifactInstallationStep + * @generated + */ + EClass getMavenArtifactInstallationStep(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.service.vm.MavenArtifactInstallationStep#getGroupId Group Id}'. + * + * + * @return the meta object for the attribute 'Group Id'. + * @see org.openecomp.dcae.controller.service.vm.MavenArtifactInstallationStep#getGroupId() + * @see #getMavenArtifactInstallationStep() + * @generated + */ + EAttribute getMavenArtifactInstallationStep_GroupId(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.service.vm.MavenArtifactInstallationStep#getArtifactId Artifact Id}'. + * + * + * @return the meta object for the attribute 'Artifact Id'. + * @see org.openecomp.dcae.controller.service.vm.MavenArtifactInstallationStep#getArtifactId() + * @see #getMavenArtifactInstallationStep() + * @generated + */ + EAttribute getMavenArtifactInstallationStep_ArtifactId(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.service.vm.MavenArtifactInstallationStep#getVersion Version}'. + * + * + * @return the meta object for the attribute 'Version'. + * @see org.openecomp.dcae.controller.service.vm.MavenArtifactInstallationStep#getVersion() + * @see #getMavenArtifactInstallationStep() + * @generated + */ + EAttribute getMavenArtifactInstallationStep_Version(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.service.vm.MavenArtifactInstallationStep#getType Type}'. + * + * + * @return the meta object for the attribute 'Type'. + * @see org.openecomp.dcae.controller.service.vm.MavenArtifactInstallationStep#getType() + * @see #getMavenArtifactInstallationStep() + * @generated + */ + EAttribute getMavenArtifactInstallationStep_Type(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.service.vm.MavenArtifactInstallationStep#getAssemblyId Assembly Id}'. + * + * + * @return the meta object for the attribute 'Assembly Id'. + * @see org.openecomp.dcae.controller.service.vm.MavenArtifactInstallationStep#getAssemblyId() + * @see #getMavenArtifactInstallationStep() + * @generated + */ + EAttribute getMavenArtifactInstallationStep_AssemblyId(); + + /** + * Returns the meta object for class '{@link org.openecomp.dcae.controller.service.vm.HttpInstallationStep Http Installation Step}'. + * + * + * @return the meta object for class 'Http Installation Step'. + * @see org.openecomp.dcae.controller.service.vm.HttpInstallationStep + * @generated + */ + EClass getHttpInstallationStep(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.service.vm.HttpInstallationStep#getUrl Url}'. + * + * + * @return the meta object for the attribute 'Url'. + * @see org.openecomp.dcae.controller.service.vm.HttpInstallationStep#getUrl() + * @see #getHttpInstallationStep() + * @generated + */ + EAttribute getHttpInstallationStep_Url(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.service.vm.HttpInstallationStep#getUserName User Name}'. + * + * + * @return the meta object for the attribute 'User Name'. + * @see org.openecomp.dcae.controller.service.vm.HttpInstallationStep#getUserName() + * @see #getHttpInstallationStep() + * @generated + */ + EAttribute getHttpInstallationStep_UserName(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.service.vm.HttpInstallationStep#getPassword Password}'. + * + * + * @return the meta object for the attribute 'Password'. + * @see org.openecomp.dcae.controller.service.vm.HttpInstallationStep#getPassword() + * @see #getHttpInstallationStep() + * @generated + */ + EAttribute getHttpInstallationStep_Password(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.service.vm.HttpInstallationStep#getType Type}'. + * + * + * @return the meta object for the attribute 'Type'. + * @see org.openecomp.dcae.controller.service.vm.HttpInstallationStep#getType() + * @see #getHttpInstallationStep() + * @generated + */ + EAttribute getHttpInstallationStep_Type(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.service.vm.HttpInstallationStep#getArtifactId Artifact Id}'. + * + * + * @return the meta object for the attribute 'Artifact Id'. + * @see org.openecomp.dcae.controller.service.vm.HttpInstallationStep#getArtifactId() + * @see #getHttpInstallationStep() + * @generated + */ + EAttribute getHttpInstallationStep_ArtifactId(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + VmFactory getVmFactory(); + + /** + * + * Defines literals for the meta objects that represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each operation of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceImpl Virtual Machine Service}' class. + * + * + * @see org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceImpl + * @see org.openecomp.dcae.controller.service.vm.impl.VmPackageImpl#getVirtualMachineService() + * @generated + */ + EClass VIRTUAL_MACHINE_SERVICE = eINSTANCE.getVirtualMachineService(); + + /** + * The meta object literal for the 'Instances' containment reference list feature. + * + * + * @generated + */ + EReference VIRTUAL_MACHINE_SERVICE__INSTANCES = eINSTANCE.getVirtualMachineService_Instances(); + + /** + * The meta object literal for the 'Manager Port Number' attribute feature. + * + * + * @generated + */ + EAttribute VIRTUAL_MACHINE_SERVICE__MANAGER_PORT_NUMBER = eINSTANCE.getVirtualMachineService_ManagerPortNumber(); + + /** + * The meta object literal for the 'Update Deployment Status' operation. + * + * + * @generated + */ + EOperation VIRTUAL_MACHINE_SERVICE___UPDATE_DEPLOYMENT_STATUS = eINSTANCE.getVirtualMachineService__UpdateDeploymentStatus(); + + /** + * The meta object literal for the '{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceInstanceImpl Virtual Machine Service Instance}' class. + * + * + * @see org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceInstanceImpl + * @see org.openecomp.dcae.controller.service.vm.impl.VmPackageImpl#getVirtualMachineServiceInstance() + * @generated + */ + EClass VIRTUAL_MACHINE_SERVICE_INSTANCE = eINSTANCE.getVirtualMachineServiceInstance(); + + /** + * The meta object literal for the 'Location' reference feature. + * + * + * @generated + */ + EReference VIRTUAL_MACHINE_SERVICE_INSTANCE__LOCATION = eINSTANCE.getVirtualMachineServiceInstance_Location(); + + /** + * The meta object literal for the 'Vm Type' reference feature. + * + * + * @generated + */ + EReference VIRTUAL_MACHINE_SERVICE_INSTANCE__VM_TYPE = eINSTANCE.getVirtualMachineServiceInstance_VmType(); + + /** + * The meta object literal for the 'Users' reference list feature. + * + * + * @generated + */ + EReference VIRTUAL_MACHINE_SERVICE_INSTANCE__USERS = eINSTANCE.getVirtualMachineServiceInstance_Users(); + + /** + * The meta object literal for the 'Admin Users' reference list feature. + * + * + * @generated + */ + EReference VIRTUAL_MACHINE_SERVICE_INSTANCE__ADMIN_USERS = eINSTANCE.getVirtualMachineServiceInstance_AdminUsers(); + + /** + * The meta object literal for the 'Application Ids' attribute list feature. + * + * + * @generated + */ + EAttribute VIRTUAL_MACHINE_SERVICE_INSTANCE__APPLICATION_IDS = eINSTANCE.getVirtualMachineServiceInstance_ApplicationIds(); + + /** + * The meta object literal for the 'Admin Id' attribute feature. + * + * + * @generated + */ + EAttribute VIRTUAL_MACHINE_SERVICE_INSTANCE__ADMIN_ID = eINSTANCE.getVirtualMachineServiceInstance_AdminId(); + + /** + * The meta object literal for the 'Number Of Servers' attribute feature. + * + * + * @generated + */ + EAttribute VIRTUAL_MACHINE_SERVICE_INSTANCE__NUMBER_OF_SERVERS = eINSTANCE.getVirtualMachineServiceInstance_NumberOfServers(); + + /** + * The meta object literal for the 'Availability Zone' attribute feature. + * + * + * @generated + */ + EAttribute VIRTUAL_MACHINE_SERVICE_INSTANCE__AVAILABILITY_ZONE = eINSTANCE.getVirtualMachineServiceInstance_AvailabilityZone(); + + /** + * The meta object literal for the 'Manager Port Number' attribute feature. + * + * + * @generated + */ + EAttribute VIRTUAL_MACHINE_SERVICE_INSTANCE__MANAGER_PORT_NUMBER = eINSTANCE.getVirtualMachineServiceInstance_ManagerPortNumber(); + + /** + * The meta object literal for the 'Servers' containment reference list feature. + * + * + * @generated + */ + EReference VIRTUAL_MACHINE_SERVICE_INSTANCE__SERVERS = eINSTANCE.getVirtualMachineServiceInstance_Servers(); + + /** + * The meta object literal for the 'Leader Server' reference feature. + * + * + * @generated + */ + EReference VIRTUAL_MACHINE_SERVICE_INSTANCE__LEADER_SERVER = eINSTANCE.getVirtualMachineServiceInstance_LeaderServer(); + + /** + * The meta object literal for the 'Service' container reference feature. + * + * + * @generated + */ + EReference VIRTUAL_MACHINE_SERVICE_INSTANCE__SERVICE = eINSTANCE.getVirtualMachineServiceInstance_Service(); + + /** + * The meta object literal for the 'Ieds Admin' attribute feature. + * + * + * @generated + */ + EAttribute VIRTUAL_MACHINE_SERVICE_INSTANCE__IEDS_ADMIN = eINSTANCE.getVirtualMachineServiceInstance_IedsAdmin(); + + /** + * The meta object literal for the 'Chef User' attribute feature. + * + * + * @generated + */ + EAttribute VIRTUAL_MACHINE_SERVICE_INSTANCE__CHEF_USER = eINSTANCE.getVirtualMachineServiceInstance_ChefUser(); + + /** + * The meta object literal for the 'Chef Org' attribute feature. + * + * + * @generated + */ + EAttribute VIRTUAL_MACHINE_SERVICE_INSTANCE__CHEF_ORG = eINSTANCE.getVirtualMachineServiceInstance_ChefOrg(); + + /** + * The meta object literal for the 'Chef Topology' attribute feature. + * + * + * @generated + */ + EAttribute VIRTUAL_MACHINE_SERVICE_INSTANCE__CHEF_TOPOLOGY = eINSTANCE.getVirtualMachineServiceInstance_ChefTopology(); + + /** + * The meta object literal for the 'Openstack Flavor' attribute feature. + * + * + * @generated + */ + EAttribute VIRTUAL_MACHINE_SERVICE_INSTANCE__OPENSTACK_FLAVOR = eINSTANCE.getVirtualMachineServiceInstance_OpenstackFlavor(); + + /** + * The meta object literal for the 'Service Fqdn' attribute feature. + * + * + * @generated + */ + EAttribute VIRTUAL_MACHINE_SERVICE_INSTANCE__SERVICE_FQDN = eINSTANCE.getVirtualMachineServiceInstance_ServiceFqdn(); + + /** + * The meta object literal for the 'Deployment Timeout Minutes' attribute feature. + * + * + * @generated + */ + EAttribute VIRTUAL_MACHINE_SERVICE_INSTANCE__DEPLOYMENT_TIMEOUT_MINUTES = eINSTANCE.getVirtualMachineServiceInstance_DeploymentTimeoutMinutes(); + + /** + * The meta object literal for the 'Steps' containment reference list feature. + * + * + * @generated + */ + EReference VIRTUAL_MACHINE_SERVICE_INSTANCE__STEPS = eINSTANCE.getVirtualMachineServiceInstance_Steps(); + + /** + * The meta object literal for the '{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceConfigurationImpl Virtual Machine Service Configuration}' class. + * + * + * @see org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceConfigurationImpl + * @see org.openecomp.dcae.controller.service.vm.impl.VmPackageImpl#getVirtualMachineServiceConfiguration() + * @generated + */ + EClass VIRTUAL_MACHINE_SERVICE_CONFIGURATION = eINSTANCE.getVirtualMachineServiceConfiguration(); + + /** + * The meta object literal for the 'Configuration' attribute feature. + * + * + * @generated + */ + EAttribute VIRTUAL_MACHINE_SERVICE_CONFIGURATION__CONFIGURATION = eINSTANCE.getVirtualMachineServiceConfiguration_Configuration(); + + /** + * The meta object literal for the '{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceDescriptorImpl Virtual Machine Service Descriptor}' class. + * + * + * @see org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceDescriptorImpl + * @see org.openecomp.dcae.controller.service.vm.impl.VmPackageImpl#getVirtualMachineServiceDescriptor() + * @generated + */ + EClass VIRTUAL_MACHINE_SERVICE_DESCRIPTOR = eINSTANCE.getVirtualMachineServiceDescriptor(); + + /** + * The meta object literal for the 'Service Package' attribute feature. + * + * + * @generated + */ + EAttribute VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__SERVICE_PACKAGE = eINSTANCE.getVirtualMachineServiceDescriptor_ServicePackage(); + + /** + * The meta object literal for the 'Service Class' attribute feature. + * + * + * @generated + */ + EAttribute VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__SERVICE_CLASS = eINSTANCE.getVirtualMachineServiceDescriptor_ServiceClass(); + + /** + * The meta object literal for the 'Service Instance Class' attribute feature. + * + * + * @generated + */ + EAttribute VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__SERVICE_INSTANCE_CLASS = eINSTANCE.getVirtualMachineServiceDescriptor_ServiceInstanceClass(); + + /** + * The meta object literal for the 'Vm Type' attribute feature. + * + * + * @generated + */ + EAttribute VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__VM_TYPE = eINSTANCE.getVirtualMachineServiceDescriptor_VmType(); + + /** + * The meta object literal for the 'Manager Port Number' attribute feature. + * + * + * @generated + */ + EAttribute VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__MANAGER_PORT_NUMBER = eINSTANCE.getVirtualMachineServiceDescriptor_ManagerPortNumber(); + + /** + * The meta object literal for the 'Manager User' attribute feature. + * + * + * @generated + */ + EAttribute VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__MANAGER_USER = eINSTANCE.getVirtualMachineServiceDescriptor_ManagerUser(); + + /** + * The meta object literal for the 'Encrypted Password' attribute feature. + * + * + * @generated + */ + EAttribute VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__ENCRYPTED_PASSWORD = eINSTANCE.getVirtualMachineServiceDescriptor_EncryptedPassword(); + + /** + * The meta object literal for the 'Users' attribute list feature. + * + * + * @generated + */ + EAttribute VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__USERS = eINSTANCE.getVirtualMachineServiceDescriptor_Users(); + + /** + * The meta object literal for the 'Admin Users' attribute list feature. + * + * + * @generated + */ + EAttribute VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__ADMIN_USERS = eINSTANCE.getVirtualMachineServiceDescriptor_AdminUsers(); + + /** + * The meta object literal for the '{@link org.openecomp.dcae.controller.service.vm.impl.PhysicalMachineImpl Physical Machine}' class. + * + * + * @see org.openecomp.dcae.controller.service.vm.impl.PhysicalMachineImpl + * @see org.openecomp.dcae.controller.service.vm.impl.VmPackageImpl#getPhysicalMachine() + * @generated + */ + EClass PHYSICAL_MACHINE = eINSTANCE.getPhysicalMachine(); + + /** + * The meta object literal for the 'Manager Port Number' attribute feature. + * + * + * @generated + */ + EAttribute PHYSICAL_MACHINE__MANAGER_PORT_NUMBER = eINSTANCE.getPhysicalMachine_ManagerPortNumber(); + + /** + * The meta object literal for the '{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineImpl Virtual Machine}' class. + * + * + * @see org.openecomp.dcae.controller.service.vm.impl.VirtualMachineImpl + * @see org.openecomp.dcae.controller.service.vm.impl.VmPackageImpl#getVirtualMachine() + * @generated + */ + EClass VIRTUAL_MACHINE = eINSTANCE.getVirtualMachine(); + + /** + * The meta object literal for the 'Function Index' attribute feature. + * + * + * @generated + */ + EAttribute VIRTUAL_MACHINE__FUNCTION_INDEX = eINSTANCE.getVirtualMachine_FunctionIndex(); + + /** + * The meta object literal for the 'Kvm Name' attribute feature. + * + * + * @generated + */ + EAttribute VIRTUAL_MACHINE__KVM_NAME = eINSTANCE.getVirtualMachine_KvmName(); + + /** + * The meta object literal for the 'Vnc' attribute feature. + * + * + * @generated + */ + EAttribute VIRTUAL_MACHINE__VNC = eINSTANCE.getVirtualMachine_Vnc(); + + /** + * The meta object literal for the 'Gateway' attribute feature. + * + * + * @generated + */ + EAttribute VIRTUAL_MACHINE__GATEWAY = eINSTANCE.getVirtualMachine_Gateway(); + + /** + * The meta object literal for the '{@link org.openecomp.dcae.controller.service.vm.impl.InstallationStepImpl Installation Step}' class. + * + * + * @see org.openecomp.dcae.controller.service.vm.impl.InstallationStepImpl + * @see org.openecomp.dcae.controller.service.vm.impl.VmPackageImpl#getInstallationStep() + * @generated + */ + EClass INSTALLATION_STEP = eINSTANCE.getInstallationStep(); + + /** + * The meta object literal for the 'Application Id' attribute feature. + * + * + * @generated + */ + EAttribute INSTALLATION_STEP__APPLICATION_ID = eINSTANCE.getInstallationStep_ApplicationId(); + + /** + * The meta object literal for the '{@link org.openecomp.dcae.controller.service.vm.impl.ShellInstallationStepImpl Shell Installation Step}' class. + * + * + * @see org.openecomp.dcae.controller.service.vm.impl.ShellInstallationStepImpl + * @see org.openecomp.dcae.controller.service.vm.impl.VmPackageImpl#getShellInstallationStep() + * @generated + */ + EClass SHELL_INSTALLATION_STEP = eINSTANCE.getShellInstallationStep(); + + /** + * The meta object literal for the 'Command' attribute feature. + * + * + * @generated + */ + EAttribute SHELL_INSTALLATION_STEP__COMMAND = eINSTANCE.getShellInstallationStep_Command(); + + /** + * The meta object literal for the '{@link org.openecomp.dcae.controller.service.vm.impl.MavenArtifactInstallationStepImpl Maven Artifact Installation Step}' class. + * + * + * @see org.openecomp.dcae.controller.service.vm.impl.MavenArtifactInstallationStepImpl + * @see org.openecomp.dcae.controller.service.vm.impl.VmPackageImpl#getMavenArtifactInstallationStep() + * @generated + */ + EClass MAVEN_ARTIFACT_INSTALLATION_STEP = eINSTANCE.getMavenArtifactInstallationStep(); + + /** + * The meta object literal for the 'Group Id' attribute feature. + * + * + * @generated + */ + EAttribute MAVEN_ARTIFACT_INSTALLATION_STEP__GROUP_ID = eINSTANCE.getMavenArtifactInstallationStep_GroupId(); + + /** + * The meta object literal for the 'Artifact Id' attribute feature. + * + * + * @generated + */ + EAttribute MAVEN_ARTIFACT_INSTALLATION_STEP__ARTIFACT_ID = eINSTANCE.getMavenArtifactInstallationStep_ArtifactId(); + + /** + * The meta object literal for the 'Version' attribute feature. + * + * + * @generated + */ + EAttribute MAVEN_ARTIFACT_INSTALLATION_STEP__VERSION = eINSTANCE.getMavenArtifactInstallationStep_Version(); + + /** + * The meta object literal for the 'Type' attribute feature. + * + * + * @generated + */ + EAttribute MAVEN_ARTIFACT_INSTALLATION_STEP__TYPE = eINSTANCE.getMavenArtifactInstallationStep_Type(); + + /** + * The meta object literal for the 'Assembly Id' attribute feature. + * + * + * @generated + */ + EAttribute MAVEN_ARTIFACT_INSTALLATION_STEP__ASSEMBLY_ID = eINSTANCE.getMavenArtifactInstallationStep_AssemblyId(); + + /** + * The meta object literal for the '{@link org.openecomp.dcae.controller.service.vm.impl.HttpInstallationStepImpl Http Installation Step}' class. + * + * + * @see org.openecomp.dcae.controller.service.vm.impl.HttpInstallationStepImpl + * @see org.openecomp.dcae.controller.service.vm.impl.VmPackageImpl#getHttpInstallationStep() + * @generated + */ + EClass HTTP_INSTALLATION_STEP = eINSTANCE.getHttpInstallationStep(); + + /** + * The meta object literal for the 'Url' attribute feature. + * + * + * @generated + */ + EAttribute HTTP_INSTALLATION_STEP__URL = eINSTANCE.getHttpInstallationStep_Url(); + + /** + * The meta object literal for the 'User Name' attribute feature. + * + * + * @generated + */ + EAttribute HTTP_INSTALLATION_STEP__USER_NAME = eINSTANCE.getHttpInstallationStep_UserName(); + + /** + * The meta object literal for the 'Password' attribute feature. + * + * + * @generated + */ + EAttribute HTTP_INSTALLATION_STEP__PASSWORD = eINSTANCE.getHttpInstallationStep_Password(); + + /** + * The meta object literal for the 'Type' attribute feature. + * + * + * @generated + */ + EAttribute HTTP_INSTALLATION_STEP__TYPE = eINSTANCE.getHttpInstallationStep_Type(); + + /** + * The meta object literal for the 'Artifact Id' attribute feature. + * + * + * @generated + */ + EAttribute HTTP_INSTALLATION_STEP__ARTIFACT_ID = eINSTANCE.getHttpInstallationStep_ArtifactId(); + + } + +} //VmPackage diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/HttpInstallationStepImpl.java b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/HttpInstallationStepImpl.java new file mode 100644 index 0000000..8e38498 --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/HttpInstallationStepImpl.java @@ -0,0 +1,399 @@ + +/*- + * ============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 org.openecomp.dcae.controller.service.vm.impl; + +import org.openecomp.dcae.controller.service.vm.HttpInstallationStep; +import org.openecomp.dcae.controller.service.vm.VmPackage; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'Http Installation Step'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.HttpInstallationStepImpl#getUrl Url}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.HttpInstallationStepImpl#getUserName User Name}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.HttpInstallationStepImpl#getPassword Password}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.HttpInstallationStepImpl#getType Type}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.HttpInstallationStepImpl#getArtifactId Artifact Id}
  • + *
+ *

+ * + * @generated + */ +public class HttpInstallationStepImpl extends InstallationStepImpl implements HttpInstallationStep { + /** + * The default value of the '{@link #getUrl() Url}' attribute. + * + * + * @see #getUrl() + * @generated + * @ordered + */ + protected static final String URL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getUrl() Url}' attribute. + * + * + * @see #getUrl() + * @generated + * @ordered + */ + protected String url = URL_EDEFAULT; + + /** + * The default value of the '{@link #getUserName() User Name}' attribute. + * + * + * @see #getUserName() + * @generated + * @ordered + */ + protected static final String USER_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getUserName() User Name}' attribute. + * + * + * @see #getUserName() + * @generated + * @ordered + */ + protected String userName = USER_NAME_EDEFAULT; + + /** + * The default value of the '{@link #getPassword() Password}' attribute. + * + * + * @see #getPassword() + * @generated + * @ordered + */ + protected static final String PASSWORD_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPassword() Password}' attribute. + * + * + * @see #getPassword() + * @generated + * @ordered + */ + protected String password = PASSWORD_EDEFAULT; + + /** + * The default value of the '{@link #getType() Type}' attribute. + * + * + * @see #getType() + * @generated + * @ordered + */ + protected static final String TYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getType() Type}' attribute. + * + * + * @see #getType() + * @generated + * @ordered + */ + protected String type = TYPE_EDEFAULT; + + /** + * The default value of the '{@link #getArtifactId() Artifact Id}' attribute. + * + * + * @see #getArtifactId() + * @generated + * @ordered + */ + protected static final String ARTIFACT_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getArtifactId() Artifact Id}' attribute. + * + * + * @see #getArtifactId() + * @generated + * @ordered + */ + protected String artifactId = ARTIFACT_ID_EDEFAULT; + + /** + * + * + * @generated + */ + protected HttpInstallationStepImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return VmPackage.Literals.HTTP_INSTALLATION_STEP; + } + + /** + * + * + * @generated + */ + public String getUrl() { + return url; + } + + /** + * + * + * @generated + */ + public void setUrl(String newUrl) { + String oldUrl = url; + url = newUrl; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, VmPackage.HTTP_INSTALLATION_STEP__URL, oldUrl, url)); + } + + /** + * + * + * @generated + */ + public String getUserName() { + return userName; + } + + /** + * + * + * @generated + */ + public void setUserName(String newUserName) { + String oldUserName = userName; + userName = newUserName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, VmPackage.HTTP_INSTALLATION_STEP__USER_NAME, oldUserName, userName)); + } + + /** + * + * + * @generated + */ + public String getPassword() { + return password; + } + + /** + * + * + * @generated + */ + public void setPassword(String newPassword) { + String oldPassword = password; + password = newPassword; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, VmPackage.HTTP_INSTALLATION_STEP__PASSWORD, oldPassword, password)); + } + + /** + * + * + * @generated + */ + public String getType() { + return type; + } + + /** + * + * + * @generated + */ + public void setType(String newType) { + String oldType = type; + type = newType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, VmPackage.HTTP_INSTALLATION_STEP__TYPE, oldType, type)); + } + + /** + * + * + * @generated + */ + public String getArtifactId() { + return artifactId; + } + + /** + * + * + * @generated + */ + public void setArtifactId(String newArtifactId) { + String oldArtifactId = artifactId; + artifactId = newArtifactId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, VmPackage.HTTP_INSTALLATION_STEP__ARTIFACT_ID, oldArtifactId, artifactId)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case VmPackage.HTTP_INSTALLATION_STEP__URL: + return getUrl(); + case VmPackage.HTTP_INSTALLATION_STEP__USER_NAME: + return getUserName(); + case VmPackage.HTTP_INSTALLATION_STEP__PASSWORD: + return getPassword(); + case VmPackage.HTTP_INSTALLATION_STEP__TYPE: + return getType(); + case VmPackage.HTTP_INSTALLATION_STEP__ARTIFACT_ID: + return getArtifactId(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case VmPackage.HTTP_INSTALLATION_STEP__URL: + setUrl((String)newValue); + return; + case VmPackage.HTTP_INSTALLATION_STEP__USER_NAME: + setUserName((String)newValue); + return; + case VmPackage.HTTP_INSTALLATION_STEP__PASSWORD: + setPassword((String)newValue); + return; + case VmPackage.HTTP_INSTALLATION_STEP__TYPE: + setType((String)newValue); + return; + case VmPackage.HTTP_INSTALLATION_STEP__ARTIFACT_ID: + setArtifactId((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case VmPackage.HTTP_INSTALLATION_STEP__URL: + setUrl(URL_EDEFAULT); + return; + case VmPackage.HTTP_INSTALLATION_STEP__USER_NAME: + setUserName(USER_NAME_EDEFAULT); + return; + case VmPackage.HTTP_INSTALLATION_STEP__PASSWORD: + setPassword(PASSWORD_EDEFAULT); + return; + case VmPackage.HTTP_INSTALLATION_STEP__TYPE: + setType(TYPE_EDEFAULT); + return; + case VmPackage.HTTP_INSTALLATION_STEP__ARTIFACT_ID: + setArtifactId(ARTIFACT_ID_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case VmPackage.HTTP_INSTALLATION_STEP__URL: + return URL_EDEFAULT == null ? url != null : !URL_EDEFAULT.equals(url); + case VmPackage.HTTP_INSTALLATION_STEP__USER_NAME: + return USER_NAME_EDEFAULT == null ? userName != null : !USER_NAME_EDEFAULT.equals(userName); + case VmPackage.HTTP_INSTALLATION_STEP__PASSWORD: + return PASSWORD_EDEFAULT == null ? password != null : !PASSWORD_EDEFAULT.equals(password); + case VmPackage.HTTP_INSTALLATION_STEP__TYPE: + return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type); + case VmPackage.HTTP_INSTALLATION_STEP__ARTIFACT_ID: + return ARTIFACT_ID_EDEFAULT == null ? artifactId != null : !ARTIFACT_ID_EDEFAULT.equals(artifactId); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (url: "); + result.append(url); + result.append(", userName: "); + result.append(userName); + result.append(", password: "); + result.append(password); + result.append(", type: "); + result.append(type); + result.append(", artifactId: "); + result.append(artifactId); + result.append(')'); + return result.toString(); + } + +} //HttpInstallationStepImpl diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/InstallationStepImpl.java b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/InstallationStepImpl.java new file mode 100644 index 0000000..f7d6ea8 --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/InstallationStepImpl.java @@ -0,0 +1,182 @@ + +/*- + * ============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 org.openecomp.dcae.controller.service.vm.impl; + +import org.openecomp.dcae.controller.service.vm.InstallationStep; +import org.openecomp.dcae.controller.service.vm.VmPackage; + +import org.openecomp.ncomp.core.impl.NamedEntityImpl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'Installation Step'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.InstallationStepImpl#getApplicationId Application Id}
  • + *
+ *

+ * + * @generated + */ +public abstract class InstallationStepImpl extends NamedEntityImpl implements InstallationStep { + /** + * The default value of the '{@link #getApplicationId() Application Id}' attribute. + * + * + * @see #getApplicationId() + * @generated + * @ordered + */ + protected static final String APPLICATION_ID_EDEFAULT = "dcae"; + /** + * The cached value of the '{@link #getApplicationId() Application Id}' attribute. + * + * + * @see #getApplicationId() + * @generated + * @ordered + */ + protected String applicationId = APPLICATION_ID_EDEFAULT; + + /** + * + * + * @generated + */ + protected InstallationStepImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return VmPackage.Literals.INSTALLATION_STEP; + } + + /** + * + * + * @generated + */ + public String getApplicationId() { + return applicationId; + } + + /** + * + * + * @generated + */ + public void setApplicationId(String newApplicationId) { + String oldApplicationId = applicationId; + applicationId = newApplicationId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, VmPackage.INSTALLATION_STEP__APPLICATION_ID, oldApplicationId, applicationId)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case VmPackage.INSTALLATION_STEP__APPLICATION_ID: + return getApplicationId(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case VmPackage.INSTALLATION_STEP__APPLICATION_ID: + setApplicationId((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case VmPackage.INSTALLATION_STEP__APPLICATION_ID: + setApplicationId(APPLICATION_ID_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case VmPackage.INSTALLATION_STEP__APPLICATION_ID: + return APPLICATION_ID_EDEFAULT == null ? applicationId != null : !APPLICATION_ID_EDEFAULT.equals(applicationId); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (applicationId: "); + result.append(applicationId); + result.append(')'); + return result.toString(); + } + +} //InstallationStepImpl diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/MavenArtifactInstallationStepImpl.java b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/MavenArtifactInstallationStepImpl.java new file mode 100644 index 0000000..9f6d24c --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/MavenArtifactInstallationStepImpl.java @@ -0,0 +1,399 @@ + +/*- + * ============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 org.openecomp.dcae.controller.service.vm.impl; + +import org.openecomp.dcae.controller.service.vm.MavenArtifactInstallationStep; +import org.openecomp.dcae.controller.service.vm.VmPackage; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'Maven Artifact Installation Step'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.MavenArtifactInstallationStepImpl#getGroupId Group Id}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.MavenArtifactInstallationStepImpl#getArtifactId Artifact Id}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.MavenArtifactInstallationStepImpl#getVersion Version}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.MavenArtifactInstallationStepImpl#getType Type}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.MavenArtifactInstallationStepImpl#getAssemblyId Assembly Id}
  • + *
+ *

+ * + * @generated + */ +public class MavenArtifactInstallationStepImpl extends InstallationStepImpl implements MavenArtifactInstallationStep { + /** + * The default value of the '{@link #getGroupId() Group Id}' attribute. + * + * + * @see #getGroupId() + * @generated + * @ordered + */ + protected static final String GROUP_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getGroupId() Group Id}' attribute. + * + * + * @see #getGroupId() + * @generated + * @ordered + */ + protected String groupId = GROUP_ID_EDEFAULT; + + /** + * The default value of the '{@link #getArtifactId() Artifact Id}' attribute. + * + * + * @see #getArtifactId() + * @generated + * @ordered + */ + protected static final String ARTIFACT_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getArtifactId() Artifact Id}' attribute. + * + * + * @see #getArtifactId() + * @generated + * @ordered + */ + protected String artifactId = ARTIFACT_ID_EDEFAULT; + + /** + * The default value of the '{@link #getVersion() Version}' attribute. + * + * + * @see #getVersion() + * @generated + * @ordered + */ + protected static final String VERSION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getVersion() Version}' attribute. + * + * + * @see #getVersion() + * @generated + * @ordered + */ + protected String version = VERSION_EDEFAULT; + + /** + * The default value of the '{@link #getType() Type}' attribute. + * + * + * @see #getType() + * @generated + * @ordered + */ + protected static final String TYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getType() Type}' attribute. + * + * + * @see #getType() + * @generated + * @ordered + */ + protected String type = TYPE_EDEFAULT; + + /** + * The default value of the '{@link #getAssemblyId() Assembly Id}' attribute. + * + * + * @see #getAssemblyId() + * @generated + * @ordered + */ + protected static final String ASSEMBLY_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAssemblyId() Assembly Id}' attribute. + * + * + * @see #getAssemblyId() + * @generated + * @ordered + */ + protected String assemblyId = ASSEMBLY_ID_EDEFAULT; + + /** + * + * + * @generated + */ + protected MavenArtifactInstallationStepImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return VmPackage.Literals.MAVEN_ARTIFACT_INSTALLATION_STEP; + } + + /** + * + * + * @generated + */ + public String getGroupId() { + return groupId; + } + + /** + * + * + * @generated + */ + public void setGroupId(String newGroupId) { + String oldGroupId = groupId; + groupId = newGroupId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, VmPackage.MAVEN_ARTIFACT_INSTALLATION_STEP__GROUP_ID, oldGroupId, groupId)); + } + + /** + * + * + * @generated + */ + public String getArtifactId() { + return artifactId; + } + + /** + * + * + * @generated + */ + public void setArtifactId(String newArtifactId) { + String oldArtifactId = artifactId; + artifactId = newArtifactId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, VmPackage.MAVEN_ARTIFACT_INSTALLATION_STEP__ARTIFACT_ID, oldArtifactId, artifactId)); + } + + /** + * + * + * @generated + */ + public String getVersion() { + return version; + } + + /** + * + * + * @generated + */ + public void setVersion(String newVersion) { + String oldVersion = version; + version = newVersion; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, VmPackage.MAVEN_ARTIFACT_INSTALLATION_STEP__VERSION, oldVersion, version)); + } + + /** + * + * + * @generated + */ + public String getType() { + return type; + } + + /** + * + * + * @generated + */ + public void setType(String newType) { + String oldType = type; + type = newType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, VmPackage.MAVEN_ARTIFACT_INSTALLATION_STEP__TYPE, oldType, type)); + } + + /** + * + * + * @generated + */ + public String getAssemblyId() { + return assemblyId; + } + + /** + * + * + * @generated + */ + public void setAssemblyId(String newAssemblyId) { + String oldAssemblyId = assemblyId; + assemblyId = newAssemblyId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, VmPackage.MAVEN_ARTIFACT_INSTALLATION_STEP__ASSEMBLY_ID, oldAssemblyId, assemblyId)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case VmPackage.MAVEN_ARTIFACT_INSTALLATION_STEP__GROUP_ID: + return getGroupId(); + case VmPackage.MAVEN_ARTIFACT_INSTALLATION_STEP__ARTIFACT_ID: + return getArtifactId(); + case VmPackage.MAVEN_ARTIFACT_INSTALLATION_STEP__VERSION: + return getVersion(); + case VmPackage.MAVEN_ARTIFACT_INSTALLATION_STEP__TYPE: + return getType(); + case VmPackage.MAVEN_ARTIFACT_INSTALLATION_STEP__ASSEMBLY_ID: + return getAssemblyId(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case VmPackage.MAVEN_ARTIFACT_INSTALLATION_STEP__GROUP_ID: + setGroupId((String)newValue); + return; + case VmPackage.MAVEN_ARTIFACT_INSTALLATION_STEP__ARTIFACT_ID: + setArtifactId((String)newValue); + return; + case VmPackage.MAVEN_ARTIFACT_INSTALLATION_STEP__VERSION: + setVersion((String)newValue); + return; + case VmPackage.MAVEN_ARTIFACT_INSTALLATION_STEP__TYPE: + setType((String)newValue); + return; + case VmPackage.MAVEN_ARTIFACT_INSTALLATION_STEP__ASSEMBLY_ID: + setAssemblyId((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case VmPackage.MAVEN_ARTIFACT_INSTALLATION_STEP__GROUP_ID: + setGroupId(GROUP_ID_EDEFAULT); + return; + case VmPackage.MAVEN_ARTIFACT_INSTALLATION_STEP__ARTIFACT_ID: + setArtifactId(ARTIFACT_ID_EDEFAULT); + return; + case VmPackage.MAVEN_ARTIFACT_INSTALLATION_STEP__VERSION: + setVersion(VERSION_EDEFAULT); + return; + case VmPackage.MAVEN_ARTIFACT_INSTALLATION_STEP__TYPE: + setType(TYPE_EDEFAULT); + return; + case VmPackage.MAVEN_ARTIFACT_INSTALLATION_STEP__ASSEMBLY_ID: + setAssemblyId(ASSEMBLY_ID_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case VmPackage.MAVEN_ARTIFACT_INSTALLATION_STEP__GROUP_ID: + return GROUP_ID_EDEFAULT == null ? groupId != null : !GROUP_ID_EDEFAULT.equals(groupId); + case VmPackage.MAVEN_ARTIFACT_INSTALLATION_STEP__ARTIFACT_ID: + return ARTIFACT_ID_EDEFAULT == null ? artifactId != null : !ARTIFACT_ID_EDEFAULT.equals(artifactId); + case VmPackage.MAVEN_ARTIFACT_INSTALLATION_STEP__VERSION: + return VERSION_EDEFAULT == null ? version != null : !VERSION_EDEFAULT.equals(version); + case VmPackage.MAVEN_ARTIFACT_INSTALLATION_STEP__TYPE: + return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type); + case VmPackage.MAVEN_ARTIFACT_INSTALLATION_STEP__ASSEMBLY_ID: + return ASSEMBLY_ID_EDEFAULT == null ? assemblyId != null : !ASSEMBLY_ID_EDEFAULT.equals(assemblyId); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (groupId: "); + result.append(groupId); + result.append(", artifactId: "); + result.append(artifactId); + result.append(", version: "); + result.append(version); + result.append(", type: "); + result.append(type); + result.append(", assemblyId: "); + result.append(assemblyId); + result.append(')'); + return result.toString(); + } + +} //MavenArtifactInstallationStepImpl diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/PhysicalMachineImpl.java b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/PhysicalMachineImpl.java new file mode 100644 index 0000000..1cdc009 --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/PhysicalMachineImpl.java @@ -0,0 +1,182 @@ + +/*- + * ============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 org.openecomp.dcae.controller.service.vm.impl; + +import org.openecomp.dcae.controller.core.server.impl.DcaeBasicServerImpl; + +import org.openecomp.dcae.controller.service.vm.PhysicalMachine; +import org.openecomp.dcae.controller.service.vm.VmPackage; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'Physical Machine'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.PhysicalMachineImpl#getManagerPortNumber Manager Port Number}
  • + *
+ *

+ * + * @generated + */ +public class PhysicalMachineImpl extends DcaeBasicServerImpl implements PhysicalMachine { + /** + * The default value of the '{@link #getManagerPortNumber() Manager Port Number}' attribute. + * + * + * @see #getManagerPortNumber() + * @generated + * @ordered + */ + protected static final Integer MANAGER_PORT_NUMBER_EDEFAULT = null; + /** + * The cached value of the '{@link #getManagerPortNumber() Manager Port Number}' attribute. + * + * + * @see #getManagerPortNumber() + * @generated + * @ordered + */ + protected Integer managerPortNumber = MANAGER_PORT_NUMBER_EDEFAULT; + + /** + * + * + * @generated + */ + protected PhysicalMachineImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return VmPackage.Literals.PHYSICAL_MACHINE; + } + + /** + * + * + * @generated + */ + public Integer getManagerPortNumber() { + return managerPortNumber; + } + + /** + * + * + * @generated + */ + public void setManagerPortNumber(Integer newManagerPortNumber) { + Integer oldManagerPortNumber = managerPortNumber; + managerPortNumber = newManagerPortNumber; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, VmPackage.PHYSICAL_MACHINE__MANAGER_PORT_NUMBER, oldManagerPortNumber, managerPortNumber)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case VmPackage.PHYSICAL_MACHINE__MANAGER_PORT_NUMBER: + return getManagerPortNumber(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case VmPackage.PHYSICAL_MACHINE__MANAGER_PORT_NUMBER: + setManagerPortNumber((Integer)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case VmPackage.PHYSICAL_MACHINE__MANAGER_PORT_NUMBER: + setManagerPortNumber(MANAGER_PORT_NUMBER_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case VmPackage.PHYSICAL_MACHINE__MANAGER_PORT_NUMBER: + return MANAGER_PORT_NUMBER_EDEFAULT == null ? managerPortNumber != null : !MANAGER_PORT_NUMBER_EDEFAULT.equals(managerPortNumber); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (managerPortNumber: "); + result.append(managerPortNumber); + result.append(')'); + return result.toString(); + } + +} //PhysicalMachineImpl diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/ShellInstallationStepImpl.java b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/ShellInstallationStepImpl.java new file mode 100644 index 0000000..14ddec6 --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/ShellInstallationStepImpl.java @@ -0,0 +1,183 @@ + +/*- + * ============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 org.openecomp.dcae.controller.service.vm.impl; + +import org.openecomp.dcae.controller.service.vm.ShellInstallationStep; +import org.openecomp.dcae.controller.service.vm.VmPackage; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'Shell Installation Step'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.ShellInstallationStepImpl#getCommand Command}
  • + *
+ *

+ * + * @generated + */ +public class ShellInstallationStepImpl extends InstallationStepImpl implements ShellInstallationStep { + /** + * The default value of the '{@link #getCommand() Command}' attribute. + * + * + * @see #getCommand() + * @generated + * @ordered + */ + protected static final String COMMAND_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCommand() Command}' attribute. + * + * + * @see #getCommand() + * @generated + * @ordered + */ + protected String command = COMMAND_EDEFAULT; + + /** + * + * + * @generated + */ + protected ShellInstallationStepImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return VmPackage.Literals.SHELL_INSTALLATION_STEP; + } + + /** + * + * + * @generated + */ + public String getCommand() { + return command; + } + + /** + * + * + * @generated + */ + public void setCommand(String newCommand) { + String oldCommand = command; + command = newCommand; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, VmPackage.SHELL_INSTALLATION_STEP__COMMAND, oldCommand, command)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case VmPackage.SHELL_INSTALLATION_STEP__COMMAND: + return getCommand(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case VmPackage.SHELL_INSTALLATION_STEP__COMMAND: + setCommand((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case VmPackage.SHELL_INSTALLATION_STEP__COMMAND: + setCommand(COMMAND_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case VmPackage.SHELL_INSTALLATION_STEP__COMMAND: + return COMMAND_EDEFAULT == null ? command != null : !COMMAND_EDEFAULT.equals(command); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (command: "); + result.append(command); + result.append(')'); + return result.toString(); + } + +} //ShellInstallationStepImpl diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/VirtualMachineImpl.java b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/VirtualMachineImpl.java new file mode 100644 index 0000000..c9d588b --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/VirtualMachineImpl.java @@ -0,0 +1,343 @@ + +/*- + * ============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 org.openecomp.dcae.controller.service.vm.impl; + +import org.openecomp.dcae.controller.core.server.impl.DcaeBasicServerImpl; +import org.openecomp.dcae.controller.service.vm.VirtualMachine; +import org.openecomp.dcae.controller.service.vm.VmPackage; +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'Virtual Machine'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineImpl#getFunctionIndex Function Index}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineImpl#getKvmName Kvm Name}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineImpl#getVnc Vnc}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineImpl#getGateway Gateway}
  • + *
+ *

+ * + * @generated + */ +public class VirtualMachineImpl extends DcaeBasicServerImpl implements VirtualMachine { + /** + * The default value of the '{@link #getFunctionIndex() Function Index}' attribute. + * + * + * @see #getFunctionIndex() + * @generated + * @ordered + */ + protected static final int FUNCTION_INDEX_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getFunctionIndex() Function Index}' attribute. + * + * + * @see #getFunctionIndex() + * @generated + * @ordered + */ + protected int functionIndex = FUNCTION_INDEX_EDEFAULT; + + /** + * The default value of the '{@link #getKvmName() Kvm Name}' attribute. + * + * + * @see #getKvmName() + * @generated + * @ordered + */ + protected static final String KVM_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getKvmName() Kvm Name}' attribute. + * + * + * @see #getKvmName() + * @generated + * @ordered + */ + protected String kvmName = KVM_NAME_EDEFAULT; + + /** + * The default value of the '{@link #getVnc() Vnc}' attribute. + * + * + * @see #getVnc() + * @generated + * @ordered + */ + protected static final String VNC_EDEFAULT = null; + + /** + * The cached value of the '{@link #getVnc() Vnc}' attribute. + * + * + * @see #getVnc() + * @generated + * @ordered + */ + protected String vnc = VNC_EDEFAULT; + + /** + * The default value of the '{@link #getGateway() Gateway}' attribute. + * + * + * @see #getGateway() + * @generated + * @ordered + */ + protected static final String GATEWAY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getGateway() Gateway}' attribute. + * + * + * @see #getGateway() + * @generated + * @ordered + */ + protected String gateway = GATEWAY_EDEFAULT; + + /** + * + * + * @generated + */ + protected VirtualMachineImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return VmPackage.Literals.VIRTUAL_MACHINE; + } + + /** + * + * + * @generated + */ + public int getFunctionIndex() { + return functionIndex; + } + + /** + * + * + * @generated + */ + public void setFunctionIndex(int newFunctionIndex) { + int oldFunctionIndex = functionIndex; + functionIndex = newFunctionIndex; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, VmPackage.VIRTUAL_MACHINE__FUNCTION_INDEX, oldFunctionIndex, functionIndex)); + } + + /** + * + * + * @generated + */ + public String getKvmName() { + return kvmName; + } + + /** + * + * + * @generated + */ + public void setKvmName(String newKvmName) { + String oldKvmName = kvmName; + kvmName = newKvmName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, VmPackage.VIRTUAL_MACHINE__KVM_NAME, oldKvmName, kvmName)); + } + + /** + * + * + * @generated + */ + public String getVnc() { + return vnc; + } + + /** + * + * + * @generated + */ + public void setVnc(String newVnc) { + String oldVnc = vnc; + vnc = newVnc; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, VmPackage.VIRTUAL_MACHINE__VNC, oldVnc, vnc)); + } + + /** + * + * + * @generated + */ + public String getGateway() { + return gateway; + } + + /** + * + * + * @generated + */ + public void setGateway(String newGateway) { + String oldGateway = gateway; + gateway = newGateway; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, VmPackage.VIRTUAL_MACHINE__GATEWAY, oldGateway, gateway)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case VmPackage.VIRTUAL_MACHINE__FUNCTION_INDEX: + return getFunctionIndex(); + case VmPackage.VIRTUAL_MACHINE__KVM_NAME: + return getKvmName(); + case VmPackage.VIRTUAL_MACHINE__VNC: + return getVnc(); + case VmPackage.VIRTUAL_MACHINE__GATEWAY: + return getGateway(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case VmPackage.VIRTUAL_MACHINE__FUNCTION_INDEX: + setFunctionIndex((Integer)newValue); + return; + case VmPackage.VIRTUAL_MACHINE__KVM_NAME: + setKvmName((String)newValue); + return; + case VmPackage.VIRTUAL_MACHINE__VNC: + setVnc((String)newValue); + return; + case VmPackage.VIRTUAL_MACHINE__GATEWAY: + setGateway((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case VmPackage.VIRTUAL_MACHINE__FUNCTION_INDEX: + setFunctionIndex(FUNCTION_INDEX_EDEFAULT); + return; + case VmPackage.VIRTUAL_MACHINE__KVM_NAME: + setKvmName(KVM_NAME_EDEFAULT); + return; + case VmPackage.VIRTUAL_MACHINE__VNC: + setVnc(VNC_EDEFAULT); + return; + case VmPackage.VIRTUAL_MACHINE__GATEWAY: + setGateway(GATEWAY_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case VmPackage.VIRTUAL_MACHINE__FUNCTION_INDEX: + return functionIndex != FUNCTION_INDEX_EDEFAULT; + case VmPackage.VIRTUAL_MACHINE__KVM_NAME: + return KVM_NAME_EDEFAULT == null ? kvmName != null : !KVM_NAME_EDEFAULT.equals(kvmName); + case VmPackage.VIRTUAL_MACHINE__VNC: + return VNC_EDEFAULT == null ? vnc != null : !VNC_EDEFAULT.equals(vnc); + case VmPackage.VIRTUAL_MACHINE__GATEWAY: + return GATEWAY_EDEFAULT == null ? gateway != null : !GATEWAY_EDEFAULT.equals(gateway); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (functionIndex: "); + result.append(functionIndex); + result.append(", kvmName: "); + result.append(kvmName); + result.append(", vnc: "); + result.append(vnc); + result.append(", gateway: "); + result.append(gateway); + result.append(')'); + return result.toString(); + } + +} //VirtualMachineImpl diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/VirtualMachineServiceConfigurationImpl.java b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/VirtualMachineServiceConfigurationImpl.java new file mode 100644 index 0000000..ea132d9 --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/VirtualMachineServiceConfigurationImpl.java @@ -0,0 +1,184 @@ + +/*- + * ============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 org.openecomp.dcae.controller.service.vm.impl; + +import org.openecomp.dcae.controller.service.vm.VirtualMachineServiceConfiguration; +import org.openecomp.dcae.controller.service.vm.VmPackage; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Virtual Machine Service Configuration'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceConfigurationImpl#getConfiguration Configuration}
  • + *
+ *

+ * + * @generated + */ +public class VirtualMachineServiceConfigurationImpl extends MinimalEObjectImpl.Container implements VirtualMachineServiceConfiguration { + /** + * The default value of the '{@link #getConfiguration() Configuration}' attribute. + * + * + * @see #getConfiguration() + * @generated + * @ordered + */ + protected static final String CONFIGURATION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getConfiguration() Configuration}' attribute. + * + * + * @see #getConfiguration() + * @generated + * @ordered + */ + protected String configuration = CONFIGURATION_EDEFAULT; + + /** + * + * + * @generated + */ + protected VirtualMachineServiceConfigurationImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return VmPackage.Literals.VIRTUAL_MACHINE_SERVICE_CONFIGURATION; + } + + /** + * + * + * @generated + */ + public String getConfiguration() { + return configuration; + } + + /** + * + * + * @generated + */ + public void setConfiguration(String newConfiguration) { + String oldConfiguration = configuration; + configuration = newConfiguration; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, VmPackage.VIRTUAL_MACHINE_SERVICE_CONFIGURATION__CONFIGURATION, oldConfiguration, configuration)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case VmPackage.VIRTUAL_MACHINE_SERVICE_CONFIGURATION__CONFIGURATION: + return getConfiguration(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case VmPackage.VIRTUAL_MACHINE_SERVICE_CONFIGURATION__CONFIGURATION: + setConfiguration((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case VmPackage.VIRTUAL_MACHINE_SERVICE_CONFIGURATION__CONFIGURATION: + setConfiguration(CONFIGURATION_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case VmPackage.VIRTUAL_MACHINE_SERVICE_CONFIGURATION__CONFIGURATION: + return CONFIGURATION_EDEFAULT == null ? configuration != null : !CONFIGURATION_EDEFAULT.equals(configuration); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (configuration: "); + result.append(configuration); + result.append(')'); + return result.toString(); + } + +} //VirtualMachineServiceConfigurationImpl diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/VirtualMachineServiceDescriptorImpl.java b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/VirtualMachineServiceDescriptorImpl.java new file mode 100644 index 0000000..4858bbe --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/VirtualMachineServiceDescriptorImpl.java @@ -0,0 +1,585 @@ + +/*- + * ============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 org.openecomp.dcae.controller.service.vm.impl; + +import org.openecomp.dcae.controller.core.service.impl.DcaeServiceDescriptorImpl; + +import org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor; +import org.openecomp.dcae.controller.service.vm.VmPackage; + +import java.util.Collection; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.util.EDataTypeEList; + +/** + * + * An implementation of the model object 'Virtual Machine Service Descriptor'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceDescriptorImpl#getServicePackage Service Package}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceDescriptorImpl#getServiceClass Service Class}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceDescriptorImpl#getServiceInstanceClass Service Instance Class}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceDescriptorImpl#getVmType Vm Type}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceDescriptorImpl#getManagerPortNumber Manager Port Number}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceDescriptorImpl#getManagerUser Manager User}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceDescriptorImpl#getEncryptedPassword Encrypted Password}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceDescriptorImpl#getUsers Users}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceDescriptorImpl#getAdminUsers Admin Users}
  • + *
+ *

+ * + * @generated + */ +public class VirtualMachineServiceDescriptorImpl extends DcaeServiceDescriptorImpl implements VirtualMachineServiceDescriptor { + /** + * The default value of the '{@link #getServicePackage() Service Package}' attribute. + * + * + * @see #getServicePackage() + * @generated + * @ordered + */ + protected static final String SERVICE_PACKAGE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getServicePackage() Service Package}' attribute. + * + * + * @see #getServicePackage() + * @generated + * @ordered + */ + protected String servicePackage = SERVICE_PACKAGE_EDEFAULT; + + /** + * The default value of the '{@link #getServiceClass() Service Class}' attribute. + * + * + * @see #getServiceClass() + * @generated + * @ordered + */ + protected static final String SERVICE_CLASS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getServiceClass() Service Class}' attribute. + * + * + * @see #getServiceClass() + * @generated + * @ordered + */ + protected String serviceClass = SERVICE_CLASS_EDEFAULT; + + /** + * The default value of the '{@link #getServiceInstanceClass() Service Instance Class}' attribute. + * + * + * @see #getServiceInstanceClass() + * @generated + * @ordered + */ + protected static final String SERVICE_INSTANCE_CLASS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getServiceInstanceClass() Service Instance Class}' attribute. + * + * + * @see #getServiceInstanceClass() + * @generated + * @ordered + */ + protected String serviceInstanceClass = SERVICE_INSTANCE_CLASS_EDEFAULT; + + /** + * The default value of the '{@link #getVmType() Vm Type}' attribute. + * + * + * @see #getVmType() + * @generated + * @ordered + */ + protected static final String VM_TYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getVmType() Vm Type}' attribute. + * + * + * @see #getVmType() + * @generated + * @ordered + */ + protected String vmType = VM_TYPE_EDEFAULT; + + /** + * The default value of the '{@link #getManagerPortNumber() Manager Port Number}' attribute. + * + * + * @see #getManagerPortNumber() + * @generated + * @ordered + */ + protected static final String MANAGER_PORT_NUMBER_EDEFAULT = null; + + /** + * The cached value of the '{@link #getManagerPortNumber() Manager Port Number}' attribute. + * + * + * @see #getManagerPortNumber() + * @generated + * @ordered + */ + protected String managerPortNumber = MANAGER_PORT_NUMBER_EDEFAULT; + + /** + * The default value of the '{@link #getManagerUser() Manager User}' attribute. + * + * + * @see #getManagerUser() + * @generated + * @ordered + */ + protected static final String MANAGER_USER_EDEFAULT = null; + + /** + * The cached value of the '{@link #getManagerUser() Manager User}' attribute. + * + * + * @see #getManagerUser() + * @generated + * @ordered + */ + protected String managerUser = MANAGER_USER_EDEFAULT; + + /** + * The default value of the '{@link #getEncryptedPassword() Encrypted Password}' attribute. + * + * + * @see #getEncryptedPassword() + * @generated + * @ordered + */ + protected static final String ENCRYPTED_PASSWORD_EDEFAULT = null; + + /** + * The cached value of the '{@link #getEncryptedPassword() Encrypted Password}' attribute. + * + * + * @see #getEncryptedPassword() + * @generated + * @ordered + */ + protected String encryptedPassword = ENCRYPTED_PASSWORD_EDEFAULT; + + /** + * The cached value of the '{@link #getUsers() Users}' attribute list. + * + * + * @see #getUsers() + * @generated + * @ordered + */ + protected EList users; + + /** + * The cached value of the '{@link #getAdminUsers() Admin Users}' attribute list. + * + * + * @see #getAdminUsers() + * @generated + * @ordered + */ + protected EList adminUsers; + + /** + * + * + * @generated + */ + protected VirtualMachineServiceDescriptorImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return VmPackage.Literals.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR; + } + + /** + * + * + * @generated + */ + public String getServicePackage() { + return servicePackage; + } + + /** + * + * + * @generated + */ + public void setServicePackage(String newServicePackage) { + String oldServicePackage = servicePackage; + servicePackage = newServicePackage; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__SERVICE_PACKAGE, oldServicePackage, servicePackage)); + } + + /** + * + * + * @generated + */ + public String getServiceClass() { + return serviceClass; + } + + /** + * + * + * @generated + */ + public void setServiceClass(String newServiceClass) { + String oldServiceClass = serviceClass; + serviceClass = newServiceClass; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__SERVICE_CLASS, oldServiceClass, serviceClass)); + } + + /** + * + * + * @generated + */ + public String getServiceInstanceClass() { + return serviceInstanceClass; + } + + /** + * + * + * @generated + */ + public void setServiceInstanceClass(String newServiceInstanceClass) { + String oldServiceInstanceClass = serviceInstanceClass; + serviceInstanceClass = newServiceInstanceClass; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__SERVICE_INSTANCE_CLASS, oldServiceInstanceClass, serviceInstanceClass)); + } + + /** + * + * + * @generated + */ + public String getVmType() { + return vmType; + } + + /** + * + * + * @generated + */ + public void setVmType(String newVmType) { + String oldVmType = vmType; + vmType = newVmType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__VM_TYPE, oldVmType, vmType)); + } + + /** + * + * + * @generated + */ + public String getManagerPortNumber() { + return managerPortNumber; + } + + /** + * + * + * @generated + */ + public void setManagerPortNumber(String newManagerPortNumber) { + String oldManagerPortNumber = managerPortNumber; + managerPortNumber = newManagerPortNumber; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__MANAGER_PORT_NUMBER, oldManagerPortNumber, managerPortNumber)); + } + + /** + * + * + * @generated + */ + public String getManagerUser() { + return managerUser; + } + + /** + * + * + * @generated + */ + public void setManagerUser(String newManagerUser) { + String oldManagerUser = managerUser; + managerUser = newManagerUser; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__MANAGER_USER, oldManagerUser, managerUser)); + } + + /** + * + * + * @generated + */ + public String getEncryptedPassword() { + return encryptedPassword; + } + + /** + * + * + * @generated + */ + public void setEncryptedPassword(String newEncryptedPassword) { + String oldEncryptedPassword = encryptedPassword; + encryptedPassword = newEncryptedPassword; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__ENCRYPTED_PASSWORD, oldEncryptedPassword, encryptedPassword)); + } + + /** + * + * + * @generated + */ + public EList getUsers() { + if (users == null) { + users = new EDataTypeEList(String.class, this, VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__USERS); + } + return users; + } + + /** + * + * + * @generated + */ + public EList getAdminUsers() { + if (adminUsers == null) { + adminUsers = new EDataTypeEList(String.class, this, VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__ADMIN_USERS); + } + return adminUsers; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__SERVICE_PACKAGE: + return getServicePackage(); + case VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__SERVICE_CLASS: + return getServiceClass(); + case VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__SERVICE_INSTANCE_CLASS: + return getServiceInstanceClass(); + case VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__VM_TYPE: + return getVmType(); + case VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__MANAGER_PORT_NUMBER: + return getManagerPortNumber(); + case VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__MANAGER_USER: + return getManagerUser(); + case VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__ENCRYPTED_PASSWORD: + return getEncryptedPassword(); + case VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__USERS: + return getUsers(); + case VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__ADMIN_USERS: + return getAdminUsers(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__SERVICE_PACKAGE: + setServicePackage((String)newValue); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__SERVICE_CLASS: + setServiceClass((String)newValue); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__SERVICE_INSTANCE_CLASS: + setServiceInstanceClass((String)newValue); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__VM_TYPE: + setVmType((String)newValue); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__MANAGER_PORT_NUMBER: + setManagerPortNumber((String)newValue); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__MANAGER_USER: + setManagerUser((String)newValue); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__ENCRYPTED_PASSWORD: + setEncryptedPassword((String)newValue); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__USERS: + getUsers().clear(); + getUsers().addAll((Collection)newValue); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__ADMIN_USERS: + getAdminUsers().clear(); + getAdminUsers().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__SERVICE_PACKAGE: + setServicePackage(SERVICE_PACKAGE_EDEFAULT); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__SERVICE_CLASS: + setServiceClass(SERVICE_CLASS_EDEFAULT); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__SERVICE_INSTANCE_CLASS: + setServiceInstanceClass(SERVICE_INSTANCE_CLASS_EDEFAULT); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__VM_TYPE: + setVmType(VM_TYPE_EDEFAULT); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__MANAGER_PORT_NUMBER: + setManagerPortNumber(MANAGER_PORT_NUMBER_EDEFAULT); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__MANAGER_USER: + setManagerUser(MANAGER_USER_EDEFAULT); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__ENCRYPTED_PASSWORD: + setEncryptedPassword(ENCRYPTED_PASSWORD_EDEFAULT); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__USERS: + getUsers().clear(); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__ADMIN_USERS: + getAdminUsers().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__SERVICE_PACKAGE: + return SERVICE_PACKAGE_EDEFAULT == null ? servicePackage != null : !SERVICE_PACKAGE_EDEFAULT.equals(servicePackage); + case VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__SERVICE_CLASS: + return SERVICE_CLASS_EDEFAULT == null ? serviceClass != null : !SERVICE_CLASS_EDEFAULT.equals(serviceClass); + case VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__SERVICE_INSTANCE_CLASS: + return SERVICE_INSTANCE_CLASS_EDEFAULT == null ? serviceInstanceClass != null : !SERVICE_INSTANCE_CLASS_EDEFAULT.equals(serviceInstanceClass); + case VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__VM_TYPE: + return VM_TYPE_EDEFAULT == null ? vmType != null : !VM_TYPE_EDEFAULT.equals(vmType); + case VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__MANAGER_PORT_NUMBER: + return MANAGER_PORT_NUMBER_EDEFAULT == null ? managerPortNumber != null : !MANAGER_PORT_NUMBER_EDEFAULT.equals(managerPortNumber); + case VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__MANAGER_USER: + return MANAGER_USER_EDEFAULT == null ? managerUser != null : !MANAGER_USER_EDEFAULT.equals(managerUser); + case VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__ENCRYPTED_PASSWORD: + return ENCRYPTED_PASSWORD_EDEFAULT == null ? encryptedPassword != null : !ENCRYPTED_PASSWORD_EDEFAULT.equals(encryptedPassword); + case VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__USERS: + return users != null && !users.isEmpty(); + case VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__ADMIN_USERS: + return adminUsers != null && !adminUsers.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (servicePackage: "); + result.append(servicePackage); + result.append(", serviceClass: "); + result.append(serviceClass); + result.append(", serviceInstanceClass: "); + result.append(serviceInstanceClass); + result.append(", vmType: "); + result.append(vmType); + result.append(", managerPortNumber: "); + result.append(managerPortNumber); + result.append(", managerUser: "); + result.append(managerUser); + result.append(", encryptedPassword: "); + result.append(encryptedPassword); + result.append(", users: "); + result.append(users); + result.append(", adminUsers: "); + result.append(adminUsers); + result.append(')'); + return result.toString(); + } + +} //VirtualMachineServiceDescriptorImpl diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/VirtualMachineServiceImpl.java b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/VirtualMachineServiceImpl.java new file mode 100644 index 0000000..f94bdb4 --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/VirtualMachineServiceImpl.java @@ -0,0 +1,285 @@ + +/*- + * ============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 org.openecomp.dcae.controller.service.vm.impl; + +import org.openecomp.dcae.controller.core.service.impl.DcaeServiceImpl; + +import org.openecomp.dcae.controller.service.vm.VirtualMachineService; +import org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance; +import org.openecomp.dcae.controller.service.vm.VmPackage; + +import java.lang.reflect.InvocationTargetException; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'Virtual Machine Service'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceImpl#getInstances Instances}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceImpl#getManagerPortNumber Manager Port Number}
  • + *
+ *

+ * + * @generated + */ +public class VirtualMachineServiceImpl extends DcaeServiceImpl implements VirtualMachineService { + /** + * The cached value of the '{@link #getInstances() Instances}' containment reference list. + * + * + * @see #getInstances() + * @generated + * @ordered + */ + protected EList instances; + + /** + * The default value of the '{@link #getManagerPortNumber() Manager Port Number}' attribute. + * + * + * @see #getManagerPortNumber() + * @generated + * @ordered + */ + protected static final int MANAGER_PORT_NUMBER_EDEFAULT = 9999; + /** + * The cached value of the '{@link #getManagerPortNumber() Manager Port Number}' attribute. + * + * + * @see #getManagerPortNumber() + * @generated + * @ordered + */ + protected int managerPortNumber = MANAGER_PORT_NUMBER_EDEFAULT; + + /** + * + * + * @generated + */ + protected VirtualMachineServiceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return VmPackage.Literals.VIRTUAL_MACHINE_SERVICE; + } + + /** + * + * + * @generated + */ + public EList getInstances() { + if (instances == null) { + instances = new EObjectContainmentWithInverseEList(VirtualMachineServiceInstance.class, this, VmPackage.VIRTUAL_MACHINE_SERVICE__INSTANCES, VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__SERVICE); + } + return instances; + } + + /** + * + * + * @generated + */ + public int getManagerPortNumber() { + return managerPortNumber; + } + + /** + * + * + * @generated + */ + public void setManagerPortNumber(int newManagerPortNumber) { + int oldManagerPortNumber = managerPortNumber; + managerPortNumber = newManagerPortNumber; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, VmPackage.VIRTUAL_MACHINE_SERVICE__MANAGER_PORT_NUMBER, oldManagerPortNumber, managerPortNumber)); + } + + /** + * + * + * @generated + */ + public void updateDeploymentStatus() { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case VmPackage.VIRTUAL_MACHINE_SERVICE__INSTANCES: + return ((InternalEList)(InternalEList)getInstances()).basicAdd(otherEnd, msgs); + } + return super.eInverseAdd(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case VmPackage.VIRTUAL_MACHINE_SERVICE__INSTANCES: + return ((InternalEList)getInstances()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case VmPackage.VIRTUAL_MACHINE_SERVICE__INSTANCES: + return getInstances(); + case VmPackage.VIRTUAL_MACHINE_SERVICE__MANAGER_PORT_NUMBER: + return getManagerPortNumber(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case VmPackage.VIRTUAL_MACHINE_SERVICE__INSTANCES: + getInstances().clear(); + getInstances().addAll((Collection)newValue); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE__MANAGER_PORT_NUMBER: + setManagerPortNumber((Integer)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case VmPackage.VIRTUAL_MACHINE_SERVICE__INSTANCES: + getInstances().clear(); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE__MANAGER_PORT_NUMBER: + setManagerPortNumber(MANAGER_PORT_NUMBER_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case VmPackage.VIRTUAL_MACHINE_SERVICE__INSTANCES: + return instances != null && !instances.isEmpty(); + case VmPackage.VIRTUAL_MACHINE_SERVICE__MANAGER_PORT_NUMBER: + return managerPortNumber != MANAGER_PORT_NUMBER_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public Object eInvoke(int operationID, EList arguments) throws InvocationTargetException { + switch (operationID) { + case VmPackage.VIRTUAL_MACHINE_SERVICE___UPDATE_DEPLOYMENT_STATUS: + updateDeploymentStatus(); + return null; + } + return super.eInvoke(operationID, arguments); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (managerPortNumber: "); + result.append(managerPortNumber); + result.append(')'); + return result.toString(); + } + +} //VirtualMachineServiceImpl diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/VirtualMachineServiceInstanceImpl.java b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/VirtualMachineServiceInstanceImpl.java new file mode 100644 index 0000000..d5c5706 --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/VirtualMachineServiceInstanceImpl.java @@ -0,0 +1,1288 @@ + +/*- + * ============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 org.openecomp.dcae.controller.service.vm.impl; + +import org.openecomp.dcae.controller.core.server.DcaeBasicServer; +import org.openecomp.dcae.controller.core.service.DcaeLocation; +import org.openecomp.dcae.controller.core.service.impl.DcaeServiceInstanceImpl; +import org.openecomp.dcae.controller.service.vm.InstallationStep; +import org.openecomp.dcae.controller.service.vm.VirtualMachineService; +import org.openecomp.dcae.controller.service.vm.VirtualMachineServiceConfiguration; +import org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance; +import org.openecomp.dcae.controller.service.vm.VmPackage; +import org.openecomp.ncomp.core.User; +import org.openecomp.ncomp.openstack.core.VirtualMachineType; +import java.util.Collection; +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.util.EDataTypeEList; +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.EObjectResolvingEList; +import org.eclipse.emf.ecore.util.EcoreUtil; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'Virtual Machine Service Instance'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceInstanceImpl#getConfiguration Configuration}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceInstanceImpl#getLocation Location}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceInstanceImpl#getVmType Vm Type}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceInstanceImpl#getUsers Users}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceInstanceImpl#getAdminUsers Admin Users}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceInstanceImpl#getApplicationIds Application Ids}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceInstanceImpl#getAdminId Admin Id}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceInstanceImpl#getNumberOfServers Number Of Servers}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceInstanceImpl#getAvailabilityZone Availability Zone}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceInstanceImpl#getManagerPortNumber Manager Port Number}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceInstanceImpl#getServers Servers}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceInstanceImpl#getLeaderServer Leader Server}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceInstanceImpl#getService Service}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceInstanceImpl#getIedsAdmin Ieds Admin}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceInstanceImpl#getChefUser Chef User}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceInstanceImpl#getChefOrg Chef Org}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceInstanceImpl#getChefTopology Chef Topology}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceInstanceImpl#getOpenstackFlavor Openstack Flavor}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceInstanceImpl#getServiceFqdn Service Fqdn}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceInstanceImpl#getDeploymentTimeoutMinutes Deployment Timeout Minutes}
  • + *
  • {@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceInstanceImpl#getSteps Steps}
  • + *
+ *

+ * + * @generated + */ +public class VirtualMachineServiceInstanceImpl extends DcaeServiceInstanceImpl implements VirtualMachineServiceInstance { + /** + * The default value of the '{@link #getConfiguration() Configuration}' attribute. + * + * + * @see #getConfiguration() + * @generated + * @ordered + */ + protected static final String CONFIGURATION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getConfiguration() Configuration}' attribute. + * + * + * @see #getConfiguration() + * @generated + * @ordered + */ + protected String configuration = CONFIGURATION_EDEFAULT; + + /** + * The cached value of the '{@link #getLocation() Location}' reference. + * + * + * @see #getLocation() + * @generated + * @ordered + */ + protected DcaeLocation location; + + /** + * The cached value of the '{@link #getVmType() Vm Type}' reference. + * + * + * @see #getVmType() + * @generated + * @ordered + */ + protected VirtualMachineType vmType; + + /** + * The cached value of the '{@link #getUsers() Users}' reference list. + * + * + * @see #getUsers() + * @generated + * @ordered + */ + protected EList users; + + /** + * The cached value of the '{@link #getAdminUsers() Admin Users}' reference list. + * + * + * @see #getAdminUsers() + * @generated + * @ordered + */ + protected EList adminUsers; + + /** + * The cached value of the '{@link #getApplicationIds() Application Ids}' attribute list. + * + * + * @see #getApplicationIds() + * @generated + * @ordered + */ + protected EList applicationIds; + + /** + * The default value of the '{@link #getAdminId() Admin Id}' attribute. + * + * + * @see #getAdminId() + * @generated + * @ordered + */ + protected static final String ADMIN_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAdminId() Admin Id}' attribute. + * + * + * @see #getAdminId() + * @generated + * @ordered + */ + protected String adminId = ADMIN_ID_EDEFAULT; + + /** + * The default value of the '{@link #getNumberOfServers() Number Of Servers}' attribute. + * + * + * @see #getNumberOfServers() + * @generated + * @ordered + */ + protected static final int NUMBER_OF_SERVERS_EDEFAULT = 1; + + /** + * The cached value of the '{@link #getNumberOfServers() Number Of Servers}' attribute. + * + * + * @see #getNumberOfServers() + * @generated + * @ordered + */ + protected int numberOfServers = NUMBER_OF_SERVERS_EDEFAULT; + + /** + * The default value of the '{@link #getAvailabilityZone() Availability Zone}' attribute. + * + * + * @see #getAvailabilityZone() + * @generated + * @ordered + */ + protected static final String AVAILABILITY_ZONE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAvailabilityZone() Availability Zone}' attribute. + * + * + * @see #getAvailabilityZone() + * @generated + * @ordered + */ + protected String availabilityZone = AVAILABILITY_ZONE_EDEFAULT; + + /** + * The default value of the '{@link #getManagerPortNumber() Manager Port Number}' attribute. + * + * + * @see #getManagerPortNumber() + * @generated + * @ordered + */ + protected static final Integer MANAGER_PORT_NUMBER_EDEFAULT = null; + + /** + * The cached value of the '{@link #getManagerPortNumber() Manager Port Number}' attribute. + * + * + * @see #getManagerPortNumber() + * @generated + * @ordered + */ + protected Integer managerPortNumber = MANAGER_PORT_NUMBER_EDEFAULT; + + /** + * The cached value of the '{@link #getServers() Servers}' containment reference list. + * + * + * @see #getServers() + * @generated + * @ordered + */ + protected EList servers; + + /** + * The cached value of the '{@link #getLeaderServer() Leader Server}' reference. + * + * + * @see #getLeaderServer() + * @generated + * @ordered + */ + protected DcaeBasicServer leaderServer; + + /** + * The default value of the '{@link #getIedsAdmin() Ieds Admin}' attribute. + * + * + * @see #getIedsAdmin() + * @generated + * @ordered + */ + protected static final String IEDS_ADMIN_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIedsAdmin() Ieds Admin}' attribute. + * + * + * @see #getIedsAdmin() + * @generated + * @ordered + */ + protected String iedsAdmin = IEDS_ADMIN_EDEFAULT; + + /** + * The default value of the '{@link #getChefUser() Chef User}' attribute. + * + * + * @see #getChefUser() + * @generated + * @ordered + */ + protected static final String CHEF_USER_EDEFAULT = null; + + /** + * The cached value of the '{@link #getChefUser() Chef User}' attribute. + * + * + * @see #getChefUser() + * @generated + * @ordered + */ + protected String chefUser = CHEF_USER_EDEFAULT; + + /** + * The default value of the '{@link #getChefOrg() Chef Org}' attribute. + * + * + * @see #getChefOrg() + * @generated + * @ordered + */ + protected static final String CHEF_ORG_EDEFAULT = null; + + /** + * The cached value of the '{@link #getChefOrg() Chef Org}' attribute. + * + * + * @see #getChefOrg() + * @generated + * @ordered + */ + protected String chefOrg = CHEF_ORG_EDEFAULT; + + /** + * The default value of the '{@link #getChefTopology() Chef Topology}' attribute. + * + * + * @see #getChefTopology() + * @generated + * @ordered + */ + protected static final String CHEF_TOPOLOGY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getChefTopology() Chef Topology}' attribute. + * + * + * @see #getChefTopology() + * @generated + * @ordered + */ + protected String chefTopology = CHEF_TOPOLOGY_EDEFAULT; + + /** + * The default value of the '{@link #getOpenstackFlavor() Openstack Flavor}' attribute. + * + * + * @see #getOpenstackFlavor() + * @generated + * @ordered + */ + protected static final String OPENSTACK_FLAVOR_EDEFAULT = null; + + /** + * The cached value of the '{@link #getOpenstackFlavor() Openstack Flavor}' attribute. + * + * + * @see #getOpenstackFlavor() + * @generated + * @ordered + */ + protected String openstackFlavor = OPENSTACK_FLAVOR_EDEFAULT; + + /** + * The default value of the '{@link #getServiceFqdn() Service Fqdn}' attribute. + * + * + * @see #getServiceFqdn() + * @generated + * @ordered + */ + protected static final String SERVICE_FQDN_EDEFAULT = null; + + /** + * The cached value of the '{@link #getServiceFqdn() Service Fqdn}' attribute. + * + * + * @see #getServiceFqdn() + * @generated + * @ordered + */ + protected String serviceFqdn = SERVICE_FQDN_EDEFAULT; + + /** + * The default value of the '{@link #getDeploymentTimeoutMinutes() Deployment Timeout Minutes}' attribute. + * + * + * @see #getDeploymentTimeoutMinutes() + * @generated + * @ordered + */ + protected static final int DEPLOYMENT_TIMEOUT_MINUTES_EDEFAULT = 90; + + /** + * The cached value of the '{@link #getDeploymentTimeoutMinutes() Deployment Timeout Minutes}' attribute. + * + * + * @see #getDeploymentTimeoutMinutes() + * @generated + * @ordered + */ + protected int deploymentTimeoutMinutes = DEPLOYMENT_TIMEOUT_MINUTES_EDEFAULT; + + /** + * The cached value of the '{@link #getSteps() Steps}' containment reference list. + * + * + * @see #getSteps() + * @generated + * @ordered + */ + protected EList steps; + + /** + * + * + * @generated + */ + protected VirtualMachineServiceInstanceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return VmPackage.Literals.VIRTUAL_MACHINE_SERVICE_INSTANCE; + } + + /** + * + * + * @generated + */ + public DcaeLocation getLocation() { + if (location != null && location.eIsProxy()) { + InternalEObject oldLocation = (InternalEObject)location; + location = (DcaeLocation)eResolveProxy(oldLocation); + if (location != oldLocation) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__LOCATION, oldLocation, location)); + } + } + return location; + } + + /** + * + * + * @generated + */ + public DcaeLocation basicGetLocation() { + return location; + } + + /** + * + * + * @generated + */ + public void setLocation(DcaeLocation newLocation) { + DcaeLocation oldLocation = location; + location = newLocation; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__LOCATION, oldLocation, location)); + } + + /** + * + * + * @generated + */ + public VirtualMachineType getVmType() { + if (vmType != null && vmType.eIsProxy()) { + InternalEObject oldVmType = (InternalEObject)vmType; + vmType = (VirtualMachineType)eResolveProxy(oldVmType); + if (vmType != oldVmType) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__VM_TYPE, oldVmType, vmType)); + } + } + return vmType; + } + + /** + * + * + * @generated + */ + public VirtualMachineType basicGetVmType() { + return vmType; + } + + /** + * + * + * @generated + */ + public void setVmType(VirtualMachineType newVmType) { + VirtualMachineType oldVmType = vmType; + vmType = newVmType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__VM_TYPE, oldVmType, vmType)); + } + + /** + * + * + * @generated + */ + public EList getUsers() { + if (users == null) { + users = new EObjectResolvingEList(User.class, this, VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__USERS); + } + return users; + } + + /** + * + * + * @generated + */ + public EList getAdminUsers() { + if (adminUsers == null) { + adminUsers = new EObjectResolvingEList(User.class, this, VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__ADMIN_USERS); + } + return adminUsers; + } + + /** + * + * + * @generated + */ + public EList getApplicationIds() { + if (applicationIds == null) { + applicationIds = new EDataTypeEList(String.class, this, VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__APPLICATION_IDS); + } + return applicationIds; + } + + /** + * + * + * @generated + */ + public String getAdminId() { + return adminId; + } + + /** + * + * + * @generated + */ + public void setAdminId(String newAdminId) { + String oldAdminId = adminId; + adminId = newAdminId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__ADMIN_ID, oldAdminId, adminId)); + } + + /** + * + * + * @generated + */ + public String getConfiguration() { + return configuration; + } + + /** + * + * + * @generated + */ + public void setConfiguration(String newConfiguration) { + String oldConfiguration = configuration; + configuration = newConfiguration; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__CONFIGURATION, oldConfiguration, configuration)); + } + + /** + * + * + * @generated + */ + public int getNumberOfServers() { + return numberOfServers; + } + + /** + * + * + * @generated + */ + public void setNumberOfServers(int newNumberOfServers) { + int oldNumberOfServers = numberOfServers; + numberOfServers = newNumberOfServers; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__NUMBER_OF_SERVERS, oldNumberOfServers, numberOfServers)); + } + + /** + * + * + * @generated + */ + public String getAvailabilityZone() { + return availabilityZone; + } + + /** + * + * + * @generated + */ + public void setAvailabilityZone(String newAvailabilityZone) { + String oldAvailabilityZone = availabilityZone; + availabilityZone = newAvailabilityZone; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__AVAILABILITY_ZONE, oldAvailabilityZone, availabilityZone)); + } + + /** + * + * + * @generated + */ + public Integer getManagerPortNumber() { + return managerPortNumber; + } + + /** + * + * + * @generated + */ + public void setManagerPortNumber(Integer newManagerPortNumber) { + Integer oldManagerPortNumber = managerPortNumber; + managerPortNumber = newManagerPortNumber; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__MANAGER_PORT_NUMBER, oldManagerPortNumber, managerPortNumber)); + } + + /** + * + * + * @generated + */ + public EList getServers() { + if (servers == null) { + servers = new EObjectContainmentEList(DcaeBasicServer.class, this, VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__SERVERS); + } + return servers; + } + + /** + * + * + * @generated + */ + public DcaeBasicServer getLeaderServer() { + if (leaderServer != null && leaderServer.eIsProxy()) { + InternalEObject oldLeaderServer = (InternalEObject)leaderServer; + leaderServer = (DcaeBasicServer)eResolveProxy(oldLeaderServer); + if (leaderServer != oldLeaderServer) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__LEADER_SERVER, oldLeaderServer, leaderServer)); + } + } + return leaderServer; + } + + /** + * + * + * @generated + */ + public DcaeBasicServer basicGetLeaderServer() { + return leaderServer; + } + + /** + * + * + * @generated + */ + public void setLeaderServer(DcaeBasicServer newLeaderServer) { + DcaeBasicServer oldLeaderServer = leaderServer; + leaderServer = newLeaderServer; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__LEADER_SERVER, oldLeaderServer, leaderServer)); + } + + /** + * + * + * @generated + */ + public VirtualMachineService getService() { + if (eContainerFeatureID() != VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__SERVICE) return null; + return (VirtualMachineService)eContainer(); + } + + /** + * + * + * @generated + */ + public VirtualMachineService basicGetService() { + if (eContainerFeatureID() != VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__SERVICE) return null; + return (VirtualMachineService)eInternalContainer(); + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetService(VirtualMachineService newService, NotificationChain msgs) { + msgs = eBasicSetContainer((InternalEObject)newService, VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__SERVICE, msgs); + return msgs; + } + + /** + * + * + * @generated + */ + public void setService(VirtualMachineService newService) { + if (newService != eInternalContainer() || (eContainerFeatureID() != VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__SERVICE && newService != null)) { + if (EcoreUtil.isAncestor(this, newService)) + throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); + NotificationChain msgs = null; + if (eInternalContainer() != null) + msgs = eBasicRemoveFromContainer(msgs); + if (newService != null) + msgs = ((InternalEObject)newService).eInverseAdd(this, VmPackage.VIRTUAL_MACHINE_SERVICE__INSTANCES, VirtualMachineService.class, msgs); + msgs = basicSetService(newService, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__SERVICE, newService, newService)); + } + + /** + * + * + * @generated + */ + public String getIedsAdmin() { + return iedsAdmin; + } + + /** + * + * + * @generated + */ + public void setIedsAdmin(String newIedsAdmin) { + String oldIedsAdmin = iedsAdmin; + iedsAdmin = newIedsAdmin; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__IEDS_ADMIN, oldIedsAdmin, iedsAdmin)); + } + + /** + * + * + * @generated + */ + public String getChefUser() { + return chefUser; + } + + /** + * + * + * @generated + */ + public void setChefUser(String newChefUser) { + String oldChefUser = chefUser; + chefUser = newChefUser; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__CHEF_USER, oldChefUser, chefUser)); + } + + /** + * + * + * @generated + */ + public String getChefOrg() { + return chefOrg; + } + + /** + * + * + * @generated + */ + public void setChefOrg(String newChefOrg) { + String oldChefOrg = chefOrg; + chefOrg = newChefOrg; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__CHEF_ORG, oldChefOrg, chefOrg)); + } + + /** + * + * + * @generated + */ + public String getChefTopology() { + return chefTopology; + } + + /** + * + * + * @generated + */ + public void setChefTopology(String newChefTopology) { + String oldChefTopology = chefTopology; + chefTopology = newChefTopology; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__CHEF_TOPOLOGY, oldChefTopology, chefTopology)); + } + + /** + * + * + * @generated + */ + public String getOpenstackFlavor() { + return openstackFlavor; + } + + /** + * + * + * @generated + */ + public void setOpenstackFlavor(String newOpenstackFlavor) { + String oldOpenstackFlavor = openstackFlavor; + openstackFlavor = newOpenstackFlavor; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__OPENSTACK_FLAVOR, oldOpenstackFlavor, openstackFlavor)); + } + + /** + * + * + * @generated + */ + public String getServiceFqdn() { + return serviceFqdn; + } + + /** + * + * + * @generated + */ + public void setServiceFqdn(String newServiceFqdn) { + String oldServiceFqdn = serviceFqdn; + serviceFqdn = newServiceFqdn; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__SERVICE_FQDN, oldServiceFqdn, serviceFqdn)); + } + + /** + * + * + * @generated + */ + public int getDeploymentTimeoutMinutes() { + return deploymentTimeoutMinutes; + } + + /** + * + * + * @generated + */ + public void setDeploymentTimeoutMinutes(int newDeploymentTimeoutMinutes) { + int oldDeploymentTimeoutMinutes = deploymentTimeoutMinutes; + deploymentTimeoutMinutes = newDeploymentTimeoutMinutes; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__DEPLOYMENT_TIMEOUT_MINUTES, oldDeploymentTimeoutMinutes, deploymentTimeoutMinutes)); + } + + /** + * + * + * @generated + */ + public EList getSteps() { + if (steps == null) { + steps = new EObjectContainmentEList(InstallationStep.class, this, VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__STEPS); + } + return steps; + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__SERVICE: + if (eInternalContainer() != null) + msgs = eBasicRemoveFromContainer(msgs); + return basicSetService((VirtualMachineService)otherEnd, msgs); + } + return super.eInverseAdd(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__SERVERS: + return ((InternalEList)getServers()).basicRemove(otherEnd, msgs); + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__SERVICE: + return basicSetService(null, msgs); + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__STEPS: + return ((InternalEList)getSteps()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) { + switch (eContainerFeatureID()) { + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__SERVICE: + return eInternalContainer().eInverseRemove(this, VmPackage.VIRTUAL_MACHINE_SERVICE__INSTANCES, VirtualMachineService.class, msgs); + } + return super.eBasicRemoveFromContainerFeature(msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__CONFIGURATION: + return getConfiguration(); + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__LOCATION: + if (resolve) return getLocation(); + return basicGetLocation(); + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__VM_TYPE: + if (resolve) return getVmType(); + return basicGetVmType(); + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__USERS: + return getUsers(); + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__ADMIN_USERS: + return getAdminUsers(); + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__APPLICATION_IDS: + return getApplicationIds(); + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__ADMIN_ID: + return getAdminId(); + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__NUMBER_OF_SERVERS: + return getNumberOfServers(); + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__AVAILABILITY_ZONE: + return getAvailabilityZone(); + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__MANAGER_PORT_NUMBER: + return getManagerPortNumber(); + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__SERVERS: + return getServers(); + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__LEADER_SERVER: + if (resolve) return getLeaderServer(); + return basicGetLeaderServer(); + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__SERVICE: + if (resolve) return getService(); + return basicGetService(); + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__IEDS_ADMIN: + return getIedsAdmin(); + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__CHEF_USER: + return getChefUser(); + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__CHEF_ORG: + return getChefOrg(); + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__CHEF_TOPOLOGY: + return getChefTopology(); + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__OPENSTACK_FLAVOR: + return getOpenstackFlavor(); + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__SERVICE_FQDN: + return getServiceFqdn(); + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__DEPLOYMENT_TIMEOUT_MINUTES: + return getDeploymentTimeoutMinutes(); + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__STEPS: + return getSteps(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__CONFIGURATION: + setConfiguration((String)newValue); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__LOCATION: + setLocation((DcaeLocation)newValue); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__VM_TYPE: + setVmType((VirtualMachineType)newValue); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__USERS: + getUsers().clear(); + getUsers().addAll((Collection)newValue); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__ADMIN_USERS: + getAdminUsers().clear(); + getAdminUsers().addAll((Collection)newValue); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__APPLICATION_IDS: + getApplicationIds().clear(); + getApplicationIds().addAll((Collection)newValue); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__ADMIN_ID: + setAdminId((String)newValue); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__NUMBER_OF_SERVERS: + setNumberOfServers((Integer)newValue); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__AVAILABILITY_ZONE: + setAvailabilityZone((String)newValue); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__MANAGER_PORT_NUMBER: + setManagerPortNumber((Integer)newValue); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__SERVERS: + getServers().clear(); + getServers().addAll((Collection)newValue); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__LEADER_SERVER: + setLeaderServer((DcaeBasicServer)newValue); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__SERVICE: + setService((VirtualMachineService)newValue); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__IEDS_ADMIN: + setIedsAdmin((String)newValue); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__CHEF_USER: + setChefUser((String)newValue); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__CHEF_ORG: + setChefOrg((String)newValue); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__CHEF_TOPOLOGY: + setChefTopology((String)newValue); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__OPENSTACK_FLAVOR: + setOpenstackFlavor((String)newValue); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__SERVICE_FQDN: + setServiceFqdn((String)newValue); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__DEPLOYMENT_TIMEOUT_MINUTES: + setDeploymentTimeoutMinutes((Integer)newValue); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__STEPS: + getSteps().clear(); + getSteps().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__CONFIGURATION: + setConfiguration(CONFIGURATION_EDEFAULT); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__LOCATION: + setLocation((DcaeLocation)null); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__VM_TYPE: + setVmType((VirtualMachineType)null); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__USERS: + getUsers().clear(); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__ADMIN_USERS: + getAdminUsers().clear(); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__APPLICATION_IDS: + getApplicationIds().clear(); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__ADMIN_ID: + setAdminId(ADMIN_ID_EDEFAULT); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__NUMBER_OF_SERVERS: + setNumberOfServers(NUMBER_OF_SERVERS_EDEFAULT); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__AVAILABILITY_ZONE: + setAvailabilityZone(AVAILABILITY_ZONE_EDEFAULT); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__MANAGER_PORT_NUMBER: + setManagerPortNumber(MANAGER_PORT_NUMBER_EDEFAULT); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__SERVERS: + getServers().clear(); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__LEADER_SERVER: + setLeaderServer((DcaeBasicServer)null); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__SERVICE: + setService((VirtualMachineService)null); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__IEDS_ADMIN: + setIedsAdmin(IEDS_ADMIN_EDEFAULT); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__CHEF_USER: + setChefUser(CHEF_USER_EDEFAULT); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__CHEF_ORG: + setChefOrg(CHEF_ORG_EDEFAULT); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__CHEF_TOPOLOGY: + setChefTopology(CHEF_TOPOLOGY_EDEFAULT); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__OPENSTACK_FLAVOR: + setOpenstackFlavor(OPENSTACK_FLAVOR_EDEFAULT); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__SERVICE_FQDN: + setServiceFqdn(SERVICE_FQDN_EDEFAULT); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__DEPLOYMENT_TIMEOUT_MINUTES: + setDeploymentTimeoutMinutes(DEPLOYMENT_TIMEOUT_MINUTES_EDEFAULT); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__STEPS: + getSteps().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__CONFIGURATION: + return CONFIGURATION_EDEFAULT == null ? configuration != null : !CONFIGURATION_EDEFAULT.equals(configuration); + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__LOCATION: + return location != null; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__VM_TYPE: + return vmType != null; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__USERS: + return users != null && !users.isEmpty(); + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__ADMIN_USERS: + return adminUsers != null && !adminUsers.isEmpty(); + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__APPLICATION_IDS: + return applicationIds != null && !applicationIds.isEmpty(); + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__ADMIN_ID: + return ADMIN_ID_EDEFAULT == null ? adminId != null : !ADMIN_ID_EDEFAULT.equals(adminId); + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__NUMBER_OF_SERVERS: + return numberOfServers != NUMBER_OF_SERVERS_EDEFAULT; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__AVAILABILITY_ZONE: + return AVAILABILITY_ZONE_EDEFAULT == null ? availabilityZone != null : !AVAILABILITY_ZONE_EDEFAULT.equals(availabilityZone); + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__MANAGER_PORT_NUMBER: + return MANAGER_PORT_NUMBER_EDEFAULT == null ? managerPortNumber != null : !MANAGER_PORT_NUMBER_EDEFAULT.equals(managerPortNumber); + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__SERVERS: + return servers != null && !servers.isEmpty(); + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__LEADER_SERVER: + return leaderServer != null; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__SERVICE: + return basicGetService() != null; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__IEDS_ADMIN: + return IEDS_ADMIN_EDEFAULT == null ? iedsAdmin != null : !IEDS_ADMIN_EDEFAULT.equals(iedsAdmin); + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__CHEF_USER: + return CHEF_USER_EDEFAULT == null ? chefUser != null : !CHEF_USER_EDEFAULT.equals(chefUser); + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__CHEF_ORG: + return CHEF_ORG_EDEFAULT == null ? chefOrg != null : !CHEF_ORG_EDEFAULT.equals(chefOrg); + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__CHEF_TOPOLOGY: + return CHEF_TOPOLOGY_EDEFAULT == null ? chefTopology != null : !CHEF_TOPOLOGY_EDEFAULT.equals(chefTopology); + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__OPENSTACK_FLAVOR: + return OPENSTACK_FLAVOR_EDEFAULT == null ? openstackFlavor != null : !OPENSTACK_FLAVOR_EDEFAULT.equals(openstackFlavor); + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__SERVICE_FQDN: + return SERVICE_FQDN_EDEFAULT == null ? serviceFqdn != null : !SERVICE_FQDN_EDEFAULT.equals(serviceFqdn); + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__DEPLOYMENT_TIMEOUT_MINUTES: + return deploymentTimeoutMinutes != DEPLOYMENT_TIMEOUT_MINUTES_EDEFAULT; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__STEPS: + return steps != null && !steps.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { + if (baseClass == VirtualMachineServiceConfiguration.class) { + switch (derivedFeatureID) { + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__CONFIGURATION: return VmPackage.VIRTUAL_MACHINE_SERVICE_CONFIGURATION__CONFIGURATION; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { + if (baseClass == VirtualMachineServiceConfiguration.class) { + switch (baseFeatureID) { + case VmPackage.VIRTUAL_MACHINE_SERVICE_CONFIGURATION__CONFIGURATION: return VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__CONFIGURATION; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (configuration: "); + result.append(configuration); + result.append(", applicationIds: "); + result.append(applicationIds); + result.append(", adminId: "); + result.append(adminId); + result.append(", numberOfServers: "); + result.append(numberOfServers); + result.append(", availabilityZone: "); + result.append(availabilityZone); + result.append(", managerPortNumber: "); + result.append(managerPortNumber); + result.append(", iedsAdmin: "); + result.append(iedsAdmin); + result.append(", chefUser: "); + result.append(chefUser); + result.append(", chefOrg: "); + result.append(chefOrg); + result.append(", chefTopology: "); + result.append(chefTopology); + result.append(", openstackFlavor: "); + result.append(openstackFlavor); + result.append(", serviceFqdn: "); + result.append(serviceFqdn); + result.append(", deploymentTimeoutMinutes: "); + result.append(deploymentTimeoutMinutes); + result.append(')'); + return result.toString(); + } + +} //VirtualMachineServiceInstanceImpl diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/VmFactoryImpl.java b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/VmFactoryImpl.java new file mode 100644 index 0000000..7db3558 --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/VmFactoryImpl.java @@ -0,0 +1,204 @@ + +/*- + * ============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 org.openecomp.dcae.controller.service.vm.impl; + +import org.openecomp.dcae.controller.service.vm.*; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.impl.EFactoryImpl; + +import org.eclipse.emf.ecore.plugin.EcorePlugin; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class VmFactoryImpl extends EFactoryImpl implements VmFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static VmFactory init() { + try { + VmFactory theVmFactory = (VmFactory)EPackage.Registry.INSTANCE.getEFactory(VmPackage.eNS_URI); + if (theVmFactory != null) { + return theVmFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new VmFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public VmFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case VmPackage.VIRTUAL_MACHINE_SERVICE: return createVirtualMachineService(); + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE: return createVirtualMachineServiceInstance(); + case VmPackage.VIRTUAL_MACHINE_SERVICE_CONFIGURATION: return createVirtualMachineServiceConfiguration(); + case VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR: return createVirtualMachineServiceDescriptor(); + case VmPackage.PHYSICAL_MACHINE: return createPhysicalMachine(); + case VmPackage.VIRTUAL_MACHINE: return createVirtualMachine(); + case VmPackage.SHELL_INSTALLATION_STEP: return createShellInstallationStep(); + case VmPackage.MAVEN_ARTIFACT_INSTALLATION_STEP: return createMavenArtifactInstallationStep(); + case VmPackage.HTTP_INSTALLATION_STEP: return createHttpInstallationStep(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public VirtualMachineService createVirtualMachineService() { + VirtualMachineServiceImpl virtualMachineService = new VirtualMachineServiceImpl(); + return virtualMachineService; + } + + /** + * + * + * @generated + */ + public VirtualMachineServiceInstance createVirtualMachineServiceInstance() { + VirtualMachineServiceInstanceImpl virtualMachineServiceInstance = new VirtualMachineServiceInstanceImpl(); + return virtualMachineServiceInstance; + } + + /** + * + * + * @generated + */ + public VirtualMachineServiceConfiguration createVirtualMachineServiceConfiguration() { + VirtualMachineServiceConfigurationImpl virtualMachineServiceConfiguration = new VirtualMachineServiceConfigurationImpl(); + return virtualMachineServiceConfiguration; + } + + /** + * + * + * @generated + */ + public VirtualMachineServiceDescriptor createVirtualMachineServiceDescriptor() { + VirtualMachineServiceDescriptorImpl virtualMachineServiceDescriptor = new VirtualMachineServiceDescriptorImpl(); + return virtualMachineServiceDescriptor; + } + + /** + * + * + * @generated + */ + public PhysicalMachine createPhysicalMachine() { + PhysicalMachineImpl physicalMachine = new PhysicalMachineImpl(); + return physicalMachine; + } + + /** + * + * + * @generated + */ + public VirtualMachine createVirtualMachine() { + VirtualMachineImpl virtualMachine = new VirtualMachineImpl(); + return virtualMachine; + } + + /** + * + * + * @generated + */ + public ShellInstallationStep createShellInstallationStep() { + ShellInstallationStepImpl shellInstallationStep = new ShellInstallationStepImpl(); + return shellInstallationStep; + } + + /** + * + * + * @generated + */ + public MavenArtifactInstallationStep createMavenArtifactInstallationStep() { + MavenArtifactInstallationStepImpl mavenArtifactInstallationStep = new MavenArtifactInstallationStepImpl(); + return mavenArtifactInstallationStep; + } + + /** + * + * + * @generated + */ + public HttpInstallationStep createHttpInstallationStep() { + HttpInstallationStepImpl httpInstallationStep = new HttpInstallationStepImpl(); + return httpInstallationStep; + } + + /** + * + * + * @generated + */ + public VmPackage getVmPackage() { + return (VmPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static VmPackage getPackage() { + return VmPackage.eINSTANCE; + } + +} //VmFactoryImpl diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/VmPackageImpl.java b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/VmPackageImpl.java new file mode 100644 index 0000000..2161eac --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/impl/VmPackageImpl.java @@ -0,0 +1,1050 @@ + +/*- + * ============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 org.openecomp.dcae.controller.service.vm.impl; + +import org.openecomp.dcae.controller.core.server.ServerPackage; +import org.openecomp.dcae.controller.core.service.ServicePackage; +import org.openecomp.dcae.controller.service.vm.HttpInstallationStep; +import org.openecomp.dcae.controller.service.vm.InstallationStep; +import org.openecomp.dcae.controller.service.vm.MavenArtifactInstallationStep; +import org.openecomp.dcae.controller.service.vm.PhysicalMachine; +import org.openecomp.dcae.controller.service.vm.ShellInstallationStep; +import org.openecomp.dcae.controller.service.vm.VirtualMachine; +import org.openecomp.dcae.controller.service.vm.VirtualMachineService; +import org.openecomp.dcae.controller.service.vm.VirtualMachineServiceConfiguration; +import org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor; +import org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance; +import org.openecomp.dcae.controller.service.vm.VmFactory; +import org.openecomp.dcae.controller.service.vm.VmPackage; +import org.openecomp.ncomp.openstack.core.CorePackage; +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EOperation; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; +import org.eclipse.emf.ecore.EcorePackage; +import org.eclipse.emf.ecore.impl.EPackageImpl; + +/** + * + * An implementation of the model Package. + * + * @generated + */ +public class VmPackageImpl extends EPackageImpl implements VmPackage { + /** + * + * + * @generated + */ + private EClass virtualMachineServiceEClass = null; + + /** + * + * + * @generated + */ + private EClass virtualMachineServiceInstanceEClass = null; + + /** + * + * + * @generated + */ + private EClass virtualMachineServiceConfigurationEClass = null; + + /** + * + * + * @generated + */ + private EClass virtualMachineServiceDescriptorEClass = null; + + /** + * + * + * @generated + */ + private EClass physicalMachineEClass = null; + + /** + * + * + * @generated + */ + private EClass virtualMachineEClass = null; + + /** + * + * + * @generated + */ + private EClass installationStepEClass = null; + + /** + * + * + * @generated + */ + private EClass shellInstallationStepEClass = null; + + /** + * + * + * @generated + */ + private EClass mavenArtifactInstallationStepEClass = null; + + /** + * + * + * @generated + */ + private EClass httpInstallationStepEClass = null; + + /** + * Creates an instance of the model Package, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + *

Note: the correct way to create the package is via the static + * factory method {@link #init init()}, which also performs + * initialization of the package, or returns the registered package, + * if one already exists. + * + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.openecomp.dcae.controller.service.vm.VmPackage#eNS_URI + * @see #init() + * @generated + */ + private VmPackageImpl() { + super(eNS_URI, VmFactory.eINSTANCE); + } + + /** + * + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. + * + *

This method is used to initialize {@link VmPackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static VmPackage init() { + if (isInited) return (VmPackage)EPackage.Registry.INSTANCE.getEPackage(VmPackage.eNS_URI); + + // Obtain or create and register package + VmPackageImpl theVmPackage = (VmPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof VmPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new VmPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + ServicePackage.eINSTANCE.eClass(); + ServerPackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theVmPackage.createPackageContents(); + + // Initialize created meta-data + theVmPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theVmPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(VmPackage.eNS_URI, theVmPackage); + return theVmPackage; + } + + /** + * + * + * @generated + */ + public EClass getVirtualMachineService() { + return virtualMachineServiceEClass; + } + + /** + * + * + * @generated + */ + public EReference getVirtualMachineService_Instances() { + return (EReference)virtualMachineServiceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getVirtualMachineService_ManagerPortNumber() { + return (EAttribute)virtualMachineServiceEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EOperation getVirtualMachineService__UpdateDeploymentStatus() { + return virtualMachineServiceEClass.getEOperations().get(0); + } + + /** + * + * + * @generated + */ + public EClass getVirtualMachineServiceInstance() { + return virtualMachineServiceInstanceEClass; + } + + /** + * + * + * @generated + */ + public EReference getVirtualMachineServiceInstance_Location() { + return (EReference)virtualMachineServiceInstanceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getVirtualMachineServiceInstance_VmType() { + return (EReference)virtualMachineServiceInstanceEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getVirtualMachineServiceInstance_Users() { + return (EReference)virtualMachineServiceInstanceEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getVirtualMachineServiceInstance_AdminUsers() { + return (EReference)virtualMachineServiceInstanceEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getVirtualMachineServiceInstance_ApplicationIds() { + return (EAttribute)virtualMachineServiceInstanceEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getVirtualMachineServiceInstance_AdminId() { + return (EAttribute)virtualMachineServiceInstanceEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getVirtualMachineServiceInstance_NumberOfServers() { + return (EAttribute)virtualMachineServiceInstanceEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EAttribute getVirtualMachineServiceInstance_AvailabilityZone() { + return (EAttribute)virtualMachineServiceInstanceEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EAttribute getVirtualMachineServiceInstance_ManagerPortNumber() { + return (EAttribute)virtualMachineServiceInstanceEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EReference getVirtualMachineServiceInstance_Servers() { + return (EReference)virtualMachineServiceInstanceEClass.getEStructuralFeatures().get(9); + } + + /** + * + * + * @generated + */ + public EReference getVirtualMachineServiceInstance_LeaderServer() { + return (EReference)virtualMachineServiceInstanceEClass.getEStructuralFeatures().get(10); + } + + /** + * + * + * @generated + */ + public EReference getVirtualMachineServiceInstance_Service() { + return (EReference)virtualMachineServiceInstanceEClass.getEStructuralFeatures().get(11); + } + + /** + * + * + * @generated + */ + public EAttribute getVirtualMachineServiceInstance_IedsAdmin() { + return (EAttribute)virtualMachineServiceInstanceEClass.getEStructuralFeatures().get(12); + } + + /** + * + * + * @generated + */ + public EAttribute getVirtualMachineServiceInstance_ChefUser() { + return (EAttribute)virtualMachineServiceInstanceEClass.getEStructuralFeatures().get(13); + } + + /** + * + * + * @generated + */ + public EAttribute getVirtualMachineServiceInstance_ChefOrg() { + return (EAttribute)virtualMachineServiceInstanceEClass.getEStructuralFeatures().get(14); + } + + /** + * + * + * @generated + */ + public EAttribute getVirtualMachineServiceInstance_ChefTopology() { + return (EAttribute)virtualMachineServiceInstanceEClass.getEStructuralFeatures().get(15); + } + + /** + * + * + * @generated + */ + public EAttribute getVirtualMachineServiceInstance_OpenstackFlavor() { + return (EAttribute)virtualMachineServiceInstanceEClass.getEStructuralFeatures().get(16); + } + + /** + * + * + * @generated + */ + public EAttribute getVirtualMachineServiceInstance_ServiceFqdn() { + return (EAttribute)virtualMachineServiceInstanceEClass.getEStructuralFeatures().get(17); + } + + /** + * + * + * @generated + */ + public EAttribute getVirtualMachineServiceInstance_DeploymentTimeoutMinutes() { + return (EAttribute)virtualMachineServiceInstanceEClass.getEStructuralFeatures().get(18); + } + + /** + * + * + * @generated + */ + public EReference getVirtualMachineServiceInstance_Steps() { + return (EReference)virtualMachineServiceInstanceEClass.getEStructuralFeatures().get(19); + } + + /** + * + * + * @generated + */ + public EClass getVirtualMachineServiceConfiguration() { + return virtualMachineServiceConfigurationEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getVirtualMachineServiceConfiguration_Configuration() { + return (EAttribute)virtualMachineServiceConfigurationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getVirtualMachineServiceDescriptor() { + return virtualMachineServiceDescriptorEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getVirtualMachineServiceDescriptor_ServicePackage() { + return (EAttribute)virtualMachineServiceDescriptorEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getVirtualMachineServiceDescriptor_ServiceClass() { + return (EAttribute)virtualMachineServiceDescriptorEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getVirtualMachineServiceDescriptor_ServiceInstanceClass() { + return (EAttribute)virtualMachineServiceDescriptorEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getVirtualMachineServiceDescriptor_VmType() { + return (EAttribute)virtualMachineServiceDescriptorEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getVirtualMachineServiceDescriptor_ManagerPortNumber() { + return (EAttribute)virtualMachineServiceDescriptorEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getVirtualMachineServiceDescriptor_ManagerUser() { + return (EAttribute)virtualMachineServiceDescriptorEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getVirtualMachineServiceDescriptor_EncryptedPassword() { + return (EAttribute)virtualMachineServiceDescriptorEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EAttribute getVirtualMachineServiceDescriptor_Users() { + return (EAttribute)virtualMachineServiceDescriptorEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EAttribute getVirtualMachineServiceDescriptor_AdminUsers() { + return (EAttribute)virtualMachineServiceDescriptorEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EClass getPhysicalMachine() { + return physicalMachineEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getPhysicalMachine_ManagerPortNumber() { + return (EAttribute)physicalMachineEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getVirtualMachine() { + return virtualMachineEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getVirtualMachine_FunctionIndex() { + return (EAttribute)virtualMachineEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getVirtualMachine_KvmName() { + return (EAttribute)virtualMachineEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getVirtualMachine_Vnc() { + return (EAttribute)virtualMachineEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getVirtualMachine_Gateway() { + return (EAttribute)virtualMachineEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EClass getInstallationStep() { + return installationStepEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getInstallationStep_ApplicationId() { + return (EAttribute)installationStepEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getShellInstallationStep() { + return shellInstallationStepEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getShellInstallationStep_Command() { + return (EAttribute)shellInstallationStepEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getMavenArtifactInstallationStep() { + return mavenArtifactInstallationStepEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getMavenArtifactInstallationStep_GroupId() { + return (EAttribute)mavenArtifactInstallationStepEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getMavenArtifactInstallationStep_ArtifactId() { + return (EAttribute)mavenArtifactInstallationStepEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getMavenArtifactInstallationStep_Version() { + return (EAttribute)mavenArtifactInstallationStepEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getMavenArtifactInstallationStep_Type() { + return (EAttribute)mavenArtifactInstallationStepEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getMavenArtifactInstallationStep_AssemblyId() { + return (EAttribute)mavenArtifactInstallationStepEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EClass getHttpInstallationStep() { + return httpInstallationStepEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getHttpInstallationStep_Url() { + return (EAttribute)httpInstallationStepEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getHttpInstallationStep_UserName() { + return (EAttribute)httpInstallationStepEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getHttpInstallationStep_Password() { + return (EAttribute)httpInstallationStepEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getHttpInstallationStep_Type() { + return (EAttribute)httpInstallationStepEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getHttpInstallationStep_ArtifactId() { + return (EAttribute)httpInstallationStepEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public VmFactory getVmFactory() { + return (VmFactory)getEFactoryInstance(); + } + + /** + * + * + * @generated + */ + private boolean isCreated = false; + + /** + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void createPackageContents() { + if (isCreated) return; + isCreated = true; + + // Create classes and their features + virtualMachineServiceEClass = createEClass(VIRTUAL_MACHINE_SERVICE); + createEReference(virtualMachineServiceEClass, VIRTUAL_MACHINE_SERVICE__INSTANCES); + createEAttribute(virtualMachineServiceEClass, VIRTUAL_MACHINE_SERVICE__MANAGER_PORT_NUMBER); + createEOperation(virtualMachineServiceEClass, VIRTUAL_MACHINE_SERVICE___UPDATE_DEPLOYMENT_STATUS); + + virtualMachineServiceInstanceEClass = createEClass(VIRTUAL_MACHINE_SERVICE_INSTANCE); + createEReference(virtualMachineServiceInstanceEClass, VIRTUAL_MACHINE_SERVICE_INSTANCE__LOCATION); + createEReference(virtualMachineServiceInstanceEClass, VIRTUAL_MACHINE_SERVICE_INSTANCE__VM_TYPE); + createEReference(virtualMachineServiceInstanceEClass, VIRTUAL_MACHINE_SERVICE_INSTANCE__USERS); + createEReference(virtualMachineServiceInstanceEClass, VIRTUAL_MACHINE_SERVICE_INSTANCE__ADMIN_USERS); + createEAttribute(virtualMachineServiceInstanceEClass, VIRTUAL_MACHINE_SERVICE_INSTANCE__APPLICATION_IDS); + createEAttribute(virtualMachineServiceInstanceEClass, VIRTUAL_MACHINE_SERVICE_INSTANCE__ADMIN_ID); + createEAttribute(virtualMachineServiceInstanceEClass, VIRTUAL_MACHINE_SERVICE_INSTANCE__NUMBER_OF_SERVERS); + createEAttribute(virtualMachineServiceInstanceEClass, VIRTUAL_MACHINE_SERVICE_INSTANCE__AVAILABILITY_ZONE); + createEAttribute(virtualMachineServiceInstanceEClass, VIRTUAL_MACHINE_SERVICE_INSTANCE__MANAGER_PORT_NUMBER); + createEReference(virtualMachineServiceInstanceEClass, VIRTUAL_MACHINE_SERVICE_INSTANCE__SERVERS); + createEReference(virtualMachineServiceInstanceEClass, VIRTUAL_MACHINE_SERVICE_INSTANCE__LEADER_SERVER); + createEReference(virtualMachineServiceInstanceEClass, VIRTUAL_MACHINE_SERVICE_INSTANCE__SERVICE); + createEAttribute(virtualMachineServiceInstanceEClass, VIRTUAL_MACHINE_SERVICE_INSTANCE__IEDS_ADMIN); + createEAttribute(virtualMachineServiceInstanceEClass, VIRTUAL_MACHINE_SERVICE_INSTANCE__CHEF_USER); + createEAttribute(virtualMachineServiceInstanceEClass, VIRTUAL_MACHINE_SERVICE_INSTANCE__CHEF_ORG); + createEAttribute(virtualMachineServiceInstanceEClass, VIRTUAL_MACHINE_SERVICE_INSTANCE__CHEF_TOPOLOGY); + createEAttribute(virtualMachineServiceInstanceEClass, VIRTUAL_MACHINE_SERVICE_INSTANCE__OPENSTACK_FLAVOR); + createEAttribute(virtualMachineServiceInstanceEClass, VIRTUAL_MACHINE_SERVICE_INSTANCE__SERVICE_FQDN); + createEAttribute(virtualMachineServiceInstanceEClass, VIRTUAL_MACHINE_SERVICE_INSTANCE__DEPLOYMENT_TIMEOUT_MINUTES); + createEReference(virtualMachineServiceInstanceEClass, VIRTUAL_MACHINE_SERVICE_INSTANCE__STEPS); + + virtualMachineServiceConfigurationEClass = createEClass(VIRTUAL_MACHINE_SERVICE_CONFIGURATION); + createEAttribute(virtualMachineServiceConfigurationEClass, VIRTUAL_MACHINE_SERVICE_CONFIGURATION__CONFIGURATION); + + virtualMachineServiceDescriptorEClass = createEClass(VIRTUAL_MACHINE_SERVICE_DESCRIPTOR); + createEAttribute(virtualMachineServiceDescriptorEClass, VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__SERVICE_PACKAGE); + createEAttribute(virtualMachineServiceDescriptorEClass, VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__SERVICE_CLASS); + createEAttribute(virtualMachineServiceDescriptorEClass, VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__SERVICE_INSTANCE_CLASS); + createEAttribute(virtualMachineServiceDescriptorEClass, VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__VM_TYPE); + createEAttribute(virtualMachineServiceDescriptorEClass, VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__MANAGER_PORT_NUMBER); + createEAttribute(virtualMachineServiceDescriptorEClass, VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__MANAGER_USER); + createEAttribute(virtualMachineServiceDescriptorEClass, VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__ENCRYPTED_PASSWORD); + createEAttribute(virtualMachineServiceDescriptorEClass, VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__USERS); + createEAttribute(virtualMachineServiceDescriptorEClass, VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__ADMIN_USERS); + + physicalMachineEClass = createEClass(PHYSICAL_MACHINE); + createEAttribute(physicalMachineEClass, PHYSICAL_MACHINE__MANAGER_PORT_NUMBER); + + virtualMachineEClass = createEClass(VIRTUAL_MACHINE); + createEAttribute(virtualMachineEClass, VIRTUAL_MACHINE__FUNCTION_INDEX); + createEAttribute(virtualMachineEClass, VIRTUAL_MACHINE__KVM_NAME); + createEAttribute(virtualMachineEClass, VIRTUAL_MACHINE__VNC); + createEAttribute(virtualMachineEClass, VIRTUAL_MACHINE__GATEWAY); + + installationStepEClass = createEClass(INSTALLATION_STEP); + createEAttribute(installationStepEClass, INSTALLATION_STEP__APPLICATION_ID); + + shellInstallationStepEClass = createEClass(SHELL_INSTALLATION_STEP); + createEAttribute(shellInstallationStepEClass, SHELL_INSTALLATION_STEP__COMMAND); + + mavenArtifactInstallationStepEClass = createEClass(MAVEN_ARTIFACT_INSTALLATION_STEP); + createEAttribute(mavenArtifactInstallationStepEClass, MAVEN_ARTIFACT_INSTALLATION_STEP__GROUP_ID); + createEAttribute(mavenArtifactInstallationStepEClass, MAVEN_ARTIFACT_INSTALLATION_STEP__ARTIFACT_ID); + createEAttribute(mavenArtifactInstallationStepEClass, MAVEN_ARTIFACT_INSTALLATION_STEP__VERSION); + createEAttribute(mavenArtifactInstallationStepEClass, MAVEN_ARTIFACT_INSTALLATION_STEP__TYPE); + createEAttribute(mavenArtifactInstallationStepEClass, MAVEN_ARTIFACT_INSTALLATION_STEP__ASSEMBLY_ID); + + httpInstallationStepEClass = createEClass(HTTP_INSTALLATION_STEP); + createEAttribute(httpInstallationStepEClass, HTTP_INSTALLATION_STEP__URL); + createEAttribute(httpInstallationStepEClass, HTTP_INSTALLATION_STEP__USER_NAME); + createEAttribute(httpInstallationStepEClass, HTTP_INSTALLATION_STEP__PASSWORD); + createEAttribute(httpInstallationStepEClass, HTTP_INSTALLATION_STEP__TYPE); + createEAttribute(httpInstallationStepEClass, HTTP_INSTALLATION_STEP__ARTIFACT_ID); + } + + /** + * + * + * @generated + */ + private boolean isInitialized = false; + + /** + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void initializePackageContents() { + if (isInitialized) return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + ServicePackage theServicePackage = (ServicePackage)EPackage.Registry.INSTANCE.getEPackage(ServicePackage.eNS_URI); + EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); + CorePackage theCorePackage = (CorePackage)EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI); + org.openecomp.ncomp.core.CorePackage theCorePackage_1 = (org.openecomp.ncomp.core.CorePackage)EPackage.Registry.INSTANCE.getEPackage(org.openecomp.ncomp.core.CorePackage.eNS_URI); + ServerPackage theServerPackage = (ServerPackage)EPackage.Registry.INSTANCE.getEPackage(ServerPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + virtualMachineServiceEClass.getESuperTypes().add(theServicePackage.getDcaeService()); + virtualMachineServiceInstanceEClass.getESuperTypes().add(theServicePackage.getDcaeServiceInstance()); + virtualMachineServiceInstanceEClass.getESuperTypes().add(this.getVirtualMachineServiceConfiguration()); + virtualMachineServiceDescriptorEClass.getESuperTypes().add(theServicePackage.getDcaeServiceDescriptor()); + physicalMachineEClass.getESuperTypes().add(theServerPackage.getDcaeBasicServer()); + virtualMachineEClass.getESuperTypes().add(theServerPackage.getDcaeBasicServer()); + installationStepEClass.getESuperTypes().add(theCorePackage_1.getNamedEntity()); + shellInstallationStepEClass.getESuperTypes().add(this.getInstallationStep()); + mavenArtifactInstallationStepEClass.getESuperTypes().add(this.getInstallationStep()); + httpInstallationStepEClass.getESuperTypes().add(this.getInstallationStep()); + + // Initialize classes, features, and operations; add parameters + initEClass(virtualMachineServiceEClass, VirtualMachineService.class, "VirtualMachineService", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getVirtualMachineService_Instances(), this.getVirtualMachineServiceInstance(), this.getVirtualMachineServiceInstance_Service(), "instances", null, 0, -1, VirtualMachineService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVirtualMachineService_ManagerPortNumber(), theEcorePackage.getEInt(), "managerPortNumber", "9999", 0, 1, VirtualMachineService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEOperation(getVirtualMachineService__UpdateDeploymentStatus(), null, "updateDeploymentStatus", 0, 1, !IS_UNIQUE, IS_ORDERED); + + initEClass(virtualMachineServiceInstanceEClass, VirtualMachineServiceInstance.class, "VirtualMachineServiceInstance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getVirtualMachineServiceInstance_Location(), theServicePackage.getDcaeLocation(), null, "location", null, 0, 1, VirtualMachineServiceInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getVirtualMachineServiceInstance_VmType(), theCorePackage.getVirtualMachineType(), null, "vmType", null, 0, 1, VirtualMachineServiceInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getVirtualMachineServiceInstance_Users(), theCorePackage_1.getUser(), null, "users", null, 0, -1, VirtualMachineServiceInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getVirtualMachineServiceInstance_AdminUsers(), theCorePackage_1.getUser(), null, "adminUsers", null, 0, -1, VirtualMachineServiceInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVirtualMachineServiceInstance_ApplicationIds(), theEcorePackage.getEString(), "applicationIds", null, 0, -1, VirtualMachineServiceInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVirtualMachineServiceInstance_AdminId(), theEcorePackage.getEString(), "adminId", null, 0, 1, VirtualMachineServiceInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVirtualMachineServiceInstance_NumberOfServers(), theEcorePackage.getEInt(), "numberOfServers", "1", 0, 1, VirtualMachineServiceInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVirtualMachineServiceInstance_AvailabilityZone(), theEcorePackage.getEString(), "availabilityZone", null, 0, 1, VirtualMachineServiceInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVirtualMachineServiceInstance_ManagerPortNumber(), theEcorePackage.getEIntegerObject(), "managerPortNumber", null, 0, 1, VirtualMachineServiceInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getVirtualMachineServiceInstance_Servers(), theServerPackage.getDcaeBasicServer(), null, "servers", null, 0, -1, VirtualMachineServiceInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getVirtualMachineServiceInstance_LeaderServer(), theServerPackage.getDcaeBasicServer(), null, "leaderServer", null, 0, 1, VirtualMachineServiceInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getVirtualMachineServiceInstance_Service(), this.getVirtualMachineService(), this.getVirtualMachineService_Instances(), "service", null, 0, 1, VirtualMachineServiceInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVirtualMachineServiceInstance_IedsAdmin(), theEcorePackage.getEString(), "iedsAdmin", null, 0, 1, VirtualMachineServiceInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVirtualMachineServiceInstance_ChefUser(), theEcorePackage.getEString(), "chefUser", null, 0, 1, VirtualMachineServiceInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVirtualMachineServiceInstance_ChefOrg(), theEcorePackage.getEString(), "chefOrg", null, 0, 1, VirtualMachineServiceInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVirtualMachineServiceInstance_ChefTopology(), theEcorePackage.getEString(), "chefTopology", null, 0, 1, VirtualMachineServiceInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVirtualMachineServiceInstance_OpenstackFlavor(), theEcorePackage.getEString(), "openstackFlavor", null, 0, 1, VirtualMachineServiceInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVirtualMachineServiceInstance_ServiceFqdn(), theEcorePackage.getEString(), "serviceFqdn", null, 0, 1, VirtualMachineServiceInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVirtualMachineServiceInstance_DeploymentTimeoutMinutes(), theEcorePackage.getEInt(), "deploymentTimeoutMinutes", "90", 0, 1, VirtualMachineServiceInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getVirtualMachineServiceInstance_Steps(), this.getInstallationStep(), null, "steps", null, 0, -1, VirtualMachineServiceInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(virtualMachineServiceConfigurationEClass, VirtualMachineServiceConfiguration.class, "VirtualMachineServiceConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getVirtualMachineServiceConfiguration_Configuration(), theEcorePackage.getEString(), "configuration", null, 0, 1, VirtualMachineServiceConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(virtualMachineServiceDescriptorEClass, VirtualMachineServiceDescriptor.class, "VirtualMachineServiceDescriptor", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getVirtualMachineServiceDescriptor_ServicePackage(), theEcorePackage.getEString(), "servicePackage", null, 0, 1, VirtualMachineServiceDescriptor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVirtualMachineServiceDescriptor_ServiceClass(), theEcorePackage.getEString(), "serviceClass", null, 0, 1, VirtualMachineServiceDescriptor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVirtualMachineServiceDescriptor_ServiceInstanceClass(), theEcorePackage.getEString(), "serviceInstanceClass", null, 0, 1, VirtualMachineServiceDescriptor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVirtualMachineServiceDescriptor_VmType(), theEcorePackage.getEString(), "vmType", null, 0, 1, VirtualMachineServiceDescriptor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVirtualMachineServiceDescriptor_ManagerPortNumber(), theEcorePackage.getEString(), "managerPortNumber", null, 0, 1, VirtualMachineServiceDescriptor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVirtualMachineServiceDescriptor_ManagerUser(), theEcorePackage.getEString(), "managerUser", null, 0, 1, VirtualMachineServiceDescriptor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVirtualMachineServiceDescriptor_EncryptedPassword(), theEcorePackage.getEString(), "encryptedPassword", null, 0, 1, VirtualMachineServiceDescriptor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVirtualMachineServiceDescriptor_Users(), theEcorePackage.getEString(), "users", null, 0, -1, VirtualMachineServiceDescriptor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVirtualMachineServiceDescriptor_AdminUsers(), theEcorePackage.getEString(), "adminUsers", null, 0, -1, VirtualMachineServiceDescriptor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(physicalMachineEClass, PhysicalMachine.class, "PhysicalMachine", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getPhysicalMachine_ManagerPortNumber(), theEcorePackage.getEIntegerObject(), "managerPortNumber", null, 0, 1, PhysicalMachine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(virtualMachineEClass, VirtualMachine.class, "VirtualMachine", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getVirtualMachine_FunctionIndex(), theEcorePackage.getEInt(), "functionIndex", null, 0, 1, VirtualMachine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVirtualMachine_KvmName(), theEcorePackage.getEString(), "kvmName", null, 0, 1, VirtualMachine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVirtualMachine_Vnc(), theEcorePackage.getEString(), "vnc", null, 0, 1, VirtualMachine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVirtualMachine_Gateway(), theEcorePackage.getEString(), "gateway", null, 0, 1, VirtualMachine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(installationStepEClass, InstallationStep.class, "InstallationStep", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getInstallationStep_ApplicationId(), theEcorePackage.getEString(), "applicationId", "dcae", 0, 1, InstallationStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(shellInstallationStepEClass, ShellInstallationStep.class, "ShellInstallationStep", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getShellInstallationStep_Command(), theEcorePackage.getEString(), "command", null, 0, 1, ShellInstallationStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(mavenArtifactInstallationStepEClass, MavenArtifactInstallationStep.class, "MavenArtifactInstallationStep", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getMavenArtifactInstallationStep_GroupId(), theEcorePackage.getEString(), "groupId", null, 0, 1, MavenArtifactInstallationStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getMavenArtifactInstallationStep_ArtifactId(), theEcorePackage.getEString(), "artifactId", null, 0, 1, MavenArtifactInstallationStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getMavenArtifactInstallationStep_Version(), theEcorePackage.getEString(), "version", null, 0, 1, MavenArtifactInstallationStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getMavenArtifactInstallationStep_Type(), theEcorePackage.getEString(), "type", null, 0, 1, MavenArtifactInstallationStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getMavenArtifactInstallationStep_AssemblyId(), theEcorePackage.getEString(), "assemblyId", null, 0, 1, MavenArtifactInstallationStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(httpInstallationStepEClass, HttpInstallationStep.class, "HttpInstallationStep", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getHttpInstallationStep_Url(), theEcorePackage.getEString(), "url", null, 0, 1, HttpInstallationStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHttpInstallationStep_UserName(), theEcorePackage.getEString(), "userName", null, 0, 1, HttpInstallationStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHttpInstallationStep_Password(), theEcorePackage.getEString(), "password", null, 0, 1, HttpInstallationStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHttpInstallationStep_Type(), theEcorePackage.getEString(), "type", null, 0, 1, HttpInstallationStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHttpInstallationStep_ArtifactId(), theEcorePackage.getEString(), "artifactId", null, 0, 1, HttpInstallationStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + // Create resource + createResource(eNS_URI); + + // Create annotations + // http://www.eclipse.org/emf/2011/Xcore + createXcoreAnnotations(); + // http://openecomp.org + createEcompAnnotations(); + } + + /** + * Initializes the annotations for http://www.eclipse.org/emf/2011/Xcore. + * + * + * @generated + */ + protected void createXcoreAnnotations() { + String source = "http://www.eclipse.org/emf/2011/Xcore"; + addAnnotation + (this, + source, + new String[] { + "ecomp", "http://openecomp.org" + }); + } + + /** + * Initializes the annotations for http://openecomp.org. + * + * + * @generated + */ + protected void createEcompAnnotations() { + String source = "http://openecomp.org"; + addAnnotation + (getVirtualMachineService_ManagerPortNumber(), + source, + new String[] { + "type", "configuration" + }); + addAnnotation + (getVirtualMachineServiceInstance_VmType(), + source, + new String[] { + "type", "service" + }); + addAnnotation + (getVirtualMachineServiceInstance_Users(), + source, + new String[] { + "type", "service" + }); + addAnnotation + (getVirtualMachineServiceInstance_AdminUsers(), + source, + new String[] { + "type", "service" + }); + addAnnotation + (getVirtualMachineServiceInstance_NumberOfServers(), + source, + new String[] { + "type", "service" + }); + addAnnotation + (getVirtualMachineServiceInstance_AvailabilityZone(), + source, + new String[] { + "type", "service" + }); + addAnnotation + (getVirtualMachineServiceInstance_ManagerPortNumber(), + source, + new String[] { + "type", "configuration" + }); + addAnnotation + (getVirtualMachineServiceInstance_Servers(), + source, + new String[] { + "type", "operational" + }); + addAnnotation + (getVirtualMachineServiceInstance_Service(), + source, + new String[] { + "type", "operational" + }); + addAnnotation + (getVirtualMachineServiceConfiguration_Configuration(), + source, + new String[] { + "type", "configuration" + }); + addAnnotation + (getPhysicalMachine_ManagerPortNumber(), + source, + new String[] { + "type", "configuration" + }); + } + +} //VmPackageImpl diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/util/VmAdapterFactory.java b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/util/VmAdapterFactory.java new file mode 100644 index 0000000..e7818a4 --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/util/VmAdapterFactory.java @@ -0,0 +1,440 @@ + +/*- + * ============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 org.openecomp.dcae.controller.service.vm.util; + +import org.openecomp.dcae.controller.core.server.DcaeBasicServer; + +import org.openecomp.dcae.controller.core.service.DcaeService; + +import org.openecomp.dcae.controller.core.service.DcaeServiceDescriptor; +import org.openecomp.dcae.controller.core.service.DcaeServiceInstance; +import org.openecomp.dcae.controller.service.vm.*; + +import org.openecomp.ncomp.core.HasOperationalState; +import org.openecomp.ncomp.core.NamedEntity; + +import org.openecomp.ncomp.core.logs.LogMessageContainer; + +import org.eclipse.emf.common.notify.Adapter; +import org.eclipse.emf.common.notify.Notifier; + +import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.openecomp.dcae.controller.service.vm.VmPackage + * @generated + */ +public class VmAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static VmPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public VmAdapterFactory() { + if (modelPackage == null) { + modelPackage = VmPackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * + * This implementation returns true if the object is either the model's package or is an instance object of the model. + * + * @return whether this factory is applicable for the type of the object. + * @generated + */ + @Override + public boolean isFactoryForType(Object object) { + if (object == modelPackage) { + return true; + } + if (object instanceof EObject) { + return ((EObject)object).eClass().getEPackage() == modelPackage; + } + return false; + } + + /** + * The switch that delegates to the createXXX methods. + * + * + * @generated + */ + protected VmSwitch modelSwitch = + new VmSwitch() { + @Override + public Adapter caseVirtualMachineService(VirtualMachineService object) { + return createVirtualMachineServiceAdapter(); + } + @Override + public Adapter caseVirtualMachineServiceInstance(VirtualMachineServiceInstance object) { + return createVirtualMachineServiceInstanceAdapter(); + } + @Override + public Adapter caseVirtualMachineServiceConfiguration(VirtualMachineServiceConfiguration object) { + return createVirtualMachineServiceConfigurationAdapter(); + } + @Override + public Adapter caseVirtualMachineServiceDescriptor(VirtualMachineServiceDescriptor object) { + return createVirtualMachineServiceDescriptorAdapter(); + } + @Override + public Adapter casePhysicalMachine(PhysicalMachine object) { + return createPhysicalMachineAdapter(); + } + @Override + public Adapter caseVirtualMachine(VirtualMachine object) { + return createVirtualMachineAdapter(); + } + @Override + public Adapter caseInstallationStep(InstallationStep object) { + return createInstallationStepAdapter(); + } + @Override + public Adapter caseShellInstallationStep(ShellInstallationStep object) { + return createShellInstallationStepAdapter(); + } + @Override + public Adapter caseMavenArtifactInstallationStep(MavenArtifactInstallationStep object) { + return createMavenArtifactInstallationStepAdapter(); + } + @Override + public Adapter caseHttpInstallationStep(HttpInstallationStep object) { + return createHttpInstallationStepAdapter(); + } + @Override + public Adapter caseNamedEntity(NamedEntity object) { + return createNamedEntityAdapter(); + } + @Override + public Adapter caseDcaeService(DcaeService object) { + return createDcaeServiceAdapter(); + } + @Override + public Adapter caseDcaeServiceInstance(DcaeServiceInstance object) { + return createDcaeServiceInstanceAdapter(); + } + @Override + public Adapter caseDcaeServiceDescriptor(DcaeServiceDescriptor object) { + return createDcaeServiceDescriptorAdapter(); + } + @Override + public Adapter caseHasOperationalState(HasOperationalState object) { + return createHasOperationalStateAdapter(); + } + @Override + public Adapter caseLogMessageContainer(LogMessageContainer object) { + return createLogMessageContainerAdapter(); + } + @Override + public Adapter caseDcaeBasicServer(DcaeBasicServer object) { + return createDcaeBasicServerAdapter(); + } + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the target. + * + * + * @param target the object to adapt. + * @return the adapter for the target. + * @generated + */ + @Override + public Adapter createAdapter(Notifier target) { + return modelSwitch.doSwitch((EObject)target); + } + + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineService Virtual Machine Service}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.dcae.controller.service.vm.VirtualMachineService + * @generated + */ + public Adapter createVirtualMachineServiceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance Virtual Machine Service Instance}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance + * @generated + */ + public Adapter createVirtualMachineServiceInstanceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceConfiguration Virtual Machine Service Configuration}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.dcae.controller.service.vm.VirtualMachineServiceConfiguration + * @generated + */ + public Adapter createVirtualMachineServiceConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor Virtual Machine Service Descriptor}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor + * @generated + */ + public Adapter createVirtualMachineServiceDescriptorAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.dcae.controller.service.vm.PhysicalMachine Physical Machine}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.dcae.controller.service.vm.PhysicalMachine + * @generated + */ + public Adapter createPhysicalMachineAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.dcae.controller.service.vm.VirtualMachine Virtual Machine}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.dcae.controller.service.vm.VirtualMachine + * @generated + */ + public Adapter createVirtualMachineAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.dcae.controller.service.vm.InstallationStep Installation Step}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.dcae.controller.service.vm.InstallationStep + * @generated + */ + public Adapter createInstallationStepAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.dcae.controller.service.vm.ShellInstallationStep Shell Installation Step}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.dcae.controller.service.vm.ShellInstallationStep + * @generated + */ + public Adapter createShellInstallationStepAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.dcae.controller.service.vm.MavenArtifactInstallationStep Maven Artifact Installation Step}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.dcae.controller.service.vm.MavenArtifactInstallationStep + * @generated + */ + public Adapter createMavenArtifactInstallationStepAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.dcae.controller.service.vm.HttpInstallationStep Http Installation Step}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.dcae.controller.service.vm.HttpInstallationStep + * @generated + */ + public Adapter createHttpInstallationStepAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.NamedEntity Named Entity}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.core.NamedEntity + * @generated + */ + public Adapter createNamedEntityAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.dcae.controller.core.service.DcaeService Dcae Service}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.dcae.controller.core.service.DcaeService + * @generated + */ + public Adapter createDcaeServiceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.dcae.controller.core.service.DcaeServiceInstance Dcae Service Instance}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.dcae.controller.core.service.DcaeServiceInstance + * @generated + */ + public Adapter createDcaeServiceInstanceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.dcae.controller.core.service.DcaeServiceDescriptor Dcae Service Descriptor}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.dcae.controller.core.service.DcaeServiceDescriptor + * @generated + */ + public Adapter createDcaeServiceDescriptorAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.HasOperationalState Has Operational State}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.core.HasOperationalState + * @generated + */ + public Adapter createHasOperationalStateAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.logs.LogMessageContainer Log Message Container}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.core.logs.LogMessageContainer + * @generated + */ + public Adapter createLogMessageContainerAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.dcae.controller.core.server.DcaeBasicServer Dcae Basic Server}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.dcae.controller.core.server.DcaeBasicServer + * @generated + */ + public Adapter createDcaeBasicServerAdapter() { + return null; + } + + /** + * Creates a new adapter for the default case. + * + * This default implementation returns null. + * + * @return the new adapter. + * @generated + */ + public Adapter createEObjectAdapter() { + return null; + } + +} //VmAdapterFactory diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/util/VmSwitch.java b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/util/VmSwitch.java new file mode 100644 index 0000000..a8baa5a --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vm/util/VmSwitch.java @@ -0,0 +1,458 @@ + +/*- + * ============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 org.openecomp.dcae.controller.service.vm.util; + +import org.openecomp.dcae.controller.core.server.DcaeBasicServer; + +import org.openecomp.dcae.controller.core.service.DcaeService; + +import org.openecomp.dcae.controller.core.service.DcaeServiceDescriptor; +import org.openecomp.dcae.controller.core.service.DcaeServiceInstance; +import org.openecomp.dcae.controller.service.vm.*; + +import org.openecomp.ncomp.core.HasOperationalState; +import org.openecomp.ncomp.core.NamedEntity; + +import org.openecomp.ncomp.core.logs.LogMessageContainer; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.util.Switch; + +/** + * + * The Switch for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} + * to invoke the caseXXX method for each class of the model, + * starting with the actual class of the object + * and proceeding up the inheritance hierarchy + * until a non-null result is returned, + * which is the result of the switch. + * + * @see org.openecomp.dcae.controller.service.vm.VmPackage + * @generated + */ +public class VmSwitch extends Switch { + /** + * The cached model package + * + * + * @generated + */ + protected static VmPackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public VmSwitch() { + if (modelPackage == null) { + modelPackage = VmPackage.eINSTANCE; + } + } + + /** + * Checks whether this is a switch for the given package. + * + * + * @parameter ePackage the package in question. + * @return whether this is a switch for the given package. + * @generated + */ + @Override + protected boolean isSwitchFor(EPackage ePackage) { + return ePackage == modelPackage; + } + + /** + * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. + * + * + * @return the first non-null result returned by a caseXXX call. + * @generated + */ + @Override + protected T doSwitch(int classifierID, EObject theEObject) { + switch (classifierID) { + case VmPackage.VIRTUAL_MACHINE_SERVICE: { + VirtualMachineService virtualMachineService = (VirtualMachineService)theEObject; + T result = caseVirtualMachineService(virtualMachineService); + if (result == null) result = caseDcaeService(virtualMachineService); + if (result == null) result = caseNamedEntity(virtualMachineService); + if (result == null) result = defaultCase(theEObject); + return result; + } + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE: { + VirtualMachineServiceInstance virtualMachineServiceInstance = (VirtualMachineServiceInstance)theEObject; + T result = caseVirtualMachineServiceInstance(virtualMachineServiceInstance); + if (result == null) result = caseDcaeServiceInstance(virtualMachineServiceInstance); + if (result == null) result = caseVirtualMachineServiceConfiguration(virtualMachineServiceInstance); + if (result == null) result = caseNamedEntity(virtualMachineServiceInstance); + if (result == null) result = defaultCase(theEObject); + return result; + } + case VmPackage.VIRTUAL_MACHINE_SERVICE_CONFIGURATION: { + VirtualMachineServiceConfiguration virtualMachineServiceConfiguration = (VirtualMachineServiceConfiguration)theEObject; + T result = caseVirtualMachineServiceConfiguration(virtualMachineServiceConfiguration); + if (result == null) result = defaultCase(theEObject); + return result; + } + case VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR: { + VirtualMachineServiceDescriptor virtualMachineServiceDescriptor = (VirtualMachineServiceDescriptor)theEObject; + T result = caseVirtualMachineServiceDescriptor(virtualMachineServiceDescriptor); + if (result == null) result = caseDcaeServiceDescriptor(virtualMachineServiceDescriptor); + if (result == null) result = caseNamedEntity(virtualMachineServiceDescriptor); + if (result == null) result = defaultCase(theEObject); + return result; + } + case VmPackage.PHYSICAL_MACHINE: { + PhysicalMachine physicalMachine = (PhysicalMachine)theEObject; + T result = casePhysicalMachine(physicalMachine); + if (result == null) result = caseDcaeBasicServer(physicalMachine); + if (result == null) result = caseNamedEntity(physicalMachine); + if (result == null) result = caseHasOperationalState(physicalMachine); + if (result == null) result = caseLogMessageContainer(physicalMachine); + if (result == null) result = defaultCase(theEObject); + return result; + } + case VmPackage.VIRTUAL_MACHINE: { + VirtualMachine virtualMachine = (VirtualMachine)theEObject; + T result = caseVirtualMachine(virtualMachine); + if (result == null) result = caseDcaeBasicServer(virtualMachine); + if (result == null) result = caseNamedEntity(virtualMachine); + if (result == null) result = caseHasOperationalState(virtualMachine); + if (result == null) result = caseLogMessageContainer(virtualMachine); + if (result == null) result = defaultCase(theEObject); + return result; + } + case VmPackage.INSTALLATION_STEP: { + InstallationStep installationStep = (InstallationStep)theEObject; + T result = caseInstallationStep(installationStep); + if (result == null) result = caseNamedEntity(installationStep); + if (result == null) result = defaultCase(theEObject); + return result; + } + case VmPackage.SHELL_INSTALLATION_STEP: { + ShellInstallationStep shellInstallationStep = (ShellInstallationStep)theEObject; + T result = caseShellInstallationStep(shellInstallationStep); + if (result == null) result = caseInstallationStep(shellInstallationStep); + if (result == null) result = caseNamedEntity(shellInstallationStep); + if (result == null) result = defaultCase(theEObject); + return result; + } + case VmPackage.MAVEN_ARTIFACT_INSTALLATION_STEP: { + MavenArtifactInstallationStep mavenArtifactInstallationStep = (MavenArtifactInstallationStep)theEObject; + T result = caseMavenArtifactInstallationStep(mavenArtifactInstallationStep); + if (result == null) result = caseInstallationStep(mavenArtifactInstallationStep); + if (result == null) result = caseNamedEntity(mavenArtifactInstallationStep); + if (result == null) result = defaultCase(theEObject); + return result; + } + case VmPackage.HTTP_INSTALLATION_STEP: { + HttpInstallationStep httpInstallationStep = (HttpInstallationStep)theEObject; + T result = caseHttpInstallationStep(httpInstallationStep); + if (result == null) result = caseInstallationStep(httpInstallationStep); + if (result == null) result = caseNamedEntity(httpInstallationStep); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Virtual Machine Service'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Virtual Machine Service'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseVirtualMachineService(VirtualMachineService object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Virtual Machine Service Instance'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Virtual Machine Service Instance'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseVirtualMachineServiceInstance(VirtualMachineServiceInstance object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Virtual Machine Service Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Virtual Machine Service Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseVirtualMachineServiceConfiguration(VirtualMachineServiceConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Virtual Machine Service Descriptor'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Virtual Machine Service Descriptor'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseVirtualMachineServiceDescriptor(VirtualMachineServiceDescriptor object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Physical Machine'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Physical Machine'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T casePhysicalMachine(PhysicalMachine object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Virtual Machine'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Virtual Machine'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseVirtualMachine(VirtualMachine object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Installation Step'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Installation Step'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseInstallationStep(InstallationStep object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Shell Installation Step'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Shell Installation Step'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseShellInstallationStep(ShellInstallationStep object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Maven Artifact Installation Step'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Maven Artifact Installation Step'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseMavenArtifactInstallationStep(MavenArtifactInstallationStep object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Http Installation Step'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Http Installation Step'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHttpInstallationStep(HttpInstallationStep object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Named Entity'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Named Entity'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseNamedEntity(NamedEntity object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Dcae Service'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Dcae Service'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDcaeService(DcaeService object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Dcae Service Instance'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Dcae Service Instance'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDcaeServiceInstance(DcaeServiceInstance object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Dcae Service Descriptor'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Dcae Service Descriptor'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDcaeServiceDescriptor(DcaeServiceDescriptor object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Has Operational State'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Has Operational State'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHasOperationalState(HasOperationalState object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Log Message Container'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Log Message Container'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseLogMessageContainer(LogMessageContainer object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Dcae Basic Server'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Dcae Basic Server'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDcaeBasicServer(DcaeBasicServer object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'EObject'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'EObject'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) + * @generated + */ + @Override + public T defaultCase(EObject object) { + return null; + } + +} //VmSwitch diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vmmanager/VirtualMachineManager.java b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vmmanager/VirtualMachineManager.java new file mode 100644 index 0000000..ec06281 --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vmmanager/VirtualMachineManager.java @@ -0,0 +1,40 @@ + +/*- + * ============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 org.openecomp.dcae.controller.service.vmmanager; + +import org.openecomp.dcae.controller.core.manager.DcaeManager; +import org.openecomp.ncomp.sirius.manager.server.AbstractManagementServer; + +/** + * + * A representation of the model object 'Virtual Machine Manager'. + * + * + * + * @see org.openecomp.dcae.controller.service.vmmanager.VmmanagerPackage#getVirtualMachineManager() + * @model + * @generated + */ +public interface VirtualMachineManager extends DcaeManager, AbstractManagementServer { +} // VirtualMachineManager diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vmmanager/VmmanagerFactory.java b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vmmanager/VmmanagerFactory.java new file mode 100644 index 0000000..823a4b1 --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vmmanager/VmmanagerFactory.java @@ -0,0 +1,63 @@ + +/*- + * ============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 org.openecomp.dcae.controller.service.vmmanager; + +import org.eclipse.emf.ecore.EFactory; + +/** + * + * The Factory for the model. + * It provides a create method for each non-abstract class of the model. + * + * @see org.openecomp.dcae.controller.service.vmmanager.VmmanagerPackage + * @generated + */ +public interface VmmanagerFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + VmmanagerFactory eINSTANCE = org.openecomp.dcae.controller.service.vmmanager.impl.VmmanagerFactoryImpl.init(); + + /** + * Returns a new object of class 'Virtual Machine Manager'. + * + * + * @return a new object of class 'Virtual Machine Manager'. + * @generated + */ + VirtualMachineManager createVirtualMachineManager(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + VmmanagerPackage getVmmanagerPackage(); + +} //VmmanagerFactory diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vmmanager/VmmanagerPackage.java b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vmmanager/VmmanagerPackage.java new file mode 100644 index 0000000..ebb15f5 --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vmmanager/VmmanagerPackage.java @@ -0,0 +1,336 @@ + +/*- + * ============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 org.openecomp.dcae.controller.service.vmmanager; + +import org.openecomp.dcae.controller.core.manager.ManagerPackage; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; + +/** + * + * The Package for the model. + * It contains accessors for the meta objects to represent + *

    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each operation of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @see org.openecomp.dcae.controller.service.vmmanager.VmmanagerFactory + * @model kind="package" + * annotation="http://www.eclipse.org/emf/2002/GenModel modelDirectory='/dcae-controller-service-vm-model/src/main/xcore-gen' basePackage='org.openecomp.dcae.controller.service'" + * annotation="http://www.eclipse.org/emf/2011/Xcore ecomp='http://openecomp.org'" + * @generated + */ +public interface VmmanagerPackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "vmmanager"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "org.openecomp.dcae.controller.service.vmmanager"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "vmmanager"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + VmmanagerPackage eINSTANCE = org.openecomp.dcae.controller.service.vmmanager.impl.VmmanagerPackageImpl.init(); + + /** + * The meta object id for the '{@link org.openecomp.dcae.controller.service.vmmanager.impl.VirtualMachineManagerImpl Virtual Machine Manager}' class. + * + * + * @see org.openecomp.dcae.controller.service.vmmanager.impl.VirtualMachineManagerImpl + * @see org.openecomp.dcae.controller.service.vmmanager.impl.VmmanagerPackageImpl#getVirtualMachineManager() + * @generated + */ + int VIRTUAL_MACHINE_MANAGER = 0; + + /** + * The feature id for the 'Input Streams' containment reference list. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_MANAGER__INPUT_STREAMS = ManagerPackage.DCAE_MANAGER__INPUT_STREAMS; + + /** + * The feature id for the 'Output Streams' containment reference list. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_MANAGER__OUTPUT_STREAMS = ManagerPackage.DCAE_MANAGER__OUTPUT_STREAMS; + + /** + * The feature id for the 'Configuration' containment reference. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_MANAGER__CONFIGURATION = ManagerPackage.DCAE_MANAGER_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Component' containment reference. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_MANAGER__COMPONENT = ManagerPackage.DCAE_MANAGER_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Virtual Machine Manager' class. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_MANAGER_FEATURE_COUNT = ManagerPackage.DCAE_MANAGER_FEATURE_COUNT + 2; + + /** + * The operation id for the 'Test' operation. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_MANAGER___TEST = ManagerPackage.DCAE_MANAGER___TEST; + + /** + * The operation id for the 'Suspend' operation. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_MANAGER___SUSPEND = ManagerPackage.DCAE_MANAGER___SUSPEND; + + /** + * The operation id for the 'Resume' operation. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_MANAGER___RESUME = ManagerPackage.DCAE_MANAGER___RESUME; + + /** + * The operation id for the 'Public Key' operation. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_MANAGER___PUBLIC_KEY = ManagerPackage.DCAE_MANAGER___PUBLIC_KEY; + + /** + * The operation id for the 'Configuration Changed' operation. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_MANAGER___CONFIGURATION_CHANGED = ManagerPackage.DCAE_MANAGER___CONFIGURATION_CHANGED; + + /** + * The operation id for the 'Update Streams' operation. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_MANAGER___UPDATE_STREAMS__ELIST_ELIST = ManagerPackage.DCAE_MANAGER___UPDATE_STREAMS__ELIST_ELIST; + + /** + * The operation id for the 'Logs' operation. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_MANAGER___LOGS__JSONOBJECT_ELIST = ManagerPackage.DCAE_MANAGER_OPERATION_COUNT + 0; + + /** + * The operation id for the 'Metrics' operation. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_MANAGER___METRICS__JSONOBJECT_ELIST = ManagerPackage.DCAE_MANAGER_OPERATION_COUNT + 1; + + /** + * The operation id for the 'Properties' operation. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_MANAGER___PROPERTIES__JSONOBJECT_ELIST = ManagerPackage.DCAE_MANAGER_OPERATION_COUNT + 2; + + /** + * The operation id for the 'Upload Info' operation. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_MANAGER___UPLOAD_INFO__JSONOBJECT_ELIST = ManagerPackage.DCAE_MANAGER_OPERATION_COUNT + 3; + + /** + * The operation id for the 'Get Values' operation. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_MANAGER___GET_VALUES__JSONOBJECT_STRING_LONG_LONG_METRICVALUEOPTION_BOOLEAN = ManagerPackage.DCAE_MANAGER_OPERATION_COUNT + 4; + + /** + * The operation id for the 'Get Values All' operation. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_MANAGER___GET_VALUES_ALL__JSONOBJECT_STRING_ELIST_LONG_LONG_METRICVALUEOPTION_BOOLEAN = ManagerPackage.DCAE_MANAGER_OPERATION_COUNT + 5; + + /** + * The operation id for the 'Get Messages' operation. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_MANAGER___GET_MESSAGES__JSONOBJECT_STRING_LONG_LONG = ManagerPackage.DCAE_MANAGER_OPERATION_COUNT + 6; + + /** + * The operation id for the 'Get Request Logger' operation. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_MANAGER___GET_REQUEST_LOGGER__STRING_STRING_STRING_JSONOBJECT = ManagerPackage.DCAE_MANAGER_OPERATION_COUNT + 7; + + /** + * The operation id for the 'Evaluate' operation. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_MANAGER___EVALUATE__STRING_FUNCTION = ManagerPackage.DCAE_MANAGER_OPERATION_COUNT + 8; + + /** + * The operation id for the 'Update' operation. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_MANAGER___UPDATE__STRING_FUNCTION = ManagerPackage.DCAE_MANAGER_OPERATION_COUNT + 9; + + /** + * The number of operations of the 'Virtual Machine Manager' class. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_MANAGER_OPERATION_COUNT = ManagerPackage.DCAE_MANAGER_OPERATION_COUNT + 10; + + + /** + * Returns the meta object for class '{@link org.openecomp.dcae.controller.service.vmmanager.VirtualMachineManager Virtual Machine Manager}'. + * + * + * @return the meta object for class 'Virtual Machine Manager'. + * @see org.openecomp.dcae.controller.service.vmmanager.VirtualMachineManager + * @generated + */ + EClass getVirtualMachineManager(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + VmmanagerFactory getVmmanagerFactory(); + + /** + * + * Defines literals for the meta objects that represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each operation of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.openecomp.dcae.controller.service.vmmanager.impl.VirtualMachineManagerImpl Virtual Machine Manager}' class. + * + * + * @see org.openecomp.dcae.controller.service.vmmanager.impl.VirtualMachineManagerImpl + * @see org.openecomp.dcae.controller.service.vmmanager.impl.VmmanagerPackageImpl#getVirtualMachineManager() + * @generated + */ + EClass VIRTUAL_MACHINE_MANAGER = eINSTANCE.getVirtualMachineManager(); + + } + +} //VmmanagerPackage diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vmmanager/impl/VirtualMachineManagerImpl.java b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vmmanager/impl/VirtualMachineManagerImpl.java new file mode 100644 index 0000000..0eef01d --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vmmanager/impl/VirtualMachineManagerImpl.java @@ -0,0 +1,515 @@ + +/*- + * ============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 org.openecomp.dcae.controller.service.vmmanager.impl; + +import org.openecomp.dcae.controller.core.manager.impl.DcaeManagerImpl; + +import org.openecomp.dcae.controller.service.vmmanager.VirtualMachineManager; +import org.openecomp.dcae.controller.service.vmmanager.VmmanagerPackage; + +import org.openecomp.ncomp.component.Component; +import org.openecomp.ncomp.core.function.Function; +import org.openecomp.ncomp.core.function.ValuePair; +import org.openecomp.ncomp.core.logs.LogMessage; +import org.openecomp.ncomp.core.metrics.DoubleMetric; +import org.openecomp.ncomp.core.metrics.Metric; +import org.openecomp.ncomp.core.metrics.MetricValueOption; +import org.openecomp.ncomp.sirius.manager.properties.AbstractProperty; +import org.openecomp.ncomp.sirius.manager.server.AbstractManagementServer; +import org.openecomp.ncomp.sirius.manager.server.AbstractManagementServerConfiguration; +import org.openecomp.ncomp.sirius.manager.server.LoggerInfo; +import org.openecomp.ncomp.sirius.manager.server.ManagementInfo; +import org.openecomp.ncomp.sirius.manager.server.ServerPackage; +import org.openecomp.ncomp.sirius.manager.server.SouthBoundApi; +import org.openecomp.ncomp.sirius.manager.server.SouthBoundApiWithProxy; +import java.lang.reflect.InvocationTargetException; +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.json.JSONObject; + +/** + * + * An implementation of the model object 'Virtual Machine Manager'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.dcae.controller.service.vmmanager.impl.VirtualMachineManagerImpl#getConfiguration Configuration}
  • + *
  • {@link org.openecomp.dcae.controller.service.vmmanager.impl.VirtualMachineManagerImpl#getComponent Component}
  • + *
+ *

+ * + * @generated + */ +public class VirtualMachineManagerImpl extends DcaeManagerImpl implements VirtualMachineManager { + /** + * The cached value of the '{@link #getConfiguration() Configuration}' containment reference. + * + * + * @see #getConfiguration() + * @generated + * @ordered + */ + protected AbstractManagementServerConfiguration configuration; + /** + * The cached value of the '{@link #getComponent() Component}' containment reference. + * + * + * @see #getComponent() + * @generated + * @ordered + */ + protected Component component; + + /** + * + * + * @generated + */ + protected VirtualMachineManagerImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return VmmanagerPackage.Literals.VIRTUAL_MACHINE_MANAGER; + } + + /** + * + * + * @generated + */ + public AbstractManagementServerConfiguration getConfiguration() { + return configuration; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetConfiguration(AbstractManagementServerConfiguration newConfiguration, NotificationChain msgs) { + AbstractManagementServerConfiguration oldConfiguration = configuration; + configuration = newConfiguration; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, VmmanagerPackage.VIRTUAL_MACHINE_MANAGER__CONFIGURATION, oldConfiguration, newConfiguration); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setConfiguration(AbstractManagementServerConfiguration newConfiguration) { + if (newConfiguration != configuration) { + NotificationChain msgs = null; + if (configuration != null) + msgs = ((InternalEObject)configuration).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - VmmanagerPackage.VIRTUAL_MACHINE_MANAGER__CONFIGURATION, null, msgs); + if (newConfiguration != null) + msgs = ((InternalEObject)newConfiguration).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - VmmanagerPackage.VIRTUAL_MACHINE_MANAGER__CONFIGURATION, null, msgs); + msgs = basicSetConfiguration(newConfiguration, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, VmmanagerPackage.VIRTUAL_MACHINE_MANAGER__CONFIGURATION, newConfiguration, newConfiguration)); + } + + /** + * + * + * @generated + */ + public Component getComponent() { + return component; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetComponent(Component newComponent, NotificationChain msgs) { + Component oldComponent = component; + component = newComponent; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, VmmanagerPackage.VIRTUAL_MACHINE_MANAGER__COMPONENT, oldComponent, newComponent); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setComponent(Component newComponent) { + if (newComponent != component) { + NotificationChain msgs = null; + if (component != null) + msgs = ((InternalEObject)component).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - VmmanagerPackage.VIRTUAL_MACHINE_MANAGER__COMPONENT, null, msgs); + if (newComponent != null) + msgs = ((InternalEObject)newComponent).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - VmmanagerPackage.VIRTUAL_MACHINE_MANAGER__COMPONENT, null, msgs); + msgs = basicSetComponent(newComponent, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, VmmanagerPackage.VIRTUAL_MACHINE_MANAGER__COMPONENT, newComponent, newComponent)); + } + + /** + * + * + * @generated + */ + public EList getValues(JSONObject cx, String path, Long start, Long end, MetricValueOption option, boolean relativeInterval) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public EList getValuesAll(JSONObject cx, String path, EList metrics, Long start, Long end, MetricValueOption option, boolean relativeInterval) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public EList getMessages(JSONObject cx, String path, Long start, Long end) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public LoggerInfo getRequestLogger(String userName, String action, String resourcePath, JSONObject context) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public EList evaluate(String path, Function function) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void update(String path, Function function) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void uploadInfo(JSONObject cx, EList info) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void logs(JSONObject cx, EList logs) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void metrics(JSONObject cx, EList metrics) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void properties(JSONObject cx, EList l) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case VmmanagerPackage.VIRTUAL_MACHINE_MANAGER__CONFIGURATION: + return basicSetConfiguration(null, msgs); + case VmmanagerPackage.VIRTUAL_MACHINE_MANAGER__COMPONENT: + return basicSetComponent(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case VmmanagerPackage.VIRTUAL_MACHINE_MANAGER__CONFIGURATION: + return getConfiguration(); + case VmmanagerPackage.VIRTUAL_MACHINE_MANAGER__COMPONENT: + return getComponent(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case VmmanagerPackage.VIRTUAL_MACHINE_MANAGER__CONFIGURATION: + setConfiguration((AbstractManagementServerConfiguration)newValue); + return; + case VmmanagerPackage.VIRTUAL_MACHINE_MANAGER__COMPONENT: + setComponent((Component)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case VmmanagerPackage.VIRTUAL_MACHINE_MANAGER__CONFIGURATION: + setConfiguration((AbstractManagementServerConfiguration)null); + return; + case VmmanagerPackage.VIRTUAL_MACHINE_MANAGER__COMPONENT: + setComponent((Component)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case VmmanagerPackage.VIRTUAL_MACHINE_MANAGER__CONFIGURATION: + return configuration != null; + case VmmanagerPackage.VIRTUAL_MACHINE_MANAGER__COMPONENT: + return component != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { + if (baseClass == SouthBoundApi.class) { + switch (derivedFeatureID) { + default: return -1; + } + } + if (baseClass == SouthBoundApiWithProxy.class) { + switch (derivedFeatureID) { + default: return -1; + } + } + if (baseClass == AbstractManagementServer.class) { + switch (derivedFeatureID) { + case VmmanagerPackage.VIRTUAL_MACHINE_MANAGER__CONFIGURATION: return ServerPackage.ABSTRACT_MANAGEMENT_SERVER__CONFIGURATION; + case VmmanagerPackage.VIRTUAL_MACHINE_MANAGER__COMPONENT: return ServerPackage.ABSTRACT_MANAGEMENT_SERVER__COMPONENT; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { + if (baseClass == SouthBoundApi.class) { + switch (baseFeatureID) { + default: return -1; + } + } + if (baseClass == SouthBoundApiWithProxy.class) { + switch (baseFeatureID) { + default: return -1; + } + } + if (baseClass == AbstractManagementServer.class) { + switch (baseFeatureID) { + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER__CONFIGURATION: return VmmanagerPackage.VIRTUAL_MACHINE_MANAGER__CONFIGURATION; + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER__COMPONENT: return VmmanagerPackage.VIRTUAL_MACHINE_MANAGER__COMPONENT; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public int eDerivedOperationID(int baseOperationID, Class baseClass) { + if (baseClass == SouthBoundApi.class) { + switch (baseOperationID) { + case ServerPackage.SOUTH_BOUND_API___LOGS__JSONOBJECT_ELIST: return VmmanagerPackage.VIRTUAL_MACHINE_MANAGER___LOGS__JSONOBJECT_ELIST; + case ServerPackage.SOUTH_BOUND_API___METRICS__JSONOBJECT_ELIST: return VmmanagerPackage.VIRTUAL_MACHINE_MANAGER___METRICS__JSONOBJECT_ELIST; + case ServerPackage.SOUTH_BOUND_API___PROPERTIES__JSONOBJECT_ELIST: return VmmanagerPackage.VIRTUAL_MACHINE_MANAGER___PROPERTIES__JSONOBJECT_ELIST; + default: return -1; + } + } + if (baseClass == SouthBoundApiWithProxy.class) { + switch (baseOperationID) { + case ServerPackage.SOUTH_BOUND_API_WITH_PROXY___UPLOAD_INFO__JSONOBJECT_ELIST: return VmmanagerPackage.VIRTUAL_MACHINE_MANAGER___UPLOAD_INFO__JSONOBJECT_ELIST; + default: return -1; + } + } + if (baseClass == AbstractManagementServer.class) { + switch (baseOperationID) { + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER___GET_VALUES__JSONOBJECT_STRING_LONG_LONG_METRICVALUEOPTION_BOOLEAN: return VmmanagerPackage.VIRTUAL_MACHINE_MANAGER___GET_VALUES__JSONOBJECT_STRING_LONG_LONG_METRICVALUEOPTION_BOOLEAN; + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER___GET_VALUES_ALL__JSONOBJECT_STRING_ELIST_LONG_LONG_METRICVALUEOPTION_BOOLEAN: return VmmanagerPackage.VIRTUAL_MACHINE_MANAGER___GET_VALUES_ALL__JSONOBJECT_STRING_ELIST_LONG_LONG_METRICVALUEOPTION_BOOLEAN; + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER___GET_MESSAGES__JSONOBJECT_STRING_LONG_LONG: return VmmanagerPackage.VIRTUAL_MACHINE_MANAGER___GET_MESSAGES__JSONOBJECT_STRING_LONG_LONG; + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER___GET_REQUEST_LOGGER__STRING_STRING_STRING_JSONOBJECT: return VmmanagerPackage.VIRTUAL_MACHINE_MANAGER___GET_REQUEST_LOGGER__STRING_STRING_STRING_JSONOBJECT; + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER___EVALUATE__STRING_FUNCTION: return VmmanagerPackage.VIRTUAL_MACHINE_MANAGER___EVALUATE__STRING_FUNCTION; + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER___UPDATE__STRING_FUNCTION: return VmmanagerPackage.VIRTUAL_MACHINE_MANAGER___UPDATE__STRING_FUNCTION; + default: return -1; + } + } + return super.eDerivedOperationID(baseOperationID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + @SuppressWarnings("unchecked") + public Object eInvoke(int operationID, EList arguments) throws InvocationTargetException { + switch (operationID) { + case VmmanagerPackage.VIRTUAL_MACHINE_MANAGER___GET_VALUES__JSONOBJECT_STRING_LONG_LONG_METRICVALUEOPTION_BOOLEAN: + return getValues((JSONObject)arguments.get(0), (String)arguments.get(1), (Long)arguments.get(2), (Long)arguments.get(3), (MetricValueOption)arguments.get(4), (Boolean)arguments.get(5)); + case VmmanagerPackage.VIRTUAL_MACHINE_MANAGER___GET_VALUES_ALL__JSONOBJECT_STRING_ELIST_LONG_LONG_METRICVALUEOPTION_BOOLEAN: + return getValuesAll((JSONObject)arguments.get(0), (String)arguments.get(1), (EList)arguments.get(2), (Long)arguments.get(3), (Long)arguments.get(4), (MetricValueOption)arguments.get(5), (Boolean)arguments.get(6)); + case VmmanagerPackage.VIRTUAL_MACHINE_MANAGER___GET_MESSAGES__JSONOBJECT_STRING_LONG_LONG: + return getMessages((JSONObject)arguments.get(0), (String)arguments.get(1), (Long)arguments.get(2), (Long)arguments.get(3)); + case VmmanagerPackage.VIRTUAL_MACHINE_MANAGER___GET_REQUEST_LOGGER__STRING_STRING_STRING_JSONOBJECT: + return getRequestLogger((String)arguments.get(0), (String)arguments.get(1), (String)arguments.get(2), (JSONObject)arguments.get(3)); + case VmmanagerPackage.VIRTUAL_MACHINE_MANAGER___EVALUATE__STRING_FUNCTION: + return evaluate((String)arguments.get(0), (Function)arguments.get(1)); + case VmmanagerPackage.VIRTUAL_MACHINE_MANAGER___UPDATE__STRING_FUNCTION: + update((String)arguments.get(0), (Function)arguments.get(1)); + return null; + case VmmanagerPackage.VIRTUAL_MACHINE_MANAGER___UPLOAD_INFO__JSONOBJECT_ELIST: + uploadInfo((JSONObject)arguments.get(0), (EList)arguments.get(1)); + return null; + case VmmanagerPackage.VIRTUAL_MACHINE_MANAGER___LOGS__JSONOBJECT_ELIST: + logs((JSONObject)arguments.get(0), (EList)arguments.get(1)); + return null; + case VmmanagerPackage.VIRTUAL_MACHINE_MANAGER___METRICS__JSONOBJECT_ELIST: + metrics((JSONObject)arguments.get(0), (EList)arguments.get(1)); + return null; + case VmmanagerPackage.VIRTUAL_MACHINE_MANAGER___PROPERTIES__JSONOBJECT_ELIST: + properties((JSONObject)arguments.get(0), (EList)arguments.get(1)); + return null; + } + return super.eInvoke(operationID, arguments); + } + +} //VirtualMachineManagerImpl diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vmmanager/impl/VmmanagerFactoryImpl.java b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vmmanager/impl/VmmanagerFactoryImpl.java new file mode 100644 index 0000000..6c457f2 --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vmmanager/impl/VmmanagerFactoryImpl.java @@ -0,0 +1,116 @@ + +/*- + * ============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 org.openecomp.dcae.controller.service.vmmanager.impl; + +import org.openecomp.dcae.controller.service.vmmanager.*; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.impl.EFactoryImpl; + +import org.eclipse.emf.ecore.plugin.EcorePlugin; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class VmmanagerFactoryImpl extends EFactoryImpl implements VmmanagerFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static VmmanagerFactory init() { + try { + VmmanagerFactory theVmmanagerFactory = (VmmanagerFactory)EPackage.Registry.INSTANCE.getEFactory(VmmanagerPackage.eNS_URI); + if (theVmmanagerFactory != null) { + return theVmmanagerFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new VmmanagerFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public VmmanagerFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case VmmanagerPackage.VIRTUAL_MACHINE_MANAGER: return createVirtualMachineManager(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public VirtualMachineManager createVirtualMachineManager() { + VirtualMachineManagerImpl virtualMachineManager = new VirtualMachineManagerImpl(); + return virtualMachineManager; + } + + /** + * + * + * @generated + */ + public VmmanagerPackage getVmmanagerPackage() { + return (VmmanagerPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static VmmanagerPackage getPackage() { + return VmmanagerPackage.eINSTANCE; + } + +} //VmmanagerFactoryImpl diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vmmanager/impl/VmmanagerPackageImpl.java b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vmmanager/impl/VmmanagerPackageImpl.java new file mode 100644 index 0000000..3c01a4e --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vmmanager/impl/VmmanagerPackageImpl.java @@ -0,0 +1,219 @@ + +/*- + * ============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 org.openecomp.dcae.controller.service.vmmanager.impl; + +import org.openecomp.dcae.controller.core.manager.ManagerPackage; + +import org.openecomp.dcae.controller.service.vmmanager.VirtualMachineManager; +import org.openecomp.dcae.controller.service.vmmanager.VmmanagerFactory; +import org.openecomp.dcae.controller.service.vmmanager.VmmanagerPackage; + +import org.openecomp.ncomp.sirius.manager.server.ServerPackage; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.impl.EPackageImpl; + +/** + * + * An implementation of the model Package. + * + * @generated + */ +public class VmmanagerPackageImpl extends EPackageImpl implements VmmanagerPackage { + /** + * + * + * @generated + */ + private EClass virtualMachineManagerEClass = null; + + /** + * Creates an instance of the model Package, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + *

Note: the correct way to create the package is via the static + * factory method {@link #init init()}, which also performs + * initialization of the package, or returns the registered package, + * if one already exists. + * + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.openecomp.dcae.controller.service.vmmanager.VmmanagerPackage#eNS_URI + * @see #init() + * @generated + */ + private VmmanagerPackageImpl() { + super(eNS_URI, VmmanagerFactory.eINSTANCE); + } + + /** + * + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. + * + *

This method is used to initialize {@link VmmanagerPackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static VmmanagerPackage init() { + if (isInited) return (VmmanagerPackage)EPackage.Registry.INSTANCE.getEPackage(VmmanagerPackage.eNS_URI); + + // Obtain or create and register package + VmmanagerPackageImpl theVmmanagerPackage = (VmmanagerPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof VmmanagerPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new VmmanagerPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + ServerPackage.eINSTANCE.eClass(); + ManagerPackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theVmmanagerPackage.createPackageContents(); + + // Initialize created meta-data + theVmmanagerPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theVmmanagerPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(VmmanagerPackage.eNS_URI, theVmmanagerPackage); + return theVmmanagerPackage; + } + + /** + * + * + * @generated + */ + public EClass getVirtualMachineManager() { + return virtualMachineManagerEClass; + } + + /** + * + * + * @generated + */ + public VmmanagerFactory getVmmanagerFactory() { + return (VmmanagerFactory)getEFactoryInstance(); + } + + /** + * + * + * @generated + */ + private boolean isCreated = false; + + /** + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void createPackageContents() { + if (isCreated) return; + isCreated = true; + + // Create classes and their features + virtualMachineManagerEClass = createEClass(VIRTUAL_MACHINE_MANAGER); + } + + /** + * + * + * @generated + */ + private boolean isInitialized = false; + + /** + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void initializePackageContents() { + if (isInitialized) return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + ManagerPackage theManagerPackage = (ManagerPackage)EPackage.Registry.INSTANCE.getEPackage(ManagerPackage.eNS_URI); + ServerPackage theServerPackage = (ServerPackage)EPackage.Registry.INSTANCE.getEPackage(ServerPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + virtualMachineManagerEClass.getESuperTypes().add(theManagerPackage.getDcaeManager()); + virtualMachineManagerEClass.getESuperTypes().add(theServerPackage.getAbstractManagementServer()); + + // Initialize classes, features, and operations; add parameters + initEClass(virtualMachineManagerEClass, VirtualMachineManager.class, "VirtualMachineManager", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + // Create resource + createResource(eNS_URI); + + // Create annotations + // http://www.eclipse.org/emf/2011/Xcore + createXcoreAnnotations(); + } + + /** + * Initializes the annotations for http://www.eclipse.org/emf/2011/Xcore. + * + * + * @generated + */ + protected void createXcoreAnnotations() { + String source = "http://www.eclipse.org/emf/2011/Xcore"; + addAnnotation + (this, + source, + new String[] { + "ecomp", "http://openecomp.org" + }); + } + +} //VmmanagerPackageImpl diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vmmanager/util/VmmanagerAdapterFactory.java b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vmmanager/util/VmmanagerAdapterFactory.java new file mode 100644 index 0000000..2be21cd --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vmmanager/util/VmmanagerAdapterFactory.java @@ -0,0 +1,218 @@ + +/*- + * ============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 org.openecomp.dcae.controller.service.vmmanager.util; + +import org.openecomp.dcae.controller.core.manager.DcaeManager; + +import org.openecomp.dcae.controller.service.vmmanager.*; + +import org.openecomp.ncomp.sirius.manager.server.AbstractManagementServer; +import org.openecomp.ncomp.sirius.manager.server.SouthBoundApi; +import org.openecomp.ncomp.sirius.manager.server.SouthBoundApiWithProxy; +import org.eclipse.emf.common.notify.Adapter; +import org.eclipse.emf.common.notify.Notifier; + +import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.openecomp.dcae.controller.service.vmmanager.VmmanagerPackage + * @generated + */ +public class VmmanagerAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static VmmanagerPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public VmmanagerAdapterFactory() { + if (modelPackage == null) { + modelPackage = VmmanagerPackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * + * This implementation returns true if the object is either the model's package or is an instance object of the model. + * + * @return whether this factory is applicable for the type of the object. + * @generated + */ + @Override + public boolean isFactoryForType(Object object) { + if (object == modelPackage) { + return true; + } + if (object instanceof EObject) { + return ((EObject)object).eClass().getEPackage() == modelPackage; + } + return false; + } + + /** + * The switch that delegates to the createXXX methods. + * + * + * @generated + */ + protected VmmanagerSwitch modelSwitch = + new VmmanagerSwitch() { + @Override + public Adapter caseVirtualMachineManager(VirtualMachineManager object) { + return createVirtualMachineManagerAdapter(); + } + @Override + public Adapter caseDcaeManager(DcaeManager object) { + return createDcaeManagerAdapter(); + } + @Override + public Adapter caseSouthBoundApi(SouthBoundApi object) { + return createSouthBoundApiAdapter(); + } + @Override + public Adapter caseSouthBoundApiWithProxy(SouthBoundApiWithProxy object) { + return createSouthBoundApiWithProxyAdapter(); + } + @Override + public Adapter caseAbstractManagementServer(AbstractManagementServer object) { + return createAbstractManagementServerAdapter(); + } + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the target. + * + * + * @param target the object to adapt. + * @return the adapter for the target. + * @generated + */ + @Override + public Adapter createAdapter(Notifier target) { + return modelSwitch.doSwitch((EObject)target); + } + + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.dcae.controller.service.vmmanager.VirtualMachineManager Virtual Machine Manager}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.dcae.controller.service.vmmanager.VirtualMachineManager + * @generated + */ + public Adapter createVirtualMachineManagerAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.dcae.controller.core.manager.DcaeManager Dcae Manager}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.dcae.controller.core.manager.DcaeManager + * @generated + */ + public Adapter createDcaeManagerAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.server.SouthBoundApi South Bound Api}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.sirius.manager.server.SouthBoundApi + * @generated + */ + public Adapter createSouthBoundApiAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.server.SouthBoundApiWithProxy South Bound Api With Proxy}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.sirius.manager.server.SouthBoundApiWithProxy + * @generated + */ + public Adapter createSouthBoundApiWithProxyAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.server.AbstractManagementServer Abstract Management Server}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.sirius.manager.server.AbstractManagementServer + * @generated + */ + public Adapter createAbstractManagementServerAdapter() { + return null; + } + + /** + * Creates a new adapter for the default case. + * + * This default implementation returns null. + * + * @return the new adapter. + * @generated + */ + public Adapter createEObjectAdapter() { + return null; + } + +} //VmmanagerAdapterFactory diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vmmanager/util/VmmanagerSwitch.java b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vmmanager/util/VmmanagerSwitch.java new file mode 100644 index 0000000..afcc7b5 --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/vmmanager/util/VmmanagerSwitch.java @@ -0,0 +1,200 @@ + +/*- + * ============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 org.openecomp.dcae.controller.service.vmmanager.util; + +import org.openecomp.dcae.controller.core.manager.DcaeManager; + +import org.openecomp.dcae.controller.service.vmmanager.*; + +import org.openecomp.ncomp.sirius.manager.server.AbstractManagementServer; +import org.openecomp.ncomp.sirius.manager.server.SouthBoundApi; +import org.openecomp.ncomp.sirius.manager.server.SouthBoundApiWithProxy; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.util.Switch; + +/** + * + * The Switch for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} + * to invoke the caseXXX method for each class of the model, + * starting with the actual class of the object + * and proceeding up the inheritance hierarchy + * until a non-null result is returned, + * which is the result of the switch. + * + * @see org.openecomp.dcae.controller.service.vmmanager.VmmanagerPackage + * @generated + */ +public class VmmanagerSwitch extends Switch { + /** + * The cached model package + * + * + * @generated + */ + protected static VmmanagerPackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public VmmanagerSwitch() { + if (modelPackage == null) { + modelPackage = VmmanagerPackage.eINSTANCE; + } + } + + /** + * Checks whether this is a switch for the given package. + * + * + * @parameter ePackage the package in question. + * @return whether this is a switch for the given package. + * @generated + */ + @Override + protected boolean isSwitchFor(EPackage ePackage) { + return ePackage == modelPackage; + } + + /** + * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. + * + * + * @return the first non-null result returned by a caseXXX call. + * @generated + */ + @Override + protected T doSwitch(int classifierID, EObject theEObject) { + switch (classifierID) { + case VmmanagerPackage.VIRTUAL_MACHINE_MANAGER: { + VirtualMachineManager virtualMachineManager = (VirtualMachineManager)theEObject; + T result = caseVirtualMachineManager(virtualMachineManager); + if (result == null) result = caseDcaeManager(virtualMachineManager); + if (result == null) result = caseAbstractManagementServer(virtualMachineManager); + if (result == null) result = caseSouthBoundApiWithProxy(virtualMachineManager); + if (result == null) result = caseSouthBoundApi(virtualMachineManager); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Virtual Machine Manager'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Virtual Machine Manager'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseVirtualMachineManager(VirtualMachineManager object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Dcae Manager'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Dcae Manager'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDcaeManager(DcaeManager object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'South Bound Api'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'South Bound Api'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSouthBoundApi(SouthBoundApi object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'South Bound Api With Proxy'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'South Bound Api With Proxy'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSouthBoundApiWithProxy(SouthBoundApiWithProxy object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Abstract Management Server'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Abstract Management Server'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAbstractManagementServer(AbstractManagementServer object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'EObject'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'EObject'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) + * @generated + */ + @Override + public T defaultCase(EObject object) { + return null; + } + +} //VmmanagerSwitch diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore/manager.xcore b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore/manager.xcore new file mode 100644 index 0000000..5306afe --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore/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="/dcae-controller-service-vm-model/src/main/xcore-gen") +package org.openecomp.dcae.controller.service.vmmanager + +import org.openecomp.dcae.controller.core.manager.DcaeManager +import org.openecomp.ncomp.sirius.manager.server.AbstractManagementServer + +annotation "http://openecomp.org" as ecomp + +// correspond to a BsaApplication +class VirtualMachineManager extends DcaeManager, AbstractManagementServer { +} + diff --git a/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore/service.xcore b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore/service.xcore new file mode 100644 index 0000000..44dea74 --- /dev/null +++ b/dcae-controller-service-vm/dcae-controller-service-vm-model/src/main/xcore/service.xcore @@ -0,0 +1,132 @@ + +/*- + * ============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="/dcae-controller-service-vm-model/src/main/xcore-gen") +package org.openecomp.dcae.controller.service.vm + +import org.openecomp.dcae.controller.core.server.DcaeBasicServer +import org.openecomp.dcae.controller.core.service.DcaeLocation +import org.openecomp.dcae.controller.core.service.DcaeService +import org.openecomp.dcae.controller.core.service.DcaeServiceDescriptor +import org.openecomp.dcae.controller.core.service.DcaeServiceInstance +import org.openecomp.ncomp.core.User +import org.openecomp.ncomp.openstack.core.VirtualMachineType +import org.openecomp.ncomp.core.NamedEntity + +annotation "http://openecomp.org" as ecomp + +// correspond to a BsaApplication +class VirtualMachineService extends DcaeService { + contains VirtualMachineServiceInstance[] instances opposite service + @ecomp(^type = "configuration") + int managerPortNumber = "9999" + op void updateDeploymentStatus() +} + +class VirtualMachineServiceInstance extends DcaeServiceInstance, VirtualMachineServiceConfiguration { + refers DcaeLocation location + @ecomp(^type = "service") + refers VirtualMachineType vmType + @ecomp(^type = "service") + refers User[] users + @ecomp(^type = "service") + refers User[] adminUsers + String[] applicationIds + String adminId + @ecomp(^type = "service") + int numberOfServers = "1" + @ecomp(^type = "service") + String availabilityZone + @ecomp(^type = "configuration") + Integer managerPortNumber + // @ecomp(^type = "operational") + // contains SecurityRule[] incomingSecurityRules + // @ecomp(^type = "operational") + // contains SecurityRule[] outboundSecurityRules + @ecomp(^type = "operational") + contains DcaeBasicServer[] servers + refers DcaeBasicServer leaderServer + @ecomp(^type = "operational") + refers VirtualMachineService service opposite instances + String iedsAdmin + String chefUser + String chefOrg + String chefTopology + String openstackFlavor + String serviceFqdn + int deploymentTimeoutMinutes = "90" + contains InstallationStep[] steps +} + +class VirtualMachineServiceConfiguration { + @ecomp(^type = "configuration") + String configuration +} + +class VirtualMachineServiceDescriptor extends DcaeServiceDescriptor { + String servicePackage // "org.openecomp.dcae.controller.service.sample.sdnl.service", + String serviceClass // "ControllerServiceSampleSdnlService", + String serviceInstanceClass // "ControllerServiceSampleSdnlServiceInstance", + String vmType // "sample-sdnl", + String managerPortNumber // "9996", + String managerUser // "console", + String encryptedPassword // "rsa:asfdsf" + String[] users + String[] adminUsers +} + +class PhysicalMachine extends DcaeBasicServer { + @ecomp(^type = "configuration") + Integer managerPortNumber +} + +class VirtualMachine extends DcaeBasicServer { + int functionIndex + String kvmName + String vnc // 1.2.3.4:4005 IP:PORT + String gateway +} + +abstract class InstallationStep extends NamedEntity { + String applicationId = "dcae" +} + +class ShellInstallationStep extends InstallationStep { + String command +} + +class MavenArtifactInstallationStep extends InstallationStep { + String groupId + String artifactId + String version + String ^type + String assemblyId +} + +class HttpInstallationStep extends InstallationStep { + String url + String userName + String password + String ^type + String artifactId +} + -- cgit 1.2.3-korg