diff options
Diffstat (limited to 'dcae-controller-service-vm/dcae-controller-service-vm-model')
49 files changed, 12967 insertions, 0 deletions
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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="src" output="target/classes" path="src/main/xcore"> + <attributes> + <attribute name="optional" value="true"/> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> + <classpathentry kind="src" path="src/main/xcore-gen"/> + <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"> + <attributes> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> + <classpathentry kind="output" path="target/classes"/> +</classpath> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>dcae-controller-service-vm-model</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.xtext.ui.shared.xtextBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.ManifestBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.SchemaBuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.jdt.core.javanature</nature> + <nature>org.eclipse.pde.PluginNature</nature> + <nature>org.eclipse.xtext.ui.shared.xtextNature</nature> + </natures> +</projectDescription> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.0"?> + +<!-- +--> + +<plugin> + + <extension point="org.eclipse.emf.ecore.generated_package"> + <!-- @generated service --> + <package + uri="org.openecomp.dcae.controller.service.vm" + class="org.openecomp.dcae.controller.service.vm.VmPackage" + genModel="src/main/xcore/service.xcore"/> + </extension> + + <extension point="org.eclipse.emf.ecore.generated_package"> + <!-- @generated manager --> + <package + uri="org.openecomp.dcae.controller.service.vmmanager" + class="org.openecomp.dcae.controller.service.vmmanager.VmmanagerPackage" + genModel="src/main/xcore/manager.xcore"/> + </extension> + +</plugin> 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 @@ +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + <groupId>org.openecomp.dcae.controller</groupId> + <artifactId>dcae-controller-service-vm-model</artifactId> + <parent> + <groupId>org.openecomp.ncomp.maven</groupId> + <artifactId>ncomp-maven-xcore</artifactId> + <version>0.1.0-SNAPSHOT</version> + <relativePath>../../../dcae-org.openecomp.ncomp.maven/ncomp-maven-xcore</relativePath> + </parent> + <dependencies> + <dependency> + <groupId>org.openecomp.ncomp.sirius.manager</groupId> + <artifactId>ncomp-sirius-manager-model</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>org.openecomp.ncomp.openstack</groupId> + <artifactId>ncomp-openstack-model</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>org.openecomp.dcae.controller</groupId> + <artifactId>dcae-controller-core-model</artifactId> + <version>${project.version}</version> + </dependency> + </dependencies> +</project> 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; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Controller Virtual Machine Service</b></em>'. + * <!-- end-user-doc --> + * + * + * @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; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Controller Virtual Machine Service Instance</b></em>'. + * <!-- end-user-doc --> + * + * + * @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; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Http Installation Step</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.dcae.controller.service.vm.HttpInstallationStep#getUrl <em>Url</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.HttpInstallationStep#getUserName <em>User Name</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.HttpInstallationStep#getPassword <em>Password</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.HttpInstallationStep#getType <em>Type</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.HttpInstallationStep#getArtifactId <em>Artifact Id</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getHttpInstallationStep() + * @model + * @generated + */ +public interface HttpInstallationStep extends InstallationStep { + /** + * Returns the value of the '<em><b>Url</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Url</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Url</em>' 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 <em>Url</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Url</em>' attribute. + * @see #getUrl() + * @generated + */ + void setUrl(String value); + + /** + * Returns the value of the '<em><b>User Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>User Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>User Name</em>' 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 <em>User Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>User Name</em>' attribute. + * @see #getUserName() + * @generated + */ + void setUserName(String value); + + /** + * Returns the value of the '<em><b>Password</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Password</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Password</em>' 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 <em>Password</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Password</em>' attribute. + * @see #getPassword() + * @generated + */ + void setPassword(String value); + + /** + * Returns the value of the '<em><b>Type</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Type</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Type</em>' 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 <em>Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Type</em>' attribute. + * @see #getType() + * @generated + */ + void setType(String value); + + /** + * Returns the value of the '<em><b>Artifact Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Artifact Id</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Artifact Id</em>' 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 <em>Artifact Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Artifact Id</em>' 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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Installation Step</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.dcae.controller.service.vm.InstallationStep#getApplicationId <em>Application Id</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getInstallationStep() + * @model abstract="true" + * @generated + */ +public interface InstallationStep extends NamedEntity { + + /** + * Returns the value of the '<em><b>Application Id</b></em>' attribute. + * The default value is <code>"dcae"</code>. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Application Id</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Application Id</em>' 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 <em>Application Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Application Id</em>' 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; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Maven Artifact Installation Step</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.dcae.controller.service.vm.MavenArtifactInstallationStep#getGroupId <em>Group Id</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.MavenArtifactInstallationStep#getArtifactId <em>Artifact Id</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.MavenArtifactInstallationStep#getVersion <em>Version</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.MavenArtifactInstallationStep#getType <em>Type</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.MavenArtifactInstallationStep#getAssemblyId <em>Assembly Id</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getMavenArtifactInstallationStep() + * @model + * @generated + */ +public interface MavenArtifactInstallationStep extends InstallationStep { + /** + * Returns the value of the '<em><b>Group Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Group Id</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Group Id</em>' 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 <em>Group Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Group Id</em>' attribute. + * @see #getGroupId() + * @generated + */ + void setGroupId(String value); + + /** + * Returns the value of the '<em><b>Artifact Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Artifact Id</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Artifact Id</em>' 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 <em>Artifact Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Artifact Id</em>' attribute. + * @see #getArtifactId() + * @generated + */ + void setArtifactId(String value); + + /** + * Returns the value of the '<em><b>Version</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Version</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Version</em>' 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 <em>Version</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Version</em>' attribute. + * @see #getVersion() + * @generated + */ + void setVersion(String value); + + /** + * Returns the value of the '<em><b>Type</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Type</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Type</em>' 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 <em>Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Type</em>' attribute. + * @see #getType() + * @generated + */ + void setType(String value); + + /** + * Returns the value of the '<em><b>Assembly Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Assembly Id</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Assembly Id</em>' 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 <em>Assembly Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Assembly Id</em>' 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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Physical Machine</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.dcae.controller.service.vm.PhysicalMachine#getManagerPortNumber <em>Manager Port Number</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getPhysicalMachine() + * @model + * @generated + */ +public interface PhysicalMachine extends DcaeBasicServer { + + /** + * Returns the value of the '<em><b>Manager Port Number</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Manager Port Number</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Manager Port Number</em>' 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 <em>Manager Port Number</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Manager Port Number</em>' 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; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Shell Installation Step</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.dcae.controller.service.vm.ShellInstallationStep#getCommand <em>Command</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getShellInstallationStep() + * @model + * @generated + */ +public interface ShellInstallationStep extends InstallationStep { + /** + * Returns the value of the '<em><b>Command</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Command</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Command</em>' 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 <em>Command</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Command</em>' 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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Virtual Machine</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.dcae.controller.service.vm.VirtualMachine#getFunctionIndex <em>Function Index</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.VirtualMachine#getKvmName <em>Kvm Name</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.VirtualMachine#getVnc <em>Vnc</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.VirtualMachine#getGateway <em>Gateway</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachine() + * @model + * @generated + */ +public interface VirtualMachine extends DcaeBasicServer { + /** + * Returns the value of the '<em><b>Function Index</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Function Index</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Function Index</em>' 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 <em>Function Index</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Function Index</em>' attribute. + * @see #getFunctionIndex() + * @generated + */ + void setFunctionIndex(int value); + + /** + * Returns the value of the '<em><b>Kvm Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Kvm Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Kvm Name</em>' 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 <em>Kvm Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Kvm Name</em>' attribute. + * @see #getKvmName() + * @generated + */ + void setKvmName(String value); + + /** + * Returns the value of the '<em><b>Vnc</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Vnc</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Vnc</em>' 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 <em>Vnc</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Vnc</em>' attribute. + * @see #getVnc() + * @generated + */ + void setVnc(String value); + + /** + * Returns the value of the '<em><b>Gateway</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Gateway</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Gateway</em>' 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 <em>Gateway</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Gateway</em>' 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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Virtual Machine Service</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.dcae.controller.service.vm.VirtualMachineService#getInstances <em>Instances</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.VirtualMachineService#getManagerPortNumber <em>Manager Port Number</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachineService() + * @model + * @generated + */ +public interface VirtualMachineService extends DcaeService { + /** + * Returns the value of the '<em><b>Instances</b></em>' 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 <em>Service</em>}'. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Instances</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Instances</em>' 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<VirtualMachineServiceInstance> getInstances(); + + /** + * Returns the value of the '<em><b>Manager Port Number</b></em>' attribute. + * The default value is <code>"9999"</code>. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Manager Port Number</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Manager Port Number</em>' 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 <em>Manager Port Number</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Manager Port Number</em>' attribute. + * @see #getManagerPortNumber() + * @generated + */ + void setManagerPortNumber(int value); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Virtual Machine Service Configuration</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceConfiguration#getConfiguration <em>Configuration</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachineServiceConfiguration() + * @model + * @generated + */ +public interface VirtualMachineServiceConfiguration extends EObject { + /** + * Returns the value of the '<em><b>Configuration</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Configuration</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Configuration</em>' 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 <em>Configuration</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Configuration</em>' 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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Virtual Machine Service Descriptor</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor#getServicePackage <em>Service Package</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor#getServiceClass <em>Service Class</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor#getServiceInstanceClass <em>Service Instance Class</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor#getVmType <em>Vm Type</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor#getManagerPortNumber <em>Manager Port Number</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor#getManagerUser <em>Manager User</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor#getEncryptedPassword <em>Encrypted Password</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor#getUsers <em>Users</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceDescriptor#getAdminUsers <em>Admin Users</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachineServiceDescriptor() + * @model + * @generated + */ +public interface VirtualMachineServiceDescriptor extends DcaeServiceDescriptor { + /** + * Returns the value of the '<em><b>Service Package</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Service Package</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Service Package</em>' 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 <em>Service Package</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Service Package</em>' attribute. + * @see #getServicePackage() + * @generated + */ + void setServicePackage(String value); + + /** + * Returns the value of the '<em><b>Service Class</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Service Class</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Service Class</em>' 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 <em>Service Class</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Service Class</em>' attribute. + * @see #getServiceClass() + * @generated + */ + void setServiceClass(String value); + + /** + * Returns the value of the '<em><b>Service Instance Class</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Service Instance Class</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Service Instance Class</em>' 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 <em>Service Instance Class</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Service Instance Class</em>' attribute. + * @see #getServiceInstanceClass() + * @generated + */ + void setServiceInstanceClass(String value); + + /** + * Returns the value of the '<em><b>Vm Type</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Vm Type</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Vm Type</em>' 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 <em>Vm Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Vm Type</em>' attribute. + * @see #getVmType() + * @generated + */ + void setVmType(String value); + + /** + * Returns the value of the '<em><b>Manager Port Number</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Manager Port Number</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Manager Port Number</em>' 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 <em>Manager Port Number</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Manager Port Number</em>' attribute. + * @see #getManagerPortNumber() + * @generated + */ + void setManagerPortNumber(String value); + + /** + * Returns the value of the '<em><b>Manager User</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Manager User</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Manager User</em>' 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 <em>Manager User</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Manager User</em>' attribute. + * @see #getManagerUser() + * @generated + */ + void setManagerUser(String value); + + /** + * Returns the value of the '<em><b>Encrypted Password</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Encrypted Password</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Encrypted Password</em>' 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 <em>Encrypted Password</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Encrypted Password</em>' attribute. + * @see #getEncryptedPassword() + * @generated + */ + void setEncryptedPassword(String value); + + /** + * Returns the value of the '<em><b>Users</b></em>' attribute list. + * The list contents are of type {@link java.lang.String}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Users</em>' attribute list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Users</em>' attribute list. + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachineServiceDescriptor_Users() + * @model unique="false" + * @generated + */ + EList<String> getUsers(); + + /** + * Returns the value of the '<em><b>Admin Users</b></em>' attribute list. + * The list contents are of type {@link java.lang.String}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Admin Users</em>' attribute list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Admin Users</em>' attribute list. + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachineServiceDescriptor_AdminUsers() + * @model unique="false" + * @generated + */ + EList<String> 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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Virtual Machine Service Instance</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getLocation <em>Location</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getVmType <em>Vm Type</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getUsers <em>Users</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getAdminUsers <em>Admin Users</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getApplicationIds <em>Application Ids</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getAdminId <em>Admin Id</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getNumberOfServers <em>Number Of Servers</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getAvailabilityZone <em>Availability Zone</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getManagerPortNumber <em>Manager Port Number</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getServers <em>Servers</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getLeaderServer <em>Leader Server</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getService <em>Service</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getIedsAdmin <em>Ieds Admin</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getChefUser <em>Chef User</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getChefOrg <em>Chef Org</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getChefTopology <em>Chef Topology</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getOpenstackFlavor <em>Openstack Flavor</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getServiceFqdn <em>Service Fqdn</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getDeploymentTimeoutMinutes <em>Deployment Timeout Minutes</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance#getSteps <em>Steps</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachineServiceInstance() + * @model + * @generated + */ +public interface VirtualMachineServiceInstance extends DcaeServiceInstance, VirtualMachineServiceConfiguration { + /** + * Returns the value of the '<em><b>Location</b></em>' reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Location</em>' reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Location</em>' 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 <em>Location</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Location</em>' reference. + * @see #getLocation() + * @generated + */ + void setLocation(DcaeLocation value); + + /** + * Returns the value of the '<em><b>Vm Type</b></em>' reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Vm Type</em>' reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Vm Type</em>' 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 <em>Vm Type</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Vm Type</em>' reference. + * @see #getVmType() + * @generated + */ + void setVmType(VirtualMachineType value); + + /** + * Returns the value of the '<em><b>Users</b></em>' reference list. + * The list contents are of type {@link org.openecomp.ncomp.core.User}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Users</em>' reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Users</em>' reference list. + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachineServiceInstance_Users() + * @model annotation="http://openecomp.org type='service'" + * @generated + */ + EList<User> getUsers(); + + /** + * Returns the value of the '<em><b>Admin Users</b></em>' reference list. + * The list contents are of type {@link org.openecomp.ncomp.core.User}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Admin Users</em>' reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Admin Users</em>' reference list. + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachineServiceInstance_AdminUsers() + * @model annotation="http://openecomp.org type='service'" + * @generated + */ + EList<User> getAdminUsers(); + + /** + * Returns the value of the '<em><b>Application Ids</b></em>' attribute list. + * The list contents are of type {@link java.lang.String}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Application Ids</em>' attribute list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Application Ids</em>' attribute list. + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachineServiceInstance_ApplicationIds() + * @model unique="false" + * @generated + */ + EList<String> getApplicationIds(); + + /** + * Returns the value of the '<em><b>Admin Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Admin Id</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Admin Id</em>' 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 <em>Admin Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Admin Id</em>' attribute. + * @see #getAdminId() + * @generated + */ + void setAdminId(String value); + + /** + * Returns the value of the '<em><b>Number Of Servers</b></em>' attribute. + * The default value is <code>"1"</code>. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Number Of Servers</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Number Of Servers</em>' 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 <em>Number Of Servers</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Number Of Servers</em>' attribute. + * @see #getNumberOfServers() + * @generated + */ + void setNumberOfServers(int value); + + /** + * Returns the value of the '<em><b>Availability Zone</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Availability Zone</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Availability Zone</em>' 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 <em>Availability Zone</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Availability Zone</em>' attribute. + * @see #getAvailabilityZone() + * @generated + */ + void setAvailabilityZone(String value); + + /** + * Returns the value of the '<em><b>Manager Port Number</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Manager Port Number</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Manager Port Number</em>' 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 <em>Manager Port Number</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Manager Port Number</em>' attribute. + * @see #getManagerPortNumber() + * @generated + */ + void setManagerPortNumber(Integer value); + + /** + * Returns the value of the '<em><b>Servers</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.dcae.controller.core.server.DcaeBasicServer}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Servers</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Servers</em>' containment reference list. + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachineServiceInstance_Servers() + * @model containment="true" + * annotation="http://openecomp.org type='operational'" + * @generated + */ + EList<DcaeBasicServer> getServers(); + + /** + * Returns the value of the '<em><b>Leader Server</b></em>' reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Leader Server</em>' reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Leader Server</em>' 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 <em>Leader Server</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Leader Server</em>' reference. + * @see #getLeaderServer() + * @generated + */ + void setLeaderServer(DcaeBasicServer value); + + /** + * Returns the value of the '<em><b>Service</b></em>' container reference. + * It is bidirectional and its opposite is '{@link org.openecomp.dcae.controller.service.vm.VirtualMachineService#getInstances <em>Instances</em>}'. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Service</em>' container reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Service</em>' 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 <em>Service</em>}' container reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Service</em>' container reference. + * @see #getService() + * @generated + */ + void setService(VirtualMachineService value); + + /** + * Returns the value of the '<em><b>Ieds Admin</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Ieds Admin</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Ieds Admin</em>' 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 <em>Ieds Admin</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Ieds Admin</em>' attribute. + * @see #getIedsAdmin() + * @generated + */ + void setIedsAdmin(String value); + + /** + * Returns the value of the '<em><b>Chef User</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Chef User</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Chef User</em>' 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 <em>Chef User</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Chef User</em>' attribute. + * @see #getChefUser() + * @generated + */ + void setChefUser(String value); + + /** + * Returns the value of the '<em><b>Chef Org</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Chef Org</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Chef Org</em>' 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 <em>Chef Org</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Chef Org</em>' attribute. + * @see #getChefOrg() + * @generated + */ + void setChefOrg(String value); + + /** + * Returns the value of the '<em><b>Chef Topology</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Chef Topology</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Chef Topology</em>' 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 <em>Chef Topology</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Chef Topology</em>' attribute. + * @see #getChefTopology() + * @generated + */ + void setChefTopology(String value); + + /** + * Returns the value of the '<em><b>Openstack Flavor</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Openstack Flavor</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Openstack Flavor</em>' 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 <em>Openstack Flavor</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Openstack Flavor</em>' attribute. + * @see #getOpenstackFlavor() + * @generated + */ + void setOpenstackFlavor(String value); + + /** + * Returns the value of the '<em><b>Service Fqdn</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Service Fqdn</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Service Fqdn</em>' 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 <em>Service Fqdn</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Service Fqdn</em>' attribute. + * @see #getServiceFqdn() + * @generated + */ + void setServiceFqdn(String value); + + /** + * Returns the value of the '<em><b>Deployment Timeout Minutes</b></em>' attribute. + * The default value is <code>"90"</code>. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Deployment Timeout Minutes</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Deployment Timeout Minutes</em>' 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 <em>Deployment Timeout Minutes</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Deployment Timeout Minutes</em>' attribute. + * @see #getDeploymentTimeoutMinutes() + * @generated + */ + void setDeploymentTimeoutMinutes(int value); + + /** + * Returns the value of the '<em><b>Steps</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.dcae.controller.service.vm.InstallationStep}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Steps</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Steps</em>' containment reference list. + * @see org.openecomp.dcae.controller.service.vm.VmPackage#getVirtualMachineServiceInstance_Steps() + * @model containment="true" + * @generated + */ + EList<InstallationStep> 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; + +/** + * <!-- begin-user-doc --> + * The <b>Factory</b> for the model. + * It provides a create method for each non-abstract class of the model. + * <!-- end-user-doc --> + * @see org.openecomp.dcae.controller.service.vm.VmPackage + * @generated + */ +public interface VmFactory extends EFactory { + /** + * The singleton instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + VmFactory eINSTANCE = org.openecomp.dcae.controller.service.vm.impl.VmFactoryImpl.init(); + + /** + * Returns a new object of class '<em>Virtual Machine Service</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Virtual Machine Service</em>'. + * @generated + */ + VirtualMachineService createVirtualMachineService(); + + /** + * Returns a new object of class '<em>Virtual Machine Service Instance</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Virtual Machine Service Instance</em>'. + * @generated + */ + VirtualMachineServiceInstance createVirtualMachineServiceInstance(); + + /** + * Returns a new object of class '<em>Virtual Machine Service Configuration</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Virtual Machine Service Configuration</em>'. + * @generated + */ + VirtualMachineServiceConfiguration createVirtualMachineServiceConfiguration(); + + /** + * Returns a new object of class '<em>Virtual Machine Service Descriptor</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Virtual Machine Service Descriptor</em>'. + * @generated + */ + VirtualMachineServiceDescriptor createVirtualMachineServiceDescriptor(); + + /** + * Returns a new object of class '<em>Physical Machine</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Physical Machine</em>'. + * @generated + */ + PhysicalMachine createPhysicalMachine(); + + /** + * Returns a new object of class '<em>Virtual Machine</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Virtual Machine</em>'. + * @generated + */ + VirtualMachine createVirtualMachine(); + + /** + * Returns a new object of class '<em>Shell Installation Step</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Shell Installation Step</em>'. + * @generated + */ + ShellInstallationStep createShellInstallationStep(); + + /** + * Returns a new object of class '<em>Maven Artifact Installation Step</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Maven Artifact Installation Step</em>'. + * @generated + */ + MavenArtifactInstallationStep createMavenArtifactInstallationStep(); + + /** + * Returns a new object of class '<em>Http Installation Step</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Http Installation Step</em>'. + * @generated + */ + HttpInstallationStep createHttpInstallationStep(); + + /** + * Returns the package supported by this factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * The <b>Package</b> for the model. + * It contains accessors for the meta objects to represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each operation of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * @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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNAME = "vm"; + + /** + * The package namespace URI. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNS_URI = "org.openecomp.dcae.controller.service.vm"; + + /** + * The package namespace name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNS_PREFIX = "vm"; + + /** + * The singleton instance of the package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <em>Virtual Machine Service</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE__NAME = ServicePackage.DCAE_SERVICE__NAME; + + /** + * The feature id for the '<em><b>Last Polled</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE__LAST_POLLED = ServicePackage.DCAE_SERVICE__LAST_POLLED; + + /** + * The feature id for the '<em><b>Last Changed</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE__LAST_CHANGED = ServicePackage.DCAE_SERVICE__LAST_CHANGED; + + /** + * The feature id for the '<em><b>Created</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE__CREATED = ServicePackage.DCAE_SERVICE__CREATED; + + /** + * The feature id for the '<em><b>Instances</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE__INSTANCES = ServicePackage.DCAE_SERVICE_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Manager Port Number</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE__MANAGER_PORT_NUMBER = ServicePackage.DCAE_SERVICE_FEATURE_COUNT + 1; + + /** + * The number of structural features of the '<em>Virtual Machine Service</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_FEATURE_COUNT = ServicePackage.DCAE_SERVICE_FEATURE_COUNT + 2; + + /** + * The operation id for the '<em>Deploy</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE___DEPLOY__STRING_STRING = ServicePackage.DCAE_SERVICE___DEPLOY__STRING_STRING; + + /** + * The operation id for the '<em>Undeploy</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE___UNDEPLOY__STRING = ServicePackage.DCAE_SERVICE___UNDEPLOY__STRING; + + /** + * The operation id for the '<em>Test</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE___TEST__STRING = ServicePackage.DCAE_SERVICE___TEST__STRING; + + /** + * The operation id for the '<em>Suspend</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE___SUSPEND__STRING = ServicePackage.DCAE_SERVICE___SUSPEND__STRING; + + /** + * The operation id for the '<em>Resume</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE___RESUME__STRING = ServicePackage.DCAE_SERVICE___RESUME__STRING; + + /** + * The operation id for the '<em>Push Manager Configuration</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE___PUSH_MANAGER_CONFIGURATION__STRING = ServicePackage.DCAE_SERVICE___PUSH_MANAGER_CONFIGURATION__STRING; + + /** + * The operation id for the '<em>Poll Manager Configuration</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE___POLL_MANAGER_CONFIGURATION__STRING = ServicePackage.DCAE_SERVICE___POLL_MANAGER_CONFIGURATION__STRING; + + /** + * The operation id for the '<em>Manager Configuration</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE___MANAGER_CONFIGURATION__STRING = ServicePackage.DCAE_SERVICE___MANAGER_CONFIGURATION__STRING; + + /** + * The operation id for the '<em>Manager Operation</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE___MANAGER_OPERATION__STRING_STRING_JSONOBJECT = ServicePackage.DCAE_SERVICE___MANAGER_OPERATION__STRING_STRING_JSONOBJECT; + + /** + * The operation id for the '<em>Update Configuration From Policy</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE___UPDATE_CONFIGURATION_FROM_POLICY__STRING = ServicePackage.DCAE_SERVICE___UPDATE_CONFIGURATION_FROM_POLICY__STRING; + + /** + * The operation id for the '<em>Run Health Tests</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE___RUN_HEALTH_TESTS = ServicePackage.DCAE_SERVICE___RUN_HEALTH_TESTS; + + /** + * The operation id for the '<em>Update Deployment Status</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE___UPDATE_DEPLOYMENT_STATUS = ServicePackage.DCAE_SERVICE_OPERATION_COUNT + 0; + + /** + * The number of operations of the '<em>Virtual Machine Service</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <em>Virtual Machine Service Instance</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__NAME = ServicePackage.DCAE_SERVICE_INSTANCE__NAME; + + /** + * The feature id for the '<em><b>Last Polled</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__LAST_POLLED = ServicePackage.DCAE_SERVICE_INSTANCE__LAST_POLLED; + + /** + * The feature id for the '<em><b>Last Changed</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__LAST_CHANGED = ServicePackage.DCAE_SERVICE_INSTANCE__LAST_CHANGED; + + /** + * The feature id for the '<em><b>Created</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__CREATED = ServicePackage.DCAE_SERVICE_INSTANCE__CREATED; + + /** + * The feature id for the '<em><b>Service Container</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__SERVICE_CONTAINER = ServicePackage.DCAE_SERVICE_INSTANCE__SERVICE_CONTAINER; + + /** + * The feature id for the '<em><b>Status</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__STATUS = ServicePackage.DCAE_SERVICE_INSTANCE__STATUS; + + /** + * The feature id for the '<em><b>Input Streams</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__INPUT_STREAMS = ServicePackage.DCAE_SERVICE_INSTANCE__INPUT_STREAMS; + + /** + * The feature id for the '<em><b>Output Streams</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__OUTPUT_STREAMS = ServicePackage.DCAE_SERVICE_INSTANCE__OUTPUT_STREAMS; + + /** + * The feature id for the '<em><b>Last Health Test</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__LAST_HEALTH_TEST = ServicePackage.DCAE_SERVICE_INSTANCE__LAST_HEALTH_TEST; + + /** + * The feature id for the '<em><b>Health Test Status</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__HEALTH_TEST_STATUS = ServicePackage.DCAE_SERVICE_INSTANCE__HEALTH_TEST_STATUS; + + /** + * The feature id for the '<em><b>Health Test Message Code</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__HEALTH_TEST_MESSAGE_CODE = ServicePackage.DCAE_SERVICE_INSTANCE__HEALTH_TEST_MESSAGE_CODE; + + /** + * The feature id for the '<em><b>Configuration</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__CONFIGURATION = ServicePackage.DCAE_SERVICE_INSTANCE_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Location</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__LOCATION = ServicePackage.DCAE_SERVICE_INSTANCE_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Vm Type</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__VM_TYPE = ServicePackage.DCAE_SERVICE_INSTANCE_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Users</b></em>' reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__USERS = ServicePackage.DCAE_SERVICE_INSTANCE_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>Admin Users</b></em>' reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__ADMIN_USERS = ServicePackage.DCAE_SERVICE_INSTANCE_FEATURE_COUNT + 4; + + /** + * The feature id for the '<em><b>Application Ids</b></em>' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__APPLICATION_IDS = ServicePackage.DCAE_SERVICE_INSTANCE_FEATURE_COUNT + 5; + + /** + * The feature id for the '<em><b>Admin Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__ADMIN_ID = ServicePackage.DCAE_SERVICE_INSTANCE_FEATURE_COUNT + 6; + + /** + * The feature id for the '<em><b>Number Of Servers</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__NUMBER_OF_SERVERS = ServicePackage.DCAE_SERVICE_INSTANCE_FEATURE_COUNT + 7; + + /** + * The feature id for the '<em><b>Availability Zone</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__AVAILABILITY_ZONE = ServicePackage.DCAE_SERVICE_INSTANCE_FEATURE_COUNT + 8; + + /** + * The feature id for the '<em><b>Manager Port Number</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__MANAGER_PORT_NUMBER = ServicePackage.DCAE_SERVICE_INSTANCE_FEATURE_COUNT + 9; + + /** + * The feature id for the '<em><b>Servers</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__SERVERS = ServicePackage.DCAE_SERVICE_INSTANCE_FEATURE_COUNT + 10; + + /** + * The feature id for the '<em><b>Leader Server</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__LEADER_SERVER = ServicePackage.DCAE_SERVICE_INSTANCE_FEATURE_COUNT + 11; + + /** + * The feature id for the '<em><b>Service</b></em>' container reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__SERVICE = ServicePackage.DCAE_SERVICE_INSTANCE_FEATURE_COUNT + 12; + + /** + * The feature id for the '<em><b>Ieds Admin</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__IEDS_ADMIN = ServicePackage.DCAE_SERVICE_INSTANCE_FEATURE_COUNT + 13; + + /** + * The feature id for the '<em><b>Chef User</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__CHEF_USER = ServicePackage.DCAE_SERVICE_INSTANCE_FEATURE_COUNT + 14; + + /** + * The feature id for the '<em><b>Chef Org</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__CHEF_ORG = ServicePackage.DCAE_SERVICE_INSTANCE_FEATURE_COUNT + 15; + + /** + * The feature id for the '<em><b>Chef Topology</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__CHEF_TOPOLOGY = ServicePackage.DCAE_SERVICE_INSTANCE_FEATURE_COUNT + 16; + + /** + * The feature id for the '<em><b>Openstack Flavor</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__OPENSTACK_FLAVOR = ServicePackage.DCAE_SERVICE_INSTANCE_FEATURE_COUNT + 17; + + /** + * The feature id for the '<em><b>Service Fqdn</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__SERVICE_FQDN = ServicePackage.DCAE_SERVICE_INSTANCE_FEATURE_COUNT + 18; + + /** + * The feature id for the '<em><b>Deployment Timeout Minutes</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__DEPLOYMENT_TIMEOUT_MINUTES = ServicePackage.DCAE_SERVICE_INSTANCE_FEATURE_COUNT + 19; + + /** + * The feature id for the '<em><b>Steps</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE__STEPS = ServicePackage.DCAE_SERVICE_INSTANCE_FEATURE_COUNT + 20; + + /** + * The number of structural features of the '<em>Virtual Machine Service Instance</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_INSTANCE_FEATURE_COUNT = ServicePackage.DCAE_SERVICE_INSTANCE_FEATURE_COUNT + 21; + + /** + * The number of operations of the '<em>Virtual Machine Service Instance</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <em>Virtual Machine Service Configuration</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Configuration</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_CONFIGURATION__CONFIGURATION = 0; + + /** + * The number of structural features of the '<em>Virtual Machine Service Configuration</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_CONFIGURATION_FEATURE_COUNT = 1; + + /** + * The number of operations of the '<em>Virtual Machine Service Configuration</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <em>Virtual Machine Service Descriptor</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__NAME = ServicePackage.DCAE_SERVICE_DESCRIPTOR__NAME; + + /** + * The feature id for the '<em><b>Last Polled</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__LAST_POLLED = ServicePackage.DCAE_SERVICE_DESCRIPTOR__LAST_POLLED; + + /** + * The feature id for the '<em><b>Last Changed</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__LAST_CHANGED = ServicePackage.DCAE_SERVICE_DESCRIPTOR__LAST_CHANGED; + + /** + * The feature id for the '<em><b>Created</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__CREATED = ServicePackage.DCAE_SERVICE_DESCRIPTOR__CREATED; + + /** + * The feature id for the '<em><b>Group Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__GROUP_ID = ServicePackage.DCAE_SERVICE_DESCRIPTOR__GROUP_ID; + + /** + * The feature id for the '<em><b>Artifact</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__ARTIFACT = ServicePackage.DCAE_SERVICE_DESCRIPTOR__ARTIFACT; + + /** + * The feature id for the '<em><b>Version</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__VERSION = ServicePackage.DCAE_SERVICE_DESCRIPTOR__VERSION; + + /** + * The feature id for the '<em><b>Service Package</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__SERVICE_PACKAGE = ServicePackage.DCAE_SERVICE_DESCRIPTOR_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Service Class</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__SERVICE_CLASS = ServicePackage.DCAE_SERVICE_DESCRIPTOR_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Service Instance Class</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__SERVICE_INSTANCE_CLASS = ServicePackage.DCAE_SERVICE_DESCRIPTOR_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Vm Type</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__VM_TYPE = ServicePackage.DCAE_SERVICE_DESCRIPTOR_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>Manager Port Number</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__MANAGER_PORT_NUMBER = ServicePackage.DCAE_SERVICE_DESCRIPTOR_FEATURE_COUNT + 4; + + /** + * The feature id for the '<em><b>Manager User</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__MANAGER_USER = ServicePackage.DCAE_SERVICE_DESCRIPTOR_FEATURE_COUNT + 5; + + /** + * The feature id for the '<em><b>Encrypted Password</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__ENCRYPTED_PASSWORD = ServicePackage.DCAE_SERVICE_DESCRIPTOR_FEATURE_COUNT + 6; + + /** + * The feature id for the '<em><b>Users</b></em>' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__USERS = ServicePackage.DCAE_SERVICE_DESCRIPTOR_FEATURE_COUNT + 7; + + /** + * The feature id for the '<em><b>Admin Users</b></em>' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__ADMIN_USERS = ServicePackage.DCAE_SERVICE_DESCRIPTOR_FEATURE_COUNT + 8; + + /** + * The number of structural features of the '<em>Virtual Machine Service Descriptor</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_SERVICE_DESCRIPTOR_FEATURE_COUNT = ServicePackage.DCAE_SERVICE_DESCRIPTOR_FEATURE_COUNT + 9; + + /** + * The number of operations of the '<em>Virtual Machine Service Descriptor</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <em>Physical Machine</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PHYSICAL_MACHINE__NAME = ServerPackage.DCAE_BASIC_SERVER__NAME; + + /** + * The feature id for the '<em><b>Last Polled</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PHYSICAL_MACHINE__LAST_POLLED = ServerPackage.DCAE_BASIC_SERVER__LAST_POLLED; + + /** + * The feature id for the '<em><b>Last Changed</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PHYSICAL_MACHINE__LAST_CHANGED = ServerPackage.DCAE_BASIC_SERVER__LAST_CHANGED; + + /** + * The feature id for the '<em><b>Created</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PHYSICAL_MACHINE__CREATED = ServerPackage.DCAE_BASIC_SERVER__CREATED; + + /** + * The feature id for the '<em><b>Operational State</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PHYSICAL_MACHINE__OPERATIONAL_STATE = ServerPackage.DCAE_BASIC_SERVER__OPERATIONAL_STATE; + + /** + * The feature id for the '<em><b>Log Message Configuration</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PHYSICAL_MACHINE__LOG_MESSAGE_CONFIGURATION = ServerPackage.DCAE_BASIC_SERVER__LOG_MESSAGE_CONFIGURATION; + + /** + * The feature id for the '<em><b>Log Message Categories</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PHYSICAL_MACHINE__LOG_MESSAGE_CATEGORIES = ServerPackage.DCAE_BASIC_SERVER__LOG_MESSAGE_CATEGORIES; + + /** + * The feature id for the '<em><b>Log Message Stats</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PHYSICAL_MACHINE__LOG_MESSAGE_STATS = ServerPackage.DCAE_BASIC_SERVER__LOG_MESSAGE_STATS; + + /** + * The feature id for the '<em><b>Private Ip</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PHYSICAL_MACHINE__PRIVATE_IP = ServerPackage.DCAE_BASIC_SERVER__PRIVATE_IP; + + /** + * The feature id for the '<em><b>Public Ip</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PHYSICAL_MACHINE__PUBLIC_IP = ServerPackage.DCAE_BASIC_SERVER__PUBLIC_IP; + + /** + * The feature id for the '<em><b>Collectd</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PHYSICAL_MACHINE__COLLECTD = ServerPackage.DCAE_BASIC_SERVER__COLLECTD; + + /** + * The feature id for the '<em><b>Modules</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PHYSICAL_MACHINE__MODULES = ServerPackage.DCAE_BASIC_SERVER__MODULES; + + /** + * The feature id for the '<em><b>Networks</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PHYSICAL_MACHINE__NETWORKS = ServerPackage.DCAE_BASIC_SERVER__NETWORKS; + + /** + * The feature id for the '<em><b>Last Update</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PHYSICAL_MACHINE__LAST_UPDATE = ServerPackage.DCAE_BASIC_SERVER__LAST_UPDATE; + + /** + * The feature id for the '<em><b>Using Monitoring Agent</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PHYSICAL_MACHINE__USING_MONITORING_AGENT = ServerPackage.DCAE_BASIC_SERVER__USING_MONITORING_AGENT; + + /** + * The feature id for the '<em><b>Server</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PHYSICAL_MACHINE__SERVER = ServerPackage.DCAE_BASIC_SERVER__SERVER; + + /** + * The feature id for the '<em><b>Hypervisor</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PHYSICAL_MACHINE__HYPERVISOR = ServerPackage.DCAE_BASIC_SERVER__HYPERVISOR; + + /** + * The feature id for the '<em><b>Vm Type</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PHYSICAL_MACHINE__VM_TYPE = ServerPackage.DCAE_BASIC_SERVER__VM_TYPE; + + /** + * The feature id for the '<em><b>Certificate Password</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PHYSICAL_MACHINE__CERTIFICATE_PASSWORD = ServerPackage.DCAE_BASIC_SERVER__CERTIFICATE_PASSWORD; + + /** + * The feature id for the '<em><b>Manager Port Number</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PHYSICAL_MACHINE__MANAGER_PORT_NUMBER = ServerPackage.DCAE_BASIC_SERVER_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Physical Machine</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PHYSICAL_MACHINE_FEATURE_COUNT = ServerPackage.DCAE_BASIC_SERVER_FEATURE_COUNT + 1; + + /** + * The number of operations of the '<em>Physical Machine</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <em>Virtual Machine</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE__NAME = ServerPackage.DCAE_BASIC_SERVER__NAME; + + /** + * The feature id for the '<em><b>Last Polled</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE__LAST_POLLED = ServerPackage.DCAE_BASIC_SERVER__LAST_POLLED; + + /** + * The feature id for the '<em><b>Last Changed</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE__LAST_CHANGED = ServerPackage.DCAE_BASIC_SERVER__LAST_CHANGED; + + /** + * The feature id for the '<em><b>Created</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE__CREATED = ServerPackage.DCAE_BASIC_SERVER__CREATED; + + /** + * The feature id for the '<em><b>Operational State</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE__OPERATIONAL_STATE = ServerPackage.DCAE_BASIC_SERVER__OPERATIONAL_STATE; + + /** + * The feature id for the '<em><b>Log Message Configuration</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE__LOG_MESSAGE_CONFIGURATION = ServerPackage.DCAE_BASIC_SERVER__LOG_MESSAGE_CONFIGURATION; + + /** + * The feature id for the '<em><b>Log Message Categories</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE__LOG_MESSAGE_CATEGORIES = ServerPackage.DCAE_BASIC_SERVER__LOG_MESSAGE_CATEGORIES; + + /** + * The feature id for the '<em><b>Log Message Stats</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE__LOG_MESSAGE_STATS = ServerPackage.DCAE_BASIC_SERVER__LOG_MESSAGE_STATS; + + /** + * The feature id for the '<em><b>Private Ip</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE__PRIVATE_IP = ServerPackage.DCAE_BASIC_SERVER__PRIVATE_IP; + + /** + * The feature id for the '<em><b>Public Ip</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE__PUBLIC_IP = ServerPackage.DCAE_BASIC_SERVER__PUBLIC_IP; + + /** + * The feature id for the '<em><b>Collectd</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE__COLLECTD = ServerPackage.DCAE_BASIC_SERVER__COLLECTD; + + /** + * The feature id for the '<em><b>Modules</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE__MODULES = ServerPackage.DCAE_BASIC_SERVER__MODULES; + + /** + * The feature id for the '<em><b>Networks</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE__NETWORKS = ServerPackage.DCAE_BASIC_SERVER__NETWORKS; + + /** + * The feature id for the '<em><b>Last Update</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE__LAST_UPDATE = ServerPackage.DCAE_BASIC_SERVER__LAST_UPDATE; + + /** + * The feature id for the '<em><b>Using Monitoring Agent</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE__USING_MONITORING_AGENT = ServerPackage.DCAE_BASIC_SERVER__USING_MONITORING_AGENT; + + /** + * The feature id for the '<em><b>Server</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE__SERVER = ServerPackage.DCAE_BASIC_SERVER__SERVER; + + /** + * The feature id for the '<em><b>Hypervisor</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE__HYPERVISOR = ServerPackage.DCAE_BASIC_SERVER__HYPERVISOR; + + /** + * The feature id for the '<em><b>Vm Type</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE__VM_TYPE = ServerPackage.DCAE_BASIC_SERVER__VM_TYPE; + + /** + * The feature id for the '<em><b>Certificate Password</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE__CERTIFICATE_PASSWORD = ServerPackage.DCAE_BASIC_SERVER__CERTIFICATE_PASSWORD; + + /** + * The feature id for the '<em><b>Function Index</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE__FUNCTION_INDEX = ServerPackage.DCAE_BASIC_SERVER_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Kvm Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE__KVM_NAME = ServerPackage.DCAE_BASIC_SERVER_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Vnc</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE__VNC = ServerPackage.DCAE_BASIC_SERVER_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Gateway</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE__GATEWAY = ServerPackage.DCAE_BASIC_SERVER_FEATURE_COUNT + 3; + + /** + * The number of structural features of the '<em>Virtual Machine</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_FEATURE_COUNT = ServerPackage.DCAE_BASIC_SERVER_FEATURE_COUNT + 4; + + /** + * The number of operations of the '<em>Virtual Machine</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <em>Installation Step</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int INSTALLATION_STEP__NAME = CorePackage.NAMED_ENTITY__NAME; + + /** + * The feature id for the '<em><b>Last Polled</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int INSTALLATION_STEP__LAST_POLLED = CorePackage.NAMED_ENTITY__LAST_POLLED; + + /** + * The feature id for the '<em><b>Last Changed</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int INSTALLATION_STEP__LAST_CHANGED = CorePackage.NAMED_ENTITY__LAST_CHANGED; + + /** + * The feature id for the '<em><b>Created</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int INSTALLATION_STEP__CREATED = CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the '<em><b>Application Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int INSTALLATION_STEP__APPLICATION_ID = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Installation Step</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int INSTALLATION_STEP_FEATURE_COUNT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The number of operations of the '<em>Installation Step</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <em>Shell Installation Step</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SHELL_INSTALLATION_STEP__NAME = INSTALLATION_STEP__NAME; + + /** + * The feature id for the '<em><b>Last Polled</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SHELL_INSTALLATION_STEP__LAST_POLLED = INSTALLATION_STEP__LAST_POLLED; + + /** + * The feature id for the '<em><b>Last Changed</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SHELL_INSTALLATION_STEP__LAST_CHANGED = INSTALLATION_STEP__LAST_CHANGED; + + /** + * The feature id for the '<em><b>Created</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SHELL_INSTALLATION_STEP__CREATED = INSTALLATION_STEP__CREATED; + + /** + * The feature id for the '<em><b>Application Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SHELL_INSTALLATION_STEP__APPLICATION_ID = INSTALLATION_STEP__APPLICATION_ID; + + /** + * The feature id for the '<em><b>Command</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SHELL_INSTALLATION_STEP__COMMAND = INSTALLATION_STEP_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Shell Installation Step</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SHELL_INSTALLATION_STEP_FEATURE_COUNT = INSTALLATION_STEP_FEATURE_COUNT + 1; + + /** + * The number of operations of the '<em>Shell Installation Step</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <em>Maven Artifact Installation Step</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MAVEN_ARTIFACT_INSTALLATION_STEP__NAME = INSTALLATION_STEP__NAME; + + /** + * The feature id for the '<em><b>Last Polled</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MAVEN_ARTIFACT_INSTALLATION_STEP__LAST_POLLED = INSTALLATION_STEP__LAST_POLLED; + + /** + * The feature id for the '<em><b>Last Changed</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MAVEN_ARTIFACT_INSTALLATION_STEP__LAST_CHANGED = INSTALLATION_STEP__LAST_CHANGED; + + /** + * The feature id for the '<em><b>Created</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MAVEN_ARTIFACT_INSTALLATION_STEP__CREATED = INSTALLATION_STEP__CREATED; + + /** + * The feature id for the '<em><b>Application Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MAVEN_ARTIFACT_INSTALLATION_STEP__APPLICATION_ID = INSTALLATION_STEP__APPLICATION_ID; + + /** + * The feature id for the '<em><b>Group Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MAVEN_ARTIFACT_INSTALLATION_STEP__GROUP_ID = INSTALLATION_STEP_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Artifact Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MAVEN_ARTIFACT_INSTALLATION_STEP__ARTIFACT_ID = INSTALLATION_STEP_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Version</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MAVEN_ARTIFACT_INSTALLATION_STEP__VERSION = INSTALLATION_STEP_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Type</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MAVEN_ARTIFACT_INSTALLATION_STEP__TYPE = INSTALLATION_STEP_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>Assembly Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MAVEN_ARTIFACT_INSTALLATION_STEP__ASSEMBLY_ID = INSTALLATION_STEP_FEATURE_COUNT + 4; + + /** + * The number of structural features of the '<em>Maven Artifact Installation Step</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MAVEN_ARTIFACT_INSTALLATION_STEP_FEATURE_COUNT = INSTALLATION_STEP_FEATURE_COUNT + 5; + + /** + * The number of operations of the '<em>Maven Artifact Installation Step</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <em>Http Installation Step</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int HTTP_INSTALLATION_STEP__NAME = INSTALLATION_STEP__NAME; + + /** + * The feature id for the '<em><b>Last Polled</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int HTTP_INSTALLATION_STEP__LAST_POLLED = INSTALLATION_STEP__LAST_POLLED; + + /** + * The feature id for the '<em><b>Last Changed</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int HTTP_INSTALLATION_STEP__LAST_CHANGED = INSTALLATION_STEP__LAST_CHANGED; + + /** + * The feature id for the '<em><b>Created</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int HTTP_INSTALLATION_STEP__CREATED = INSTALLATION_STEP__CREATED; + + /** + * The feature id for the '<em><b>Application Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int HTTP_INSTALLATION_STEP__APPLICATION_ID = INSTALLATION_STEP__APPLICATION_ID; + + /** + * The feature id for the '<em><b>Url</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int HTTP_INSTALLATION_STEP__URL = INSTALLATION_STEP_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>User Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int HTTP_INSTALLATION_STEP__USER_NAME = INSTALLATION_STEP_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Password</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int HTTP_INSTALLATION_STEP__PASSWORD = INSTALLATION_STEP_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Type</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int HTTP_INSTALLATION_STEP__TYPE = INSTALLATION_STEP_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>Artifact Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int HTTP_INSTALLATION_STEP__ARTIFACT_ID = INSTALLATION_STEP_FEATURE_COUNT + 4; + + /** + * The number of structural features of the '<em>Http Installation Step</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int HTTP_INSTALLATION_STEP_FEATURE_COUNT = INSTALLATION_STEP_FEATURE_COUNT + 5; + + /** + * The number of operations of the '<em>Http Installation Step</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <em>Virtual Machine Service</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Virtual Machine Service</em>'. + * @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 <em>Instances</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Instances</em>'. + * @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 <em>Manager Port Number</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Manager Port Number</em>'. + * @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() <em>Update Deployment Status</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Update Deployment Status</em>' 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 <em>Virtual Machine Service Instance</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Virtual Machine Service Instance</em>'. + * @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 <em>Location</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the reference '<em>Location</em>'. + * @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 <em>Vm Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the reference '<em>Vm Type</em>'. + * @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 <em>Users</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the reference list '<em>Users</em>'. + * @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 <em>Admin Users</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the reference list '<em>Admin Users</em>'. + * @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 <em>Application Ids</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute list '<em>Application Ids</em>'. + * @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 <em>Admin Id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Admin Id</em>'. + * @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 <em>Number Of Servers</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Number Of Servers</em>'. + * @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 <em>Availability Zone</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Availability Zone</em>'. + * @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 <em>Manager Port Number</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Manager Port Number</em>'. + * @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 <em>Servers</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Servers</em>'. + * @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 <em>Leader Server</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the reference '<em>Leader Server</em>'. + * @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 <em>Service</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the container reference '<em>Service</em>'. + * @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 <em>Ieds Admin</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Ieds Admin</em>'. + * @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 <em>Chef User</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Chef User</em>'. + * @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 <em>Chef Org</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Chef Org</em>'. + * @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 <em>Chef Topology</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Chef Topology</em>'. + * @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 <em>Openstack Flavor</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Openstack Flavor</em>'. + * @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 <em>Service Fqdn</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Service Fqdn</em>'. + * @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 <em>Deployment Timeout Minutes</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Deployment Timeout Minutes</em>'. + * @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 <em>Steps</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Steps</em>'. + * @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 <em>Virtual Machine Service Configuration</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Virtual Machine Service Configuration</em>'. + * @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 <em>Configuration</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Configuration</em>'. + * @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 <em>Virtual Machine Service Descriptor</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Virtual Machine Service Descriptor</em>'. + * @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 <em>Service Package</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Service Package</em>'. + * @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 <em>Service Class</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Service Class</em>'. + * @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 <em>Service Instance Class</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Service Instance Class</em>'. + * @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 <em>Vm Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Vm Type</em>'. + * @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 <em>Manager Port Number</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Manager Port Number</em>'. + * @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 <em>Manager User</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Manager User</em>'. + * @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 <em>Encrypted Password</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Encrypted Password</em>'. + * @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 <em>Users</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute list '<em>Users</em>'. + * @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 <em>Admin Users</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute list '<em>Admin Users</em>'. + * @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 <em>Physical Machine</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Physical Machine</em>'. + * @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 <em>Manager Port Number</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Manager Port Number</em>'. + * @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 <em>Virtual Machine</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Virtual Machine</em>'. + * @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 <em>Function Index</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Function Index</em>'. + * @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 <em>Kvm Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Kvm Name</em>'. + * @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 <em>Vnc</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Vnc</em>'. + * @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 <em>Gateway</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Gateway</em>'. + * @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 <em>Installation Step</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Installation Step</em>'. + * @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 <em>Application Id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Application Id</em>'. + * @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 <em>Shell Installation Step</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Shell Installation Step</em>'. + * @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 <em>Command</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Command</em>'. + * @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 <em>Maven Artifact Installation Step</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Maven Artifact Installation Step</em>'. + * @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 <em>Group Id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Group Id</em>'. + * @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 <em>Artifact Id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Artifact Id</em>'. + * @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 <em>Version</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Version</em>'. + * @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 <em>Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Type</em>'. + * @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 <em>Assembly Id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Assembly Id</em>'. + * @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 <em>Http Installation Step</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Http Installation Step</em>'. + * @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 <em>Url</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Url</em>'. + * @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 <em>User Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>User Name</em>'. + * @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 <em>Password</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Password</em>'. + * @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 <em>Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Type</em>'. + * @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 <em>Artifact Id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Artifact Id</em>'. + * @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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the factory that creates the instances of the model. + * @generated + */ + VmFactory getVmFactory(); + + /** + * <!-- begin-user-doc --> + * Defines literals for the meta objects that represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each operation of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceImpl <em>Virtual Machine Service</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Instances</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference VIRTUAL_MACHINE_SERVICE__INSTANCES = eINSTANCE.getVirtualMachineService_Instances(); + + /** + * The meta object literal for the '<em><b>Manager Port Number</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute VIRTUAL_MACHINE_SERVICE__MANAGER_PORT_NUMBER = eINSTANCE.getVirtualMachineService_ManagerPortNumber(); + + /** + * The meta object literal for the '<em><b>Update Deployment Status</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <em>Virtual Machine Service Instance</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Location</b></em>' reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference VIRTUAL_MACHINE_SERVICE_INSTANCE__LOCATION = eINSTANCE.getVirtualMachineServiceInstance_Location(); + + /** + * The meta object literal for the '<em><b>Vm Type</b></em>' reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference VIRTUAL_MACHINE_SERVICE_INSTANCE__VM_TYPE = eINSTANCE.getVirtualMachineServiceInstance_VmType(); + + /** + * The meta object literal for the '<em><b>Users</b></em>' reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference VIRTUAL_MACHINE_SERVICE_INSTANCE__USERS = eINSTANCE.getVirtualMachineServiceInstance_Users(); + + /** + * The meta object literal for the '<em><b>Admin Users</b></em>' reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference VIRTUAL_MACHINE_SERVICE_INSTANCE__ADMIN_USERS = eINSTANCE.getVirtualMachineServiceInstance_AdminUsers(); + + /** + * The meta object literal for the '<em><b>Application Ids</b></em>' attribute list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute VIRTUAL_MACHINE_SERVICE_INSTANCE__APPLICATION_IDS = eINSTANCE.getVirtualMachineServiceInstance_ApplicationIds(); + + /** + * The meta object literal for the '<em><b>Admin Id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute VIRTUAL_MACHINE_SERVICE_INSTANCE__ADMIN_ID = eINSTANCE.getVirtualMachineServiceInstance_AdminId(); + + /** + * The meta object literal for the '<em><b>Number Of Servers</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute VIRTUAL_MACHINE_SERVICE_INSTANCE__NUMBER_OF_SERVERS = eINSTANCE.getVirtualMachineServiceInstance_NumberOfServers(); + + /** + * The meta object literal for the '<em><b>Availability Zone</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute VIRTUAL_MACHINE_SERVICE_INSTANCE__AVAILABILITY_ZONE = eINSTANCE.getVirtualMachineServiceInstance_AvailabilityZone(); + + /** + * The meta object literal for the '<em><b>Manager Port Number</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute VIRTUAL_MACHINE_SERVICE_INSTANCE__MANAGER_PORT_NUMBER = eINSTANCE.getVirtualMachineServiceInstance_ManagerPortNumber(); + + /** + * The meta object literal for the '<em><b>Servers</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference VIRTUAL_MACHINE_SERVICE_INSTANCE__SERVERS = eINSTANCE.getVirtualMachineServiceInstance_Servers(); + + /** + * The meta object literal for the '<em><b>Leader Server</b></em>' reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference VIRTUAL_MACHINE_SERVICE_INSTANCE__LEADER_SERVER = eINSTANCE.getVirtualMachineServiceInstance_LeaderServer(); + + /** + * The meta object literal for the '<em><b>Service</b></em>' container reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference VIRTUAL_MACHINE_SERVICE_INSTANCE__SERVICE = eINSTANCE.getVirtualMachineServiceInstance_Service(); + + /** + * The meta object literal for the '<em><b>Ieds Admin</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute VIRTUAL_MACHINE_SERVICE_INSTANCE__IEDS_ADMIN = eINSTANCE.getVirtualMachineServiceInstance_IedsAdmin(); + + /** + * The meta object literal for the '<em><b>Chef User</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute VIRTUAL_MACHINE_SERVICE_INSTANCE__CHEF_USER = eINSTANCE.getVirtualMachineServiceInstance_ChefUser(); + + /** + * The meta object literal for the '<em><b>Chef Org</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute VIRTUAL_MACHINE_SERVICE_INSTANCE__CHEF_ORG = eINSTANCE.getVirtualMachineServiceInstance_ChefOrg(); + + /** + * The meta object literal for the '<em><b>Chef Topology</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute VIRTUAL_MACHINE_SERVICE_INSTANCE__CHEF_TOPOLOGY = eINSTANCE.getVirtualMachineServiceInstance_ChefTopology(); + + /** + * The meta object literal for the '<em><b>Openstack Flavor</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute VIRTUAL_MACHINE_SERVICE_INSTANCE__OPENSTACK_FLAVOR = eINSTANCE.getVirtualMachineServiceInstance_OpenstackFlavor(); + + /** + * The meta object literal for the '<em><b>Service Fqdn</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute VIRTUAL_MACHINE_SERVICE_INSTANCE__SERVICE_FQDN = eINSTANCE.getVirtualMachineServiceInstance_ServiceFqdn(); + + /** + * The meta object literal for the '<em><b>Deployment Timeout Minutes</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute VIRTUAL_MACHINE_SERVICE_INSTANCE__DEPLOYMENT_TIMEOUT_MINUTES = eINSTANCE.getVirtualMachineServiceInstance_DeploymentTimeoutMinutes(); + + /** + * The meta object literal for the '<em><b>Steps</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <em>Virtual Machine Service Configuration</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Configuration</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <em>Virtual Machine Service Descriptor</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Service Package</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__SERVICE_PACKAGE = eINSTANCE.getVirtualMachineServiceDescriptor_ServicePackage(); + + /** + * The meta object literal for the '<em><b>Service Class</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__SERVICE_CLASS = eINSTANCE.getVirtualMachineServiceDescriptor_ServiceClass(); + + /** + * The meta object literal for the '<em><b>Service Instance Class</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__SERVICE_INSTANCE_CLASS = eINSTANCE.getVirtualMachineServiceDescriptor_ServiceInstanceClass(); + + /** + * The meta object literal for the '<em><b>Vm Type</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__VM_TYPE = eINSTANCE.getVirtualMachineServiceDescriptor_VmType(); + + /** + * The meta object literal for the '<em><b>Manager Port Number</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__MANAGER_PORT_NUMBER = eINSTANCE.getVirtualMachineServiceDescriptor_ManagerPortNumber(); + + /** + * The meta object literal for the '<em><b>Manager User</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__MANAGER_USER = eINSTANCE.getVirtualMachineServiceDescriptor_ManagerUser(); + + /** + * The meta object literal for the '<em><b>Encrypted Password</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__ENCRYPTED_PASSWORD = eINSTANCE.getVirtualMachineServiceDescriptor_EncryptedPassword(); + + /** + * The meta object literal for the '<em><b>Users</b></em>' attribute list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__USERS = eINSTANCE.getVirtualMachineServiceDescriptor_Users(); + + /** + * The meta object literal for the '<em><b>Admin Users</b></em>' attribute list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <em>Physical Machine</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Manager Port Number</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <em>Virtual Machine</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Function Index</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute VIRTUAL_MACHINE__FUNCTION_INDEX = eINSTANCE.getVirtualMachine_FunctionIndex(); + + /** + * The meta object literal for the '<em><b>Kvm Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute VIRTUAL_MACHINE__KVM_NAME = eINSTANCE.getVirtualMachine_KvmName(); + + /** + * The meta object literal for the '<em><b>Vnc</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute VIRTUAL_MACHINE__VNC = eINSTANCE.getVirtualMachine_Vnc(); + + /** + * The meta object literal for the '<em><b>Gateway</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute VIRTUAL_MACHINE__GATEWAY = eINSTANCE.getVirtualMachine_Gateway(); + + /** + * The meta object literal for the '{@link org.openecomp.dcae.controller.service.vm.impl.InstallationStepImpl <em>Installation Step</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Application Id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute INSTALLATION_STEP__APPLICATION_ID = eINSTANCE.getInstallationStep_ApplicationId(); + + /** + * The meta object literal for the '{@link org.openecomp.dcae.controller.service.vm.impl.ShellInstallationStepImpl <em>Shell Installation Step</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Command</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SHELL_INSTALLATION_STEP__COMMAND = eINSTANCE.getShellInstallationStep_Command(); + + /** + * The meta object literal for the '{@link org.openecomp.dcae.controller.service.vm.impl.MavenArtifactInstallationStepImpl <em>Maven Artifact Installation Step</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Group Id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute MAVEN_ARTIFACT_INSTALLATION_STEP__GROUP_ID = eINSTANCE.getMavenArtifactInstallationStep_GroupId(); + + /** + * The meta object literal for the '<em><b>Artifact Id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute MAVEN_ARTIFACT_INSTALLATION_STEP__ARTIFACT_ID = eINSTANCE.getMavenArtifactInstallationStep_ArtifactId(); + + /** + * The meta object literal for the '<em><b>Version</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute MAVEN_ARTIFACT_INSTALLATION_STEP__VERSION = eINSTANCE.getMavenArtifactInstallationStep_Version(); + + /** + * The meta object literal for the '<em><b>Type</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute MAVEN_ARTIFACT_INSTALLATION_STEP__TYPE = eINSTANCE.getMavenArtifactInstallationStep_Type(); + + /** + * The meta object literal for the '<em><b>Assembly Id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <em>Http Installation Step</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Url</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute HTTP_INSTALLATION_STEP__URL = eINSTANCE.getHttpInstallationStep_Url(); + + /** + * The meta object literal for the '<em><b>User Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute HTTP_INSTALLATION_STEP__USER_NAME = eINSTANCE.getHttpInstallationStep_UserName(); + + /** + * The meta object literal for the '<em><b>Password</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute HTTP_INSTALLATION_STEP__PASSWORD = eINSTANCE.getHttpInstallationStep_Password(); + + /** + * The meta object literal for the '<em><b>Type</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute HTTP_INSTALLATION_STEP__TYPE = eINSTANCE.getHttpInstallationStep_Type(); + + /** + * The meta object literal for the '<em><b>Artifact Id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Http Installation Step</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.HttpInstallationStepImpl#getUrl <em>Url</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.HttpInstallationStepImpl#getUserName <em>User Name</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.HttpInstallationStepImpl#getPassword <em>Password</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.HttpInstallationStepImpl#getType <em>Type</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.HttpInstallationStepImpl#getArtifactId <em>Artifact Id</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class HttpInstallationStepImpl extends InstallationStepImpl implements HttpInstallationStep { + /** + * The default value of the '{@link #getUrl() <em>Url</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUrl() + * @generated + * @ordered + */ + protected static final String URL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getUrl() <em>Url</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUrl() + * @generated + * @ordered + */ + protected String url = URL_EDEFAULT; + + /** + * The default value of the '{@link #getUserName() <em>User Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUserName() + * @generated + * @ordered + */ + protected static final String USER_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getUserName() <em>User Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUserName() + * @generated + * @ordered + */ + protected String userName = USER_NAME_EDEFAULT; + + /** + * The default value of the '{@link #getPassword() <em>Password</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPassword() + * @generated + * @ordered + */ + protected static final String PASSWORD_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPassword() <em>Password</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPassword() + * @generated + * @ordered + */ + protected String password = PASSWORD_EDEFAULT; + + /** + * The default value of the '{@link #getType() <em>Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getType() + * @generated + * @ordered + */ + protected static final String TYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getType() <em>Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getType() + * @generated + * @ordered + */ + protected String type = TYPE_EDEFAULT; + + /** + * The default value of the '{@link #getArtifactId() <em>Artifact Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getArtifactId() + * @generated + * @ordered + */ + protected static final String ARTIFACT_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getArtifactId() <em>Artifact Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getArtifactId() + * @generated + * @ordered + */ + protected String artifactId = ARTIFACT_ID_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected HttpInstallationStepImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return VmPackage.Literals.HTTP_INSTALLATION_STEP; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getUrl() { + return url; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getUserName() { + return userName; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getPassword() { + return password; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getType() { + return type; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getArtifactId() { + return artifactId; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Installation Step</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.InstallationStepImpl#getApplicationId <em>Application Id</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public abstract class InstallationStepImpl extends NamedEntityImpl implements InstallationStep { + /** + * The default value of the '{@link #getApplicationId() <em>Application Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getApplicationId() + * @generated + * @ordered + */ + protected static final String APPLICATION_ID_EDEFAULT = "dcae"; + /** + * The cached value of the '{@link #getApplicationId() <em>Application Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getApplicationId() + * @generated + * @ordered + */ + protected String applicationId = APPLICATION_ID_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected InstallationStepImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return VmPackage.Literals.INSTALLATION_STEP; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getApplicationId() { + return applicationId; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case VmPackage.INSTALLATION_STEP__APPLICATION_ID: + setApplicationId(APPLICATION_ID_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Maven Artifact Installation Step</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.MavenArtifactInstallationStepImpl#getGroupId <em>Group Id</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.MavenArtifactInstallationStepImpl#getArtifactId <em>Artifact Id</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.MavenArtifactInstallationStepImpl#getVersion <em>Version</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.MavenArtifactInstallationStepImpl#getType <em>Type</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.MavenArtifactInstallationStepImpl#getAssemblyId <em>Assembly Id</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class MavenArtifactInstallationStepImpl extends InstallationStepImpl implements MavenArtifactInstallationStep { + /** + * The default value of the '{@link #getGroupId() <em>Group Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getGroupId() + * @generated + * @ordered + */ + protected static final String GROUP_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getGroupId() <em>Group Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getGroupId() + * @generated + * @ordered + */ + protected String groupId = GROUP_ID_EDEFAULT; + + /** + * The default value of the '{@link #getArtifactId() <em>Artifact Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getArtifactId() + * @generated + * @ordered + */ + protected static final String ARTIFACT_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getArtifactId() <em>Artifact Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getArtifactId() + * @generated + * @ordered + */ + protected String artifactId = ARTIFACT_ID_EDEFAULT; + + /** + * The default value of the '{@link #getVersion() <em>Version</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVersion() + * @generated + * @ordered + */ + protected static final String VERSION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getVersion() <em>Version</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVersion() + * @generated + * @ordered + */ + protected String version = VERSION_EDEFAULT; + + /** + * The default value of the '{@link #getType() <em>Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getType() + * @generated + * @ordered + */ + protected static final String TYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getType() <em>Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getType() + * @generated + * @ordered + */ + protected String type = TYPE_EDEFAULT; + + /** + * The default value of the '{@link #getAssemblyId() <em>Assembly Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAssemblyId() + * @generated + * @ordered + */ + protected static final String ASSEMBLY_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAssemblyId() <em>Assembly Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAssemblyId() + * @generated + * @ordered + */ + protected String assemblyId = ASSEMBLY_ID_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected MavenArtifactInstallationStepImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return VmPackage.Literals.MAVEN_ARTIFACT_INSTALLATION_STEP; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getGroupId() { + return groupId; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getArtifactId() { + return artifactId; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getVersion() { + return version; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getType() { + return type; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getAssemblyId() { + return assemblyId; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Physical Machine</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.PhysicalMachineImpl#getManagerPortNumber <em>Manager Port Number</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class PhysicalMachineImpl extends DcaeBasicServerImpl implements PhysicalMachine { + /** + * The default value of the '{@link #getManagerPortNumber() <em>Manager Port Number</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getManagerPortNumber() + * @generated + * @ordered + */ + protected static final Integer MANAGER_PORT_NUMBER_EDEFAULT = null; + /** + * The cached value of the '{@link #getManagerPortNumber() <em>Manager Port Number</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getManagerPortNumber() + * @generated + * @ordered + */ + protected Integer managerPortNumber = MANAGER_PORT_NUMBER_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected PhysicalMachineImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return VmPackage.Literals.PHYSICAL_MACHINE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Integer getManagerPortNumber() { + return managerPortNumber; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Shell Installation Step</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.ShellInstallationStepImpl#getCommand <em>Command</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class ShellInstallationStepImpl extends InstallationStepImpl implements ShellInstallationStep { + /** + * The default value of the '{@link #getCommand() <em>Command</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCommand() + * @generated + * @ordered + */ + protected static final String COMMAND_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCommand() <em>Command</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCommand() + * @generated + * @ordered + */ + protected String command = COMMAND_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ShellInstallationStepImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return VmPackage.Literals.SHELL_INSTALLATION_STEP; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getCommand() { + return command; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case VmPackage.SHELL_INSTALLATION_STEP__COMMAND: + setCommand(COMMAND_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Virtual Machine</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineImpl#getFunctionIndex <em>Function Index</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineImpl#getKvmName <em>Kvm Name</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineImpl#getVnc <em>Vnc</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineImpl#getGateway <em>Gateway</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class VirtualMachineImpl extends DcaeBasicServerImpl implements VirtualMachine { + /** + * The default value of the '{@link #getFunctionIndex() <em>Function Index</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFunctionIndex() + * @generated + * @ordered + */ + protected static final int FUNCTION_INDEX_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getFunctionIndex() <em>Function Index</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFunctionIndex() + * @generated + * @ordered + */ + protected int functionIndex = FUNCTION_INDEX_EDEFAULT; + + /** + * The default value of the '{@link #getKvmName() <em>Kvm Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getKvmName() + * @generated + * @ordered + */ + protected static final String KVM_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getKvmName() <em>Kvm Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getKvmName() + * @generated + * @ordered + */ + protected String kvmName = KVM_NAME_EDEFAULT; + + /** + * The default value of the '{@link #getVnc() <em>Vnc</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVnc() + * @generated + * @ordered + */ + protected static final String VNC_EDEFAULT = null; + + /** + * The cached value of the '{@link #getVnc() <em>Vnc</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVnc() + * @generated + * @ordered + */ + protected String vnc = VNC_EDEFAULT; + + /** + * The default value of the '{@link #getGateway() <em>Gateway</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getGateway() + * @generated + * @ordered + */ + protected static final String GATEWAY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getGateway() <em>Gateway</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getGateway() + * @generated + * @ordered + */ + protected String gateway = GATEWAY_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected VirtualMachineImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return VmPackage.Literals.VIRTUAL_MACHINE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getFunctionIndex() { + return functionIndex; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getKvmName() { + return kvmName; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getVnc() { + return vnc; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getGateway() { + return gateway; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Virtual Machine Service Configuration</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceConfigurationImpl#getConfiguration <em>Configuration</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class VirtualMachineServiceConfigurationImpl extends MinimalEObjectImpl.Container implements VirtualMachineServiceConfiguration { + /** + * The default value of the '{@link #getConfiguration() <em>Configuration</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getConfiguration() + * @generated + * @ordered + */ + protected static final String CONFIGURATION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getConfiguration() <em>Configuration</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getConfiguration() + * @generated + * @ordered + */ + protected String configuration = CONFIGURATION_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected VirtualMachineServiceConfigurationImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return VmPackage.Literals.VIRTUAL_MACHINE_SERVICE_CONFIGURATION; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getConfiguration() { + return configuration; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case VmPackage.VIRTUAL_MACHINE_SERVICE_CONFIGURATION__CONFIGURATION: + setConfiguration(CONFIGURATION_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Virtual Machine Service Descriptor</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceDescriptorImpl#getServicePackage <em>Service Package</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceDescriptorImpl#getServiceClass <em>Service Class</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceDescriptorImpl#getServiceInstanceClass <em>Service Instance Class</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceDescriptorImpl#getVmType <em>Vm Type</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceDescriptorImpl#getManagerPortNumber <em>Manager Port Number</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceDescriptorImpl#getManagerUser <em>Manager User</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceDescriptorImpl#getEncryptedPassword <em>Encrypted Password</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceDescriptorImpl#getUsers <em>Users</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceDescriptorImpl#getAdminUsers <em>Admin Users</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class VirtualMachineServiceDescriptorImpl extends DcaeServiceDescriptorImpl implements VirtualMachineServiceDescriptor { + /** + * The default value of the '{@link #getServicePackage() <em>Service Package</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getServicePackage() + * @generated + * @ordered + */ + protected static final String SERVICE_PACKAGE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getServicePackage() <em>Service Package</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getServicePackage() + * @generated + * @ordered + */ + protected String servicePackage = SERVICE_PACKAGE_EDEFAULT; + + /** + * The default value of the '{@link #getServiceClass() <em>Service Class</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getServiceClass() + * @generated + * @ordered + */ + protected static final String SERVICE_CLASS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getServiceClass() <em>Service Class</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getServiceClass() + * @generated + * @ordered + */ + protected String serviceClass = SERVICE_CLASS_EDEFAULT; + + /** + * The default value of the '{@link #getServiceInstanceClass() <em>Service Instance Class</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getServiceInstanceClass() + * @generated + * @ordered + */ + protected static final String SERVICE_INSTANCE_CLASS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getServiceInstanceClass() <em>Service Instance Class</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getServiceInstanceClass() + * @generated + * @ordered + */ + protected String serviceInstanceClass = SERVICE_INSTANCE_CLASS_EDEFAULT; + + /** + * The default value of the '{@link #getVmType() <em>Vm Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVmType() + * @generated + * @ordered + */ + protected static final String VM_TYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getVmType() <em>Vm Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVmType() + * @generated + * @ordered + */ + protected String vmType = VM_TYPE_EDEFAULT; + + /** + * The default value of the '{@link #getManagerPortNumber() <em>Manager Port Number</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getManagerPortNumber() + * @generated + * @ordered + */ + protected static final String MANAGER_PORT_NUMBER_EDEFAULT = null; + + /** + * The cached value of the '{@link #getManagerPortNumber() <em>Manager Port Number</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getManagerPortNumber() + * @generated + * @ordered + */ + protected String managerPortNumber = MANAGER_PORT_NUMBER_EDEFAULT; + + /** + * The default value of the '{@link #getManagerUser() <em>Manager User</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getManagerUser() + * @generated + * @ordered + */ + protected static final String MANAGER_USER_EDEFAULT = null; + + /** + * The cached value of the '{@link #getManagerUser() <em>Manager User</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getManagerUser() + * @generated + * @ordered + */ + protected String managerUser = MANAGER_USER_EDEFAULT; + + /** + * The default value of the '{@link #getEncryptedPassword() <em>Encrypted Password</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getEncryptedPassword() + * @generated + * @ordered + */ + protected static final String ENCRYPTED_PASSWORD_EDEFAULT = null; + + /** + * The cached value of the '{@link #getEncryptedPassword() <em>Encrypted Password</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getEncryptedPassword() + * @generated + * @ordered + */ + protected String encryptedPassword = ENCRYPTED_PASSWORD_EDEFAULT; + + /** + * The cached value of the '{@link #getUsers() <em>Users</em>}' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUsers() + * @generated + * @ordered + */ + protected EList<String> users; + + /** + * The cached value of the '{@link #getAdminUsers() <em>Admin Users</em>}' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAdminUsers() + * @generated + * @ordered + */ + protected EList<String> adminUsers; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected VirtualMachineServiceDescriptorImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return VmPackage.Literals.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getServicePackage() { + return servicePackage; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getServiceClass() { + return serviceClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getServiceInstanceClass() { + return serviceInstanceClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getVmType() { + return vmType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getManagerPortNumber() { + return managerPortNumber; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getManagerUser() { + return managerUser; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getEncryptedPassword() { + return encryptedPassword; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<String> getUsers() { + if (users == null) { + users = new EDataTypeEList<String>(String.class, this, VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__USERS); + } + return users; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<String> getAdminUsers() { + if (adminUsers == null) { + adminUsers = new EDataTypeEList<String>(String.class, this, VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__ADMIN_USERS); + } + return adminUsers; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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<? extends String>)newValue); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_DESCRIPTOR__ADMIN_USERS: + getAdminUsers().clear(); + getAdminUsers().addAll((Collection<? extends String>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Virtual Machine Service</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceImpl#getInstances <em>Instances</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceImpl#getManagerPortNumber <em>Manager Port Number</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class VirtualMachineServiceImpl extends DcaeServiceImpl implements VirtualMachineService { + /** + * The cached value of the '{@link #getInstances() <em>Instances</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getInstances() + * @generated + * @ordered + */ + protected EList<VirtualMachineServiceInstance> instances; + + /** + * The default value of the '{@link #getManagerPortNumber() <em>Manager Port Number</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getManagerPortNumber() + * @generated + * @ordered + */ + protected static final int MANAGER_PORT_NUMBER_EDEFAULT = 9999; + /** + * The cached value of the '{@link #getManagerPortNumber() <em>Manager Port Number</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getManagerPortNumber() + * @generated + * @ordered + */ + protected int managerPortNumber = MANAGER_PORT_NUMBER_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected VirtualMachineServiceImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return VmPackage.Literals.VIRTUAL_MACHINE_SERVICE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<VirtualMachineServiceInstance> getInstances() { + if (instances == null) { + instances = new EObjectContainmentWithInverseEList<VirtualMachineServiceInstance>(VirtualMachineServiceInstance.class, this, VmPackage.VIRTUAL_MACHINE_SERVICE__INSTANCES, VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__SERVICE); + } + return instances; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getManagerPortNumber() { + return managerPortNumber; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void updateDeploymentStatus() { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case VmPackage.VIRTUAL_MACHINE_SERVICE__INSTANCES: + return ((InternalEList<InternalEObject>)(InternalEList<?>)getInstances()).basicAdd(otherEnd, msgs); + } + return super.eInverseAdd(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case VmPackage.VIRTUAL_MACHINE_SERVICE__INSTANCES: + getInstances().clear(); + getInstances().addAll((Collection<? extends VirtualMachineServiceInstance>)newValue); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE__MANAGER_PORT_NUMBER: + setManagerPortNumber((Integer)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Virtual Machine Service Instance</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceInstanceImpl#getConfiguration <em>Configuration</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceInstanceImpl#getLocation <em>Location</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceInstanceImpl#getVmType <em>Vm Type</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceInstanceImpl#getUsers <em>Users</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceInstanceImpl#getAdminUsers <em>Admin Users</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceInstanceImpl#getApplicationIds <em>Application Ids</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceInstanceImpl#getAdminId <em>Admin Id</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceInstanceImpl#getNumberOfServers <em>Number Of Servers</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceInstanceImpl#getAvailabilityZone <em>Availability Zone</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceInstanceImpl#getManagerPortNumber <em>Manager Port Number</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceInstanceImpl#getServers <em>Servers</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceInstanceImpl#getLeaderServer <em>Leader Server</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceInstanceImpl#getService <em>Service</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceInstanceImpl#getIedsAdmin <em>Ieds Admin</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceInstanceImpl#getChefUser <em>Chef User</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceInstanceImpl#getChefOrg <em>Chef Org</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceInstanceImpl#getChefTopology <em>Chef Topology</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceInstanceImpl#getOpenstackFlavor <em>Openstack Flavor</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceInstanceImpl#getServiceFqdn <em>Service Fqdn</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceInstanceImpl#getDeploymentTimeoutMinutes <em>Deployment Timeout Minutes</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vm.impl.VirtualMachineServiceInstanceImpl#getSteps <em>Steps</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class VirtualMachineServiceInstanceImpl extends DcaeServiceInstanceImpl implements VirtualMachineServiceInstance { + /** + * The default value of the '{@link #getConfiguration() <em>Configuration</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getConfiguration() + * @generated + * @ordered + */ + protected static final String CONFIGURATION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getConfiguration() <em>Configuration</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getConfiguration() + * @generated + * @ordered + */ + protected String configuration = CONFIGURATION_EDEFAULT; + + /** + * The cached value of the '{@link #getLocation() <em>Location</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getLocation() + * @generated + * @ordered + */ + protected DcaeLocation location; + + /** + * The cached value of the '{@link #getVmType() <em>Vm Type</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVmType() + * @generated + * @ordered + */ + protected VirtualMachineType vmType; + + /** + * The cached value of the '{@link #getUsers() <em>Users</em>}' reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUsers() + * @generated + * @ordered + */ + protected EList<User> users; + + /** + * The cached value of the '{@link #getAdminUsers() <em>Admin Users</em>}' reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAdminUsers() + * @generated + * @ordered + */ + protected EList<User> adminUsers; + + /** + * The cached value of the '{@link #getApplicationIds() <em>Application Ids</em>}' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getApplicationIds() + * @generated + * @ordered + */ + protected EList<String> applicationIds; + + /** + * The default value of the '{@link #getAdminId() <em>Admin Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAdminId() + * @generated + * @ordered + */ + protected static final String ADMIN_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAdminId() <em>Admin Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAdminId() + * @generated + * @ordered + */ + protected String adminId = ADMIN_ID_EDEFAULT; + + /** + * The default value of the '{@link #getNumberOfServers() <em>Number Of Servers</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getNumberOfServers() + * @generated + * @ordered + */ + protected static final int NUMBER_OF_SERVERS_EDEFAULT = 1; + + /** + * The cached value of the '{@link #getNumberOfServers() <em>Number Of Servers</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getNumberOfServers() + * @generated + * @ordered + */ + protected int numberOfServers = NUMBER_OF_SERVERS_EDEFAULT; + + /** + * The default value of the '{@link #getAvailabilityZone() <em>Availability Zone</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAvailabilityZone() + * @generated + * @ordered + */ + protected static final String AVAILABILITY_ZONE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAvailabilityZone() <em>Availability Zone</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAvailabilityZone() + * @generated + * @ordered + */ + protected String availabilityZone = AVAILABILITY_ZONE_EDEFAULT; + + /** + * The default value of the '{@link #getManagerPortNumber() <em>Manager Port Number</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getManagerPortNumber() + * @generated + * @ordered + */ + protected static final Integer MANAGER_PORT_NUMBER_EDEFAULT = null; + + /** + * The cached value of the '{@link #getManagerPortNumber() <em>Manager Port Number</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getManagerPortNumber() + * @generated + * @ordered + */ + protected Integer managerPortNumber = MANAGER_PORT_NUMBER_EDEFAULT; + + /** + * The cached value of the '{@link #getServers() <em>Servers</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getServers() + * @generated + * @ordered + */ + protected EList<DcaeBasicServer> servers; + + /** + * The cached value of the '{@link #getLeaderServer() <em>Leader Server</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getLeaderServer() + * @generated + * @ordered + */ + protected DcaeBasicServer leaderServer; + + /** + * The default value of the '{@link #getIedsAdmin() <em>Ieds Admin</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIedsAdmin() + * @generated + * @ordered + */ + protected static final String IEDS_ADMIN_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIedsAdmin() <em>Ieds Admin</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIedsAdmin() + * @generated + * @ordered + */ + protected String iedsAdmin = IEDS_ADMIN_EDEFAULT; + + /** + * The default value of the '{@link #getChefUser() <em>Chef User</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getChefUser() + * @generated + * @ordered + */ + protected static final String CHEF_USER_EDEFAULT = null; + + /** + * The cached value of the '{@link #getChefUser() <em>Chef User</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getChefUser() + * @generated + * @ordered + */ + protected String chefUser = CHEF_USER_EDEFAULT; + + /** + * The default value of the '{@link #getChefOrg() <em>Chef Org</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getChefOrg() + * @generated + * @ordered + */ + protected static final String CHEF_ORG_EDEFAULT = null; + + /** + * The cached value of the '{@link #getChefOrg() <em>Chef Org</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getChefOrg() + * @generated + * @ordered + */ + protected String chefOrg = CHEF_ORG_EDEFAULT; + + /** + * The default value of the '{@link #getChefTopology() <em>Chef Topology</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getChefTopology() + * @generated + * @ordered + */ + protected static final String CHEF_TOPOLOGY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getChefTopology() <em>Chef Topology</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getChefTopology() + * @generated + * @ordered + */ + protected String chefTopology = CHEF_TOPOLOGY_EDEFAULT; + + /** + * The default value of the '{@link #getOpenstackFlavor() <em>Openstack Flavor</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOpenstackFlavor() + * @generated + * @ordered + */ + protected static final String OPENSTACK_FLAVOR_EDEFAULT = null; + + /** + * The cached value of the '{@link #getOpenstackFlavor() <em>Openstack Flavor</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOpenstackFlavor() + * @generated + * @ordered + */ + protected String openstackFlavor = OPENSTACK_FLAVOR_EDEFAULT; + + /** + * The default value of the '{@link #getServiceFqdn() <em>Service Fqdn</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getServiceFqdn() + * @generated + * @ordered + */ + protected static final String SERVICE_FQDN_EDEFAULT = null; + + /** + * The cached value of the '{@link #getServiceFqdn() <em>Service Fqdn</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getServiceFqdn() + * @generated + * @ordered + */ + protected String serviceFqdn = SERVICE_FQDN_EDEFAULT; + + /** + * The default value of the '{@link #getDeploymentTimeoutMinutes() <em>Deployment Timeout Minutes</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDeploymentTimeoutMinutes() + * @generated + * @ordered + */ + protected static final int DEPLOYMENT_TIMEOUT_MINUTES_EDEFAULT = 90; + + /** + * The cached value of the '{@link #getDeploymentTimeoutMinutes() <em>Deployment Timeout Minutes</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDeploymentTimeoutMinutes() + * @generated + * @ordered + */ + protected int deploymentTimeoutMinutes = DEPLOYMENT_TIMEOUT_MINUTES_EDEFAULT; + + /** + * The cached value of the '{@link #getSteps() <em>Steps</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSteps() + * @generated + * @ordered + */ + protected EList<InstallationStep> steps; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected VirtualMachineServiceInstanceImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return VmPackage.Literals.VIRTUAL_MACHINE_SERVICE_INSTANCE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DcaeLocation basicGetLocation() { + return location; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public VirtualMachineType basicGetVmType() { + return vmType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<User> getUsers() { + if (users == null) { + users = new EObjectResolvingEList<User>(User.class, this, VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__USERS); + } + return users; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<User> getAdminUsers() { + if (adminUsers == null) { + adminUsers = new EObjectResolvingEList<User>(User.class, this, VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__ADMIN_USERS); + } + return adminUsers; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<String> getApplicationIds() { + if (applicationIds == null) { + applicationIds = new EDataTypeEList<String>(String.class, this, VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__APPLICATION_IDS); + } + return applicationIds; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getAdminId() { + return adminId; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getConfiguration() { + return configuration; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getNumberOfServers() { + return numberOfServers; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getAvailabilityZone() { + return availabilityZone; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Integer getManagerPortNumber() { + return managerPortNumber; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<DcaeBasicServer> getServers() { + if (servers == null) { + servers = new EObjectContainmentEList<DcaeBasicServer>(DcaeBasicServer.class, this, VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__SERVERS); + } + return servers; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DcaeBasicServer basicGetLeaderServer() { + return leaderServer; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public VirtualMachineService getService() { + if (eContainerFeatureID() != VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__SERVICE) return null; + return (VirtualMachineService)eContainer(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public VirtualMachineService basicGetService() { + if (eContainerFeatureID() != VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__SERVICE) return null; + return (VirtualMachineService)eInternalContainer(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetService(VirtualMachineService newService, NotificationChain msgs) { + msgs = eBasicSetContainer((InternalEObject)newService, VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__SERVICE, msgs); + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getIedsAdmin() { + return iedsAdmin; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getChefUser() { + return chefUser; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getChefOrg() { + return chefOrg; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getChefTopology() { + return chefTopology; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getOpenstackFlavor() { + return openstackFlavor; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getServiceFqdn() { + return serviceFqdn; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getDeploymentTimeoutMinutes() { + return deploymentTimeoutMinutes; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<InstallationStep> getSteps() { + if (steps == null) { + steps = new EObjectContainmentEList<InstallationStep>(InstallationStep.class, this, VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__STEPS); + } + return steps; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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<? extends User>)newValue); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__ADMIN_USERS: + getAdminUsers().clear(); + getAdminUsers().addAll((Collection<? extends User>)newValue); + return; + case VmPackage.VIRTUAL_MACHINE_SERVICE_INSTANCE__APPLICATION_IDS: + getApplicationIds().clear(); + getApplicationIds().addAll((Collection<? extends String>)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<? extends DcaeBasicServer>)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<? extends InstallationStep>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Factory</b>. + * <!-- end-user-doc --> + * @generated + */ +public class VmFactoryImpl extends EFactoryImpl implements VmFactory { + /** + * Creates the default factory implementation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public VmFactoryImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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"); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public VirtualMachineService createVirtualMachineService() { + VirtualMachineServiceImpl virtualMachineService = new VirtualMachineServiceImpl(); + return virtualMachineService; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public VirtualMachineServiceInstance createVirtualMachineServiceInstance() { + VirtualMachineServiceInstanceImpl virtualMachineServiceInstance = new VirtualMachineServiceInstanceImpl(); + return virtualMachineServiceInstance; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public VirtualMachineServiceConfiguration createVirtualMachineServiceConfiguration() { + VirtualMachineServiceConfigurationImpl virtualMachineServiceConfiguration = new VirtualMachineServiceConfigurationImpl(); + return virtualMachineServiceConfiguration; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public VirtualMachineServiceDescriptor createVirtualMachineServiceDescriptor() { + VirtualMachineServiceDescriptorImpl virtualMachineServiceDescriptor = new VirtualMachineServiceDescriptorImpl(); + return virtualMachineServiceDescriptor; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PhysicalMachine createPhysicalMachine() { + PhysicalMachineImpl physicalMachine = new PhysicalMachineImpl(); + return physicalMachine; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public VirtualMachine createVirtualMachine() { + VirtualMachineImpl virtualMachine = new VirtualMachineImpl(); + return virtualMachine; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ShellInstallationStep createShellInstallationStep() { + ShellInstallationStepImpl shellInstallationStep = new ShellInstallationStepImpl(); + return shellInstallationStep; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public MavenArtifactInstallationStep createMavenArtifactInstallationStep() { + MavenArtifactInstallationStepImpl mavenArtifactInstallationStep = new MavenArtifactInstallationStepImpl(); + return mavenArtifactInstallationStep; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public HttpInstallationStep createHttpInstallationStep() { + HttpInstallationStepImpl httpInstallationStep = new HttpInstallationStepImpl(); + return httpInstallationStep; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public VmPackage getVmPackage() { + return (VmPackage)getEPackage(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Package</b>. + * <!-- end-user-doc --> + * @generated + */ +public class VmPackageImpl extends EPackageImpl implements VmPackage { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass virtualMachineServiceEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass virtualMachineServiceInstanceEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass virtualMachineServiceConfigurationEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass virtualMachineServiceDescriptorEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass physicalMachineEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass virtualMachineEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass installationStepEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass shellInstallationStepEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass mavenArtifactInstallationStepEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass httpInstallationStepEClass = null; + + /** + * Creates an instance of the model <b>Package</b>, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + * <p>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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. + * + * <p>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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getVirtualMachineService() { + return virtualMachineServiceEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getVirtualMachineService_Instances() { + return (EReference)virtualMachineServiceEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getVirtualMachineService_ManagerPortNumber() { + return (EAttribute)virtualMachineServiceEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getVirtualMachineService__UpdateDeploymentStatus() { + return virtualMachineServiceEClass.getEOperations().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getVirtualMachineServiceInstance() { + return virtualMachineServiceInstanceEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getVirtualMachineServiceInstance_Location() { + return (EReference)virtualMachineServiceInstanceEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getVirtualMachineServiceInstance_VmType() { + return (EReference)virtualMachineServiceInstanceEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getVirtualMachineServiceInstance_Users() { + return (EReference)virtualMachineServiceInstanceEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getVirtualMachineServiceInstance_AdminUsers() { + return (EReference)virtualMachineServiceInstanceEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getVirtualMachineServiceInstance_ApplicationIds() { + return (EAttribute)virtualMachineServiceInstanceEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getVirtualMachineServiceInstance_AdminId() { + return (EAttribute)virtualMachineServiceInstanceEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getVirtualMachineServiceInstance_NumberOfServers() { + return (EAttribute)virtualMachineServiceInstanceEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getVirtualMachineServiceInstance_AvailabilityZone() { + return (EAttribute)virtualMachineServiceInstanceEClass.getEStructuralFeatures().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getVirtualMachineServiceInstance_ManagerPortNumber() { + return (EAttribute)virtualMachineServiceInstanceEClass.getEStructuralFeatures().get(8); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getVirtualMachineServiceInstance_Servers() { + return (EReference)virtualMachineServiceInstanceEClass.getEStructuralFeatures().get(9); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getVirtualMachineServiceInstance_LeaderServer() { + return (EReference)virtualMachineServiceInstanceEClass.getEStructuralFeatures().get(10); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getVirtualMachineServiceInstance_Service() { + return (EReference)virtualMachineServiceInstanceEClass.getEStructuralFeatures().get(11); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getVirtualMachineServiceInstance_IedsAdmin() { + return (EAttribute)virtualMachineServiceInstanceEClass.getEStructuralFeatures().get(12); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getVirtualMachineServiceInstance_ChefUser() { + return (EAttribute)virtualMachineServiceInstanceEClass.getEStructuralFeatures().get(13); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getVirtualMachineServiceInstance_ChefOrg() { + return (EAttribute)virtualMachineServiceInstanceEClass.getEStructuralFeatures().get(14); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getVirtualMachineServiceInstance_ChefTopology() { + return (EAttribute)virtualMachineServiceInstanceEClass.getEStructuralFeatures().get(15); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getVirtualMachineServiceInstance_OpenstackFlavor() { + return (EAttribute)virtualMachineServiceInstanceEClass.getEStructuralFeatures().get(16); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getVirtualMachineServiceInstance_ServiceFqdn() { + return (EAttribute)virtualMachineServiceInstanceEClass.getEStructuralFeatures().get(17); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getVirtualMachineServiceInstance_DeploymentTimeoutMinutes() { + return (EAttribute)virtualMachineServiceInstanceEClass.getEStructuralFeatures().get(18); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getVirtualMachineServiceInstance_Steps() { + return (EReference)virtualMachineServiceInstanceEClass.getEStructuralFeatures().get(19); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getVirtualMachineServiceConfiguration() { + return virtualMachineServiceConfigurationEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getVirtualMachineServiceConfiguration_Configuration() { + return (EAttribute)virtualMachineServiceConfigurationEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getVirtualMachineServiceDescriptor() { + return virtualMachineServiceDescriptorEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getVirtualMachineServiceDescriptor_ServicePackage() { + return (EAttribute)virtualMachineServiceDescriptorEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getVirtualMachineServiceDescriptor_ServiceClass() { + return (EAttribute)virtualMachineServiceDescriptorEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getVirtualMachineServiceDescriptor_ServiceInstanceClass() { + return (EAttribute)virtualMachineServiceDescriptorEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getVirtualMachineServiceDescriptor_VmType() { + return (EAttribute)virtualMachineServiceDescriptorEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getVirtualMachineServiceDescriptor_ManagerPortNumber() { + return (EAttribute)virtualMachineServiceDescriptorEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getVirtualMachineServiceDescriptor_ManagerUser() { + return (EAttribute)virtualMachineServiceDescriptorEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getVirtualMachineServiceDescriptor_EncryptedPassword() { + return (EAttribute)virtualMachineServiceDescriptorEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getVirtualMachineServiceDescriptor_Users() { + return (EAttribute)virtualMachineServiceDescriptorEClass.getEStructuralFeatures().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getVirtualMachineServiceDescriptor_AdminUsers() { + return (EAttribute)virtualMachineServiceDescriptorEClass.getEStructuralFeatures().get(8); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getPhysicalMachine() { + return physicalMachineEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getPhysicalMachine_ManagerPortNumber() { + return (EAttribute)physicalMachineEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getVirtualMachine() { + return virtualMachineEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getVirtualMachine_FunctionIndex() { + return (EAttribute)virtualMachineEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getVirtualMachine_KvmName() { + return (EAttribute)virtualMachineEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getVirtualMachine_Vnc() { + return (EAttribute)virtualMachineEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getVirtualMachine_Gateway() { + return (EAttribute)virtualMachineEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getInstallationStep() { + return installationStepEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getInstallationStep_ApplicationId() { + return (EAttribute)installationStepEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getShellInstallationStep() { + return shellInstallationStepEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getShellInstallationStep_Command() { + return (EAttribute)shellInstallationStepEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getMavenArtifactInstallationStep() { + return mavenArtifactInstallationStepEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getMavenArtifactInstallationStep_GroupId() { + return (EAttribute)mavenArtifactInstallationStepEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getMavenArtifactInstallationStep_ArtifactId() { + return (EAttribute)mavenArtifactInstallationStepEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getMavenArtifactInstallationStep_Version() { + return (EAttribute)mavenArtifactInstallationStepEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getMavenArtifactInstallationStep_Type() { + return (EAttribute)mavenArtifactInstallationStepEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getMavenArtifactInstallationStep_AssemblyId() { + return (EAttribute)mavenArtifactInstallationStepEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getHttpInstallationStep() { + return httpInstallationStepEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getHttpInstallationStep_Url() { + return (EAttribute)httpInstallationStepEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getHttpInstallationStep_UserName() { + return (EAttribute)httpInstallationStepEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getHttpInstallationStep_Password() { + return (EAttribute)httpInstallationStepEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getHttpInstallationStep_Type() { + return (EAttribute)httpInstallationStepEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getHttpInstallationStep_ArtifactId() { + return (EAttribute)httpInstallationStepEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public VmFactory getVmFactory() { + return (VmFactory)getEFactoryInstance(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <b>http://www.eclipse.org/emf/2011/Xcore</b>. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <b>http://openecomp.org</b>. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * The <b>Adapter Factory</b> for the model. + * It provides an adapter <code>createXXX</code> method for each class of the model. + * <!-- end-user-doc --> + * @see org.openecomp.dcae.controller.service.vm.VmPackage + * @generated + */ +public class VmAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static VmPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public VmAdapterFactory() { + if (modelPackage == null) { + modelPackage = VmPackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * <!-- begin-user-doc --> + * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. + * <!-- end-user-doc --> + * @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 <code>createXXX</code> methods. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected VmSwitch<Adapter> modelSwitch = + new VmSwitch<Adapter>() { + @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 <code>target</code>. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param target the object to adapt. + * @return the adapter for the <code>target</code>. + * @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 <em>Virtual Machine Service</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Virtual Machine Service Instance</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Virtual Machine Service Configuration</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Virtual Machine Service Descriptor</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Physical Machine</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Virtual Machine</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Installation Step</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Shell Installation Step</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Maven Artifact Installation Step</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Http Installation Step</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Named Entity</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Dcae Service</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Dcae Service Instance</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Dcae Service Descriptor</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Has Operational State</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Log Message Container</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Dcae Basic Server</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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. + * <!-- begin-user-doc --> + * This default implementation returns null. + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * The <b>Switch</b> for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} + * to invoke the <code>caseXXX</code> 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. + * <!-- end-user-doc --> + * @see org.openecomp.dcae.controller.service.vm.VmPackage + * @generated + */ +public class VmSwitch<T> extends Switch<T> { + /** + * The cached model package + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static VmPackage modelPackage; + + /** + * Creates an instance of the switch. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public VmSwitch() { + if (modelPackage == null) { + modelPackage = VmPackage.eINSTANCE; + } + } + + /** + * Checks whether this is a switch for the given package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the first non-null result returned by a <code>caseXXX</code> 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 '<em>Virtual Machine Service</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Virtual Machine Service</em>'. + * @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 '<em>Virtual Machine Service Instance</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Virtual Machine Service Instance</em>'. + * @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 '<em>Virtual Machine Service Configuration</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Virtual Machine Service Configuration</em>'. + * @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 '<em>Virtual Machine Service Descriptor</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Virtual Machine Service Descriptor</em>'. + * @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 '<em>Physical Machine</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Physical Machine</em>'. + * @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 '<em>Virtual Machine</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Virtual Machine</em>'. + * @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 '<em>Installation Step</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Installation Step</em>'. + * @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 '<em>Shell Installation Step</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Shell Installation Step</em>'. + * @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 '<em>Maven Artifact Installation Step</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Maven Artifact Installation Step</em>'. + * @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 '<em>Http Installation Step</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Http Installation Step</em>'. + * @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 '<em>Named Entity</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Named Entity</em>'. + * @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 '<em>Dcae Service</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Dcae Service</em>'. + * @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 '<em>Dcae Service Instance</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Dcae Service Instance</em>'. + * @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 '<em>Dcae Service Descriptor</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Dcae Service Descriptor</em>'. + * @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 '<em>Has Operational State</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Has Operational State</em>'. + * @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 '<em>Log Message Container</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Log Message Container</em>'. + * @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 '<em>Dcae Basic Server</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Dcae Basic Server</em>'. + * @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 '<em>EObject</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>EObject</em>'. + * @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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Virtual Machine Manager</b></em>'. + * <!-- end-user-doc --> + * + * + * @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; + +/** + * <!-- begin-user-doc --> + * The <b>Factory</b> for the model. + * It provides a create method for each non-abstract class of the model. + * <!-- end-user-doc --> + * @see org.openecomp.dcae.controller.service.vmmanager.VmmanagerPackage + * @generated + */ +public interface VmmanagerFactory extends EFactory { + /** + * The singleton instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + VmmanagerFactory eINSTANCE = org.openecomp.dcae.controller.service.vmmanager.impl.VmmanagerFactoryImpl.init(); + + /** + * Returns a new object of class '<em>Virtual Machine Manager</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Virtual Machine Manager</em>'. + * @generated + */ + VirtualMachineManager createVirtualMachineManager(); + + /** + * Returns the package supported by this factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * The <b>Package</b> for the model. + * It contains accessors for the meta objects to represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each operation of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * @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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNAME = "vmmanager"; + + /** + * The package namespace URI. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNS_URI = "org.openecomp.dcae.controller.service.vmmanager"; + + /** + * The package namespace name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNS_PREFIX = "vmmanager"; + + /** + * The singleton instance of the package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <em>Virtual Machine Manager</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Input Streams</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_MANAGER__INPUT_STREAMS = ManagerPackage.DCAE_MANAGER__INPUT_STREAMS; + + /** + * The feature id for the '<em><b>Output Streams</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_MANAGER__OUTPUT_STREAMS = ManagerPackage.DCAE_MANAGER__OUTPUT_STREAMS; + + /** + * The feature id for the '<em><b>Configuration</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_MANAGER__CONFIGURATION = ManagerPackage.DCAE_MANAGER_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Component</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_MANAGER__COMPONENT = ManagerPackage.DCAE_MANAGER_FEATURE_COUNT + 1; + + /** + * The number of structural features of the '<em>Virtual Machine Manager</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_MANAGER_FEATURE_COUNT = ManagerPackage.DCAE_MANAGER_FEATURE_COUNT + 2; + + /** + * The operation id for the '<em>Test</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_MANAGER___TEST = ManagerPackage.DCAE_MANAGER___TEST; + + /** + * The operation id for the '<em>Suspend</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_MANAGER___SUSPEND = ManagerPackage.DCAE_MANAGER___SUSPEND; + + /** + * The operation id for the '<em>Resume</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_MANAGER___RESUME = ManagerPackage.DCAE_MANAGER___RESUME; + + /** + * The operation id for the '<em>Public Key</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_MANAGER___PUBLIC_KEY = ManagerPackage.DCAE_MANAGER___PUBLIC_KEY; + + /** + * The operation id for the '<em>Configuration Changed</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_MANAGER___CONFIGURATION_CHANGED = ManagerPackage.DCAE_MANAGER___CONFIGURATION_CHANGED; + + /** + * The operation id for the '<em>Update Streams</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_MANAGER___UPDATE_STREAMS__ELIST_ELIST = ManagerPackage.DCAE_MANAGER___UPDATE_STREAMS__ELIST_ELIST; + + /** + * The operation id for the '<em>Logs</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_MANAGER___LOGS__JSONOBJECT_ELIST = ManagerPackage.DCAE_MANAGER_OPERATION_COUNT + 0; + + /** + * The operation id for the '<em>Metrics</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_MANAGER___METRICS__JSONOBJECT_ELIST = ManagerPackage.DCAE_MANAGER_OPERATION_COUNT + 1; + + /** + * The operation id for the '<em>Properties</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_MANAGER___PROPERTIES__JSONOBJECT_ELIST = ManagerPackage.DCAE_MANAGER_OPERATION_COUNT + 2; + + /** + * The operation id for the '<em>Upload Info</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_MANAGER___UPLOAD_INFO__JSONOBJECT_ELIST = ManagerPackage.DCAE_MANAGER_OPERATION_COUNT + 3; + + /** + * The operation id for the '<em>Get Values</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em>Get Values All</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em>Get Messages</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_MANAGER___GET_MESSAGES__JSONOBJECT_STRING_LONG_LONG = ManagerPackage.DCAE_MANAGER_OPERATION_COUNT + 6; + + /** + * The operation id for the '<em>Get Request Logger</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_MANAGER___GET_REQUEST_LOGGER__STRING_STRING_STRING_JSONOBJECT = ManagerPackage.DCAE_MANAGER_OPERATION_COUNT + 7; + + /** + * The operation id for the '<em>Evaluate</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_MANAGER___EVALUATE__STRING_FUNCTION = ManagerPackage.DCAE_MANAGER_OPERATION_COUNT + 8; + + /** + * The operation id for the '<em>Update</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_MANAGER___UPDATE__STRING_FUNCTION = ManagerPackage.DCAE_MANAGER_OPERATION_COUNT + 9; + + /** + * The number of operations of the '<em>Virtual Machine Manager</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <em>Virtual Machine Manager</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Virtual Machine Manager</em>'. + * @see org.openecomp.dcae.controller.service.vmmanager.VirtualMachineManager + * @generated + */ + EClass getVirtualMachineManager(); + + /** + * Returns the factory that creates the instances of the model. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the factory that creates the instances of the model. + * @generated + */ + VmmanagerFactory getVmmanagerFactory(); + + /** + * <!-- begin-user-doc --> + * Defines literals for the meta objects that represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each operation of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.openecomp.dcae.controller.service.vmmanager.impl.VirtualMachineManagerImpl <em>Virtual Machine Manager</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Virtual Machine Manager</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.dcae.controller.service.vmmanager.impl.VirtualMachineManagerImpl#getConfiguration <em>Configuration</em>}</li> + * <li>{@link org.openecomp.dcae.controller.service.vmmanager.impl.VirtualMachineManagerImpl#getComponent <em>Component</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class VirtualMachineManagerImpl extends DcaeManagerImpl implements VirtualMachineManager { + /** + * The cached value of the '{@link #getConfiguration() <em>Configuration</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getConfiguration() + * @generated + * @ordered + */ + protected AbstractManagementServerConfiguration configuration; + /** + * The cached value of the '{@link #getComponent() <em>Component</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getComponent() + * @generated + * @ordered + */ + protected Component component; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected VirtualMachineManagerImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return VmmanagerPackage.Literals.VIRTUAL_MACHINE_MANAGER; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public AbstractManagementServerConfiguration getConfiguration() { + return configuration; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Component getComponent() { + return component; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<DoubleMetric> 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(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<DoubleMetric> getValuesAll(JSONObject cx, String path, EList<String> 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(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<LogMessage> 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(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<ValuePair> evaluate(String path, Function function) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void uploadInfo(JSONObject cx, EList<ManagementInfo> info) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void logs(JSONObject cx, EList<LogMessage> logs) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void metrics(JSONObject cx, EList<Metric> metrics) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void properties(JSONObject cx, EList<AbstractProperty> l) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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<String>)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<ManagementInfo>)arguments.get(1)); + return null; + case VmmanagerPackage.VIRTUAL_MACHINE_MANAGER___LOGS__JSONOBJECT_ELIST: + logs((JSONObject)arguments.get(0), (EList<LogMessage>)arguments.get(1)); + return null; + case VmmanagerPackage.VIRTUAL_MACHINE_MANAGER___METRICS__JSONOBJECT_ELIST: + metrics((JSONObject)arguments.get(0), (EList<Metric>)arguments.get(1)); + return null; + case VmmanagerPackage.VIRTUAL_MACHINE_MANAGER___PROPERTIES__JSONOBJECT_ELIST: + properties((JSONObject)arguments.get(0), (EList<AbstractProperty>)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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Factory</b>. + * <!-- end-user-doc --> + * @generated + */ +public class VmmanagerFactoryImpl extends EFactoryImpl implements VmmanagerFactory { + /** + * Creates the default factory implementation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public VmmanagerFactoryImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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"); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public VirtualMachineManager createVirtualMachineManager() { + VirtualMachineManagerImpl virtualMachineManager = new VirtualMachineManagerImpl(); + return virtualMachineManager; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public VmmanagerPackage getVmmanagerPackage() { + return (VmmanagerPackage)getEPackage(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Package</b>. + * <!-- end-user-doc --> + * @generated + */ +public class VmmanagerPackageImpl extends EPackageImpl implements VmmanagerPackage { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass virtualMachineManagerEClass = null; + + /** + * Creates an instance of the model <b>Package</b>, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + * <p>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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. + * + * <p>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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getVirtualMachineManager() { + return virtualMachineManagerEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public VmmanagerFactory getVmmanagerFactory() { + return (VmmanagerFactory)getEFactoryInstance(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void createPackageContents() { + if (isCreated) return; + isCreated = true; + + // Create classes and their features + virtualMachineManagerEClass = createEClass(VIRTUAL_MACHINE_MANAGER); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <b>http://www.eclipse.org/emf/2011/Xcore</b>. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * The <b>Adapter Factory</b> for the model. + * It provides an adapter <code>createXXX</code> method for each class of the model. + * <!-- end-user-doc --> + * @see org.openecomp.dcae.controller.service.vmmanager.VmmanagerPackage + * @generated + */ +public class VmmanagerAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static VmmanagerPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public VmmanagerAdapterFactory() { + if (modelPackage == null) { + modelPackage = VmmanagerPackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * <!-- begin-user-doc --> + * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. + * <!-- end-user-doc --> + * @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 <code>createXXX</code> methods. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected VmmanagerSwitch<Adapter> modelSwitch = + new VmmanagerSwitch<Adapter>() { + @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 <code>target</code>. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param target the object to adapt. + * @return the adapter for the <code>target</code>. + * @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 <em>Virtual Machine Manager</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Dcae Manager</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>South Bound Api</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>South Bound Api With Proxy</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Abstract Management Server</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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. + * <!-- begin-user-doc --> + * This default implementation returns null. + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * The <b>Switch</b> for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} + * to invoke the <code>caseXXX</code> 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. + * <!-- end-user-doc --> + * @see org.openecomp.dcae.controller.service.vmmanager.VmmanagerPackage + * @generated + */ +public class VmmanagerSwitch<T> extends Switch<T> { + /** + * The cached model package + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static VmmanagerPackage modelPackage; + + /** + * Creates an instance of the switch. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public VmmanagerSwitch() { + if (modelPackage == null) { + modelPackage = VmmanagerPackage.eINSTANCE; + } + } + + /** + * Checks whether this is a switch for the given package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the first non-null result returned by a <code>caseXXX</code> 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 '<em>Virtual Machine Manager</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Virtual Machine Manager</em>'. + * @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 '<em>Dcae Manager</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Dcae Manager</em>'. + * @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 '<em>South Bound Api</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>South Bound Api</em>'. + * @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 '<em>South Bound Api With Proxy</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>South Bound Api With Proxy</em>'. + * @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 '<em>Abstract Management Server</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Abstract Management Server</em>'. + * @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 '<em>EObject</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>EObject</em>'. + * @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 +} + |