diff options
author | lj1412 <lji@research.att.com> | 2017-02-14 15:11:24 +0000 |
---|---|---|
committer | lj1412 <lji@research.att.com> | 2017-02-14 15:11:26 +0000 |
commit | 9a98a583855c9665c7171ca2e44e311095cdaac1 (patch) | |
tree | b9f784669b9d235bba8d9bf9354cd313ff051171 /ncomp-docker-model | |
parent | 0453f7ce05dcb0affc9025c007db125128d0bf95 (diff) |
Init ncomp.docker
Change-Id: Ic87bcf77cff63ef6cd3004fbff9a69f11930d684
Signed-off-by: lj1412 <lji@research.att.com>
Diffstat (limited to 'ncomp-docker-model')
83 files changed, 29356 insertions, 0 deletions
diff --git a/ncomp-docker-model/.classpath b/ncomp-docker-model/.classpath new file mode 100644 index 0000000..d86c4cf --- /dev/null +++ b/ncomp-docker-model/.classpath @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry excluding="**" 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" output="target/classes" path="src/main/xcore-gen"> + <attributes> + <attribute name="optional" value="true"/> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> + <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="src" output="target/test-classes" path="src/test/java"> + <attributes> + <attribute name="optional" value="true"/> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> + <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"> + <attributes> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> + <classpathentry kind="output" path="target/classes"/> +</classpath> diff --git a/ncomp-docker-model/.gitignore b/ncomp-docker-model/.gitignore new file mode 100644 index 0000000..09e3bc9 --- /dev/null +++ b/ncomp-docker-model/.gitignore @@ -0,0 +1,2 @@ +/bin/ +/target/ diff --git a/ncomp-docker-model/.project b/ncomp-docker-model/.project new file mode 100644 index 0000000..0711b63 --- /dev/null +++ b/ncomp-docker-model/.project @@ -0,0 +1,40 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>ncomp-docker-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> + <buildCommand> + <name>org.eclipse.m2e.core.maven2Builder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.m2e.core.maven2Nature</nature> + <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/ncomp-docker-model/.settings/org.eclipse.core.resources.prefs b/ncomp-docker-model/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..447ff97 --- /dev/null +++ b/ncomp-docker-model/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,4 @@ +eclipse.preferences.version=1 +encoding//src/main/xcore=UTF-8 +encoding//src/main/xcore-gen=UTF-8 +encoding/<project>=UTF-8 diff --git a/ncomp-docker-model/.settings/org.eclipse.jdt.core.prefs b/ncomp-docker-model/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..ec4300d --- /dev/null +++ b/ncomp-docker-model/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,5 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 +org.eclipse.jdt.core.compiler.compliance=1.7 +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.source=1.7 diff --git a/ncomp-docker-model/.settings/org.eclipse.m2e.core.prefs b/ncomp-docker-model/.settings/org.eclipse.m2e.core.prefs new file mode 100644 index 0000000..f897a7f --- /dev/null +++ b/ncomp-docker-model/.settings/org.eclipse.m2e.core.prefs @@ -0,0 +1,4 @@ +activeProfiles= +eclipse.preferences.version=1 +resolveWorkspaceProjects=true +version=1 diff --git a/ncomp-docker-model/LICENSE.txt b/ncomp-docker-model/LICENSE.txt new file mode 100644 index 0000000..30471b5 --- /dev/null +++ b/ncomp-docker-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/ncomp-docker-model/META-INF/MANIFEST.MF b/ncomp-docker-model/META-INF/MANIFEST.MF new file mode 100644 index 0000000..22afc4f --- /dev/null +++ b/ncomp-docker-model/META-INF/MANIFEST.MF @@ -0,0 +1,21 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %pluginName +Bundle-SymbolicName: ncomp-docker-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.ncomp.docker, + org.openecomp.ncomp.docker.impl, + org.openecomp.ncomp.docker.util +Require-Bundle: org.eclipse.core.runtime, + org.eclipse.emf.ecore;visibility:=reexport, + org.eclipse.xtext.xbase.lib, + org.eclipse.emf.ecore.xcore.lib, + ncomp-core-model;bundle-version="0.1.0";visibility:=reexport, + ncomp-sirius-manager-model;bundle-version="0.1.0";visibility:=reexport, + ncomp-core-types;bundle-version="0.1.0", + ncomp-utils-java;bundle-version="0.1.0" +Bundle-ActivationPolicy: lazy diff --git a/ncomp-docker-model/build.properties b/ncomp-docker-model/build.properties new file mode 100644 index 0000000..6d35b6f --- /dev/null +++ b/ncomp-docker-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/ncomp-docker-model/plugin.properties b/ncomp-docker-model/plugin.properties new file mode 100644 index 0000000..04852d2 --- /dev/null +++ b/ncomp-docker-model/plugin.properties @@ -0,0 +1,4 @@ +# + +pluginName = Router Model +providerName = www.example.org diff --git a/ncomp-docker-model/plugin.xml b/ncomp-docker-model/plugin.xml new file mode 100644 index 0000000..30caa49 --- /dev/null +++ b/ncomp-docker-model/plugin.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.0"?> + +<!-- +--> + +<plugin> + + <extension point="org.eclipse.emf.ecore.generated_package"> + <!-- @generated adaptor --> + <package + uri="org.openecomp.ncomp.docker" + class="org.openecomp.ncomp.docker.DockerPackage" + genModel="src/main/xcore/adaptor.xcore"/> + </extension> + +</plugin> diff --git a/ncomp-docker-model/pom.xml b/ncomp-docker-model/pom.xml new file mode 100644 index 0000000..197df02 --- /dev/null +++ b/ncomp-docker-model/pom.xml @@ -0,0 +1,18 @@ +<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.ncomp.docker</groupId> + <artifactId>ncomp-docker-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> + </dependencies> +</project> diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/ContainerBlkioStats.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/ContainerBlkioStats.java new file mode 100644 index 0000000..1ad4d18 --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/ContainerBlkioStats.java @@ -0,0 +1,39 @@ + +/*- + * ============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.ncomp.docker; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Container Blkio Stats</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerBlkioStats() + * @model + * @generated + */ +public interface ContainerBlkioStats extends EObject { +} // ContainerBlkioStats diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/ContainerCpuStats.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/ContainerCpuStats.java new file mode 100644 index 0000000..fc256cf --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/ContainerCpuStats.java @@ -0,0 +1,98 @@ + +/*- + * ============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.ncomp.docker; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Container Cpu Stats</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.ContainerCpuStats#getCpu_usage <em>Cpu usage</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerCpuStats#getSystem_cpu_usage <em>System cpu usage</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerCpuStats() + * @model + * @generated + */ +public interface ContainerCpuStats extends EObject { + /** + * Returns the value of the '<em><b>Cpu usage</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Cpu usage</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Cpu usage</em>' containment reference. + * @see #setCpu_usage(ContainerCpuUsage) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerCpuStats_Cpu_usage() + * @model containment="true" + * @generated + */ + ContainerCpuUsage getCpu_usage(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerCpuStats#getCpu_usage <em>Cpu usage</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Cpu usage</em>' containment reference. + * @see #getCpu_usage() + * @generated + */ + void setCpu_usage(ContainerCpuUsage value); + + /** + * Returns the value of the '<em><b>System cpu usage</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>System cpu usage</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>System cpu usage</em>' attribute. + * @see #setSystem_cpu_usage(long) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerCpuStats_System_cpu_usage() + * @model unique="false" + * @generated + */ + long getSystem_cpu_usage(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerCpuStats#getSystem_cpu_usage <em>System cpu usage</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>System cpu usage</em>' attribute. + * @see #getSystem_cpu_usage() + * @generated + */ + void setSystem_cpu_usage(long value); + +} // ContainerCpuStats diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/ContainerCpuUsage.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/ContainerCpuUsage.java new file mode 100644 index 0000000..e8e7b52 --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/ContainerCpuUsage.java @@ -0,0 +1,162 @@ + +/*- + * ============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.ncomp.docker; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Container Cpu Usage</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * "cpu_stats" : { + * "cpu_usage" : { + * "percpu_usage" : [ + * 16970827, + * 1839451, + * 7107380, + * 10571290 + * ], + * "usage_in_usermode" : 10000000, + * "total_usage" : 36488948, + * "usage_in_kernelmode" : 20000000 + * }, + * "system_cpu_usage" : 20091722000000000, + * "throttling_data" : {} + * } + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.ContainerCpuUsage#getPercpu_usage <em>Percpu usage</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerCpuUsage#getUsage_in_usermode <em>Usage in usermode</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerCpuUsage#getTotal_usage <em>Total usage</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerCpuUsage#getUser_in_kernelmode <em>User in kernelmode</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerCpuUsage() + * @model + * @generated + */ +public interface ContainerCpuUsage extends EObject { + /** + * Returns the value of the '<em><b>Percpu usage</b></em>' attribute list. + * The list contents are of type {@link java.lang.Long}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Percpu usage</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>Percpu usage</em>' attribute list. + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerCpuUsage_Percpu_usage() + * @model unique="false" + * @generated + */ + EList<Long> getPercpu_usage(); + + /** + * Returns the value of the '<em><b>Usage in usermode</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Usage in usermode</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Usage in usermode</em>' attribute. + * @see #setUsage_in_usermode(long) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerCpuUsage_Usage_in_usermode() + * @model unique="false" + * @generated + */ + long getUsage_in_usermode(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerCpuUsage#getUsage_in_usermode <em>Usage in usermode</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Usage in usermode</em>' attribute. + * @see #getUsage_in_usermode() + * @generated + */ + void setUsage_in_usermode(long value); + + /** + * Returns the value of the '<em><b>Total usage</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Total usage</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Total usage</em>' attribute. + * @see #setTotal_usage(long) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerCpuUsage_Total_usage() + * @model unique="false" + * @generated + */ + long getTotal_usage(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerCpuUsage#getTotal_usage <em>Total usage</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Total usage</em>' attribute. + * @see #getTotal_usage() + * @generated + */ + void setTotal_usage(long value); + + /** + * Returns the value of the '<em><b>User in kernelmode</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>User in kernelmode</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 in kernelmode</em>' attribute. + * @see #setUser_in_kernelmode(long) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerCpuUsage_User_in_kernelmode() + * @model unique="false" + * @generated + */ + long getUser_in_kernelmode(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerCpuUsage#getUser_in_kernelmode <em>User in kernelmode</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>User in kernelmode</em>' attribute. + * @see #getUser_in_kernelmode() + * @generated + */ + void setUser_in_kernelmode(long value); + +} // ContainerCpuUsage diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/ContainerMemoryStats.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/ContainerMemoryStats.java new file mode 100644 index 0000000..3a9f4fc --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/ContainerMemoryStats.java @@ -0,0 +1,867 @@ + +/*- + * ============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.ncomp.docker; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Container Memory Stats</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * "memory_stats" : { + * "stats" : { + * "total_pgmajfault" : 0, + * "cache" : 0, + * "mapped_file" : 0, + * "total_inactive_file" : 0, + * "pgpgout" : 414, + * "rss" : 6537216, + * "total_mapped_file" : 0, + * "writeback" : 0, + * "unevictable" : 0, + * "pgpgin" : 477, + * "total_unevictable" : 0, + * "pgmajfault" : 0, + * "total_rss" : 6537216, + * "total_rss_huge" : 6291456, + * "total_writeback" : 0, + * "total_inactive_anon" : 0, + * "rss_huge" : 6291456, + * "hierarchical_memory_limit" : 67108864, + * "total_pgfault" : 964, + * "total_active_file" : 0, + * "active_anon" : 6537216, + * "total_active_anon" : 6537216, + * "total_pgpgout" : 414, + * "total_cache" : 0, + * "inactive_anon" : 0, + * "active_file" : 0, + * "pgfault" : 964, + * "inactive_file" : 0, + * "total_pgpgin" : 477 + * }, + * "max_usage" : 6651904, + * "usage" : 6537216, + * "failcnt" : 0, + * "limit" : 67108864 + * }, + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_pgmajfault <em>Total pgmajfault</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getCache <em>Cache</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getMapped_file <em>Mapped file</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_inactive_file <em>Total inactive file</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getPgpgout <em>Pgpgout</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getRss <em>Rss</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_mapped_file <em>Total mapped file</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getWriteback <em>Writeback</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getUnevictable <em>Unevictable</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getPgpgin <em>Pgpgin</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_unevictable <em>Total unevictable</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getPgmajfault <em>Pgmajfault</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_rss <em>Total rss</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_rss_huge <em>Total rss huge</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_writeback <em>Total writeback</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_inactive_anon <em>Total inactive anon</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getRss_huge <em>Rss huge</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getHierarchical_memory_limit <em>Hierarchical memory limit</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_pgfault <em>Total pgfault</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_active_file <em>Total active file</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getActive_anon <em>Active anon</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_active_anon <em>Total active anon</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_pgpgout <em>Total pgpgout</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_cache <em>Total cache</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getInactive_anon <em>Inactive anon</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getActive_file <em>Active file</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getPgfault <em>Pgfault</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getInactive_file <em>Inactive file</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_pgpgin <em>Total pgpgin</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerMemoryStats() + * @model + * @generated + */ +public interface ContainerMemoryStats extends EObject { + + /** + * Returns the value of the '<em><b>Total pgmajfault</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Total pgmajfault</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Total pgmajfault</em>' attribute. + * @see #setTotal_pgmajfault(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerMemoryStats_Total_pgmajfault() + * @model unique="false" + * @generated + */ + int getTotal_pgmajfault(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_pgmajfault <em>Total pgmajfault</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Total pgmajfault</em>' attribute. + * @see #getTotal_pgmajfault() + * @generated + */ + void setTotal_pgmajfault(int value); + + /** + * Returns the value of the '<em><b>Cache</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Cache</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Cache</em>' attribute. + * @see #setCache(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerMemoryStats_Cache() + * @model unique="false" + * @generated + */ + int getCache(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getCache <em>Cache</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Cache</em>' attribute. + * @see #getCache() + * @generated + */ + void setCache(int value); + + /** + * Returns the value of the '<em><b>Mapped file</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Mapped file</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Mapped file</em>' attribute. + * @see #setMapped_file(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerMemoryStats_Mapped_file() + * @model unique="false" + * @generated + */ + int getMapped_file(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getMapped_file <em>Mapped file</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Mapped file</em>' attribute. + * @see #getMapped_file() + * @generated + */ + void setMapped_file(int value); + + /** + * Returns the value of the '<em><b>Total inactive file</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Total inactive file</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Total inactive file</em>' attribute. + * @see #setTotal_inactive_file(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerMemoryStats_Total_inactive_file() + * @model unique="false" + * @generated + */ + int getTotal_inactive_file(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_inactive_file <em>Total inactive file</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Total inactive file</em>' attribute. + * @see #getTotal_inactive_file() + * @generated + */ + void setTotal_inactive_file(int value); + + /** + * Returns the value of the '<em><b>Pgpgout</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Pgpgout</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Pgpgout</em>' attribute. + * @see #setPgpgout(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerMemoryStats_Pgpgout() + * @model unique="false" + * @generated + */ + int getPgpgout(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getPgpgout <em>Pgpgout</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Pgpgout</em>' attribute. + * @see #getPgpgout() + * @generated + */ + void setPgpgout(int value); + + /** + * Returns the value of the '<em><b>Rss</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Rss</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Rss</em>' attribute. + * @see #setRss(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerMemoryStats_Rss() + * @model unique="false" + * @generated + */ + int getRss(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getRss <em>Rss</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Rss</em>' attribute. + * @see #getRss() + * @generated + */ + void setRss(int value); + + /** + * Returns the value of the '<em><b>Total mapped file</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Total mapped file</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Total mapped file</em>' attribute. + * @see #setTotal_mapped_file(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerMemoryStats_Total_mapped_file() + * @model unique="false" + * @generated + */ + int getTotal_mapped_file(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_mapped_file <em>Total mapped file</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Total mapped file</em>' attribute. + * @see #getTotal_mapped_file() + * @generated + */ + void setTotal_mapped_file(int value); + + /** + * Returns the value of the '<em><b>Writeback</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Writeback</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Writeback</em>' attribute. + * @see #setWriteback(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerMemoryStats_Writeback() + * @model unique="false" + * @generated + */ + int getWriteback(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getWriteback <em>Writeback</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Writeback</em>' attribute. + * @see #getWriteback() + * @generated + */ + void setWriteback(int value); + + /** + * Returns the value of the '<em><b>Unevictable</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Unevictable</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Unevictable</em>' attribute. + * @see #setUnevictable(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerMemoryStats_Unevictable() + * @model unique="false" + * @generated + */ + int getUnevictable(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getUnevictable <em>Unevictable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Unevictable</em>' attribute. + * @see #getUnevictable() + * @generated + */ + void setUnevictable(int value); + + /** + * Returns the value of the '<em><b>Pgpgin</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Pgpgin</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Pgpgin</em>' attribute. + * @see #setPgpgin(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerMemoryStats_Pgpgin() + * @model unique="false" + * @generated + */ + int getPgpgin(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getPgpgin <em>Pgpgin</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Pgpgin</em>' attribute. + * @see #getPgpgin() + * @generated + */ + void setPgpgin(int value); + + /** + * Returns the value of the '<em><b>Total unevictable</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Total unevictable</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Total unevictable</em>' attribute. + * @see #setTotal_unevictable(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerMemoryStats_Total_unevictable() + * @model unique="false" + * @generated + */ + int getTotal_unevictable(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_unevictable <em>Total unevictable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Total unevictable</em>' attribute. + * @see #getTotal_unevictable() + * @generated + */ + void setTotal_unevictable(int value); + + /** + * Returns the value of the '<em><b>Pgmajfault</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Pgmajfault</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Pgmajfault</em>' attribute. + * @see #setPgmajfault(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerMemoryStats_Pgmajfault() + * @model unique="false" + * @generated + */ + int getPgmajfault(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getPgmajfault <em>Pgmajfault</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Pgmajfault</em>' attribute. + * @see #getPgmajfault() + * @generated + */ + void setPgmajfault(int value); + + /** + * Returns the value of the '<em><b>Total rss</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Total rss</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Total rss</em>' attribute. + * @see #setTotal_rss(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerMemoryStats_Total_rss() + * @model unique="false" + * @generated + */ + int getTotal_rss(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_rss <em>Total rss</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Total rss</em>' attribute. + * @see #getTotal_rss() + * @generated + */ + void setTotal_rss(int value); + + /** + * Returns the value of the '<em><b>Total rss huge</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Total rss huge</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Total rss huge</em>' attribute. + * @see #setTotal_rss_huge(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerMemoryStats_Total_rss_huge() + * @model unique="false" + * @generated + */ + int getTotal_rss_huge(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_rss_huge <em>Total rss huge</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Total rss huge</em>' attribute. + * @see #getTotal_rss_huge() + * @generated + */ + void setTotal_rss_huge(int value); + + /** + * Returns the value of the '<em><b>Total writeback</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Total writeback</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Total writeback</em>' attribute. + * @see #setTotal_writeback(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerMemoryStats_Total_writeback() + * @model unique="false" + * @generated + */ + int getTotal_writeback(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_writeback <em>Total writeback</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Total writeback</em>' attribute. + * @see #getTotal_writeback() + * @generated + */ + void setTotal_writeback(int value); + + /** + * Returns the value of the '<em><b>Total inactive anon</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Total inactive anon</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Total inactive anon</em>' attribute. + * @see #setTotal_inactive_anon(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerMemoryStats_Total_inactive_anon() + * @model unique="false" + * @generated + */ + int getTotal_inactive_anon(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_inactive_anon <em>Total inactive anon</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Total inactive anon</em>' attribute. + * @see #getTotal_inactive_anon() + * @generated + */ + void setTotal_inactive_anon(int value); + + /** + * Returns the value of the '<em><b>Rss huge</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Rss huge</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Rss huge</em>' attribute. + * @see #setRss_huge(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerMemoryStats_Rss_huge() + * @model unique="false" + * @generated + */ + int getRss_huge(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getRss_huge <em>Rss huge</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Rss huge</em>' attribute. + * @see #getRss_huge() + * @generated + */ + void setRss_huge(int value); + + /** + * Returns the value of the '<em><b>Hierarchical memory limit</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Hierarchical memory limit</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Hierarchical memory limit</em>' attribute. + * @see #setHierarchical_memory_limit(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerMemoryStats_Hierarchical_memory_limit() + * @model unique="false" + * @generated + */ + int getHierarchical_memory_limit(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getHierarchical_memory_limit <em>Hierarchical memory limit</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Hierarchical memory limit</em>' attribute. + * @see #getHierarchical_memory_limit() + * @generated + */ + void setHierarchical_memory_limit(int value); + + /** + * Returns the value of the '<em><b>Total pgfault</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Total pgfault</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Total pgfault</em>' attribute. + * @see #setTotal_pgfault(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerMemoryStats_Total_pgfault() + * @model unique="false" + * @generated + */ + int getTotal_pgfault(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_pgfault <em>Total pgfault</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Total pgfault</em>' attribute. + * @see #getTotal_pgfault() + * @generated + */ + void setTotal_pgfault(int value); + + /** + * Returns the value of the '<em><b>Total active file</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Total active file</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Total active file</em>' attribute. + * @see #setTotal_active_file(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerMemoryStats_Total_active_file() + * @model unique="false" + * @generated + */ + int getTotal_active_file(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_active_file <em>Total active file</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Total active file</em>' attribute. + * @see #getTotal_active_file() + * @generated + */ + void setTotal_active_file(int value); + + /** + * Returns the value of the '<em><b>Active anon</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Active anon</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Active anon</em>' attribute. + * @see #setActive_anon(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerMemoryStats_Active_anon() + * @model unique="false" + * @generated + */ + int getActive_anon(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getActive_anon <em>Active anon</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Active anon</em>' attribute. + * @see #getActive_anon() + * @generated + */ + void setActive_anon(int value); + + /** + * Returns the value of the '<em><b>Total active anon</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Total active anon</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Total active anon</em>' attribute. + * @see #setTotal_active_anon(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerMemoryStats_Total_active_anon() + * @model unique="false" + * @generated + */ + int getTotal_active_anon(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_active_anon <em>Total active anon</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Total active anon</em>' attribute. + * @see #getTotal_active_anon() + * @generated + */ + void setTotal_active_anon(int value); + + /** + * Returns the value of the '<em><b>Total pgpgout</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Total pgpgout</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Total pgpgout</em>' attribute. + * @see #setTotal_pgpgout(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerMemoryStats_Total_pgpgout() + * @model unique="false" + * @generated + */ + int getTotal_pgpgout(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_pgpgout <em>Total pgpgout</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Total pgpgout</em>' attribute. + * @see #getTotal_pgpgout() + * @generated + */ + void setTotal_pgpgout(int value); + + /** + * Returns the value of the '<em><b>Total cache</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Total cache</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Total cache</em>' attribute. + * @see #setTotal_cache(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerMemoryStats_Total_cache() + * @model unique="false" + * @generated + */ + int getTotal_cache(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_cache <em>Total cache</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Total cache</em>' attribute. + * @see #getTotal_cache() + * @generated + */ + void setTotal_cache(int value); + + /** + * Returns the value of the '<em><b>Inactive anon</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Inactive anon</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Inactive anon</em>' attribute. + * @see #setInactive_anon(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerMemoryStats_Inactive_anon() + * @model unique="false" + * @generated + */ + int getInactive_anon(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getInactive_anon <em>Inactive anon</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Inactive anon</em>' attribute. + * @see #getInactive_anon() + * @generated + */ + void setInactive_anon(int value); + + /** + * Returns the value of the '<em><b>Active file</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Active file</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Active file</em>' attribute. + * @see #setActive_file(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerMemoryStats_Active_file() + * @model unique="false" + * @generated + */ + int getActive_file(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getActive_file <em>Active file</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Active file</em>' attribute. + * @see #getActive_file() + * @generated + */ + void setActive_file(int value); + + /** + * Returns the value of the '<em><b>Pgfault</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Pgfault</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Pgfault</em>' attribute. + * @see #setPgfault(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerMemoryStats_Pgfault() + * @model unique="false" + * @generated + */ + int getPgfault(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getPgfault <em>Pgfault</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Pgfault</em>' attribute. + * @see #getPgfault() + * @generated + */ + void setPgfault(int value); + + /** + * Returns the value of the '<em><b>Inactive file</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Inactive file</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Inactive file</em>' attribute. + * @see #setInactive_file(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerMemoryStats_Inactive_file() + * @model unique="false" + * @generated + */ + int getInactive_file(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getInactive_file <em>Inactive file</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Inactive file</em>' attribute. + * @see #getInactive_file() + * @generated + */ + void setInactive_file(int value); + + /** + * Returns the value of the '<em><b>Total pgpgin</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Total pgpgin</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Total pgpgin</em>' attribute. + * @see #setTotal_pgpgin(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerMemoryStats_Total_pgpgin() + * @model unique="false" + * @generated + */ + int getTotal_pgpgin(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_pgpgin <em>Total pgpgin</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Total pgpgin</em>' attribute. + * @see #getTotal_pgpgin() + * @generated + */ + void setTotal_pgpgin(int value); +} // ContainerMemoryStats diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/ContainerMemoryUsage.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/ContainerMemoryUsage.java new file mode 100644 index 0000000..7687a95 --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/ContainerMemoryUsage.java @@ -0,0 +1,179 @@ + +/*- + * ============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.ncomp.docker; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Container Memory Usage</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.ContainerMemoryUsage#getMemstats <em>Memstats</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerMemoryUsage#getMax_usage <em>Max usage</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerMemoryUsage#getUsage <em>Usage</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerMemoryUsage#getFailcnt <em>Failcnt</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerMemoryUsage#getLimit <em>Limit</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerMemoryUsage() + * @model + * @generated + */ +public interface ContainerMemoryUsage extends EObject { + /** + * Returns the value of the '<em><b>Memstats</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Memstats</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Memstats</em>' containment reference. + * @see #setMemstats(ContainerMemoryStats) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerMemoryUsage_Memstats() + * @model containment="true" + * @generated + */ + ContainerMemoryStats getMemstats(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerMemoryUsage#getMemstats <em>Memstats</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Memstats</em>' containment reference. + * @see #getMemstats() + * @generated + */ + void setMemstats(ContainerMemoryStats value); + + /** + * Returns the value of the '<em><b>Max usage</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Max usage</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Max usage</em>' attribute. + * @see #setMax_usage(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerMemoryUsage_Max_usage() + * @model unique="false" + * @generated + */ + int getMax_usage(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerMemoryUsage#getMax_usage <em>Max usage</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Max usage</em>' attribute. + * @see #getMax_usage() + * @generated + */ + void setMax_usage(int value); + + /** + * Returns the value of the '<em><b>Usage</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Usage</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Usage</em>' attribute. + * @see #setUsage(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerMemoryUsage_Usage() + * @model unique="false" + * @generated + */ + int getUsage(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerMemoryUsage#getUsage <em>Usage</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Usage</em>' attribute. + * @see #getUsage() + * @generated + */ + void setUsage(int value); + + /** + * Returns the value of the '<em><b>Failcnt</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Failcnt</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Failcnt</em>' attribute. + * @see #setFailcnt(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerMemoryUsage_Failcnt() + * @model unique="false" + * @generated + */ + int getFailcnt(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerMemoryUsage#getFailcnt <em>Failcnt</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Failcnt</em>' attribute. + * @see #getFailcnt() + * @generated + */ + void setFailcnt(int value); + + /** + * Returns the value of the '<em><b>Limit</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Limit</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Limit</em>' attribute. + * @see #setLimit(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerMemoryUsage_Limit() + * @model unique="false" + * @generated + */ + int getLimit(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerMemoryUsage#getLimit <em>Limit</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Limit</em>' attribute. + * @see #getLimit() + * @generated + */ + void setLimit(int value); + +} // ContainerMemoryUsage diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/ContainerNetworkStats.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/ContainerNetworkStats.java new file mode 100644 index 0000000..175eebd --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/ContainerNetworkStats.java @@ -0,0 +1,312 @@ + +/*- + * ============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.ncomp.docker; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Container Network Stats</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * "networks": { + * "eth0": { + * "rx_bytes": 5338, + * "rx_dropped": 0, + * "rx_errors": 0, + * "rx_packets": 36, + * "tx_bytes": 648, + * "tx_dropped": 0, + * "tx_errors": 0, + * "tx_packets": 8 + * }, + * "eth5": { + * "rx_bytes": 4641, + * "rx_dropped": 0, + * "rx_errors": 0, + * "rx_packets": 26, + * "tx_bytes": 690, + * "tx_dropped": 0, + * "tx_errors": 0, + * "tx_packets": 9 + * } + * }, + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.ContainerNetworkStats#getIntf <em>Intf</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerNetworkStats#getRx_bytes <em>Rx bytes</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerNetworkStats#getRx_dropped <em>Rx dropped</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerNetworkStats#getRx_errors <em>Rx errors</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerNetworkStats#getRx_packets <em>Rx packets</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerNetworkStats#getTx_bytes <em>Tx bytes</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerNetworkStats#getTx_dropped <em>Tx dropped</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerNetworkStats#getTx_errors <em>Tx errors</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerNetworkStats#getTx_packets <em>Tx packets</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerNetworkStats() + * @model + * @generated + */ +public interface ContainerNetworkStats extends EObject { + /** + * Returns the value of the '<em><b>Intf</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Intf</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Intf</em>' attribute. + * @see #setIntf(String) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerNetworkStats_Intf() + * @model unique="false" + * @generated + */ + String getIntf(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerNetworkStats#getIntf <em>Intf</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Intf</em>' attribute. + * @see #getIntf() + * @generated + */ + void setIntf(String value); + + /** + * Returns the value of the '<em><b>Rx bytes</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Rx bytes</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Rx bytes</em>' attribute. + * @see #setRx_bytes(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerNetworkStats_Rx_bytes() + * @model unique="false" + * @generated + */ + int getRx_bytes(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerNetworkStats#getRx_bytes <em>Rx bytes</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Rx bytes</em>' attribute. + * @see #getRx_bytes() + * @generated + */ + void setRx_bytes(int value); + + /** + * Returns the value of the '<em><b>Rx dropped</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Rx dropped</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Rx dropped</em>' attribute. + * @see #setRx_dropped(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerNetworkStats_Rx_dropped() + * @model unique="false" + * @generated + */ + int getRx_dropped(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerNetworkStats#getRx_dropped <em>Rx dropped</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Rx dropped</em>' attribute. + * @see #getRx_dropped() + * @generated + */ + void setRx_dropped(int value); + + /** + * Returns the value of the '<em><b>Rx errors</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Rx errors</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Rx errors</em>' attribute. + * @see #setRx_errors(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerNetworkStats_Rx_errors() + * @model unique="false" + * @generated + */ + int getRx_errors(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerNetworkStats#getRx_errors <em>Rx errors</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Rx errors</em>' attribute. + * @see #getRx_errors() + * @generated + */ + void setRx_errors(int value); + + /** + * Returns the value of the '<em><b>Rx packets</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Rx packets</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Rx packets</em>' attribute. + * @see #setRx_packets(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerNetworkStats_Rx_packets() + * @model unique="false" + * @generated + */ + int getRx_packets(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerNetworkStats#getRx_packets <em>Rx packets</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Rx packets</em>' attribute. + * @see #getRx_packets() + * @generated + */ + void setRx_packets(int value); + + /** + * Returns the value of the '<em><b>Tx bytes</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Tx bytes</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Tx bytes</em>' attribute. + * @see #setTx_bytes(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerNetworkStats_Tx_bytes() + * @model unique="false" + * @generated + */ + int getTx_bytes(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerNetworkStats#getTx_bytes <em>Tx bytes</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Tx bytes</em>' attribute. + * @see #getTx_bytes() + * @generated + */ + void setTx_bytes(int value); + + /** + * Returns the value of the '<em><b>Tx dropped</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Tx dropped</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Tx dropped</em>' attribute. + * @see #setTx_dropped(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerNetworkStats_Tx_dropped() + * @model unique="false" + * @generated + */ + int getTx_dropped(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerNetworkStats#getTx_dropped <em>Tx dropped</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Tx dropped</em>' attribute. + * @see #getTx_dropped() + * @generated + */ + void setTx_dropped(int value); + + /** + * Returns the value of the '<em><b>Tx errors</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Tx errors</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Tx errors</em>' attribute. + * @see #setTx_errors(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerNetworkStats_Tx_errors() + * @model unique="false" + * @generated + */ + int getTx_errors(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerNetworkStats#getTx_errors <em>Tx errors</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Tx errors</em>' attribute. + * @see #getTx_errors() + * @generated + */ + void setTx_errors(int value); + + /** + * Returns the value of the '<em><b>Tx packets</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Tx packets</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Tx packets</em>' attribute. + * @see #setTx_packets(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerNetworkStats_Tx_packets() + * @model unique="false" + * @generated + */ + int getTx_packets(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerNetworkStats#getTx_packets <em>Tx packets</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Tx packets</em>' attribute. + * @see #getTx_packets() + * @generated + */ + void setTx_packets(int value); + +} // ContainerNetworkStats diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/ContainerNetworks.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/ContainerNetworks.java new file mode 100644 index 0000000..2f15ef6 --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/ContainerNetworks.java @@ -0,0 +1,114 @@ + +/*- + * ============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.ncomp.docker; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Container Networks</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * "networks": { + * "eth0": { + * "rx_bytes": 5338, + * "rx_dropped": 0, + * "rx_errors": 0, + * "rx_packets": 36, + * "tx_bytes": 648, + * "tx_dropped": 0, + * "tx_errors": 0, + * "tx_packets": 8 + * }, + * "eth5": { + * "rx_bytes": 4641, + * "rx_dropped": 0, + * "rx_errors": 0, + * "rx_packets": 26, + * "tx_bytes": 690, + * "tx_dropped": 0, + * "tx_errors": 0, + * "tx_packets": 9 + * } + * }, + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.ContainerNetworks#getNetwork <em>Network</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerNetworks#getNetworkStats <em>Network Stats</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerNetworks() + * @model + * @generated + */ +public interface ContainerNetworks extends EObject { + + /** + * Returns the value of the '<em><b>Network</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Network</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Network</em>' attribute. + * @see #setNetwork(String) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerNetworks_Network() + * @model unique="false" + * @generated + */ + String getNetwork(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerNetworks#getNetwork <em>Network</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Network</em>' attribute. + * @see #getNetwork() + * @generated + */ + void setNetwork(String value); + + /** + * Returns the value of the '<em><b>Network Stats</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.docker.ContainerNetworkStats}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Network Stats</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>Network Stats</em>' containment reference list. + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerNetworks_NetworkStats() + * @model containment="true" + * @generated + */ + EList<ContainerNetworkStats> getNetworkStats(); +} // ContainerNetworks diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/ContainerOptions.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/ContainerOptions.java new file mode 100644 index 0000000..53b19d3 --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/ContainerOptions.java @@ -0,0 +1,221 @@ + +/*- + * ============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.ncomp.docker; + +import org.openecomp.ncomp.core.NamedEntity; +import org.eclipse.emf.common.util.EList; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Container Options</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.ContainerOptions#getImageNm <em>Image Nm</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerOptions#getEnv <em>Env</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerOptions#getVolumes <em>Volumes</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerOptions#getLinks <em>Links</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerOptions#isSetContainerName <em>Set Container Name</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerOptions#isPublishAllPorts <em>Publish All Ports</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerOptions#getPortBindings <em>Port Bindings</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerOptions#getAutoRestart <em>Auto Restart</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerOptions() + * @model + * @generated + */ +public interface ContainerOptions extends NamedEntity { + /** + * Returns the value of the '<em><b>Image Nm</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Image Nm</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Image Nm</em>' attribute. + * @see #setImageNm(String) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerOptions_ImageNm() + * @model unique="false" + * @generated + */ + String getImageNm(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerOptions#getImageNm <em>Image Nm</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Image Nm</em>' attribute. + * @see #getImageNm() + * @generated + */ + void setImageNm(String value); + + /** + * Returns the value of the '<em><b>Env</b></em>' attribute list. + * The list contents are of type {@link java.lang.String}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Env</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>Env</em>' attribute list. + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerOptions_Env() + * @model unique="false" + * @generated + */ + EList<String> getEnv(); + + /** + * Returns the value of the '<em><b>Volumes</b></em>' attribute list. + * The list contents are of type {@link java.lang.String}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Volumes</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>Volumes</em>' attribute list. + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerOptions_Volumes() + * @model unique="false" + * @generated + */ + EList<String> getVolumes(); + + /** + * Returns the value of the '<em><b>Links</b></em>' attribute list. + * The list contents are of type {@link java.lang.String}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Links</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>Links</em>' attribute list. + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerOptions_Links() + * @model unique="false" + * @generated + */ + EList<String> getLinks(); + + /** + * Returns the value of the '<em><b>Set Container Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Set Container 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>Set Container Name</em>' attribute. + * @see #setSetContainerName(boolean) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerOptions_SetContainerName() + * @model unique="false" + * @generated + */ + boolean isSetContainerName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerOptions#isSetContainerName <em>Set Container Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Set Container Name</em>' attribute. + * @see #isSetContainerName() + * @generated + */ + void setSetContainerName(boolean value); + + /** + * Returns the value of the '<em><b>Publish All Ports</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Publish All Ports</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Publish All Ports</em>' attribute. + * @see #setPublishAllPorts(boolean) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerOptions_PublishAllPorts() + * @model unique="false" + * @generated + */ + boolean isPublishAllPorts(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerOptions#isPublishAllPorts <em>Publish All Ports</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Publish All Ports</em>' attribute. + * @see #isPublishAllPorts() + * @generated + */ + void setPublishAllPorts(boolean value); + + /** + * Returns the value of the '<em><b>Port Bindings</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.docker.ContainerPortBindings}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Port Bindings</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>Port Bindings</em>' containment reference list. + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerOptions_PortBindings() + * @model containment="true" + * @generated + */ + EList<ContainerPortBindings> getPortBindings(); + + /** + * Returns the value of the '<em><b>Auto Restart</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Auto Restart</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Auto Restart</em>' containment reference. + * @see #setAutoRestart(ContainerRestartPolicy) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerOptions_AutoRestart() + * @model containment="true" + * @generated + */ + ContainerRestartPolicy getAutoRestart(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerOptions#getAutoRestart <em>Auto Restart</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Auto Restart</em>' containment reference. + * @see #getAutoRestart() + * @generated + */ + void setAutoRestart(ContainerRestartPolicy value); + +} // ContainerOptions diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/ContainerPortBindings.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/ContainerPortBindings.java new file mode 100644 index 0000000..fdc8e1b --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/ContainerPortBindings.java @@ -0,0 +1,125 @@ + +/*- + * ============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.ncomp.docker; + +import org.openecomp.ncomp.core.NamedEntity; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Container Port Bindings</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.ContainerPortBindings#getContainerPort <em>Container Port</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerPortBindings#getProtocol <em>Protocol</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerPortBindings#getVmPort <em>Vm Port</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerPortBindings() + * @model + * @generated + */ +public interface ContainerPortBindings extends NamedEntity { + /** + * Returns the value of the '<em><b>Container Port</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Container Port</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Container Port</em>' attribute. + * @see #setContainerPort(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerPortBindings_ContainerPort() + * @model unique="false" + * @generated + */ + int getContainerPort(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerPortBindings#getContainerPort <em>Container Port</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Container Port</em>' attribute. + * @see #getContainerPort() + * @generated + */ + void setContainerPort(int value); + + /** + * Returns the value of the '<em><b>Protocol</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Protocol</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Protocol</em>' attribute. + * @see #setProtocol(String) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerPortBindings_Protocol() + * @model unique="false" + * @generated + */ + String getProtocol(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerPortBindings#getProtocol <em>Protocol</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Protocol</em>' attribute. + * @see #getProtocol() + * @generated + */ + void setProtocol(String value); + + /** + * Returns the value of the '<em><b>Vm Port</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Vm Port</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 Port</em>' attribute. + * @see #setVmPort(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerPortBindings_VmPort() + * @model unique="false" + * @generated + */ + int getVmPort(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerPortBindings#getVmPort <em>Vm Port</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Vm Port</em>' attribute. + * @see #getVmPort() + * @generated + */ + void setVmPort(int value); + +} // ContainerPortBindings diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/ContainerRestartPolicy.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/ContainerRestartPolicy.java new file mode 100644 index 0000000..8f53d04 --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/ContainerRestartPolicy.java @@ -0,0 +1,98 @@ + +/*- + * ============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.ncomp.docker; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Container Restart Policy</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.ContainerRestartPolicy#getNm <em>Nm</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.ContainerRestartPolicy#getMaxRetryCnt <em>Max Retry Cnt</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerRestartPolicy() + * @model + * @generated + */ +public interface ContainerRestartPolicy extends EObject { + /** + * Returns the value of the '<em><b>Nm</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Nm</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Nm</em>' attribute. + * @see #setNm(String) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerRestartPolicy_Nm() + * @model unique="false" + * @generated + */ + String getNm(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerRestartPolicy#getNm <em>Nm</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Nm</em>' attribute. + * @see #getNm() + * @generated + */ + void setNm(String value); + + /** + * Returns the value of the '<em><b>Max Retry Cnt</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Max Retry Cnt</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Max Retry Cnt</em>' attribute. + * @see #setMaxRetryCnt(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerRestartPolicy_MaxRetryCnt() + * @model unique="false" + * @generated + */ + int getMaxRetryCnt(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.ContainerRestartPolicy#getMaxRetryCnt <em>Max Retry Cnt</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Max Retry Cnt</em>' attribute. + * @see #getMaxRetryCnt() + * @generated + */ + void setMaxRetryCnt(int value); + +} // ContainerRestartPolicy diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/ContainerThrottlingData.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/ContainerThrottlingData.java new file mode 100644 index 0000000..3a39e8b --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/ContainerThrottlingData.java @@ -0,0 +1,39 @@ + +/*- + * ============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.ncomp.docker; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Container Throttling Data</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.openecomp.ncomp.docker.DockerPackage#getContainerThrottlingData() + * @model + * @generated + */ +public interface ContainerThrottlingData extends EObject { +} // ContainerThrottlingData diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerActor.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerActor.java new file mode 100644 index 0000000..9fa100d --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerActor.java @@ -0,0 +1,98 @@ + +/*- + * ============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.ncomp.docker; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Actor</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.DockerActor#getId <em>Id</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerActor#getAttributes <em>Attributes</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerActor() + * @model + * @generated + */ +public interface DockerActor extends EObject { + /** + * Returns the value of the '<em><b>Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>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>Id</em>' attribute. + * @see #setId(String) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerActor_Id() + * @model unique="false" + * @generated + */ + String getId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerActor#getId <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Id</em>' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the '<em><b>Attributes</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Attributes</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Attributes</em>' containment reference. + * @see #setAttributes(DockerActorAttributes) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerActor_Attributes() + * @model containment="true" + * @generated + */ + DockerActorAttributes getAttributes(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerActor#getAttributes <em>Attributes</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Attributes</em>' containment reference. + * @see #getAttributes() + * @generated + */ + void setAttributes(DockerActorAttributes value); + +} // DockerActor diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerActorAttributes.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerActorAttributes.java new file mode 100644 index 0000000..940940e --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerActorAttributes.java @@ -0,0 +1,71 @@ + +/*- + * ============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.ncomp.docker; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Actor Attributes</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.DockerActorAttributes#getName <em>Name</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerActorAttributes() + * @model + * @generated + */ +public interface DockerActorAttributes extends EObject { + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>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>Name</em>' attribute. + * @see #setName(String) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerActorAttributes_Name() + * @model unique="false" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerActorAttributes#getName <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + +} // DockerActorAttributes diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerAdaptor.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerAdaptor.java new file mode 100644 index 0000000..ade8e11 --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerAdaptor.java @@ -0,0 +1,62 @@ + +/*- + * ============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.ncomp.docker; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Adaptor</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.DockerAdaptor#getDockerHosts <em>Docker Hosts</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerAdaptor() + * @model + * @generated + */ +public interface DockerAdaptor extends EObject { + + /** + * Returns the value of the '<em><b>Docker Hosts</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.docker.DockerHost}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Docker Hosts</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>Docker Hosts</em>' containment reference list. + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerAdaptor_DockerHosts() + * @model containment="true" + * @generated + */ + EList<DockerHost> getDockerHosts(); +} // DockerAdaptor diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerContainer.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerContainer.java new file mode 100644 index 0000000..4b39dab --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerContainer.java @@ -0,0 +1,354 @@ + +/*- + * ============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.ncomp.docker; + +import org.openecomp.ncomp.core.NamedEntity; + +import org.eclipse.emf.common.util.EList; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Container</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.DockerContainer#getId <em>Id</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerContainer#getNames <em>Names</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerContainer#getImage <em>Image</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerContainer#getImageID <em>Image ID</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerContainer#getCommand <em>Command</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerContainer#getDockerCreated <em>Docker Created</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerContainer#getPorts <em>Ports</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerContainer#getLabels <em>Labels</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerContainer#getStatus <em>Status</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerContainer#getHostConfig <em>Host Config</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerContainer#getProcesses <em>Processes</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerContainer#getMounts <em>Mounts</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerContainer#getStats <em>Stats</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerContainer#getEvents <em>Events</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerContainer() + * @model + * @generated + */ +public interface DockerContainer extends NamedEntity { + /** + * Returns the value of the '<em><b>Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>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>Id</em>' attribute. + * @see #setId(String) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerContainer_Id() + * @model unique="false" + * @generated + */ + String getId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerContainer#getId <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Id</em>' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the '<em><b>Names</b></em>' attribute list. + * The list contents are of type {@link java.lang.String}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Names</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>Names</em>' attribute list. + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerContainer_Names() + * @model unique="false" + * @generated + */ + EList<String> getNames(); + + /** + * Returns the value of the '<em><b>Image</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Image</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Image</em>' attribute. + * @see #setImage(String) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerContainer_Image() + * @model unique="false" + * @generated + */ + String getImage(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerContainer#getImage <em>Image</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Image</em>' attribute. + * @see #getImage() + * @generated + */ + void setImage(String value); + + /** + * Returns the value of the '<em><b>Image ID</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Image 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>Image ID</em>' attribute. + * @see #setImageID(String) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerContainer_ImageID() + * @model unique="false" + * @generated + */ + String getImageID(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerContainer#getImageID <em>Image ID</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Image ID</em>' attribute. + * @see #getImageID() + * @generated + */ + void setImageID(String value); + + /** + * 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.ncomp.docker.DockerPackage#getDockerContainer_Command() + * @model unique="false" + * @generated + */ + String getCommand(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerContainer#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); + + /** + * Returns the value of the '<em><b>Docker Created</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Docker Created</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Docker Created</em>' attribute. + * @see #setDockerCreated(String) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerContainer_DockerCreated() + * @model unique="false" + * @generated + */ + String getDockerCreated(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerContainer#getDockerCreated <em>Docker Created</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Docker Created</em>' attribute. + * @see #getDockerCreated() + * @generated + */ + void setDockerCreated(String value); + + /** + * Returns the value of the '<em><b>Ports</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.docker.DockerPort}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Ports</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>Ports</em>' containment reference list. + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerContainer_Ports() + * @model containment="true" + * @generated + */ + EList<DockerPort> getPorts(); + + /** + * Returns the value of the '<em><b>Labels</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.docker.DockerKeyPair}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Labels</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>Labels</em>' containment reference list. + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerContainer_Labels() + * @model containment="true" + * @generated + */ + EList<DockerKeyPair> getLabels(); + + /** + * Returns the value of the '<em><b>Status</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Status</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Status</em>' attribute. + * @see #setStatus(String) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerContainer_Status() + * @model unique="false" + * @generated + */ + String getStatus(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerContainer#getStatus <em>Status</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Status</em>' attribute. + * @see #getStatus() + * @generated + */ + void setStatus(String value); + + /** + * Returns the value of the '<em><b>Host Config</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.docker.DockerKeyPair}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Host Config</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>Host Config</em>' containment reference list. + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerContainer_HostConfig() + * @model containment="true" + * @generated + */ + EList<DockerKeyPair> getHostConfig(); + + /** + * Returns the value of the '<em><b>Processes</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.docker.DockerProcess}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Processes</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>Processes</em>' containment reference list. + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerContainer_Processes() + * @model containment="true" + * @generated + */ + EList<DockerProcess> getProcesses(); + + /** + * Returns the value of the '<em><b>Mounts</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.docker.DockerMount}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Mounts</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>Mounts</em>' containment reference list. + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerContainer_Mounts() + * @model containment="true" + * @generated + */ + EList<DockerMount> getMounts(); + + /** + * Returns the value of the '<em><b>Stats</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Stats</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Stats</em>' containment reference. + * @see #setStats(DockerContainerStats) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerContainer_Stats() + * @model containment="true" + * @generated + */ + DockerContainerStats getStats(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerContainer#getStats <em>Stats</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Stats</em>' containment reference. + * @see #getStats() + * @generated + */ + void setStats(DockerContainerStats value); + + /** + * Returns the value of the '<em><b>Events</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.docker.DockerEvents}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Events</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>Events</em>' containment reference list. + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerContainer_Events() + * @model containment="true" + * @generated + */ + EList<DockerEvents> getEvents(); + +} // DockerContainer diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerContainerPtbl.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerContainerPtbl.java new file mode 100644 index 0000000..50811e7 --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerContainerPtbl.java @@ -0,0 +1,107 @@ + +/*- + * ============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.ncomp.docker; + +import org.openecomp.ncomp.core.NamedEntity; +import org.eclipse.emf.common.util.EList; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Container Ptbl</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * docker container process table json + * + * { + * "Titles" : [ + * "USER","PID","%CPU","%MEM","VSZ","RSS","TTY","STAT","START","TIME","COMMAND" + * ] + * "Processes" : [ + * [ + * "root","13642","0.0","0.1","18172","3184","pts/0","Ss","17:03","0:00","/bin/bash" + * ], + * [ + * "root","13895","0.0","0.0","4348","692","pts/0","S+","17:15","0:00","sleep 10" + * ] + * ], + * } + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.DockerContainerPtbl#getTitles <em>Titles</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerContainerPtbl#getProcesses <em>Processes</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerContainerPtbl() + * @model + * @generated + */ +public interface DockerContainerPtbl extends NamedEntity { + /** + * Returns the value of the '<em><b>Titles</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Titles</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>Titles</em>' containment reference. + * @see #setTitles(DockerContainerPtblTitles) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerContainerPtbl_Titles() + * @model containment="true" + * @generated + */ + DockerContainerPtblTitles getTitles(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerContainerPtbl#getTitles <em>Titles</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Titles</em>' containment reference. + * @see #getTitles() + * @generated + */ + void setTitles(DockerContainerPtblTitles value); + + /** + * Returns the value of the '<em><b>Processes</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.docker.DockerContainerPtblProcesses}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Processes</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>Processes</em>' containment reference list. + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerContainerPtbl_Processes() + * @model containment="true" + * @generated + */ + EList<DockerContainerPtblProcesses> getProcesses(); + +} // DockerContainerPtbl diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerContainerPtblProcesses.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerContainerPtblProcesses.java new file mode 100644 index 0000000..b08e9d2 --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerContainerPtblProcesses.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.ncomp.docker; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Container Ptbl Processes</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.DockerContainerPtblProcesses#getProcs <em>Procs</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerContainerPtblProcesses() + * @model + * @generated + */ +public interface DockerContainerPtblProcesses extends EObject { + /** + * Returns the value of the '<em><b>Procs</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.docker.DockerProcess}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Procs</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>Procs</em>' containment reference list. + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerContainerPtblProcesses_Procs() + * @model containment="true" + * @generated + */ + EList<DockerProcess> getProcs(); + +} // DockerContainerPtblProcesses diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerContainerPtblTitles.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerContainerPtblTitles.java new file mode 100644 index 0000000..3c961b7 --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerContainerPtblTitles.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.ncomp.docker; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Container Ptbl Titles</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.DockerContainerPtblTitles#getTitles <em>Titles</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerContainerPtblTitles() + * @model + * @generated + */ +public interface DockerContainerPtblTitles extends EObject { + /** + * Returns the value of the '<em><b>Titles</b></em>' attribute list. + * The list contents are of type {@link java.lang.String}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Titles</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>Titles</em>' attribute list. + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerContainerPtblTitles_Titles() + * @model unique="false" + * @generated + */ + EList<String> getTitles(); + +} // DockerContainerPtblTitles diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerContainerStats.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerContainerStats.java new file mode 100644 index 0000000..8b29e89 --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerContainerStats.java @@ -0,0 +1,227 @@ + +/*- + * ============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.ncomp.docker; + +import org.openecomp.ncomp.core.NamedEntity; +import java.util.Date; +import org.eclipse.emf.common.util.EList; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Container Stats</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * Container stats - JSON + * + * { + * "read" : "2015-01-08T22:57:31.547920715Z", + * "networks": { + * "eth0": { + * "rx_bytes": 5338, + * "rx_dropped": 0, + * "rx_errors": 0, + * "rx_packets": 36, + * "tx_bytes": 648, + * "tx_dropped": 0, + * "tx_errors": 0, + * "tx_packets": 8 + * }, + * "eth5": { + * "rx_bytes": 4641, + * "rx_dropped": 0, + * "rx_errors": 0, + * "rx_packets": 26, + * "tx_bytes": 690, + * "tx_dropped": 0, + * "tx_errors": 0, + * "tx_packets": 9 + * } + * }, + * "memory_stats" : { + * "stats" : { + * "total_pgmajfault" : 0, + * "cache" : 0, + * "mapped_file" : 0, + * "total_inactive_file" : 0, + * "pgpgout" : 414, + * "rss" : 6537216, + * "total_mapped_file" : 0, + * "writeback" : 0, + * "unevictable" : 0, + * "pgpgin" : 477, + * "total_unevictable" : 0, + * "pgmajfault" : 0, + * "total_rss" : 6537216, + * "total_rss_huge" : 6291456, + * "total_writeback" : 0, + * "total_inactive_anon" : 0, + * "rss_huge" : 6291456, + * "hierarchical_memory_limit" : 67108864, + * "total_pgfault" : 964, + * "total_active_file" : 0, + * "active_anon" : 6537216, + * "total_active_anon" : 6537216, + * "total_pgpgout" : 414, + * "total_cache" : 0, + * "inactive_anon" : 0, + * "active_file" : 0, + * "pgfault" : 964, + * "inactive_file" : 0, + * "total_pgpgin" : 477 + * }, + * "max_usage" : 6651904, + * "usage" : 6537216, + * "failcnt" : 0, + * "limit" : 67108864 + * }, + * "blkio_stats" : {}, + * "cpu_stats" : { + * "cpu_usage" : { + * "percpu_usage" : [ + * 16970827, + * 1839451, + * 7107380, + * 10571290 + * ], + * "usage_in_usermode" : 10000000, + * "total_usage" : 36488948, + * "usage_in_kernelmode" : 20000000 + * }, + * "system_cpu_usage" : 20091722000000000, + * "throttling_data" : {} + * } + * } + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.DockerContainerStats#getNetworks <em>Networks</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerContainerStats#getMemory <em>Memory</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerContainerStats#getCpu <em>Cpu</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerContainerStats#getLastRead <em>Last Read</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerContainerStats() + * @model + * @generated + */ +public interface DockerContainerStats extends NamedEntity { + + /** + * Returns the value of the '<em><b>Networks</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.docker.ContainerNetworkStats}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Networks</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>Networks</em>' containment reference list. + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerContainerStats_Networks() + * @model containment="true" + * @generated + */ + EList<ContainerNetworkStats> getNetworks(); + + /** + * Returns the value of the '<em><b>Memory</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Memory</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>Memory</em>' containment reference. + * @see #setMemory(ContainerMemoryUsage) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerContainerStats_Memory() + * @model containment="true" + * @generated + */ + ContainerMemoryUsage getMemory(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerContainerStats#getMemory <em>Memory</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Memory</em>' containment reference. + * @see #getMemory() + * @generated + */ + void setMemory(ContainerMemoryUsage value); + + /** + * Returns the value of the '<em><b>Cpu</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Cpu</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>Cpu</em>' containment reference. + * @see #setCpu(ContainerCpuStats) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerContainerStats_Cpu() + * @model containment="true" + * @generated + */ + ContainerCpuStats getCpu(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerContainerStats#getCpu <em>Cpu</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Cpu</em>' containment reference. + * @see #getCpu() + * @generated + */ + void setCpu(ContainerCpuStats value); + + /** + * Returns the value of the '<em><b>Last Read</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Last Read</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Last Read</em>' attribute. + * @see #setLastRead(Date) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerContainerStats_LastRead() + * @model unique="false" + * @generated + */ + Date getLastRead(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerContainerStats#getLastRead <em>Last Read</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Last Read</em>' attribute. + * @see #getLastRead() + * @generated + */ + void setLastRead(Date value); +} // DockerContainerStats diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerCreateRequest.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerCreateRequest.java new file mode 100644 index 0000000..a52b691 --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerCreateRequest.java @@ -0,0 +1,90 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.docker; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Create Request</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.DockerCreateRequest#getHostname <em>Hostname</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerCreateRequest#getCmd <em>Cmd</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerCreateRequest() + * @model + * @generated + */ +public interface DockerCreateRequest extends EObject { + /** + * Returns the value of the '<em><b>Hostname</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Hostname</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Hostname</em>' attribute. + * @see #setHostname(String) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerCreateRequest_Hostname() + * @model unique="false" + * @generated + */ + String getHostname(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerCreateRequest#getHostname <em>Hostname</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Hostname</em>' attribute. + * @see #getHostname() + * @generated + */ + void setHostname(String value); + + /** + * Returns the value of the '<em><b>Cmd</b></em>' attribute list. + * The list contents are of type {@link java.lang.String}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Cmd</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>Cmd</em>' attribute list. + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerCreateRequest_Cmd() + * @model unique="false" + * @generated + */ + EList<String> getCmd(); + +} // DockerCreateRequest diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerEvent.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerEvent.java new file mode 100644 index 0000000..917ffeb --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerEvent.java @@ -0,0 +1,39 @@ + +/*- + * ============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.ncomp.docker; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Event</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerEvent() + * @model + * @generated + */ +public interface DockerEvent extends EObject { +} // DockerEvent diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerEvents.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerEvents.java new file mode 100644 index 0000000..ab810b1 --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerEvents.java @@ -0,0 +1,233 @@ + +/*- + * ============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.ncomp.docker; + +import org.openecomp.ncomp.core.NamedEntity; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Events</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.DockerEvents#getStatus <em>Status</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerEvents#getId <em>Id</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerEvents#getType <em>Type</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerEvents#getAction <em>Action</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerEvents#getActor <em>Actor</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerEvents#getTime <em>Time</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerEvents#getTimenano <em>Timenano</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerEvents() + * @model + * @generated + */ +public interface DockerEvents extends NamedEntity { + /** + * Returns the value of the '<em><b>Status</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Status</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Status</em>' attribute. + * @see #setStatus(String) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerEvents_Status() + * @model unique="false" + * @generated + */ + String getStatus(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerEvents#getStatus <em>Status</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Status</em>' attribute. + * @see #getStatus() + * @generated + */ + void setStatus(String value); + + /** + * Returns the value of the '<em><b>Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>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>Id</em>' attribute. + * @see #setId(String) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerEvents_Id() + * @model unique="false" + * @generated + */ + String getId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerEvents#getId <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Id</em>' attribute. + * @see #getId() + * @generated + */ + void setId(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.ncomp.docker.DockerPackage#getDockerEvents_Type() + * @model unique="false" + * @generated + */ + String getType(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerEvents#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>Action</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Action</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Action</em>' attribute. + * @see #setAction(String) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerEvents_Action() + * @model unique="false" + * @generated + */ + String getAction(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerEvents#getAction <em>Action</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Action</em>' attribute. + * @see #getAction() + * @generated + */ + void setAction(String value); + + /** + * Returns the value of the '<em><b>Actor</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Actor</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Actor</em>' containment reference. + * @see #setActor(DockerActor) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerEvents_Actor() + * @model containment="true" + * @generated + */ + DockerActor getActor(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerEvents#getActor <em>Actor</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Actor</em>' containment reference. + * @see #getActor() + * @generated + */ + void setActor(DockerActor value); + + /** + * Returns the value of the '<em><b>Time</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Time</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Time</em>' attribute. + * @see #setTime(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerEvents_Time() + * @model unique="false" + * @generated + */ + int getTime(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerEvents#getTime <em>Time</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Time</em>' attribute. + * @see #getTime() + * @generated + */ + void setTime(int value); + + /** + * Returns the value of the '<em><b>Timenano</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Timenano</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Timenano</em>' attribute. + * @see #setTimenano(long) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerEvents_Timenano() + * @model unique="false" + * @generated + */ + long getTimenano(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerEvents#getTimenano <em>Timenano</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Timenano</em>' attribute. + * @see #getTimenano() + * @generated + */ + void setTimenano(long value); + +} // DockerEvents diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerFactory.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerFactory.java new file mode 100644 index 0000000..6fa050d --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerFactory.java @@ -0,0 +1,279 @@ + +/*- + * ============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.ncomp.docker; + +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.ncomp.docker.DockerPackage + * @generated + */ +public interface DockerFactory extends EFactory { + /** + * The singleton instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + DockerFactory eINSTANCE = org.openecomp.ncomp.docker.impl.DockerFactoryImpl.init(); + + /** + * Returns a new object of class '<em>Adaptor</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Adaptor</em>'. + * @generated + */ + DockerAdaptor createDockerAdaptor(); + + /** + * Returns a new object of class '<em>Host</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Host</em>'. + * @generated + */ + DockerHost createDockerHost(); + + /** + * Returns a new object of class '<em>Image</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Image</em>'. + * @generated + */ + DockerImage createDockerImage(); + + /** + * Returns a new object of class '<em>Container</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Container</em>'. + * @generated + */ + DockerContainer createDockerContainer(); + + /** + * Returns a new object of class '<em>Port</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Port</em>'. + * @generated + */ + DockerPort createDockerPort(); + + /** + * Returns a new object of class '<em>Key Pair</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Key Pair</em>'. + * @generated + */ + DockerKeyPair createDockerKeyPair(); + + /** + * Returns a new object of class '<em>Mount</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Mount</em>'. + * @generated + */ + DockerMount createDockerMount(); + + /** + * Returns a new object of class '<em>Container Options</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Container Options</em>'. + * @generated + */ + ContainerOptions createContainerOptions(); + + /** + * Returns a new object of class '<em>Container Restart Policy</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Container Restart Policy</em>'. + * @generated + */ + ContainerRestartPolicy createContainerRestartPolicy(); + + /** + * Returns a new object of class '<em>Container Port Bindings</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Container Port Bindings</em>'. + * @generated + */ + ContainerPortBindings createContainerPortBindings(); + + /** + * Returns a new object of class '<em>Network</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Network</em>'. + * @generated + */ + DockerNetwork createDockerNetwork(); + + /** + * Returns a new object of class '<em>Ipam</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Ipam</em>'. + * @generated + */ + DockerIpam createDockerIpam(); + + /** + * Returns a new object of class '<em>Ipam Config</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Ipam Config</em>'. + * @generated + */ + DockerIpamConfig createDockerIpamConfig(); + + /** + * Returns a new object of class '<em>Network Container</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Network Container</em>'. + * @generated + */ + DockerNetworkContainer createDockerNetworkContainer(); + + /** + * Returns a new object of class '<em>Events</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Events</em>'. + * @generated + */ + DockerEvents createDockerEvents(); + + /** + * Returns a new object of class '<em>Actor</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Actor</em>'. + * @generated + */ + DockerActor createDockerActor(); + + /** + * Returns a new object of class '<em>Actor Attributes</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Actor Attributes</em>'. + * @generated + */ + DockerActorAttributes createDockerActorAttributes(); + + /** + * Returns a new object of class '<em>Create Request</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Create Request</em>'. + * @generated + */ + DockerCreateRequest createDockerCreateRequest(); + + /** + * Returns a new object of class '<em>Process</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Process</em>'. + * @generated + */ + DockerProcess createDockerProcess(); + + /** + * Returns a new object of class '<em>Container Stats</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Container Stats</em>'. + * @generated + */ + DockerContainerStats createDockerContainerStats(); + + /** + * Returns a new object of class '<em>Container Network Stats</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Container Network Stats</em>'. + * @generated + */ + ContainerNetworkStats createContainerNetworkStats(); + + /** + * Returns a new object of class '<em>Container Memory Stats</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Container Memory Stats</em>'. + * @generated + */ + ContainerMemoryStats createContainerMemoryStats(); + + /** + * Returns a new object of class '<em>Container Memory Usage</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Container Memory Usage</em>'. + * @generated + */ + ContainerMemoryUsage createContainerMemoryUsage(); + + /** + * Returns a new object of class '<em>Container Cpu Usage</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Container Cpu Usage</em>'. + * @generated + */ + ContainerCpuUsage createContainerCpuUsage(); + + /** + * Returns a new object of class '<em>Container Cpu Stats</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Container Cpu Stats</em>'. + * @generated + */ + ContainerCpuStats createContainerCpuStats(); + + /** + * Returns the package supported by this factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the package supported by this factory. + * @generated + */ + DockerPackage getDockerPackage(); + +} //DockerFactory diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerHost.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerHost.java new file mode 100644 index 0000000..e18d4ff --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerHost.java @@ -0,0 +1,292 @@ + +/*- + * ============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.ncomp.docker; + +import org.openecomp.ncomp.core.NamedEntity; + +import org.eclipse.emf.common.util.EList; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Host</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.DockerHost#getUrl <em>Url</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerHost#getPollingFrequency <em>Polling Frequency</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerHost#isRemote <em>Remote</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerHost#getImages <em>Images</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerHost#getContainers <em>Containers</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerHost#getNetworks <em>Networks</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerHost() + * @model + * @generated + */ +public interface DockerHost extends NamedEntity { + /** + * 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.ncomp.docker.DockerPackage#getDockerHost_Url() + * @model unique="false" + * @generated + */ + String getUrl(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerHost#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>Polling Frequency</b></em>' attribute. + * The default value is <code>"30000"</code>. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Polling Frequency</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Polling Frequency</em>' attribute. + * @see #setPollingFrequency(long) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerHost_PollingFrequency() + * @model default="30000" unique="false" + * @generated + */ + long getPollingFrequency(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerHost#getPollingFrequency <em>Polling Frequency</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Polling Frequency</em>' attribute. + * @see #getPollingFrequency() + * @generated + */ + void setPollingFrequency(long value); + + /** + * Returns the value of the '<em><b>Remote</b></em>' attribute. + * The default value is <code>"false"</code>. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Remote</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Remote</em>' attribute. + * @see #setRemote(boolean) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerHost_Remote() + * @model default="false" unique="false" + * @generated + */ + boolean isRemote(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerHost#isRemote <em>Remote</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Remote</em>' attribute. + * @see #isRemote() + * @generated + */ + void setRemote(boolean value); + + /** + * Returns the value of the '<em><b>Images</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.docker.DockerImage}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Images</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>Images</em>' containment reference list. + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerHost_Images() + * @model containment="true" + * @generated + */ + EList<DockerImage> getImages(); + + /** + * Returns the value of the '<em><b>Containers</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.docker.DockerContainer}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Containers</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>Containers</em>' containment reference list. + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerHost_Containers() + * @model containment="true" + * @generated + */ + EList<DockerContainer> getContainers(); + + /** + * Returns the value of the '<em><b>Networks</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.docker.DockerNetwork}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Networks</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>Networks</em>' containment reference list. + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerHost_Networks() + * @model containment="true" + * @generated + */ + EList<DockerNetwork> getNetworks(); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model + * @generated + */ + void poll(); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model nameUnique="false" + * @generated + */ + void startContainer(String name); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model nameUnique="false" secondsUnique="false" + * @generated + */ + void stopContainer(String name, int seconds); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model nameUnique="false" secondsUnique="false" + * @generated + */ + void restartContainer(String name, int seconds); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model nameUnique="false" + * @generated + */ + void pauseContainer(String name); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model nameUnique="false" + * @generated + */ + void unpauseContainer(String name); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model nameUnique="false" removeUnique="false" forceUnique="false" + * @generated + */ + void removeContainer(String name, boolean remove, boolean force); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model nameUnique="false" + * @generated + */ + void inspectContainer(String name); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model nameUnique="false" sigintUnique="false" + * @generated + */ + void killContainer(String name, String sigint); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model imageUnique="false" + * @generated + */ + void dockerRun(String image); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model imageUnique="false" nameUnique="false" + * @generated + */ + void dockerRunWithName(String image, String name); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model imageUnique="false" optsUnique="false" + * @generated + */ + void dockerRunWithOptions(String image, ContainerOptions opts); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model nameUnique="false" streamUnique="false" + * @generated + */ + void containerStats(String name, boolean stream); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model nameUnique="false" + * @generated + */ + void containerProcesses(String name); + +} // DockerHost diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerImage.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerImage.java new file mode 100644 index 0000000..d936a00 --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerImage.java @@ -0,0 +1,234 @@ + +/*- + * ============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.ncomp.docker; + +import org.openecomp.ncomp.core.NamedEntity; + +import java.util.Date; + +import org.eclipse.emf.common.util.EList; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Image</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.DockerImage#getId <em>Id</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerImage#getParentId <em>Parent Id</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerImage#getRepoTags <em>Repo Tags</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerImage#getRepoDigests <em>Repo Digests</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerImage#getDockerCreated <em>Docker Created</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerImage#getSize <em>Size</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerImage#getVirtualSize <em>Virtual Size</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerImage#getLabels <em>Labels</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerImage() + * @model + * @generated + */ +public interface DockerImage extends NamedEntity { + /** + * Returns the value of the '<em><b>Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>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>Id</em>' attribute. + * @see #setId(String) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerImage_Id() + * @model unique="false" + * @generated + */ + String getId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerImage#getId <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Id</em>' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the '<em><b>Parent Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Parent 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>Parent Id</em>' attribute. + * @see #setParentId(String) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerImage_ParentId() + * @model unique="false" + * @generated + */ + String getParentId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerImage#getParentId <em>Parent Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Parent Id</em>' attribute. + * @see #getParentId() + * @generated + */ + void setParentId(String value); + + /** + * Returns the value of the '<em><b>Repo Tags</b></em>' attribute list. + * The list contents are of type {@link java.lang.String}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Repo Tags</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>Repo Tags</em>' attribute list. + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerImage_RepoTags() + * @model unique="false" + * @generated + */ + EList<String> getRepoTags(); + + /** + * Returns the value of the '<em><b>Repo Digests</b></em>' attribute list. + * The list contents are of type {@link java.lang.String}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Repo Digests</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>Repo Digests</em>' attribute list. + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerImage_RepoDigests() + * @model unique="false" + * @generated + */ + EList<String> getRepoDigests(); + + /** + * Returns the value of the '<em><b>Docker Created</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Docker Created</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Docker Created</em>' attribute. + * @see #setDockerCreated(Date) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerImage_DockerCreated() + * @model unique="false" + * @generated + */ + Date getDockerCreated(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerImage#getDockerCreated <em>Docker Created</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Docker Created</em>' attribute. + * @see #getDockerCreated() + * @generated + */ + void setDockerCreated(Date value); + + /** + * Returns the value of the '<em><b>Size</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Size</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Size</em>' attribute. + * @see #setSize(Long) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerImage_Size() + * @model unique="false" + * @generated + */ + Long getSize(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerImage#getSize <em>Size</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Size</em>' attribute. + * @see #getSize() + * @generated + */ + void setSize(Long value); + + /** + * Returns the value of the '<em><b>Virtual Size</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Virtual Size</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Virtual Size</em>' attribute. + * @see #setVirtualSize(Long) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerImage_VirtualSize() + * @model unique="false" + * @generated + */ + Long getVirtualSize(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerImage#getVirtualSize <em>Virtual Size</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Virtual Size</em>' attribute. + * @see #getVirtualSize() + * @generated + */ + void setVirtualSize(Long value); + + /** + * Returns the value of the '<em><b>Labels</b></em>' attribute list. + * The list contents are of type {@link java.lang.String}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Labels</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>Labels</em>' attribute list. + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerImage_Labels() + * @model unique="false" + * @generated + */ + EList<String> getLabels(); + +} // DockerImage diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerInfo.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerInfo.java new file mode 100644 index 0000000..5ff8ac2 --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerInfo.java @@ -0,0 +1,43 @@ + +/*- + * ============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.ncomp.docker; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Info</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * json returned by the method + * <!-- end-model-doc --> + * + * + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerInfo() + * @model + * @generated + */ +public interface DockerInfo extends EObject { +} // DockerInfo diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerIpam.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerIpam.java new file mode 100644 index 0000000..e0ab44e --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerIpam.java @@ -0,0 +1,90 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.docker; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Ipam</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.DockerIpam#getDriver <em>Driver</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerIpam#getConfig <em>Config</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerIpam() + * @model + * @generated + */ +public interface DockerIpam extends EObject { + /** + * Returns the value of the '<em><b>Driver</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Driver</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Driver</em>' attribute. + * @see #setDriver(String) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerIpam_Driver() + * @model unique="false" + * @generated + */ + String getDriver(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerIpam#getDriver <em>Driver</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Driver</em>' attribute. + * @see #getDriver() + * @generated + */ + void setDriver(String value); + + /** + * Returns the value of the '<em><b>Config</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.docker.DockerIpamConfig}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Config</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>Config</em>' containment reference list. + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerIpam_Config() + * @model containment="true" + * @generated + */ + EList<DockerIpamConfig> getConfig(); + +} // DockerIpam diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerIpamConfig.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerIpamConfig.java new file mode 100644 index 0000000..5083177 --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerIpamConfig.java @@ -0,0 +1,71 @@ + +/*- + * ============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.ncomp.docker; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Ipam Config</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.DockerIpamConfig#getSubnet <em>Subnet</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerIpamConfig() + * @model + * @generated + */ +public interface DockerIpamConfig extends EObject { + /** + * Returns the value of the '<em><b>Subnet</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Subnet</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Subnet</em>' attribute. + * @see #setSubnet(String) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerIpamConfig_Subnet() + * @model unique="false" + * @generated + */ + String getSubnet(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerIpamConfig#getSubnet <em>Subnet</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Subnet</em>' attribute. + * @see #getSubnet() + * @generated + */ + void setSubnet(String value); + +} // DockerIpamConfig diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerKeyPair.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerKeyPair.java new file mode 100644 index 0000000..7c94c79 --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerKeyPair.java @@ -0,0 +1,98 @@ + +/*- + * ============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.ncomp.docker; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Key Pair</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.DockerKeyPair#getName <em>Name</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerKeyPair#getValue <em>Value</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerKeyPair() + * @model + * @generated + */ +public interface DockerKeyPair extends EObject { + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>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>Name</em>' attribute. + * @see #setName(String) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerKeyPair_Name() + * @model unique="false" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerKeyPair#getName <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Value</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Value</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Value</em>' attribute. + * @see #setValue(String) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerKeyPair_Value() + * @model unique="false" + * @generated + */ + String getValue(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerKeyPair#getValue <em>Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Value</em>' attribute. + * @see #getValue() + * @generated + */ + void setValue(String value); + +} // DockerKeyPair diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerMount.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerMount.java new file mode 100644 index 0000000..610465e --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerMount.java @@ -0,0 +1,179 @@ + +/*- + * ============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.ncomp.docker; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Mount</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.DockerMount#getSource <em>Source</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerMount#getDestination <em>Destination</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerMount#getMode <em>Mode</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerMount#getRW <em>RW</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerMount#getPropagation <em>Propagation</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerMount() + * @model + * @generated + */ +public interface DockerMount extends EObject { + /** + * Returns the value of the '<em><b>Source</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Source</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Source</em>' attribute. + * @see #setSource(String) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerMount_Source() + * @model unique="false" + * @generated + */ + String getSource(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerMount#getSource <em>Source</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Source</em>' attribute. + * @see #getSource() + * @generated + */ + void setSource(String value); + + /** + * Returns the value of the '<em><b>Destination</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Destination</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Destination</em>' attribute. + * @see #setDestination(String) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerMount_Destination() + * @model unique="false" + * @generated + */ + String getDestination(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerMount#getDestination <em>Destination</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Destination</em>' attribute. + * @see #getDestination() + * @generated + */ + void setDestination(String value); + + /** + * Returns the value of the '<em><b>Mode</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Mode</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Mode</em>' attribute. + * @see #setMode(String) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerMount_Mode() + * @model unique="false" + * @generated + */ + String getMode(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerMount#getMode <em>Mode</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Mode</em>' attribute. + * @see #getMode() + * @generated + */ + void setMode(String value); + + /** + * Returns the value of the '<em><b>RW</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>RW</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>RW</em>' attribute. + * @see #setRW(Boolean) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerMount_RW() + * @model unique="false" + * @generated + */ + Boolean getRW(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerMount#getRW <em>RW</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>RW</em>' attribute. + * @see #getRW() + * @generated + */ + void setRW(Boolean value); + + /** + * Returns the value of the '<em><b>Propagation</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Propagation</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Propagation</em>' attribute. + * @see #setPropagation(String) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerMount_Propagation() + * @model unique="false" + * @generated + */ + String getPropagation(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerMount#getPropagation <em>Propagation</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Propagation</em>' attribute. + * @see #getPropagation() + * @generated + */ + void setPropagation(String value); + +} // DockerMount diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerNetwork.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerNetwork.java new file mode 100644 index 0000000..1f0d8ef --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerNetwork.java @@ -0,0 +1,188 @@ + +/*- + * ============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.ncomp.docker; + +import org.openecomp.ncomp.core.NamedEntity; + +import org.eclipse.emf.common.util.EList; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Network</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.DockerNetwork#getId <em>Id</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerNetwork#getScope <em>Scope</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerNetwork#getDriver <em>Driver</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerNetwork#getIPAM <em>IPAM</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerNetwork#getContainers <em>Containers</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerNetwork#getOptions <em>Options</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerNetwork() + * @model + * @generated + */ +public interface DockerNetwork extends NamedEntity { + /** + * Returns the value of the '<em><b>Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>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>Id</em>' attribute. + * @see #setId(String) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerNetwork_Id() + * @model unique="false" + * @generated + */ + String getId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerNetwork#getId <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Id</em>' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the '<em><b>Scope</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Scope</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Scope</em>' attribute. + * @see #setScope(String) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerNetwork_Scope() + * @model unique="false" + * @generated + */ + String getScope(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerNetwork#getScope <em>Scope</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Scope</em>' attribute. + * @see #getScope() + * @generated + */ + void setScope(String value); + + /** + * Returns the value of the '<em><b>Driver</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Driver</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Driver</em>' attribute. + * @see #setDriver(String) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerNetwork_Driver() + * @model unique="false" + * @generated + */ + String getDriver(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerNetwork#getDriver <em>Driver</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Driver</em>' attribute. + * @see #getDriver() + * @generated + */ + void setDriver(String value); + + /** + * Returns the value of the '<em><b>IPAM</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>IPAM</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>IPAM</em>' containment reference. + * @see #setIPAM(DockerIpam) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerNetwork_IPAM() + * @model containment="true" + * @generated + */ + DockerIpam getIPAM(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerNetwork#getIPAM <em>IPAM</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>IPAM</em>' containment reference. + * @see #getIPAM() + * @generated + */ + void setIPAM(DockerIpam value); + + /** + * Returns the value of the '<em><b>Containers</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.docker.DockerNetworkContainer}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Containers</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>Containers</em>' containment reference list. + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerNetwork_Containers() + * @model containment="true" + * @generated + */ + EList<DockerNetworkContainer> getContainers(); + + /** + * Returns the value of the '<em><b>Options</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.docker.DockerKeyPair}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Options</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>Options</em>' containment reference list. + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerNetwork_Options() + * @model containment="true" + * @generated + */ + EList<DockerKeyPair> getOptions(); + +} // DockerNetwork diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerNetworkContainer.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerNetworkContainer.java new file mode 100644 index 0000000..e61d610 --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerNetworkContainer.java @@ -0,0 +1,179 @@ + +/*- + * ============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.ncomp.docker; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Network Container</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.DockerNetworkContainer#getId <em>Id</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerNetworkContainer#getIPv4Address <em>IPv4 Address</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerNetworkContainer#getIPv6Address <em>IPv6 Address</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerNetworkContainer#getEndpointID <em>Endpoint ID</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerNetworkContainer#getMacAddress <em>Mac Address</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerNetworkContainer() + * @model + * @generated + */ +public interface DockerNetworkContainer extends EObject { + /** + * Returns the value of the '<em><b>Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>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>Id</em>' attribute. + * @see #setId(String) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerNetworkContainer_Id() + * @model unique="false" + * @generated + */ + String getId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerNetworkContainer#getId <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Id</em>' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the '<em><b>IPv4 Address</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>IPv4 Address</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>IPv4 Address</em>' attribute. + * @see #setIPv4Address(String) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerNetworkContainer_IPv4Address() + * @model unique="false" + * @generated + */ + String getIPv4Address(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerNetworkContainer#getIPv4Address <em>IPv4 Address</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>IPv4 Address</em>' attribute. + * @see #getIPv4Address() + * @generated + */ + void setIPv4Address(String value); + + /** + * Returns the value of the '<em><b>IPv6 Address</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>IPv6 Address</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>IPv6 Address</em>' attribute. + * @see #setIPv6Address(String) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerNetworkContainer_IPv6Address() + * @model unique="false" + * @generated + */ + String getIPv6Address(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerNetworkContainer#getIPv6Address <em>IPv6 Address</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>IPv6 Address</em>' attribute. + * @see #getIPv6Address() + * @generated + */ + void setIPv6Address(String value); + + /** + * Returns the value of the '<em><b>Endpoint ID</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Endpoint 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>Endpoint ID</em>' attribute. + * @see #setEndpointID(String) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerNetworkContainer_EndpointID() + * @model unique="false" + * @generated + */ + String getEndpointID(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerNetworkContainer#getEndpointID <em>Endpoint ID</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Endpoint ID</em>' attribute. + * @see #getEndpointID() + * @generated + */ + void setEndpointID(String value); + + /** + * Returns the value of the '<em><b>Mac Address</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Mac Address</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Mac Address</em>' attribute. + * @see #setMacAddress(String) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerNetworkContainer_MacAddress() + * @model unique="false" + * @generated + */ + String getMacAddress(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerNetworkContainer#getMacAddress <em>Mac Address</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Mac Address</em>' attribute. + * @see #getMacAddress() + * @generated + */ + void setMacAddress(String value); + +} // DockerNetworkContainer diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerNetworkStats.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerNetworkStats.java new file mode 100644 index 0000000..7f51a1e --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerNetworkStats.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.ncomp.docker; + +import org.openecomp.ncomp.core.NamedEntity; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Network Stats</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * Container stats - JSON + * + * { + * "read" : "2015-01-08T22:57:31.547920715Z", + * "networks": { + * "eth0": { + * "rx_bytes": 5338, + * "rx_dropped": 0, + * "rx_errors": 0, + * "rx_packets": 36, + * "tx_bytes": 648, + * "tx_dropped": 0, + * "tx_errors": 0, + * "tx_packets": 8 + * }, + * "eth5": { + * "rx_bytes": 4641, + * "rx_dropped": 0, + * "rx_errors": 0, + * "rx_packets": 26, + * "tx_bytes": 690, + * "tx_dropped": 0, + * "tx_errors": 0, + * "tx_packets": 9 + * } + * }, + * "memory_stats" : { + * "stats" : { + * "total_pgmajfault" : 0, + * "cache" : 0, + * "mapped_file" : 0, + * "total_inactive_file" : 0, + * "pgpgout" : 414, + * "rss" : 6537216, + * "total_mapped_file" : 0, + * "writeback" : 0, + * "unevictable" : 0, + * "pgpgin" : 477, + * "total_unevictable" : 0, + * "pgmajfault" : 0, + * "total_rss" : 6537216, + * "total_rss_huge" : 6291456, + * "total_writeback" : 0, + * "total_inactive_anon" : 0, + * "rss_huge" : 6291456, + * "hierarchical_memory_limit" : 67108864, + * "total_pgfault" : 964, + * "total_active_file" : 0, + * "active_anon" : 6537216, + * "total_active_anon" : 6537216, + * "total_pgpgout" : 414, + * "total_cache" : 0, + * "inactive_anon" : 0, + * "active_file" : 0, + * "pgfault" : 964, + * "inactive_file" : 0, + * "total_pgpgin" : 477 + * }, + * "max_usage" : 6651904, + * "usage" : 6537216, + * "failcnt" : 0, + * "limit" : 67108864 + * }, + * "blkio_stats" : {}, + * "cpu_stats" : { + * "cpu_usage" : { + * "percpu_usage" : [ + * 16970827, + * 1839451, + * 7107380, + * 10571290 + * ], + * "usage_in_usermode" : 10000000, + * "total_usage" : 36488948, + * "usage_in_kernelmode" : 20000000 + * }, + * "system_cpu_usage" : 20091722000000000, + * "throttling_data" : {} + * } + * } + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.DockerNetworkStats#getRx_bytes <em>Rx bytes</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerNetworkStats#getRx_dropped <em>Rx dropped</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerNetworkStats#getRx_errors <em>Rx errors</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerNetworkStats#getRx_packets <em>Rx packets</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerNetworkStats#getTx_bytes <em>Tx bytes</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerNetworkStats#getTx_dropped <em>Tx dropped</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerNetworkStats#getTx_errors <em>Tx errors</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerNetworkStats#getTx_packets <em>Tx packets</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerNetworkStats() + * @model + * @generated + */ +public interface DockerNetworkStats extends NamedEntity { + /** + * Returns the value of the '<em><b>Rx bytes</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Rx bytes</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Rx bytes</em>' attribute. + * @see #setRx_bytes(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerNetworkStats_Rx_bytes() + * @model unique="false" + * @generated + */ + int getRx_bytes(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerNetworkStats#getRx_bytes <em>Rx bytes</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Rx bytes</em>' attribute. + * @see #getRx_bytes() + * @generated + */ + void setRx_bytes(int value); + + /** + * Returns the value of the '<em><b>Rx dropped</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Rx dropped</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Rx dropped</em>' attribute. + * @see #setRx_dropped(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerNetworkStats_Rx_dropped() + * @model unique="false" + * @generated + */ + int getRx_dropped(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerNetworkStats#getRx_dropped <em>Rx dropped</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Rx dropped</em>' attribute. + * @see #getRx_dropped() + * @generated + */ + void setRx_dropped(int value); + + /** + * Returns the value of the '<em><b>Rx errors</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Rx errors</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Rx errors</em>' attribute. + * @see #setRx_errors(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerNetworkStats_Rx_errors() + * @model unique="false" + * @generated + */ + int getRx_errors(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerNetworkStats#getRx_errors <em>Rx errors</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Rx errors</em>' attribute. + * @see #getRx_errors() + * @generated + */ + void setRx_errors(int value); + + /** + * Returns the value of the '<em><b>Rx packets</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Rx packets</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Rx packets</em>' attribute. + * @see #setRx_packets(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerNetworkStats_Rx_packets() + * @model unique="false" + * @generated + */ + int getRx_packets(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerNetworkStats#getRx_packets <em>Rx packets</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Rx packets</em>' attribute. + * @see #getRx_packets() + * @generated + */ + void setRx_packets(int value); + + /** + * Returns the value of the '<em><b>Tx bytes</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Tx bytes</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Tx bytes</em>' attribute. + * @see #setTx_bytes(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerNetworkStats_Tx_bytes() + * @model unique="false" + * @generated + */ + int getTx_bytes(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerNetworkStats#getTx_bytes <em>Tx bytes</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Tx bytes</em>' attribute. + * @see #getTx_bytes() + * @generated + */ + void setTx_bytes(int value); + + /** + * Returns the value of the '<em><b>Tx dropped</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Tx dropped</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Tx dropped</em>' attribute. + * @see #setTx_dropped(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerNetworkStats_Tx_dropped() + * @model unique="false" + * @generated + */ + int getTx_dropped(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerNetworkStats#getTx_dropped <em>Tx dropped</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Tx dropped</em>' attribute. + * @see #getTx_dropped() + * @generated + */ + void setTx_dropped(int value); + + /** + * Returns the value of the '<em><b>Tx errors</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Tx errors</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Tx errors</em>' attribute. + * @see #setTx_errors(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerNetworkStats_Tx_errors() + * @model unique="false" + * @generated + */ + int getTx_errors(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerNetworkStats#getTx_errors <em>Tx errors</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Tx errors</em>' attribute. + * @see #getTx_errors() + * @generated + */ + void setTx_errors(int value); + + /** + * Returns the value of the '<em><b>Tx packets</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Tx packets</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Tx packets</em>' attribute. + * @see #setTx_packets(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerNetworkStats_Tx_packets() + * @model unique="false" + * @generated + */ + int getTx_packets(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerNetworkStats#getTx_packets <em>Tx packets</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Tx packets</em>' attribute. + * @see #getTx_packets() + * @generated + */ + void setTx_packets(int value); + +} // DockerNetworkStats diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerPackage.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerPackage.java new file mode 100644 index 0000000..40057f0 --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerPackage.java @@ -0,0 +1,5988 @@ + +/*- + * ============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.ncomp.docker; + +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.ncomp.docker.DockerFactory + * @model kind="package" + * annotation="http://www.eclipse.org/emf/2002/GenModel modelDirectory='/ncomp-docker-model/src/main/xcore-gen' basePackage='org.openecomp.ncomp'" + * @generated + */ +public interface DockerPackage extends EPackage { + /** + * The package name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNAME = "docker"; + + /** + * The package namespace URI. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNS_URI = "org.openecomp.ncomp.docker"; + + /** + * The package namespace name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNS_PREFIX = "docker"; + + /** + * The singleton instance of the package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + DockerPackage eINSTANCE = org.openecomp.ncomp.docker.impl.DockerPackageImpl.init(); + + /** + * The meta object id for the '{@link org.openecomp.ncomp.docker.impl.DockerAdaptorImpl <em>Adaptor</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.DockerAdaptorImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getDockerAdaptor() + * @generated + */ + int DOCKER_ADAPTOR = 0; + + /** + * The feature id for the '<em><b>Docker Hosts</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_ADAPTOR__DOCKER_HOSTS = 0; + + /** + * The number of structural features of the '<em>Adaptor</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_ADAPTOR_FEATURE_COUNT = 1; + + /** + * The number of operations of the '<em>Adaptor</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_ADAPTOR_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.docker.impl.DockerHostImpl <em>Host</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.DockerHostImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getDockerHost() + * @generated + */ + int DOCKER_HOST = 1; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_HOST__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 DOCKER_HOST__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 DOCKER_HOST__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 DOCKER_HOST__CREATED = CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the '<em><b>Url</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_HOST__URL = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Polling Frequency</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_HOST__POLLING_FREQUENCY = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Remote</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_HOST__REMOTE = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Images</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_HOST__IMAGES = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>Containers</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_HOST__CONTAINERS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 4; + + /** + * The feature id for the '<em><b>Networks</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_HOST__NETWORKS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 5; + + /** + * The number of structural features of the '<em>Host</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_HOST_FEATURE_COUNT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 6; + + /** + * The operation id for the '<em>Poll</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_HOST___POLL = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 0; + + /** + * The operation id for the '<em>Start Container</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_HOST___START_CONTAINER__STRING = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 1; + + /** + * The operation id for the '<em>Stop Container</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_HOST___STOP_CONTAINER__STRING_INT = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 2; + + /** + * The operation id for the '<em>Restart Container</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_HOST___RESTART_CONTAINER__STRING_INT = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 3; + + /** + * The operation id for the '<em>Pause Container</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_HOST___PAUSE_CONTAINER__STRING = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 4; + + /** + * The operation id for the '<em>Unpause Container</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_HOST___UNPAUSE_CONTAINER__STRING = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 5; + + /** + * The operation id for the '<em>Remove Container</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_HOST___REMOVE_CONTAINER__STRING_BOOLEAN_BOOLEAN = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 6; + + /** + * The operation id for the '<em>Inspect Container</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_HOST___INSPECT_CONTAINER__STRING = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 7; + + /** + * The operation id for the '<em>Kill Container</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_HOST___KILL_CONTAINER__STRING_STRING = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 8; + + /** + * The operation id for the '<em>Docker Run</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_HOST___DOCKER_RUN__STRING = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 9; + + /** + * The operation id for the '<em>Docker Run With Name</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_HOST___DOCKER_RUN_WITH_NAME__STRING_STRING = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 10; + + /** + * The operation id for the '<em>Docker Run With Options</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_HOST___DOCKER_RUN_WITH_OPTIONS__STRING_CONTAINEROPTIONS = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 11; + + /** + * The operation id for the '<em>Container Stats</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_HOST___CONTAINER_STATS__STRING_BOOLEAN = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 12; + + /** + * The operation id for the '<em>Container Processes</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_HOST___CONTAINER_PROCESSES__STRING = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 13; + + /** + * The number of operations of the '<em>Host</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_HOST_OPERATION_COUNT = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 14; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.docker.impl.DockerImageImpl <em>Image</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.DockerImageImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getDockerImage() + * @generated + */ + int DOCKER_IMAGE = 2; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_IMAGE__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 DOCKER_IMAGE__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 DOCKER_IMAGE__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 DOCKER_IMAGE__CREATED = CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the '<em><b>Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_IMAGE__ID = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Parent Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_IMAGE__PARENT_ID = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Repo Tags</b></em>' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_IMAGE__REPO_TAGS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Repo Digests</b></em>' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_IMAGE__REPO_DIGESTS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>Docker Created</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_IMAGE__DOCKER_CREATED = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 4; + + /** + * The feature id for the '<em><b>Size</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_IMAGE__SIZE = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 5; + + /** + * The feature id for the '<em><b>Virtual Size</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_IMAGE__VIRTUAL_SIZE = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 6; + + /** + * The feature id for the '<em><b>Labels</b></em>' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_IMAGE__LABELS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 7; + + /** + * The number of structural features of the '<em>Image</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_IMAGE_FEATURE_COUNT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 8; + + /** + * The number of operations of the '<em>Image</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_IMAGE_OPERATION_COUNT = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.docker.impl.DockerContainerImpl <em>Container</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.DockerContainerImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getDockerContainer() + * @generated + */ + int DOCKER_CONTAINER = 3; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_CONTAINER__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 DOCKER_CONTAINER__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 DOCKER_CONTAINER__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 DOCKER_CONTAINER__CREATED = CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the '<em><b>Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_CONTAINER__ID = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Names</b></em>' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_CONTAINER__NAMES = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Image</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_CONTAINER__IMAGE = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Image ID</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_CONTAINER__IMAGE_ID = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>Command</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_CONTAINER__COMMAND = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 4; + + /** + * The feature id for the '<em><b>Docker Created</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_CONTAINER__DOCKER_CREATED = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 5; + + /** + * The feature id for the '<em><b>Ports</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_CONTAINER__PORTS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 6; + + /** + * The feature id for the '<em><b>Labels</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_CONTAINER__LABELS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 7; + + /** + * The feature id for the '<em><b>Status</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_CONTAINER__STATUS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 8; + + /** + * The feature id for the '<em><b>Host Config</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_CONTAINER__HOST_CONFIG = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 9; + + /** + * The feature id for the '<em><b>Processes</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_CONTAINER__PROCESSES = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 10; + + /** + * The feature id for the '<em><b>Mounts</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_CONTAINER__MOUNTS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 11; + + /** + * The feature id for the '<em><b>Stats</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_CONTAINER__STATS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 12; + + /** + * The feature id for the '<em><b>Events</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_CONTAINER__EVENTS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 13; + + /** + * The number of structural features of the '<em>Container</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_CONTAINER_FEATURE_COUNT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 14; + + /** + * The number of operations of the '<em>Container</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_CONTAINER_OPERATION_COUNT = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.docker.impl.DockerPortImpl <em>Port</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.DockerPortImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getDockerPort() + * @generated + */ + int DOCKER_PORT = 4; + + /** + * The feature id for the '<em><b>Private Port</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_PORT__PRIVATE_PORT = 0; + + /** + * The feature id for the '<em><b>Public Port</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_PORT__PUBLIC_PORT = 1; + + /** + * The feature id for the '<em><b>Type</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_PORT__TYPE = 2; + + /** + * The number of structural features of the '<em>Port</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_PORT_FEATURE_COUNT = 3; + + /** + * The number of operations of the '<em>Port</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_PORT_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.docker.impl.DockerKeyPairImpl <em>Key Pair</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.DockerKeyPairImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getDockerKeyPair() + * @generated + */ + int DOCKER_KEY_PAIR = 5; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_KEY_PAIR__NAME = 0; + + /** + * The feature id for the '<em><b>Value</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_KEY_PAIR__VALUE = 1; + + /** + * The number of structural features of the '<em>Key Pair</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_KEY_PAIR_FEATURE_COUNT = 2; + + /** + * The number of operations of the '<em>Key Pair</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_KEY_PAIR_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.docker.impl.DockerMountImpl <em>Mount</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.DockerMountImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getDockerMount() + * @generated + */ + int DOCKER_MOUNT = 6; + + /** + * The feature id for the '<em><b>Source</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_MOUNT__SOURCE = 0; + + /** + * The feature id for the '<em><b>Destination</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_MOUNT__DESTINATION = 1; + + /** + * The feature id for the '<em><b>Mode</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_MOUNT__MODE = 2; + + /** + * The feature id for the '<em><b>RW</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_MOUNT__RW = 3; + + /** + * The feature id for the '<em><b>Propagation</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_MOUNT__PROPAGATION = 4; + + /** + * The number of structural features of the '<em>Mount</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_MOUNT_FEATURE_COUNT = 5; + + /** + * The number of operations of the '<em>Mount</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_MOUNT_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.docker.impl.ContainerOptionsImpl <em>Container Options</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.ContainerOptionsImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getContainerOptions() + * @generated + */ + int CONTAINER_OPTIONS = 7; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_OPTIONS__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 CONTAINER_OPTIONS__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 CONTAINER_OPTIONS__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 CONTAINER_OPTIONS__CREATED = CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the '<em><b>Image Nm</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_OPTIONS__IMAGE_NM = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Env</b></em>' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_OPTIONS__ENV = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Volumes</b></em>' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_OPTIONS__VOLUMES = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Links</b></em>' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_OPTIONS__LINKS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>Set Container Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_OPTIONS__SET_CONTAINER_NAME = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 4; + + /** + * The feature id for the '<em><b>Publish All Ports</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_OPTIONS__PUBLISH_ALL_PORTS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 5; + + /** + * The feature id for the '<em><b>Port Bindings</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_OPTIONS__PORT_BINDINGS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 6; + + /** + * The feature id for the '<em><b>Auto Restart</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_OPTIONS__AUTO_RESTART = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 7; + + /** + * The number of structural features of the '<em>Container Options</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_OPTIONS_FEATURE_COUNT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 8; + + /** + * The number of operations of the '<em>Container Options</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_OPTIONS_OPERATION_COUNT = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.docker.impl.ContainerRestartPolicyImpl <em>Container Restart Policy</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.ContainerRestartPolicyImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getContainerRestartPolicy() + * @generated + */ + int CONTAINER_RESTART_POLICY = 8; + + /** + * The feature id for the '<em><b>Nm</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_RESTART_POLICY__NM = 0; + + /** + * The feature id for the '<em><b>Max Retry Cnt</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_RESTART_POLICY__MAX_RETRY_CNT = 1; + + /** + * The number of structural features of the '<em>Container Restart Policy</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_RESTART_POLICY_FEATURE_COUNT = 2; + + /** + * The number of operations of the '<em>Container Restart Policy</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_RESTART_POLICY_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.docker.impl.ContainerPortBindingsImpl <em>Container Port Bindings</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.ContainerPortBindingsImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getContainerPortBindings() + * @generated + */ + int CONTAINER_PORT_BINDINGS = 9; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_PORT_BINDINGS__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 CONTAINER_PORT_BINDINGS__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 CONTAINER_PORT_BINDINGS__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 CONTAINER_PORT_BINDINGS__CREATED = CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the '<em><b>Container Port</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_PORT_BINDINGS__CONTAINER_PORT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Protocol</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_PORT_BINDINGS__PROTOCOL = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Vm Port</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_PORT_BINDINGS__VM_PORT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 2; + + /** + * The number of structural features of the '<em>Container Port Bindings</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_PORT_BINDINGS_FEATURE_COUNT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 3; + + /** + * The number of operations of the '<em>Container Port Bindings</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_PORT_BINDINGS_OPERATION_COUNT = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.docker.impl.DockerNetworkImpl <em>Network</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.DockerNetworkImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getDockerNetwork() + * @generated + */ + int DOCKER_NETWORK = 10; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_NETWORK__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 DOCKER_NETWORK__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 DOCKER_NETWORK__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 DOCKER_NETWORK__CREATED = CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the '<em><b>Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_NETWORK__ID = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Scope</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_NETWORK__SCOPE = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Driver</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_NETWORK__DRIVER = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>IPAM</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_NETWORK__IPAM = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>Containers</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_NETWORK__CONTAINERS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 4; + + /** + * The feature id for the '<em><b>Options</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_NETWORK__OPTIONS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 5; + + /** + * The number of structural features of the '<em>Network</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_NETWORK_FEATURE_COUNT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 6; + + /** + * The number of operations of the '<em>Network</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_NETWORK_OPERATION_COUNT = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.docker.impl.DockerIpamImpl <em>Ipam</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.DockerIpamImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getDockerIpam() + * @generated + */ + int DOCKER_IPAM = 11; + + /** + * The feature id for the '<em><b>Driver</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_IPAM__DRIVER = 0; + + /** + * The feature id for the '<em><b>Config</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_IPAM__CONFIG = 1; + + /** + * The number of structural features of the '<em>Ipam</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_IPAM_FEATURE_COUNT = 2; + + /** + * The number of operations of the '<em>Ipam</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_IPAM_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.docker.impl.DockerIpamConfigImpl <em>Ipam Config</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.DockerIpamConfigImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getDockerIpamConfig() + * @generated + */ + int DOCKER_IPAM_CONFIG = 12; + + /** + * The feature id for the '<em><b>Subnet</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_IPAM_CONFIG__SUBNET = 0; + + /** + * The number of structural features of the '<em>Ipam Config</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_IPAM_CONFIG_FEATURE_COUNT = 1; + + /** + * The number of operations of the '<em>Ipam Config</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_IPAM_CONFIG_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.docker.impl.DockerNetworkContainerImpl <em>Network Container</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.DockerNetworkContainerImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getDockerNetworkContainer() + * @generated + */ + int DOCKER_NETWORK_CONTAINER = 13; + + /** + * The feature id for the '<em><b>Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_NETWORK_CONTAINER__ID = 0; + + /** + * The feature id for the '<em><b>IPv4 Address</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_NETWORK_CONTAINER__IPV4_ADDRESS = 1; + + /** + * The feature id for the '<em><b>IPv6 Address</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_NETWORK_CONTAINER__IPV6_ADDRESS = 2; + + /** + * The feature id for the '<em><b>Endpoint ID</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_NETWORK_CONTAINER__ENDPOINT_ID = 3; + + /** + * The feature id for the '<em><b>Mac Address</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_NETWORK_CONTAINER__MAC_ADDRESS = 4; + + /** + * The number of structural features of the '<em>Network Container</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_NETWORK_CONTAINER_FEATURE_COUNT = 5; + + /** + * The number of operations of the '<em>Network Container</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_NETWORK_CONTAINER_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.docker.impl.DockerEventsImpl <em>Events</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.DockerEventsImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getDockerEvents() + * @generated + */ + int DOCKER_EVENTS = 14; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_EVENTS__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 DOCKER_EVENTS__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 DOCKER_EVENTS__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 DOCKER_EVENTS__CREATED = CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the '<em><b>Status</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_EVENTS__STATUS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_EVENTS__ID = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Type</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_EVENTS__TYPE = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Action</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_EVENTS__ACTION = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>Actor</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_EVENTS__ACTOR = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 4; + + /** + * The feature id for the '<em><b>Time</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_EVENTS__TIME = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 5; + + /** + * The feature id for the '<em><b>Timenano</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_EVENTS__TIMENANO = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 6; + + /** + * The number of structural features of the '<em>Events</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_EVENTS_FEATURE_COUNT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 7; + + /** + * The number of operations of the '<em>Events</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_EVENTS_OPERATION_COUNT = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.docker.impl.DockerActorImpl <em>Actor</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.DockerActorImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getDockerActor() + * @generated + */ + int DOCKER_ACTOR = 15; + + /** + * The feature id for the '<em><b>Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_ACTOR__ID = 0; + + /** + * The feature id for the '<em><b>Attributes</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_ACTOR__ATTRIBUTES = 1; + + /** + * The number of structural features of the '<em>Actor</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_ACTOR_FEATURE_COUNT = 2; + + /** + * The number of operations of the '<em>Actor</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_ACTOR_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.docker.impl.DockerActorAttributesImpl <em>Actor Attributes</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.DockerActorAttributesImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getDockerActorAttributes() + * @generated + */ + int DOCKER_ACTOR_ATTRIBUTES = 16; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_ACTOR_ATTRIBUTES__NAME = 0; + + /** + * The number of structural features of the '<em>Actor Attributes</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_ACTOR_ATTRIBUTES_FEATURE_COUNT = 1; + + /** + * The number of operations of the '<em>Actor Attributes</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_ACTOR_ATTRIBUTES_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.docker.impl.DockerCreateRequestImpl <em>Create Request</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.DockerCreateRequestImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getDockerCreateRequest() + * @generated + */ + int DOCKER_CREATE_REQUEST = 17; + + /** + * The feature id for the '<em><b>Hostname</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_CREATE_REQUEST__HOSTNAME = 0; + + /** + * The feature id for the '<em><b>Cmd</b></em>' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_CREATE_REQUEST__CMD = 1; + + /** + * The number of structural features of the '<em>Create Request</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_CREATE_REQUEST_FEATURE_COUNT = 2; + + /** + * The number of operations of the '<em>Create Request</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_CREATE_REQUEST_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.docker.impl.DockerProcessImpl <em>Process</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.DockerProcessImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getDockerProcess() + * @generated + */ + int DOCKER_PROCESS = 18; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_PROCESS__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 DOCKER_PROCESS__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 DOCKER_PROCESS__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 DOCKER_PROCESS__CREATED = CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the '<em><b>User</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_PROCESS__USER = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Pid</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_PROCESS__PID = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Cpu</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_PROCESS__CPU = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Mem</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_PROCESS__MEM = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>Vsz</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_PROCESS__VSZ = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 4; + + /** + * The feature id for the '<em><b>Rss</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_PROCESS__RSS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 5; + + /** + * The feature id for the '<em><b>Tty</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_PROCESS__TTY = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 6; + + /** + * The feature id for the '<em><b>Stat</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_PROCESS__STAT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 7; + + /** + * The feature id for the '<em><b>Start</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_PROCESS__START = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 8; + + /** + * The feature id for the '<em><b>Time Elapsed</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_PROCESS__TIME_ELAPSED = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 9; + + /** + * The feature id for the '<em><b>Command</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_PROCESS__COMMAND = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 10; + + /** + * The number of structural features of the '<em>Process</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_PROCESS_FEATURE_COUNT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 11; + + /** + * The number of operations of the '<em>Process</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_PROCESS_OPERATION_COUNT = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.docker.impl.DockerContainerStatsImpl <em>Container Stats</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.DockerContainerStatsImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getDockerContainerStats() + * @generated + */ + int DOCKER_CONTAINER_STATS = 19; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_CONTAINER_STATS__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 DOCKER_CONTAINER_STATS__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 DOCKER_CONTAINER_STATS__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 DOCKER_CONTAINER_STATS__CREATED = CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the '<em><b>Networks</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_CONTAINER_STATS__NETWORKS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Memory</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_CONTAINER_STATS__MEMORY = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Cpu</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_CONTAINER_STATS__CPU = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Last Read</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_CONTAINER_STATS__LAST_READ = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 3; + + /** + * The number of structural features of the '<em>Container Stats</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_CONTAINER_STATS_FEATURE_COUNT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 4; + + /** + * The number of operations of the '<em>Container Stats</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCKER_CONTAINER_STATS_OPERATION_COUNT = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.docker.impl.ContainerNetworkStatsImpl <em>Container Network Stats</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.ContainerNetworkStatsImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getContainerNetworkStats() + * @generated + */ + int CONTAINER_NETWORK_STATS = 20; + + /** + * The feature id for the '<em><b>Intf</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_NETWORK_STATS__INTF = 0; + + /** + * The feature id for the '<em><b>Rx bytes</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_NETWORK_STATS__RX_BYTES = 1; + + /** + * The feature id for the '<em><b>Rx dropped</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_NETWORK_STATS__RX_DROPPED = 2; + + /** + * The feature id for the '<em><b>Rx errors</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_NETWORK_STATS__RX_ERRORS = 3; + + /** + * The feature id for the '<em><b>Rx packets</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_NETWORK_STATS__RX_PACKETS = 4; + + /** + * The feature id for the '<em><b>Tx bytes</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_NETWORK_STATS__TX_BYTES = 5; + + /** + * The feature id for the '<em><b>Tx dropped</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_NETWORK_STATS__TX_DROPPED = 6; + + /** + * The feature id for the '<em><b>Tx errors</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_NETWORK_STATS__TX_ERRORS = 7; + + /** + * The feature id for the '<em><b>Tx packets</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_NETWORK_STATS__TX_PACKETS = 8; + + /** + * The number of structural features of the '<em>Container Network Stats</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_NETWORK_STATS_FEATURE_COUNT = 9; + + /** + * The number of operations of the '<em>Container Network Stats</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_NETWORK_STATS_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.docker.impl.ContainerMemoryStatsImpl <em>Container Memory Stats</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.ContainerMemoryStatsImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getContainerMemoryStats() + * @generated + */ + int CONTAINER_MEMORY_STATS = 21; + + /** + * The feature id for the '<em><b>Total pgmajfault</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_MEMORY_STATS__TOTAL_PGMAJFAULT = 0; + + /** + * The feature id for the '<em><b>Cache</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_MEMORY_STATS__CACHE = 1; + + /** + * The feature id for the '<em><b>Mapped file</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_MEMORY_STATS__MAPPED_FILE = 2; + + /** + * The feature id for the '<em><b>Total inactive file</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_MEMORY_STATS__TOTAL_INACTIVE_FILE = 3; + + /** + * The feature id for the '<em><b>Pgpgout</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_MEMORY_STATS__PGPGOUT = 4; + + /** + * The feature id for the '<em><b>Rss</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_MEMORY_STATS__RSS = 5; + + /** + * The feature id for the '<em><b>Total mapped file</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_MEMORY_STATS__TOTAL_MAPPED_FILE = 6; + + /** + * The feature id for the '<em><b>Writeback</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_MEMORY_STATS__WRITEBACK = 7; + + /** + * The feature id for the '<em><b>Unevictable</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_MEMORY_STATS__UNEVICTABLE = 8; + + /** + * The feature id for the '<em><b>Pgpgin</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_MEMORY_STATS__PGPGIN = 9; + + /** + * The feature id for the '<em><b>Total unevictable</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_MEMORY_STATS__TOTAL_UNEVICTABLE = 10; + + /** + * The feature id for the '<em><b>Pgmajfault</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_MEMORY_STATS__PGMAJFAULT = 11; + + /** + * The feature id for the '<em><b>Total rss</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_MEMORY_STATS__TOTAL_RSS = 12; + + /** + * The feature id for the '<em><b>Total rss huge</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_MEMORY_STATS__TOTAL_RSS_HUGE = 13; + + /** + * The feature id for the '<em><b>Total writeback</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_MEMORY_STATS__TOTAL_WRITEBACK = 14; + + /** + * The feature id for the '<em><b>Total inactive anon</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_MEMORY_STATS__TOTAL_INACTIVE_ANON = 15; + + /** + * The feature id for the '<em><b>Rss huge</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_MEMORY_STATS__RSS_HUGE = 16; + + /** + * The feature id for the '<em><b>Hierarchical memory limit</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_MEMORY_STATS__HIERARCHICAL_MEMORY_LIMIT = 17; + + /** + * The feature id for the '<em><b>Total pgfault</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_MEMORY_STATS__TOTAL_PGFAULT = 18; + + /** + * The feature id for the '<em><b>Total active file</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_MEMORY_STATS__TOTAL_ACTIVE_FILE = 19; + + /** + * The feature id for the '<em><b>Active anon</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_MEMORY_STATS__ACTIVE_ANON = 20; + + /** + * The feature id for the '<em><b>Total active anon</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_MEMORY_STATS__TOTAL_ACTIVE_ANON = 21; + + /** + * The feature id for the '<em><b>Total pgpgout</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_MEMORY_STATS__TOTAL_PGPGOUT = 22; + + /** + * The feature id for the '<em><b>Total cache</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_MEMORY_STATS__TOTAL_CACHE = 23; + + /** + * The feature id for the '<em><b>Inactive anon</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_MEMORY_STATS__INACTIVE_ANON = 24; + + /** + * The feature id for the '<em><b>Active file</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_MEMORY_STATS__ACTIVE_FILE = 25; + + /** + * The feature id for the '<em><b>Pgfault</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_MEMORY_STATS__PGFAULT = 26; + + /** + * The feature id for the '<em><b>Inactive file</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_MEMORY_STATS__INACTIVE_FILE = 27; + + /** + * The feature id for the '<em><b>Total pgpgin</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_MEMORY_STATS__TOTAL_PGPGIN = 28; + + /** + * The number of structural features of the '<em>Container Memory Stats</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_MEMORY_STATS_FEATURE_COUNT = 29; + + /** + * The number of operations of the '<em>Container Memory Stats</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_MEMORY_STATS_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.docker.impl.ContainerMemoryUsageImpl <em>Container Memory Usage</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.ContainerMemoryUsageImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getContainerMemoryUsage() + * @generated + */ + int CONTAINER_MEMORY_USAGE = 22; + + /** + * The feature id for the '<em><b>Memstats</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_MEMORY_USAGE__MEMSTATS = 0; + + /** + * The feature id for the '<em><b>Max usage</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_MEMORY_USAGE__MAX_USAGE = 1; + + /** + * The feature id for the '<em><b>Usage</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_MEMORY_USAGE__USAGE = 2; + + /** + * The feature id for the '<em><b>Failcnt</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_MEMORY_USAGE__FAILCNT = 3; + + /** + * The feature id for the '<em><b>Limit</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_MEMORY_USAGE__LIMIT = 4; + + /** + * The number of structural features of the '<em>Container Memory Usage</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_MEMORY_USAGE_FEATURE_COUNT = 5; + + /** + * The number of operations of the '<em>Container Memory Usage</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_MEMORY_USAGE_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.docker.impl.ContainerCpuUsageImpl <em>Container Cpu Usage</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.ContainerCpuUsageImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getContainerCpuUsage() + * @generated + */ + int CONTAINER_CPU_USAGE = 23; + + /** + * The feature id for the '<em><b>Percpu usage</b></em>' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_CPU_USAGE__PERCPU_USAGE = 0; + + /** + * The feature id for the '<em><b>Usage in usermode</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_CPU_USAGE__USAGE_IN_USERMODE = 1; + + /** + * The feature id for the '<em><b>Total usage</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_CPU_USAGE__TOTAL_USAGE = 2; + + /** + * The feature id for the '<em><b>User in kernelmode</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_CPU_USAGE__USER_IN_KERNELMODE = 3; + + /** + * The number of structural features of the '<em>Container Cpu Usage</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_CPU_USAGE_FEATURE_COUNT = 4; + + /** + * The number of operations of the '<em>Container Cpu Usage</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_CPU_USAGE_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.docker.impl.ContainerCpuStatsImpl <em>Container Cpu Stats</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.ContainerCpuStatsImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getContainerCpuStats() + * @generated + */ + int CONTAINER_CPU_STATS = 24; + + /** + * The feature id for the '<em><b>Cpu usage</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_CPU_STATS__CPU_USAGE = 0; + + /** + * The feature id for the '<em><b>System cpu usage</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_CPU_STATS__SYSTEM_CPU_USAGE = 1; + + /** + * The number of structural features of the '<em>Container Cpu Stats</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_CPU_STATS_FEATURE_COUNT = 2; + + /** + * The number of operations of the '<em>Container Cpu Stats</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTAINER_CPU_STATS_OPERATION_COUNT = 0; + + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.docker.DockerAdaptor <em>Adaptor</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Adaptor</em>'. + * @see org.openecomp.ncomp.docker.DockerAdaptor + * @generated + */ + EClass getDockerAdaptor(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.docker.DockerAdaptor#getDockerHosts <em>Docker Hosts</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Docker Hosts</em>'. + * @see org.openecomp.ncomp.docker.DockerAdaptor#getDockerHosts() + * @see #getDockerAdaptor() + * @generated + */ + EReference getDockerAdaptor_DockerHosts(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.docker.DockerHost <em>Host</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Host</em>'. + * @see org.openecomp.ncomp.docker.DockerHost + * @generated + */ + EClass getDockerHost(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerHost#getUrl <em>Url</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Url</em>'. + * @see org.openecomp.ncomp.docker.DockerHost#getUrl() + * @see #getDockerHost() + * @generated + */ + EAttribute getDockerHost_Url(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerHost#getPollingFrequency <em>Polling Frequency</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Polling Frequency</em>'. + * @see org.openecomp.ncomp.docker.DockerHost#getPollingFrequency() + * @see #getDockerHost() + * @generated + */ + EAttribute getDockerHost_PollingFrequency(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerHost#isRemote <em>Remote</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Remote</em>'. + * @see org.openecomp.ncomp.docker.DockerHost#isRemote() + * @see #getDockerHost() + * @generated + */ + EAttribute getDockerHost_Remote(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.docker.DockerHost#getImages <em>Images</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Images</em>'. + * @see org.openecomp.ncomp.docker.DockerHost#getImages() + * @see #getDockerHost() + * @generated + */ + EReference getDockerHost_Images(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.docker.DockerHost#getContainers <em>Containers</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Containers</em>'. + * @see org.openecomp.ncomp.docker.DockerHost#getContainers() + * @see #getDockerHost() + * @generated + */ + EReference getDockerHost_Containers(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.docker.DockerHost#getNetworks <em>Networks</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Networks</em>'. + * @see org.openecomp.ncomp.docker.DockerHost#getNetworks() + * @see #getDockerHost() + * @generated + */ + EReference getDockerHost_Networks(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.docker.DockerHost#poll() <em>Poll</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Poll</em>' operation. + * @see org.openecomp.ncomp.docker.DockerHost#poll() + * @generated + */ + EOperation getDockerHost__Poll(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.docker.DockerHost#startContainer(java.lang.String) <em>Start Container</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Start Container</em>' operation. + * @see org.openecomp.ncomp.docker.DockerHost#startContainer(java.lang.String) + * @generated + */ + EOperation getDockerHost__StartContainer__String(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.docker.DockerHost#stopContainer(java.lang.String, int) <em>Stop Container</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Stop Container</em>' operation. + * @see org.openecomp.ncomp.docker.DockerHost#stopContainer(java.lang.String, int) + * @generated + */ + EOperation getDockerHost__StopContainer__String_int(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.docker.DockerHost#restartContainer(java.lang.String, int) <em>Restart Container</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Restart Container</em>' operation. + * @see org.openecomp.ncomp.docker.DockerHost#restartContainer(java.lang.String, int) + * @generated + */ + EOperation getDockerHost__RestartContainer__String_int(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.docker.DockerHost#pauseContainer(java.lang.String) <em>Pause Container</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Pause Container</em>' operation. + * @see org.openecomp.ncomp.docker.DockerHost#pauseContainer(java.lang.String) + * @generated + */ + EOperation getDockerHost__PauseContainer__String(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.docker.DockerHost#unpauseContainer(java.lang.String) <em>Unpause Container</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Unpause Container</em>' operation. + * @see org.openecomp.ncomp.docker.DockerHost#unpauseContainer(java.lang.String) + * @generated + */ + EOperation getDockerHost__UnpauseContainer__String(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.docker.DockerHost#removeContainer(java.lang.String, boolean, boolean) <em>Remove Container</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Remove Container</em>' operation. + * @see org.openecomp.ncomp.docker.DockerHost#removeContainer(java.lang.String, boolean, boolean) + * @generated + */ + EOperation getDockerHost__RemoveContainer__String_boolean_boolean(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.docker.DockerHost#inspectContainer(java.lang.String) <em>Inspect Container</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Inspect Container</em>' operation. + * @see org.openecomp.ncomp.docker.DockerHost#inspectContainer(java.lang.String) + * @generated + */ + EOperation getDockerHost__InspectContainer__String(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.docker.DockerHost#killContainer(java.lang.String, java.lang.String) <em>Kill Container</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Kill Container</em>' operation. + * @see org.openecomp.ncomp.docker.DockerHost#killContainer(java.lang.String, java.lang.String) + * @generated + */ + EOperation getDockerHost__KillContainer__String_String(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.docker.DockerHost#dockerRun(java.lang.String) <em>Docker Run</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Docker Run</em>' operation. + * @see org.openecomp.ncomp.docker.DockerHost#dockerRun(java.lang.String) + * @generated + */ + EOperation getDockerHost__DockerRun__String(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.docker.DockerHost#dockerRunWithName(java.lang.String, java.lang.String) <em>Docker Run With Name</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Docker Run With Name</em>' operation. + * @see org.openecomp.ncomp.docker.DockerHost#dockerRunWithName(java.lang.String, java.lang.String) + * @generated + */ + EOperation getDockerHost__DockerRunWithName__String_String(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.docker.DockerHost#dockerRunWithOptions(java.lang.String, org.openecomp.ncomp.docker.ContainerOptions) <em>Docker Run With Options</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Docker Run With Options</em>' operation. + * @see org.openecomp.ncomp.docker.DockerHost#dockerRunWithOptions(java.lang.String, org.openecomp.ncomp.docker.ContainerOptions) + * @generated + */ + EOperation getDockerHost__DockerRunWithOptions__String_ContainerOptions(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.docker.DockerHost#containerStats(java.lang.String, boolean) <em>Container Stats</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Container Stats</em>' operation. + * @see org.openecomp.ncomp.docker.DockerHost#containerStats(java.lang.String, boolean) + * @generated + */ + EOperation getDockerHost__ContainerStats__String_boolean(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.docker.DockerHost#containerProcesses(java.lang.String) <em>Container Processes</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Container Processes</em>' operation. + * @see org.openecomp.ncomp.docker.DockerHost#containerProcesses(java.lang.String) + * @generated + */ + EOperation getDockerHost__ContainerProcesses__String(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.docker.DockerImage <em>Image</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Image</em>'. + * @see org.openecomp.ncomp.docker.DockerImage + * @generated + */ + EClass getDockerImage(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerImage#getId <em>Id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Id</em>'. + * @see org.openecomp.ncomp.docker.DockerImage#getId() + * @see #getDockerImage() + * @generated + */ + EAttribute getDockerImage_Id(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerImage#getParentId <em>Parent Id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Parent Id</em>'. + * @see org.openecomp.ncomp.docker.DockerImage#getParentId() + * @see #getDockerImage() + * @generated + */ + EAttribute getDockerImage_ParentId(); + + /** + * Returns the meta object for the attribute list '{@link org.openecomp.ncomp.docker.DockerImage#getRepoTags <em>Repo Tags</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute list '<em>Repo Tags</em>'. + * @see org.openecomp.ncomp.docker.DockerImage#getRepoTags() + * @see #getDockerImage() + * @generated + */ + EAttribute getDockerImage_RepoTags(); + + /** + * Returns the meta object for the attribute list '{@link org.openecomp.ncomp.docker.DockerImage#getRepoDigests <em>Repo Digests</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute list '<em>Repo Digests</em>'. + * @see org.openecomp.ncomp.docker.DockerImage#getRepoDigests() + * @see #getDockerImage() + * @generated + */ + EAttribute getDockerImage_RepoDigests(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerImage#getDockerCreated <em>Docker Created</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Docker Created</em>'. + * @see org.openecomp.ncomp.docker.DockerImage#getDockerCreated() + * @see #getDockerImage() + * @generated + */ + EAttribute getDockerImage_DockerCreated(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerImage#getSize <em>Size</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Size</em>'. + * @see org.openecomp.ncomp.docker.DockerImage#getSize() + * @see #getDockerImage() + * @generated + */ + EAttribute getDockerImage_Size(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerImage#getVirtualSize <em>Virtual Size</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Virtual Size</em>'. + * @see org.openecomp.ncomp.docker.DockerImage#getVirtualSize() + * @see #getDockerImage() + * @generated + */ + EAttribute getDockerImage_VirtualSize(); + + /** + * Returns the meta object for the attribute list '{@link org.openecomp.ncomp.docker.DockerImage#getLabels <em>Labels</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute list '<em>Labels</em>'. + * @see org.openecomp.ncomp.docker.DockerImage#getLabels() + * @see #getDockerImage() + * @generated + */ + EAttribute getDockerImage_Labels(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.docker.DockerContainer <em>Container</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Container</em>'. + * @see org.openecomp.ncomp.docker.DockerContainer + * @generated + */ + EClass getDockerContainer(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerContainer#getId <em>Id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Id</em>'. + * @see org.openecomp.ncomp.docker.DockerContainer#getId() + * @see #getDockerContainer() + * @generated + */ + EAttribute getDockerContainer_Id(); + + /** + * Returns the meta object for the attribute list '{@link org.openecomp.ncomp.docker.DockerContainer#getNames <em>Names</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute list '<em>Names</em>'. + * @see org.openecomp.ncomp.docker.DockerContainer#getNames() + * @see #getDockerContainer() + * @generated + */ + EAttribute getDockerContainer_Names(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerContainer#getImage <em>Image</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Image</em>'. + * @see org.openecomp.ncomp.docker.DockerContainer#getImage() + * @see #getDockerContainer() + * @generated + */ + EAttribute getDockerContainer_Image(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerContainer#getImageID <em>Image ID</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Image ID</em>'. + * @see org.openecomp.ncomp.docker.DockerContainer#getImageID() + * @see #getDockerContainer() + * @generated + */ + EAttribute getDockerContainer_ImageID(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerContainer#getCommand <em>Command</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Command</em>'. + * @see org.openecomp.ncomp.docker.DockerContainer#getCommand() + * @see #getDockerContainer() + * @generated + */ + EAttribute getDockerContainer_Command(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerContainer#getDockerCreated <em>Docker Created</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Docker Created</em>'. + * @see org.openecomp.ncomp.docker.DockerContainer#getDockerCreated() + * @see #getDockerContainer() + * @generated + */ + EAttribute getDockerContainer_DockerCreated(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.docker.DockerContainer#getPorts <em>Ports</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Ports</em>'. + * @see org.openecomp.ncomp.docker.DockerContainer#getPorts() + * @see #getDockerContainer() + * @generated + */ + EReference getDockerContainer_Ports(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.docker.DockerContainer#getLabels <em>Labels</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Labels</em>'. + * @see org.openecomp.ncomp.docker.DockerContainer#getLabels() + * @see #getDockerContainer() + * @generated + */ + EReference getDockerContainer_Labels(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerContainer#getStatus <em>Status</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Status</em>'. + * @see org.openecomp.ncomp.docker.DockerContainer#getStatus() + * @see #getDockerContainer() + * @generated + */ + EAttribute getDockerContainer_Status(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.docker.DockerContainer#getHostConfig <em>Host Config</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Host Config</em>'. + * @see org.openecomp.ncomp.docker.DockerContainer#getHostConfig() + * @see #getDockerContainer() + * @generated + */ + EReference getDockerContainer_HostConfig(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.docker.DockerContainer#getProcesses <em>Processes</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Processes</em>'. + * @see org.openecomp.ncomp.docker.DockerContainer#getProcesses() + * @see #getDockerContainer() + * @generated + */ + EReference getDockerContainer_Processes(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.docker.DockerContainer#getMounts <em>Mounts</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Mounts</em>'. + * @see org.openecomp.ncomp.docker.DockerContainer#getMounts() + * @see #getDockerContainer() + * @generated + */ + EReference getDockerContainer_Mounts(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.ncomp.docker.DockerContainer#getStats <em>Stats</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Stats</em>'. + * @see org.openecomp.ncomp.docker.DockerContainer#getStats() + * @see #getDockerContainer() + * @generated + */ + EReference getDockerContainer_Stats(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.docker.DockerContainer#getEvents <em>Events</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Events</em>'. + * @see org.openecomp.ncomp.docker.DockerContainer#getEvents() + * @see #getDockerContainer() + * @generated + */ + EReference getDockerContainer_Events(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.docker.DockerPort <em>Port</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Port</em>'. + * @see org.openecomp.ncomp.docker.DockerPort + * @generated + */ + EClass getDockerPort(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerPort#getPrivatePort <em>Private Port</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Private Port</em>'. + * @see org.openecomp.ncomp.docker.DockerPort#getPrivatePort() + * @see #getDockerPort() + * @generated + */ + EAttribute getDockerPort_PrivatePort(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerPort#getPublicPort <em>Public Port</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Public Port</em>'. + * @see org.openecomp.ncomp.docker.DockerPort#getPublicPort() + * @see #getDockerPort() + * @generated + */ + EAttribute getDockerPort_PublicPort(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerPort#getType <em>Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Type</em>'. + * @see org.openecomp.ncomp.docker.DockerPort#getType() + * @see #getDockerPort() + * @generated + */ + EAttribute getDockerPort_Type(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.docker.DockerKeyPair <em>Key Pair</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Key Pair</em>'. + * @see org.openecomp.ncomp.docker.DockerKeyPair + * @generated + */ + EClass getDockerKeyPair(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerKeyPair#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.openecomp.ncomp.docker.DockerKeyPair#getName() + * @see #getDockerKeyPair() + * @generated + */ + EAttribute getDockerKeyPair_Name(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerKeyPair#getValue <em>Value</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Value</em>'. + * @see org.openecomp.ncomp.docker.DockerKeyPair#getValue() + * @see #getDockerKeyPair() + * @generated + */ + EAttribute getDockerKeyPair_Value(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.docker.DockerMount <em>Mount</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Mount</em>'. + * @see org.openecomp.ncomp.docker.DockerMount + * @generated + */ + EClass getDockerMount(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerMount#getSource <em>Source</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Source</em>'. + * @see org.openecomp.ncomp.docker.DockerMount#getSource() + * @see #getDockerMount() + * @generated + */ + EAttribute getDockerMount_Source(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerMount#getDestination <em>Destination</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Destination</em>'. + * @see org.openecomp.ncomp.docker.DockerMount#getDestination() + * @see #getDockerMount() + * @generated + */ + EAttribute getDockerMount_Destination(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerMount#getMode <em>Mode</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Mode</em>'. + * @see org.openecomp.ncomp.docker.DockerMount#getMode() + * @see #getDockerMount() + * @generated + */ + EAttribute getDockerMount_Mode(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerMount#getRW <em>RW</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>RW</em>'. + * @see org.openecomp.ncomp.docker.DockerMount#getRW() + * @see #getDockerMount() + * @generated + */ + EAttribute getDockerMount_RW(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerMount#getPropagation <em>Propagation</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Propagation</em>'. + * @see org.openecomp.ncomp.docker.DockerMount#getPropagation() + * @see #getDockerMount() + * @generated + */ + EAttribute getDockerMount_Propagation(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.docker.ContainerOptions <em>Container Options</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Container Options</em>'. + * @see org.openecomp.ncomp.docker.ContainerOptions + * @generated + */ + EClass getContainerOptions(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerOptions#getImageNm <em>Image Nm</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Image Nm</em>'. + * @see org.openecomp.ncomp.docker.ContainerOptions#getImageNm() + * @see #getContainerOptions() + * @generated + */ + EAttribute getContainerOptions_ImageNm(); + + /** + * Returns the meta object for the attribute list '{@link org.openecomp.ncomp.docker.ContainerOptions#getEnv <em>Env</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute list '<em>Env</em>'. + * @see org.openecomp.ncomp.docker.ContainerOptions#getEnv() + * @see #getContainerOptions() + * @generated + */ + EAttribute getContainerOptions_Env(); + + /** + * Returns the meta object for the attribute list '{@link org.openecomp.ncomp.docker.ContainerOptions#getVolumes <em>Volumes</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute list '<em>Volumes</em>'. + * @see org.openecomp.ncomp.docker.ContainerOptions#getVolumes() + * @see #getContainerOptions() + * @generated + */ + EAttribute getContainerOptions_Volumes(); + + /** + * Returns the meta object for the attribute list '{@link org.openecomp.ncomp.docker.ContainerOptions#getLinks <em>Links</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute list '<em>Links</em>'. + * @see org.openecomp.ncomp.docker.ContainerOptions#getLinks() + * @see #getContainerOptions() + * @generated + */ + EAttribute getContainerOptions_Links(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerOptions#isSetContainerName <em>Set Container Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Set Container Name</em>'. + * @see org.openecomp.ncomp.docker.ContainerOptions#isSetContainerName() + * @see #getContainerOptions() + * @generated + */ + EAttribute getContainerOptions_SetContainerName(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerOptions#isPublishAllPorts <em>Publish All Ports</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Publish All Ports</em>'. + * @see org.openecomp.ncomp.docker.ContainerOptions#isPublishAllPorts() + * @see #getContainerOptions() + * @generated + */ + EAttribute getContainerOptions_PublishAllPorts(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.docker.ContainerOptions#getPortBindings <em>Port Bindings</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Port Bindings</em>'. + * @see org.openecomp.ncomp.docker.ContainerOptions#getPortBindings() + * @see #getContainerOptions() + * @generated + */ + EReference getContainerOptions_PortBindings(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.ncomp.docker.ContainerOptions#getAutoRestart <em>Auto Restart</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Auto Restart</em>'. + * @see org.openecomp.ncomp.docker.ContainerOptions#getAutoRestart() + * @see #getContainerOptions() + * @generated + */ + EReference getContainerOptions_AutoRestart(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.docker.ContainerRestartPolicy <em>Container Restart Policy</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Container Restart Policy</em>'. + * @see org.openecomp.ncomp.docker.ContainerRestartPolicy + * @generated + */ + EClass getContainerRestartPolicy(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerRestartPolicy#getNm <em>Nm</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Nm</em>'. + * @see org.openecomp.ncomp.docker.ContainerRestartPolicy#getNm() + * @see #getContainerRestartPolicy() + * @generated + */ + EAttribute getContainerRestartPolicy_Nm(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerRestartPolicy#getMaxRetryCnt <em>Max Retry Cnt</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Max Retry Cnt</em>'. + * @see org.openecomp.ncomp.docker.ContainerRestartPolicy#getMaxRetryCnt() + * @see #getContainerRestartPolicy() + * @generated + */ + EAttribute getContainerRestartPolicy_MaxRetryCnt(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.docker.ContainerPortBindings <em>Container Port Bindings</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Container Port Bindings</em>'. + * @see org.openecomp.ncomp.docker.ContainerPortBindings + * @generated + */ + EClass getContainerPortBindings(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerPortBindings#getContainerPort <em>Container Port</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Container Port</em>'. + * @see org.openecomp.ncomp.docker.ContainerPortBindings#getContainerPort() + * @see #getContainerPortBindings() + * @generated + */ + EAttribute getContainerPortBindings_ContainerPort(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerPortBindings#getProtocol <em>Protocol</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Protocol</em>'. + * @see org.openecomp.ncomp.docker.ContainerPortBindings#getProtocol() + * @see #getContainerPortBindings() + * @generated + */ + EAttribute getContainerPortBindings_Protocol(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerPortBindings#getVmPort <em>Vm Port</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Vm Port</em>'. + * @see org.openecomp.ncomp.docker.ContainerPortBindings#getVmPort() + * @see #getContainerPortBindings() + * @generated + */ + EAttribute getContainerPortBindings_VmPort(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.docker.DockerNetwork <em>Network</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Network</em>'. + * @see org.openecomp.ncomp.docker.DockerNetwork + * @generated + */ + EClass getDockerNetwork(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerNetwork#getId <em>Id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Id</em>'. + * @see org.openecomp.ncomp.docker.DockerNetwork#getId() + * @see #getDockerNetwork() + * @generated + */ + EAttribute getDockerNetwork_Id(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerNetwork#getScope <em>Scope</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Scope</em>'. + * @see org.openecomp.ncomp.docker.DockerNetwork#getScope() + * @see #getDockerNetwork() + * @generated + */ + EAttribute getDockerNetwork_Scope(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerNetwork#getDriver <em>Driver</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Driver</em>'. + * @see org.openecomp.ncomp.docker.DockerNetwork#getDriver() + * @see #getDockerNetwork() + * @generated + */ + EAttribute getDockerNetwork_Driver(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.ncomp.docker.DockerNetwork#getIPAM <em>IPAM</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>IPAM</em>'. + * @see org.openecomp.ncomp.docker.DockerNetwork#getIPAM() + * @see #getDockerNetwork() + * @generated + */ + EReference getDockerNetwork_IPAM(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.docker.DockerNetwork#getContainers <em>Containers</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Containers</em>'. + * @see org.openecomp.ncomp.docker.DockerNetwork#getContainers() + * @see #getDockerNetwork() + * @generated + */ + EReference getDockerNetwork_Containers(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.docker.DockerNetwork#getOptions <em>Options</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Options</em>'. + * @see org.openecomp.ncomp.docker.DockerNetwork#getOptions() + * @see #getDockerNetwork() + * @generated + */ + EReference getDockerNetwork_Options(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.docker.DockerIpam <em>Ipam</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Ipam</em>'. + * @see org.openecomp.ncomp.docker.DockerIpam + * @generated + */ + EClass getDockerIpam(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerIpam#getDriver <em>Driver</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Driver</em>'. + * @see org.openecomp.ncomp.docker.DockerIpam#getDriver() + * @see #getDockerIpam() + * @generated + */ + EAttribute getDockerIpam_Driver(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.docker.DockerIpam#getConfig <em>Config</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Config</em>'. + * @see org.openecomp.ncomp.docker.DockerIpam#getConfig() + * @see #getDockerIpam() + * @generated + */ + EReference getDockerIpam_Config(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.docker.DockerIpamConfig <em>Ipam Config</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Ipam Config</em>'. + * @see org.openecomp.ncomp.docker.DockerIpamConfig + * @generated + */ + EClass getDockerIpamConfig(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerIpamConfig#getSubnet <em>Subnet</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Subnet</em>'. + * @see org.openecomp.ncomp.docker.DockerIpamConfig#getSubnet() + * @see #getDockerIpamConfig() + * @generated + */ + EAttribute getDockerIpamConfig_Subnet(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.docker.DockerNetworkContainer <em>Network Container</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Network Container</em>'. + * @see org.openecomp.ncomp.docker.DockerNetworkContainer + * @generated + */ + EClass getDockerNetworkContainer(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerNetworkContainer#getId <em>Id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Id</em>'. + * @see org.openecomp.ncomp.docker.DockerNetworkContainer#getId() + * @see #getDockerNetworkContainer() + * @generated + */ + EAttribute getDockerNetworkContainer_Id(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerNetworkContainer#getIPv4Address <em>IPv4 Address</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>IPv4 Address</em>'. + * @see org.openecomp.ncomp.docker.DockerNetworkContainer#getIPv4Address() + * @see #getDockerNetworkContainer() + * @generated + */ + EAttribute getDockerNetworkContainer_IPv4Address(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerNetworkContainer#getIPv6Address <em>IPv6 Address</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>IPv6 Address</em>'. + * @see org.openecomp.ncomp.docker.DockerNetworkContainer#getIPv6Address() + * @see #getDockerNetworkContainer() + * @generated + */ + EAttribute getDockerNetworkContainer_IPv6Address(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerNetworkContainer#getEndpointID <em>Endpoint ID</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Endpoint ID</em>'. + * @see org.openecomp.ncomp.docker.DockerNetworkContainer#getEndpointID() + * @see #getDockerNetworkContainer() + * @generated + */ + EAttribute getDockerNetworkContainer_EndpointID(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerNetworkContainer#getMacAddress <em>Mac Address</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Mac Address</em>'. + * @see org.openecomp.ncomp.docker.DockerNetworkContainer#getMacAddress() + * @see #getDockerNetworkContainer() + * @generated + */ + EAttribute getDockerNetworkContainer_MacAddress(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.docker.DockerEvents <em>Events</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Events</em>'. + * @see org.openecomp.ncomp.docker.DockerEvents + * @generated + */ + EClass getDockerEvents(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerEvents#getStatus <em>Status</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Status</em>'. + * @see org.openecomp.ncomp.docker.DockerEvents#getStatus() + * @see #getDockerEvents() + * @generated + */ + EAttribute getDockerEvents_Status(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerEvents#getId <em>Id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Id</em>'. + * @see org.openecomp.ncomp.docker.DockerEvents#getId() + * @see #getDockerEvents() + * @generated + */ + EAttribute getDockerEvents_Id(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerEvents#getType <em>Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Type</em>'. + * @see org.openecomp.ncomp.docker.DockerEvents#getType() + * @see #getDockerEvents() + * @generated + */ + EAttribute getDockerEvents_Type(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerEvents#getAction <em>Action</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Action</em>'. + * @see org.openecomp.ncomp.docker.DockerEvents#getAction() + * @see #getDockerEvents() + * @generated + */ + EAttribute getDockerEvents_Action(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.ncomp.docker.DockerEvents#getActor <em>Actor</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Actor</em>'. + * @see org.openecomp.ncomp.docker.DockerEvents#getActor() + * @see #getDockerEvents() + * @generated + */ + EReference getDockerEvents_Actor(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerEvents#getTime <em>Time</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Time</em>'. + * @see org.openecomp.ncomp.docker.DockerEvents#getTime() + * @see #getDockerEvents() + * @generated + */ + EAttribute getDockerEvents_Time(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerEvents#getTimenano <em>Timenano</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Timenano</em>'. + * @see org.openecomp.ncomp.docker.DockerEvents#getTimenano() + * @see #getDockerEvents() + * @generated + */ + EAttribute getDockerEvents_Timenano(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.docker.DockerActor <em>Actor</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Actor</em>'. + * @see org.openecomp.ncomp.docker.DockerActor + * @generated + */ + EClass getDockerActor(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerActor#getId <em>Id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Id</em>'. + * @see org.openecomp.ncomp.docker.DockerActor#getId() + * @see #getDockerActor() + * @generated + */ + EAttribute getDockerActor_Id(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.ncomp.docker.DockerActor#getAttributes <em>Attributes</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Attributes</em>'. + * @see org.openecomp.ncomp.docker.DockerActor#getAttributes() + * @see #getDockerActor() + * @generated + */ + EReference getDockerActor_Attributes(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.docker.DockerActorAttributes <em>Actor Attributes</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Actor Attributes</em>'. + * @see org.openecomp.ncomp.docker.DockerActorAttributes + * @generated + */ + EClass getDockerActorAttributes(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerActorAttributes#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.openecomp.ncomp.docker.DockerActorAttributes#getName() + * @see #getDockerActorAttributes() + * @generated + */ + EAttribute getDockerActorAttributes_Name(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.docker.DockerCreateRequest <em>Create Request</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Create Request</em>'. + * @see org.openecomp.ncomp.docker.DockerCreateRequest + * @generated + */ + EClass getDockerCreateRequest(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerCreateRequest#getHostname <em>Hostname</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Hostname</em>'. + * @see org.openecomp.ncomp.docker.DockerCreateRequest#getHostname() + * @see #getDockerCreateRequest() + * @generated + */ + EAttribute getDockerCreateRequest_Hostname(); + + /** + * Returns the meta object for the attribute list '{@link org.openecomp.ncomp.docker.DockerCreateRequest#getCmd <em>Cmd</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute list '<em>Cmd</em>'. + * @see org.openecomp.ncomp.docker.DockerCreateRequest#getCmd() + * @see #getDockerCreateRequest() + * @generated + */ + EAttribute getDockerCreateRequest_Cmd(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.docker.DockerProcess <em>Process</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Process</em>'. + * @see org.openecomp.ncomp.docker.DockerProcess + * @generated + */ + EClass getDockerProcess(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerProcess#getUser <em>User</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>User</em>'. + * @see org.openecomp.ncomp.docker.DockerProcess#getUser() + * @see #getDockerProcess() + * @generated + */ + EAttribute getDockerProcess_User(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerProcess#getPid <em>Pid</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Pid</em>'. + * @see org.openecomp.ncomp.docker.DockerProcess#getPid() + * @see #getDockerProcess() + * @generated + */ + EAttribute getDockerProcess_Pid(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerProcess#getCpu <em>Cpu</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Cpu</em>'. + * @see org.openecomp.ncomp.docker.DockerProcess#getCpu() + * @see #getDockerProcess() + * @generated + */ + EAttribute getDockerProcess_Cpu(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerProcess#getMem <em>Mem</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Mem</em>'. + * @see org.openecomp.ncomp.docker.DockerProcess#getMem() + * @see #getDockerProcess() + * @generated + */ + EAttribute getDockerProcess_Mem(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerProcess#getVsz <em>Vsz</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Vsz</em>'. + * @see org.openecomp.ncomp.docker.DockerProcess#getVsz() + * @see #getDockerProcess() + * @generated + */ + EAttribute getDockerProcess_Vsz(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerProcess#getRss <em>Rss</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Rss</em>'. + * @see org.openecomp.ncomp.docker.DockerProcess#getRss() + * @see #getDockerProcess() + * @generated + */ + EAttribute getDockerProcess_Rss(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerProcess#getTty <em>Tty</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Tty</em>'. + * @see org.openecomp.ncomp.docker.DockerProcess#getTty() + * @see #getDockerProcess() + * @generated + */ + EAttribute getDockerProcess_Tty(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerProcess#getStat <em>Stat</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Stat</em>'. + * @see org.openecomp.ncomp.docker.DockerProcess#getStat() + * @see #getDockerProcess() + * @generated + */ + EAttribute getDockerProcess_Stat(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerProcess#getStart <em>Start</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Start</em>'. + * @see org.openecomp.ncomp.docker.DockerProcess#getStart() + * @see #getDockerProcess() + * @generated + */ + EAttribute getDockerProcess_Start(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerProcess#getTimeElapsed <em>Time Elapsed</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Time Elapsed</em>'. + * @see org.openecomp.ncomp.docker.DockerProcess#getTimeElapsed() + * @see #getDockerProcess() + * @generated + */ + EAttribute getDockerProcess_TimeElapsed(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerProcess#getCommand <em>Command</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Command</em>'. + * @see org.openecomp.ncomp.docker.DockerProcess#getCommand() + * @see #getDockerProcess() + * @generated + */ + EAttribute getDockerProcess_Command(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.docker.DockerContainerStats <em>Container Stats</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Container Stats</em>'. + * @see org.openecomp.ncomp.docker.DockerContainerStats + * @generated + */ + EClass getDockerContainerStats(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.docker.DockerContainerStats#getNetworks <em>Networks</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Networks</em>'. + * @see org.openecomp.ncomp.docker.DockerContainerStats#getNetworks() + * @see #getDockerContainerStats() + * @generated + */ + EReference getDockerContainerStats_Networks(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.ncomp.docker.DockerContainerStats#getMemory <em>Memory</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Memory</em>'. + * @see org.openecomp.ncomp.docker.DockerContainerStats#getMemory() + * @see #getDockerContainerStats() + * @generated + */ + EReference getDockerContainerStats_Memory(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.ncomp.docker.DockerContainerStats#getCpu <em>Cpu</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Cpu</em>'. + * @see org.openecomp.ncomp.docker.DockerContainerStats#getCpu() + * @see #getDockerContainerStats() + * @generated + */ + EReference getDockerContainerStats_Cpu(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.DockerContainerStats#getLastRead <em>Last Read</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Last Read</em>'. + * @see org.openecomp.ncomp.docker.DockerContainerStats#getLastRead() + * @see #getDockerContainerStats() + * @generated + */ + EAttribute getDockerContainerStats_LastRead(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.docker.ContainerNetworkStats <em>Container Network Stats</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Container Network Stats</em>'. + * @see org.openecomp.ncomp.docker.ContainerNetworkStats + * @generated + */ + EClass getContainerNetworkStats(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerNetworkStats#getIntf <em>Intf</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Intf</em>'. + * @see org.openecomp.ncomp.docker.ContainerNetworkStats#getIntf() + * @see #getContainerNetworkStats() + * @generated + */ + EAttribute getContainerNetworkStats_Intf(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerNetworkStats#getRx_bytes <em>Rx bytes</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Rx bytes</em>'. + * @see org.openecomp.ncomp.docker.ContainerNetworkStats#getRx_bytes() + * @see #getContainerNetworkStats() + * @generated + */ + EAttribute getContainerNetworkStats_Rx_bytes(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerNetworkStats#getRx_dropped <em>Rx dropped</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Rx dropped</em>'. + * @see org.openecomp.ncomp.docker.ContainerNetworkStats#getRx_dropped() + * @see #getContainerNetworkStats() + * @generated + */ + EAttribute getContainerNetworkStats_Rx_dropped(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerNetworkStats#getRx_errors <em>Rx errors</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Rx errors</em>'. + * @see org.openecomp.ncomp.docker.ContainerNetworkStats#getRx_errors() + * @see #getContainerNetworkStats() + * @generated + */ + EAttribute getContainerNetworkStats_Rx_errors(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerNetworkStats#getRx_packets <em>Rx packets</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Rx packets</em>'. + * @see org.openecomp.ncomp.docker.ContainerNetworkStats#getRx_packets() + * @see #getContainerNetworkStats() + * @generated + */ + EAttribute getContainerNetworkStats_Rx_packets(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerNetworkStats#getTx_bytes <em>Tx bytes</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Tx bytes</em>'. + * @see org.openecomp.ncomp.docker.ContainerNetworkStats#getTx_bytes() + * @see #getContainerNetworkStats() + * @generated + */ + EAttribute getContainerNetworkStats_Tx_bytes(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerNetworkStats#getTx_dropped <em>Tx dropped</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Tx dropped</em>'. + * @see org.openecomp.ncomp.docker.ContainerNetworkStats#getTx_dropped() + * @see #getContainerNetworkStats() + * @generated + */ + EAttribute getContainerNetworkStats_Tx_dropped(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerNetworkStats#getTx_errors <em>Tx errors</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Tx errors</em>'. + * @see org.openecomp.ncomp.docker.ContainerNetworkStats#getTx_errors() + * @see #getContainerNetworkStats() + * @generated + */ + EAttribute getContainerNetworkStats_Tx_errors(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerNetworkStats#getTx_packets <em>Tx packets</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Tx packets</em>'. + * @see org.openecomp.ncomp.docker.ContainerNetworkStats#getTx_packets() + * @see #getContainerNetworkStats() + * @generated + */ + EAttribute getContainerNetworkStats_Tx_packets(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.docker.ContainerMemoryStats <em>Container Memory Stats</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Container Memory Stats</em>'. + * @see org.openecomp.ncomp.docker.ContainerMemoryStats + * @generated + */ + EClass getContainerMemoryStats(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_pgmajfault <em>Total pgmajfault</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Total pgmajfault</em>'. + * @see org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_pgmajfault() + * @see #getContainerMemoryStats() + * @generated + */ + EAttribute getContainerMemoryStats_Total_pgmajfault(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getCache <em>Cache</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Cache</em>'. + * @see org.openecomp.ncomp.docker.ContainerMemoryStats#getCache() + * @see #getContainerMemoryStats() + * @generated + */ + EAttribute getContainerMemoryStats_Cache(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getMapped_file <em>Mapped file</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Mapped file</em>'. + * @see org.openecomp.ncomp.docker.ContainerMemoryStats#getMapped_file() + * @see #getContainerMemoryStats() + * @generated + */ + EAttribute getContainerMemoryStats_Mapped_file(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_inactive_file <em>Total inactive file</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Total inactive file</em>'. + * @see org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_inactive_file() + * @see #getContainerMemoryStats() + * @generated + */ + EAttribute getContainerMemoryStats_Total_inactive_file(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getPgpgout <em>Pgpgout</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Pgpgout</em>'. + * @see org.openecomp.ncomp.docker.ContainerMemoryStats#getPgpgout() + * @see #getContainerMemoryStats() + * @generated + */ + EAttribute getContainerMemoryStats_Pgpgout(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getRss <em>Rss</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Rss</em>'. + * @see org.openecomp.ncomp.docker.ContainerMemoryStats#getRss() + * @see #getContainerMemoryStats() + * @generated + */ + EAttribute getContainerMemoryStats_Rss(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_mapped_file <em>Total mapped file</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Total mapped file</em>'. + * @see org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_mapped_file() + * @see #getContainerMemoryStats() + * @generated + */ + EAttribute getContainerMemoryStats_Total_mapped_file(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getWriteback <em>Writeback</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Writeback</em>'. + * @see org.openecomp.ncomp.docker.ContainerMemoryStats#getWriteback() + * @see #getContainerMemoryStats() + * @generated + */ + EAttribute getContainerMemoryStats_Writeback(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getUnevictable <em>Unevictable</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Unevictable</em>'. + * @see org.openecomp.ncomp.docker.ContainerMemoryStats#getUnevictable() + * @see #getContainerMemoryStats() + * @generated + */ + EAttribute getContainerMemoryStats_Unevictable(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getPgpgin <em>Pgpgin</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Pgpgin</em>'. + * @see org.openecomp.ncomp.docker.ContainerMemoryStats#getPgpgin() + * @see #getContainerMemoryStats() + * @generated + */ + EAttribute getContainerMemoryStats_Pgpgin(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_unevictable <em>Total unevictable</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Total unevictable</em>'. + * @see org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_unevictable() + * @see #getContainerMemoryStats() + * @generated + */ + EAttribute getContainerMemoryStats_Total_unevictable(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getPgmajfault <em>Pgmajfault</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Pgmajfault</em>'. + * @see org.openecomp.ncomp.docker.ContainerMemoryStats#getPgmajfault() + * @see #getContainerMemoryStats() + * @generated + */ + EAttribute getContainerMemoryStats_Pgmajfault(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_rss <em>Total rss</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Total rss</em>'. + * @see org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_rss() + * @see #getContainerMemoryStats() + * @generated + */ + EAttribute getContainerMemoryStats_Total_rss(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_rss_huge <em>Total rss huge</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Total rss huge</em>'. + * @see org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_rss_huge() + * @see #getContainerMemoryStats() + * @generated + */ + EAttribute getContainerMemoryStats_Total_rss_huge(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_writeback <em>Total writeback</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Total writeback</em>'. + * @see org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_writeback() + * @see #getContainerMemoryStats() + * @generated + */ + EAttribute getContainerMemoryStats_Total_writeback(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_inactive_anon <em>Total inactive anon</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Total inactive anon</em>'. + * @see org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_inactive_anon() + * @see #getContainerMemoryStats() + * @generated + */ + EAttribute getContainerMemoryStats_Total_inactive_anon(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getRss_huge <em>Rss huge</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Rss huge</em>'. + * @see org.openecomp.ncomp.docker.ContainerMemoryStats#getRss_huge() + * @see #getContainerMemoryStats() + * @generated + */ + EAttribute getContainerMemoryStats_Rss_huge(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getHierarchical_memory_limit <em>Hierarchical memory limit</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Hierarchical memory limit</em>'. + * @see org.openecomp.ncomp.docker.ContainerMemoryStats#getHierarchical_memory_limit() + * @see #getContainerMemoryStats() + * @generated + */ + EAttribute getContainerMemoryStats_Hierarchical_memory_limit(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_pgfault <em>Total pgfault</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Total pgfault</em>'. + * @see org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_pgfault() + * @see #getContainerMemoryStats() + * @generated + */ + EAttribute getContainerMemoryStats_Total_pgfault(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_active_file <em>Total active file</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Total active file</em>'. + * @see org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_active_file() + * @see #getContainerMemoryStats() + * @generated + */ + EAttribute getContainerMemoryStats_Total_active_file(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getActive_anon <em>Active anon</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Active anon</em>'. + * @see org.openecomp.ncomp.docker.ContainerMemoryStats#getActive_anon() + * @see #getContainerMemoryStats() + * @generated + */ + EAttribute getContainerMemoryStats_Active_anon(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_active_anon <em>Total active anon</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Total active anon</em>'. + * @see org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_active_anon() + * @see #getContainerMemoryStats() + * @generated + */ + EAttribute getContainerMemoryStats_Total_active_anon(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_pgpgout <em>Total pgpgout</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Total pgpgout</em>'. + * @see org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_pgpgout() + * @see #getContainerMemoryStats() + * @generated + */ + EAttribute getContainerMemoryStats_Total_pgpgout(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_cache <em>Total cache</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Total cache</em>'. + * @see org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_cache() + * @see #getContainerMemoryStats() + * @generated + */ + EAttribute getContainerMemoryStats_Total_cache(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getInactive_anon <em>Inactive anon</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Inactive anon</em>'. + * @see org.openecomp.ncomp.docker.ContainerMemoryStats#getInactive_anon() + * @see #getContainerMemoryStats() + * @generated + */ + EAttribute getContainerMemoryStats_Inactive_anon(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getActive_file <em>Active file</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Active file</em>'. + * @see org.openecomp.ncomp.docker.ContainerMemoryStats#getActive_file() + * @see #getContainerMemoryStats() + * @generated + */ + EAttribute getContainerMemoryStats_Active_file(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getPgfault <em>Pgfault</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Pgfault</em>'. + * @see org.openecomp.ncomp.docker.ContainerMemoryStats#getPgfault() + * @see #getContainerMemoryStats() + * @generated + */ + EAttribute getContainerMemoryStats_Pgfault(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getInactive_file <em>Inactive file</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Inactive file</em>'. + * @see org.openecomp.ncomp.docker.ContainerMemoryStats#getInactive_file() + * @see #getContainerMemoryStats() + * @generated + */ + EAttribute getContainerMemoryStats_Inactive_file(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_pgpgin <em>Total pgpgin</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Total pgpgin</em>'. + * @see org.openecomp.ncomp.docker.ContainerMemoryStats#getTotal_pgpgin() + * @see #getContainerMemoryStats() + * @generated + */ + EAttribute getContainerMemoryStats_Total_pgpgin(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.docker.ContainerMemoryUsage <em>Container Memory Usage</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Container Memory Usage</em>'. + * @see org.openecomp.ncomp.docker.ContainerMemoryUsage + * @generated + */ + EClass getContainerMemoryUsage(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.ncomp.docker.ContainerMemoryUsage#getMemstats <em>Memstats</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Memstats</em>'. + * @see org.openecomp.ncomp.docker.ContainerMemoryUsage#getMemstats() + * @see #getContainerMemoryUsage() + * @generated + */ + EReference getContainerMemoryUsage_Memstats(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerMemoryUsage#getMax_usage <em>Max usage</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Max usage</em>'. + * @see org.openecomp.ncomp.docker.ContainerMemoryUsage#getMax_usage() + * @see #getContainerMemoryUsage() + * @generated + */ + EAttribute getContainerMemoryUsage_Max_usage(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerMemoryUsage#getUsage <em>Usage</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Usage</em>'. + * @see org.openecomp.ncomp.docker.ContainerMemoryUsage#getUsage() + * @see #getContainerMemoryUsage() + * @generated + */ + EAttribute getContainerMemoryUsage_Usage(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerMemoryUsage#getFailcnt <em>Failcnt</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Failcnt</em>'. + * @see org.openecomp.ncomp.docker.ContainerMemoryUsage#getFailcnt() + * @see #getContainerMemoryUsage() + * @generated + */ + EAttribute getContainerMemoryUsage_Failcnt(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerMemoryUsage#getLimit <em>Limit</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Limit</em>'. + * @see org.openecomp.ncomp.docker.ContainerMemoryUsage#getLimit() + * @see #getContainerMemoryUsage() + * @generated + */ + EAttribute getContainerMemoryUsage_Limit(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.docker.ContainerCpuUsage <em>Container Cpu Usage</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Container Cpu Usage</em>'. + * @see org.openecomp.ncomp.docker.ContainerCpuUsage + * @generated + */ + EClass getContainerCpuUsage(); + + /** + * Returns the meta object for the attribute list '{@link org.openecomp.ncomp.docker.ContainerCpuUsage#getPercpu_usage <em>Percpu usage</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute list '<em>Percpu usage</em>'. + * @see org.openecomp.ncomp.docker.ContainerCpuUsage#getPercpu_usage() + * @see #getContainerCpuUsage() + * @generated + */ + EAttribute getContainerCpuUsage_Percpu_usage(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerCpuUsage#getUsage_in_usermode <em>Usage in usermode</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Usage in usermode</em>'. + * @see org.openecomp.ncomp.docker.ContainerCpuUsage#getUsage_in_usermode() + * @see #getContainerCpuUsage() + * @generated + */ + EAttribute getContainerCpuUsage_Usage_in_usermode(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerCpuUsage#getTotal_usage <em>Total usage</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Total usage</em>'. + * @see org.openecomp.ncomp.docker.ContainerCpuUsage#getTotal_usage() + * @see #getContainerCpuUsage() + * @generated + */ + EAttribute getContainerCpuUsage_Total_usage(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerCpuUsage#getUser_in_kernelmode <em>User in kernelmode</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>User in kernelmode</em>'. + * @see org.openecomp.ncomp.docker.ContainerCpuUsage#getUser_in_kernelmode() + * @see #getContainerCpuUsage() + * @generated + */ + EAttribute getContainerCpuUsage_User_in_kernelmode(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.docker.ContainerCpuStats <em>Container Cpu Stats</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Container Cpu Stats</em>'. + * @see org.openecomp.ncomp.docker.ContainerCpuStats + * @generated + */ + EClass getContainerCpuStats(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.ncomp.docker.ContainerCpuStats#getCpu_usage <em>Cpu usage</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Cpu usage</em>'. + * @see org.openecomp.ncomp.docker.ContainerCpuStats#getCpu_usage() + * @see #getContainerCpuStats() + * @generated + */ + EReference getContainerCpuStats_Cpu_usage(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.docker.ContainerCpuStats#getSystem_cpu_usage <em>System cpu usage</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>System cpu usage</em>'. + * @see org.openecomp.ncomp.docker.ContainerCpuStats#getSystem_cpu_usage() + * @see #getContainerCpuStats() + * @generated + */ + EAttribute getContainerCpuStats_System_cpu_usage(); + + /** + * 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 + */ + DockerFactory getDockerFactory(); + + /** + * <!-- 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.ncomp.docker.impl.DockerAdaptorImpl <em>Adaptor</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.DockerAdaptorImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getDockerAdaptor() + * @generated + */ + EClass DOCKER_ADAPTOR = eINSTANCE.getDockerAdaptor(); + + /** + * The meta object literal for the '<em><b>Docker Hosts</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference DOCKER_ADAPTOR__DOCKER_HOSTS = eINSTANCE.getDockerAdaptor_DockerHosts(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.docker.impl.DockerHostImpl <em>Host</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.DockerHostImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getDockerHost() + * @generated + */ + EClass DOCKER_HOST = eINSTANCE.getDockerHost(); + + /** + * The meta object literal for the '<em><b>Url</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_HOST__URL = eINSTANCE.getDockerHost_Url(); + + /** + * The meta object literal for the '<em><b>Polling Frequency</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_HOST__POLLING_FREQUENCY = eINSTANCE.getDockerHost_PollingFrequency(); + + /** + * The meta object literal for the '<em><b>Remote</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_HOST__REMOTE = eINSTANCE.getDockerHost_Remote(); + + /** + * The meta object literal for the '<em><b>Images</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference DOCKER_HOST__IMAGES = eINSTANCE.getDockerHost_Images(); + + /** + * The meta object literal for the '<em><b>Containers</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference DOCKER_HOST__CONTAINERS = eINSTANCE.getDockerHost_Containers(); + + /** + * The meta object literal for the '<em><b>Networks</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference DOCKER_HOST__NETWORKS = eINSTANCE.getDockerHost_Networks(); + + /** + * The meta object literal for the '<em><b>Poll</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation DOCKER_HOST___POLL = eINSTANCE.getDockerHost__Poll(); + + /** + * The meta object literal for the '<em><b>Start Container</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation DOCKER_HOST___START_CONTAINER__STRING = eINSTANCE.getDockerHost__StartContainer__String(); + + /** + * The meta object literal for the '<em><b>Stop Container</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation DOCKER_HOST___STOP_CONTAINER__STRING_INT = eINSTANCE.getDockerHost__StopContainer__String_int(); + + /** + * The meta object literal for the '<em><b>Restart Container</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation DOCKER_HOST___RESTART_CONTAINER__STRING_INT = eINSTANCE.getDockerHost__RestartContainer__String_int(); + + /** + * The meta object literal for the '<em><b>Pause Container</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation DOCKER_HOST___PAUSE_CONTAINER__STRING = eINSTANCE.getDockerHost__PauseContainer__String(); + + /** + * The meta object literal for the '<em><b>Unpause Container</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation DOCKER_HOST___UNPAUSE_CONTAINER__STRING = eINSTANCE.getDockerHost__UnpauseContainer__String(); + + /** + * The meta object literal for the '<em><b>Remove Container</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation DOCKER_HOST___REMOVE_CONTAINER__STRING_BOOLEAN_BOOLEAN = eINSTANCE.getDockerHost__RemoveContainer__String_boolean_boolean(); + + /** + * The meta object literal for the '<em><b>Inspect Container</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation DOCKER_HOST___INSPECT_CONTAINER__STRING = eINSTANCE.getDockerHost__InspectContainer__String(); + + /** + * The meta object literal for the '<em><b>Kill Container</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation DOCKER_HOST___KILL_CONTAINER__STRING_STRING = eINSTANCE.getDockerHost__KillContainer__String_String(); + + /** + * The meta object literal for the '<em><b>Docker Run</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation DOCKER_HOST___DOCKER_RUN__STRING = eINSTANCE.getDockerHost__DockerRun__String(); + + /** + * The meta object literal for the '<em><b>Docker Run With Name</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation DOCKER_HOST___DOCKER_RUN_WITH_NAME__STRING_STRING = eINSTANCE.getDockerHost__DockerRunWithName__String_String(); + + /** + * The meta object literal for the '<em><b>Docker Run With Options</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation DOCKER_HOST___DOCKER_RUN_WITH_OPTIONS__STRING_CONTAINEROPTIONS = eINSTANCE.getDockerHost__DockerRunWithOptions__String_ContainerOptions(); + + /** + * The meta object literal for the '<em><b>Container Stats</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation DOCKER_HOST___CONTAINER_STATS__STRING_BOOLEAN = eINSTANCE.getDockerHost__ContainerStats__String_boolean(); + + /** + * The meta object literal for the '<em><b>Container Processes</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation DOCKER_HOST___CONTAINER_PROCESSES__STRING = eINSTANCE.getDockerHost__ContainerProcesses__String(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.docker.impl.DockerImageImpl <em>Image</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.DockerImageImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getDockerImage() + * @generated + */ + EClass DOCKER_IMAGE = eINSTANCE.getDockerImage(); + + /** + * The meta object literal for the '<em><b>Id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_IMAGE__ID = eINSTANCE.getDockerImage_Id(); + + /** + * The meta object literal for the '<em><b>Parent Id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_IMAGE__PARENT_ID = eINSTANCE.getDockerImage_ParentId(); + + /** + * The meta object literal for the '<em><b>Repo Tags</b></em>' attribute list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_IMAGE__REPO_TAGS = eINSTANCE.getDockerImage_RepoTags(); + + /** + * The meta object literal for the '<em><b>Repo Digests</b></em>' attribute list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_IMAGE__REPO_DIGESTS = eINSTANCE.getDockerImage_RepoDigests(); + + /** + * The meta object literal for the '<em><b>Docker Created</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_IMAGE__DOCKER_CREATED = eINSTANCE.getDockerImage_DockerCreated(); + + /** + * The meta object literal for the '<em><b>Size</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_IMAGE__SIZE = eINSTANCE.getDockerImage_Size(); + + /** + * The meta object literal for the '<em><b>Virtual Size</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_IMAGE__VIRTUAL_SIZE = eINSTANCE.getDockerImage_VirtualSize(); + + /** + * The meta object literal for the '<em><b>Labels</b></em>' attribute list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_IMAGE__LABELS = eINSTANCE.getDockerImage_Labels(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.docker.impl.DockerContainerImpl <em>Container</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.DockerContainerImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getDockerContainer() + * @generated + */ + EClass DOCKER_CONTAINER = eINSTANCE.getDockerContainer(); + + /** + * The meta object literal for the '<em><b>Id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_CONTAINER__ID = eINSTANCE.getDockerContainer_Id(); + + /** + * The meta object literal for the '<em><b>Names</b></em>' attribute list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_CONTAINER__NAMES = eINSTANCE.getDockerContainer_Names(); + + /** + * The meta object literal for the '<em><b>Image</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_CONTAINER__IMAGE = eINSTANCE.getDockerContainer_Image(); + + /** + * The meta object literal for the '<em><b>Image ID</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_CONTAINER__IMAGE_ID = eINSTANCE.getDockerContainer_ImageID(); + + /** + * The meta object literal for the '<em><b>Command</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_CONTAINER__COMMAND = eINSTANCE.getDockerContainer_Command(); + + /** + * The meta object literal for the '<em><b>Docker Created</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_CONTAINER__DOCKER_CREATED = eINSTANCE.getDockerContainer_DockerCreated(); + + /** + * The meta object literal for the '<em><b>Ports</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference DOCKER_CONTAINER__PORTS = eINSTANCE.getDockerContainer_Ports(); + + /** + * The meta object literal for the '<em><b>Labels</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference DOCKER_CONTAINER__LABELS = eINSTANCE.getDockerContainer_Labels(); + + /** + * The meta object literal for the '<em><b>Status</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_CONTAINER__STATUS = eINSTANCE.getDockerContainer_Status(); + + /** + * The meta object literal for the '<em><b>Host Config</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference DOCKER_CONTAINER__HOST_CONFIG = eINSTANCE.getDockerContainer_HostConfig(); + + /** + * The meta object literal for the '<em><b>Processes</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference DOCKER_CONTAINER__PROCESSES = eINSTANCE.getDockerContainer_Processes(); + + /** + * The meta object literal for the '<em><b>Mounts</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference DOCKER_CONTAINER__MOUNTS = eINSTANCE.getDockerContainer_Mounts(); + + /** + * The meta object literal for the '<em><b>Stats</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference DOCKER_CONTAINER__STATS = eINSTANCE.getDockerContainer_Stats(); + + /** + * The meta object literal for the '<em><b>Events</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference DOCKER_CONTAINER__EVENTS = eINSTANCE.getDockerContainer_Events(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.docker.impl.DockerPortImpl <em>Port</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.DockerPortImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getDockerPort() + * @generated + */ + EClass DOCKER_PORT = eINSTANCE.getDockerPort(); + + /** + * The meta object literal for the '<em><b>Private Port</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_PORT__PRIVATE_PORT = eINSTANCE.getDockerPort_PrivatePort(); + + /** + * The meta object literal for the '<em><b>Public Port</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_PORT__PUBLIC_PORT = eINSTANCE.getDockerPort_PublicPort(); + + /** + * The meta object literal for the '<em><b>Type</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_PORT__TYPE = eINSTANCE.getDockerPort_Type(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.docker.impl.DockerKeyPairImpl <em>Key Pair</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.DockerKeyPairImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getDockerKeyPair() + * @generated + */ + EClass DOCKER_KEY_PAIR = eINSTANCE.getDockerKeyPair(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_KEY_PAIR__NAME = eINSTANCE.getDockerKeyPair_Name(); + + /** + * The meta object literal for the '<em><b>Value</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_KEY_PAIR__VALUE = eINSTANCE.getDockerKeyPair_Value(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.docker.impl.DockerMountImpl <em>Mount</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.DockerMountImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getDockerMount() + * @generated + */ + EClass DOCKER_MOUNT = eINSTANCE.getDockerMount(); + + /** + * The meta object literal for the '<em><b>Source</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_MOUNT__SOURCE = eINSTANCE.getDockerMount_Source(); + + /** + * The meta object literal for the '<em><b>Destination</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_MOUNT__DESTINATION = eINSTANCE.getDockerMount_Destination(); + + /** + * The meta object literal for the '<em><b>Mode</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_MOUNT__MODE = eINSTANCE.getDockerMount_Mode(); + + /** + * The meta object literal for the '<em><b>RW</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_MOUNT__RW = eINSTANCE.getDockerMount_RW(); + + /** + * The meta object literal for the '<em><b>Propagation</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_MOUNT__PROPAGATION = eINSTANCE.getDockerMount_Propagation(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.docker.impl.ContainerOptionsImpl <em>Container Options</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.ContainerOptionsImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getContainerOptions() + * @generated + */ + EClass CONTAINER_OPTIONS = eINSTANCE.getContainerOptions(); + + /** + * The meta object literal for the '<em><b>Image Nm</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_OPTIONS__IMAGE_NM = eINSTANCE.getContainerOptions_ImageNm(); + + /** + * The meta object literal for the '<em><b>Env</b></em>' attribute list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_OPTIONS__ENV = eINSTANCE.getContainerOptions_Env(); + + /** + * The meta object literal for the '<em><b>Volumes</b></em>' attribute list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_OPTIONS__VOLUMES = eINSTANCE.getContainerOptions_Volumes(); + + /** + * The meta object literal for the '<em><b>Links</b></em>' attribute list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_OPTIONS__LINKS = eINSTANCE.getContainerOptions_Links(); + + /** + * The meta object literal for the '<em><b>Set Container Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_OPTIONS__SET_CONTAINER_NAME = eINSTANCE.getContainerOptions_SetContainerName(); + + /** + * The meta object literal for the '<em><b>Publish All Ports</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_OPTIONS__PUBLISH_ALL_PORTS = eINSTANCE.getContainerOptions_PublishAllPorts(); + + /** + * The meta object literal for the '<em><b>Port Bindings</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference CONTAINER_OPTIONS__PORT_BINDINGS = eINSTANCE.getContainerOptions_PortBindings(); + + /** + * The meta object literal for the '<em><b>Auto Restart</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference CONTAINER_OPTIONS__AUTO_RESTART = eINSTANCE.getContainerOptions_AutoRestart(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.docker.impl.ContainerRestartPolicyImpl <em>Container Restart Policy</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.ContainerRestartPolicyImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getContainerRestartPolicy() + * @generated + */ + EClass CONTAINER_RESTART_POLICY = eINSTANCE.getContainerRestartPolicy(); + + /** + * The meta object literal for the '<em><b>Nm</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_RESTART_POLICY__NM = eINSTANCE.getContainerRestartPolicy_Nm(); + + /** + * The meta object literal for the '<em><b>Max Retry Cnt</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_RESTART_POLICY__MAX_RETRY_CNT = eINSTANCE.getContainerRestartPolicy_MaxRetryCnt(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.docker.impl.ContainerPortBindingsImpl <em>Container Port Bindings</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.ContainerPortBindingsImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getContainerPortBindings() + * @generated + */ + EClass CONTAINER_PORT_BINDINGS = eINSTANCE.getContainerPortBindings(); + + /** + * The meta object literal for the '<em><b>Container Port</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_PORT_BINDINGS__CONTAINER_PORT = eINSTANCE.getContainerPortBindings_ContainerPort(); + + /** + * The meta object literal for the '<em><b>Protocol</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_PORT_BINDINGS__PROTOCOL = eINSTANCE.getContainerPortBindings_Protocol(); + + /** + * The meta object literal for the '<em><b>Vm Port</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_PORT_BINDINGS__VM_PORT = eINSTANCE.getContainerPortBindings_VmPort(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.docker.impl.DockerNetworkImpl <em>Network</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.DockerNetworkImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getDockerNetwork() + * @generated + */ + EClass DOCKER_NETWORK = eINSTANCE.getDockerNetwork(); + + /** + * The meta object literal for the '<em><b>Id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_NETWORK__ID = eINSTANCE.getDockerNetwork_Id(); + + /** + * The meta object literal for the '<em><b>Scope</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_NETWORK__SCOPE = eINSTANCE.getDockerNetwork_Scope(); + + /** + * The meta object literal for the '<em><b>Driver</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_NETWORK__DRIVER = eINSTANCE.getDockerNetwork_Driver(); + + /** + * The meta object literal for the '<em><b>IPAM</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference DOCKER_NETWORK__IPAM = eINSTANCE.getDockerNetwork_IPAM(); + + /** + * The meta object literal for the '<em><b>Containers</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference DOCKER_NETWORK__CONTAINERS = eINSTANCE.getDockerNetwork_Containers(); + + /** + * The meta object literal for the '<em><b>Options</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference DOCKER_NETWORK__OPTIONS = eINSTANCE.getDockerNetwork_Options(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.docker.impl.DockerIpamImpl <em>Ipam</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.DockerIpamImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getDockerIpam() + * @generated + */ + EClass DOCKER_IPAM = eINSTANCE.getDockerIpam(); + + /** + * The meta object literal for the '<em><b>Driver</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_IPAM__DRIVER = eINSTANCE.getDockerIpam_Driver(); + + /** + * The meta object literal for the '<em><b>Config</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference DOCKER_IPAM__CONFIG = eINSTANCE.getDockerIpam_Config(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.docker.impl.DockerIpamConfigImpl <em>Ipam Config</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.DockerIpamConfigImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getDockerIpamConfig() + * @generated + */ + EClass DOCKER_IPAM_CONFIG = eINSTANCE.getDockerIpamConfig(); + + /** + * The meta object literal for the '<em><b>Subnet</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_IPAM_CONFIG__SUBNET = eINSTANCE.getDockerIpamConfig_Subnet(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.docker.impl.DockerNetworkContainerImpl <em>Network Container</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.DockerNetworkContainerImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getDockerNetworkContainer() + * @generated + */ + EClass DOCKER_NETWORK_CONTAINER = eINSTANCE.getDockerNetworkContainer(); + + /** + * The meta object literal for the '<em><b>Id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_NETWORK_CONTAINER__ID = eINSTANCE.getDockerNetworkContainer_Id(); + + /** + * The meta object literal for the '<em><b>IPv4 Address</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_NETWORK_CONTAINER__IPV4_ADDRESS = eINSTANCE.getDockerNetworkContainer_IPv4Address(); + + /** + * The meta object literal for the '<em><b>IPv6 Address</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_NETWORK_CONTAINER__IPV6_ADDRESS = eINSTANCE.getDockerNetworkContainer_IPv6Address(); + + /** + * The meta object literal for the '<em><b>Endpoint ID</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_NETWORK_CONTAINER__ENDPOINT_ID = eINSTANCE.getDockerNetworkContainer_EndpointID(); + + /** + * The meta object literal for the '<em><b>Mac Address</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_NETWORK_CONTAINER__MAC_ADDRESS = eINSTANCE.getDockerNetworkContainer_MacAddress(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.docker.impl.DockerEventsImpl <em>Events</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.DockerEventsImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getDockerEvents() + * @generated + */ + EClass DOCKER_EVENTS = eINSTANCE.getDockerEvents(); + + /** + * The meta object literal for the '<em><b>Status</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_EVENTS__STATUS = eINSTANCE.getDockerEvents_Status(); + + /** + * The meta object literal for the '<em><b>Id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_EVENTS__ID = eINSTANCE.getDockerEvents_Id(); + + /** + * The meta object literal for the '<em><b>Type</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_EVENTS__TYPE = eINSTANCE.getDockerEvents_Type(); + + /** + * The meta object literal for the '<em><b>Action</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_EVENTS__ACTION = eINSTANCE.getDockerEvents_Action(); + + /** + * The meta object literal for the '<em><b>Actor</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference DOCKER_EVENTS__ACTOR = eINSTANCE.getDockerEvents_Actor(); + + /** + * The meta object literal for the '<em><b>Time</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_EVENTS__TIME = eINSTANCE.getDockerEvents_Time(); + + /** + * The meta object literal for the '<em><b>Timenano</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_EVENTS__TIMENANO = eINSTANCE.getDockerEvents_Timenano(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.docker.impl.DockerActorImpl <em>Actor</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.DockerActorImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getDockerActor() + * @generated + */ + EClass DOCKER_ACTOR = eINSTANCE.getDockerActor(); + + /** + * The meta object literal for the '<em><b>Id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_ACTOR__ID = eINSTANCE.getDockerActor_Id(); + + /** + * The meta object literal for the '<em><b>Attributes</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference DOCKER_ACTOR__ATTRIBUTES = eINSTANCE.getDockerActor_Attributes(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.docker.impl.DockerActorAttributesImpl <em>Actor Attributes</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.DockerActorAttributesImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getDockerActorAttributes() + * @generated + */ + EClass DOCKER_ACTOR_ATTRIBUTES = eINSTANCE.getDockerActorAttributes(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_ACTOR_ATTRIBUTES__NAME = eINSTANCE.getDockerActorAttributes_Name(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.docker.impl.DockerCreateRequestImpl <em>Create Request</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.DockerCreateRequestImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getDockerCreateRequest() + * @generated + */ + EClass DOCKER_CREATE_REQUEST = eINSTANCE.getDockerCreateRequest(); + + /** + * The meta object literal for the '<em><b>Hostname</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_CREATE_REQUEST__HOSTNAME = eINSTANCE.getDockerCreateRequest_Hostname(); + + /** + * The meta object literal for the '<em><b>Cmd</b></em>' attribute list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_CREATE_REQUEST__CMD = eINSTANCE.getDockerCreateRequest_Cmd(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.docker.impl.DockerProcessImpl <em>Process</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.DockerProcessImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getDockerProcess() + * @generated + */ + EClass DOCKER_PROCESS = eINSTANCE.getDockerProcess(); + + /** + * The meta object literal for the '<em><b>User</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_PROCESS__USER = eINSTANCE.getDockerProcess_User(); + + /** + * The meta object literal for the '<em><b>Pid</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_PROCESS__PID = eINSTANCE.getDockerProcess_Pid(); + + /** + * The meta object literal for the '<em><b>Cpu</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_PROCESS__CPU = eINSTANCE.getDockerProcess_Cpu(); + + /** + * The meta object literal for the '<em><b>Mem</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_PROCESS__MEM = eINSTANCE.getDockerProcess_Mem(); + + /** + * The meta object literal for the '<em><b>Vsz</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_PROCESS__VSZ = eINSTANCE.getDockerProcess_Vsz(); + + /** + * The meta object literal for the '<em><b>Rss</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_PROCESS__RSS = eINSTANCE.getDockerProcess_Rss(); + + /** + * The meta object literal for the '<em><b>Tty</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_PROCESS__TTY = eINSTANCE.getDockerProcess_Tty(); + + /** + * The meta object literal for the '<em><b>Stat</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_PROCESS__STAT = eINSTANCE.getDockerProcess_Stat(); + + /** + * The meta object literal for the '<em><b>Start</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_PROCESS__START = eINSTANCE.getDockerProcess_Start(); + + /** + * The meta object literal for the '<em><b>Time Elapsed</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_PROCESS__TIME_ELAPSED = eINSTANCE.getDockerProcess_TimeElapsed(); + + /** + * The meta object literal for the '<em><b>Command</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_PROCESS__COMMAND = eINSTANCE.getDockerProcess_Command(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.docker.impl.DockerContainerStatsImpl <em>Container Stats</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.DockerContainerStatsImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getDockerContainerStats() + * @generated + */ + EClass DOCKER_CONTAINER_STATS = eINSTANCE.getDockerContainerStats(); + + /** + * The meta object literal for the '<em><b>Networks</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference DOCKER_CONTAINER_STATS__NETWORKS = eINSTANCE.getDockerContainerStats_Networks(); + + /** + * The meta object literal for the '<em><b>Memory</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference DOCKER_CONTAINER_STATS__MEMORY = eINSTANCE.getDockerContainerStats_Memory(); + + /** + * The meta object literal for the '<em><b>Cpu</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference DOCKER_CONTAINER_STATS__CPU = eINSTANCE.getDockerContainerStats_Cpu(); + + /** + * The meta object literal for the '<em><b>Last Read</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCKER_CONTAINER_STATS__LAST_READ = eINSTANCE.getDockerContainerStats_LastRead(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.docker.impl.ContainerNetworkStatsImpl <em>Container Network Stats</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.ContainerNetworkStatsImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getContainerNetworkStats() + * @generated + */ + EClass CONTAINER_NETWORK_STATS = eINSTANCE.getContainerNetworkStats(); + + /** + * The meta object literal for the '<em><b>Intf</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_NETWORK_STATS__INTF = eINSTANCE.getContainerNetworkStats_Intf(); + + /** + * The meta object literal for the '<em><b>Rx bytes</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_NETWORK_STATS__RX_BYTES = eINSTANCE.getContainerNetworkStats_Rx_bytes(); + + /** + * The meta object literal for the '<em><b>Rx dropped</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_NETWORK_STATS__RX_DROPPED = eINSTANCE.getContainerNetworkStats_Rx_dropped(); + + /** + * The meta object literal for the '<em><b>Rx errors</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_NETWORK_STATS__RX_ERRORS = eINSTANCE.getContainerNetworkStats_Rx_errors(); + + /** + * The meta object literal for the '<em><b>Rx packets</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_NETWORK_STATS__RX_PACKETS = eINSTANCE.getContainerNetworkStats_Rx_packets(); + + /** + * The meta object literal for the '<em><b>Tx bytes</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_NETWORK_STATS__TX_BYTES = eINSTANCE.getContainerNetworkStats_Tx_bytes(); + + /** + * The meta object literal for the '<em><b>Tx dropped</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_NETWORK_STATS__TX_DROPPED = eINSTANCE.getContainerNetworkStats_Tx_dropped(); + + /** + * The meta object literal for the '<em><b>Tx errors</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_NETWORK_STATS__TX_ERRORS = eINSTANCE.getContainerNetworkStats_Tx_errors(); + + /** + * The meta object literal for the '<em><b>Tx packets</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_NETWORK_STATS__TX_PACKETS = eINSTANCE.getContainerNetworkStats_Tx_packets(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.docker.impl.ContainerMemoryStatsImpl <em>Container Memory Stats</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.ContainerMemoryStatsImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getContainerMemoryStats() + * @generated + */ + EClass CONTAINER_MEMORY_STATS = eINSTANCE.getContainerMemoryStats(); + + /** + * The meta object literal for the '<em><b>Total pgmajfault</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_MEMORY_STATS__TOTAL_PGMAJFAULT = eINSTANCE.getContainerMemoryStats_Total_pgmajfault(); + + /** + * The meta object literal for the '<em><b>Cache</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_MEMORY_STATS__CACHE = eINSTANCE.getContainerMemoryStats_Cache(); + + /** + * The meta object literal for the '<em><b>Mapped file</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_MEMORY_STATS__MAPPED_FILE = eINSTANCE.getContainerMemoryStats_Mapped_file(); + + /** + * The meta object literal for the '<em><b>Total inactive file</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_MEMORY_STATS__TOTAL_INACTIVE_FILE = eINSTANCE.getContainerMemoryStats_Total_inactive_file(); + + /** + * The meta object literal for the '<em><b>Pgpgout</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_MEMORY_STATS__PGPGOUT = eINSTANCE.getContainerMemoryStats_Pgpgout(); + + /** + * The meta object literal for the '<em><b>Rss</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_MEMORY_STATS__RSS = eINSTANCE.getContainerMemoryStats_Rss(); + + /** + * The meta object literal for the '<em><b>Total mapped file</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_MEMORY_STATS__TOTAL_MAPPED_FILE = eINSTANCE.getContainerMemoryStats_Total_mapped_file(); + + /** + * The meta object literal for the '<em><b>Writeback</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_MEMORY_STATS__WRITEBACK = eINSTANCE.getContainerMemoryStats_Writeback(); + + /** + * The meta object literal for the '<em><b>Unevictable</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_MEMORY_STATS__UNEVICTABLE = eINSTANCE.getContainerMemoryStats_Unevictable(); + + /** + * The meta object literal for the '<em><b>Pgpgin</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_MEMORY_STATS__PGPGIN = eINSTANCE.getContainerMemoryStats_Pgpgin(); + + /** + * The meta object literal for the '<em><b>Total unevictable</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_MEMORY_STATS__TOTAL_UNEVICTABLE = eINSTANCE.getContainerMemoryStats_Total_unevictable(); + + /** + * The meta object literal for the '<em><b>Pgmajfault</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_MEMORY_STATS__PGMAJFAULT = eINSTANCE.getContainerMemoryStats_Pgmajfault(); + + /** + * The meta object literal for the '<em><b>Total rss</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_MEMORY_STATS__TOTAL_RSS = eINSTANCE.getContainerMemoryStats_Total_rss(); + + /** + * The meta object literal for the '<em><b>Total rss huge</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_MEMORY_STATS__TOTAL_RSS_HUGE = eINSTANCE.getContainerMemoryStats_Total_rss_huge(); + + /** + * The meta object literal for the '<em><b>Total writeback</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_MEMORY_STATS__TOTAL_WRITEBACK = eINSTANCE.getContainerMemoryStats_Total_writeback(); + + /** + * The meta object literal for the '<em><b>Total inactive anon</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_MEMORY_STATS__TOTAL_INACTIVE_ANON = eINSTANCE.getContainerMemoryStats_Total_inactive_anon(); + + /** + * The meta object literal for the '<em><b>Rss huge</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_MEMORY_STATS__RSS_HUGE = eINSTANCE.getContainerMemoryStats_Rss_huge(); + + /** + * The meta object literal for the '<em><b>Hierarchical memory limit</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_MEMORY_STATS__HIERARCHICAL_MEMORY_LIMIT = eINSTANCE.getContainerMemoryStats_Hierarchical_memory_limit(); + + /** + * The meta object literal for the '<em><b>Total pgfault</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_MEMORY_STATS__TOTAL_PGFAULT = eINSTANCE.getContainerMemoryStats_Total_pgfault(); + + /** + * The meta object literal for the '<em><b>Total active file</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_MEMORY_STATS__TOTAL_ACTIVE_FILE = eINSTANCE.getContainerMemoryStats_Total_active_file(); + + /** + * The meta object literal for the '<em><b>Active anon</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_MEMORY_STATS__ACTIVE_ANON = eINSTANCE.getContainerMemoryStats_Active_anon(); + + /** + * The meta object literal for the '<em><b>Total active anon</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_MEMORY_STATS__TOTAL_ACTIVE_ANON = eINSTANCE.getContainerMemoryStats_Total_active_anon(); + + /** + * The meta object literal for the '<em><b>Total pgpgout</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_MEMORY_STATS__TOTAL_PGPGOUT = eINSTANCE.getContainerMemoryStats_Total_pgpgout(); + + /** + * The meta object literal for the '<em><b>Total cache</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_MEMORY_STATS__TOTAL_CACHE = eINSTANCE.getContainerMemoryStats_Total_cache(); + + /** + * The meta object literal for the '<em><b>Inactive anon</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_MEMORY_STATS__INACTIVE_ANON = eINSTANCE.getContainerMemoryStats_Inactive_anon(); + + /** + * The meta object literal for the '<em><b>Active file</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_MEMORY_STATS__ACTIVE_FILE = eINSTANCE.getContainerMemoryStats_Active_file(); + + /** + * The meta object literal for the '<em><b>Pgfault</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_MEMORY_STATS__PGFAULT = eINSTANCE.getContainerMemoryStats_Pgfault(); + + /** + * The meta object literal for the '<em><b>Inactive file</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_MEMORY_STATS__INACTIVE_FILE = eINSTANCE.getContainerMemoryStats_Inactive_file(); + + /** + * The meta object literal for the '<em><b>Total pgpgin</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_MEMORY_STATS__TOTAL_PGPGIN = eINSTANCE.getContainerMemoryStats_Total_pgpgin(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.docker.impl.ContainerMemoryUsageImpl <em>Container Memory Usage</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.ContainerMemoryUsageImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getContainerMemoryUsage() + * @generated + */ + EClass CONTAINER_MEMORY_USAGE = eINSTANCE.getContainerMemoryUsage(); + + /** + * The meta object literal for the '<em><b>Memstats</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference CONTAINER_MEMORY_USAGE__MEMSTATS = eINSTANCE.getContainerMemoryUsage_Memstats(); + + /** + * The meta object literal for the '<em><b>Max usage</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_MEMORY_USAGE__MAX_USAGE = eINSTANCE.getContainerMemoryUsage_Max_usage(); + + /** + * The meta object literal for the '<em><b>Usage</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_MEMORY_USAGE__USAGE = eINSTANCE.getContainerMemoryUsage_Usage(); + + /** + * The meta object literal for the '<em><b>Failcnt</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_MEMORY_USAGE__FAILCNT = eINSTANCE.getContainerMemoryUsage_Failcnt(); + + /** + * The meta object literal for the '<em><b>Limit</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_MEMORY_USAGE__LIMIT = eINSTANCE.getContainerMemoryUsage_Limit(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.docker.impl.ContainerCpuUsageImpl <em>Container Cpu Usage</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.ContainerCpuUsageImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getContainerCpuUsage() + * @generated + */ + EClass CONTAINER_CPU_USAGE = eINSTANCE.getContainerCpuUsage(); + + /** + * The meta object literal for the '<em><b>Percpu usage</b></em>' attribute list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_CPU_USAGE__PERCPU_USAGE = eINSTANCE.getContainerCpuUsage_Percpu_usage(); + + /** + * The meta object literal for the '<em><b>Usage in usermode</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_CPU_USAGE__USAGE_IN_USERMODE = eINSTANCE.getContainerCpuUsage_Usage_in_usermode(); + + /** + * The meta object literal for the '<em><b>Total usage</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_CPU_USAGE__TOTAL_USAGE = eINSTANCE.getContainerCpuUsage_Total_usage(); + + /** + * The meta object literal for the '<em><b>User in kernelmode</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_CPU_USAGE__USER_IN_KERNELMODE = eINSTANCE.getContainerCpuUsage_User_in_kernelmode(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.docker.impl.ContainerCpuStatsImpl <em>Container Cpu Stats</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.docker.impl.ContainerCpuStatsImpl + * @see org.openecomp.ncomp.docker.impl.DockerPackageImpl#getContainerCpuStats() + * @generated + */ + EClass CONTAINER_CPU_STATS = eINSTANCE.getContainerCpuStats(); + + /** + * The meta object literal for the '<em><b>Cpu usage</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference CONTAINER_CPU_STATS__CPU_USAGE = eINSTANCE.getContainerCpuStats_Cpu_usage(); + + /** + * The meta object literal for the '<em><b>System cpu usage</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTAINER_CPU_STATS__SYSTEM_CPU_USAGE = eINSTANCE.getContainerCpuStats_System_cpu_usage(); + + } + +} //DockerPackage diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerPing.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerPing.java new file mode 100644 index 0000000..09c3b90 --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerPing.java @@ -0,0 +1,39 @@ + +/*- + * ============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.ncomp.docker; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Ping</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerPing() + * @model + * @generated + */ +public interface DockerPing extends EObject { +} // DockerPing diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerPort.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerPort.java new file mode 100644 index 0000000..233b549 --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerPort.java @@ -0,0 +1,125 @@ + +/*- + * ============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.ncomp.docker; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Port</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.DockerPort#getPrivatePort <em>Private Port</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerPort#getPublicPort <em>Public Port</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerPort#getType <em>Type</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerPort() + * @model + * @generated + */ +public interface DockerPort extends EObject { + /** + * Returns the value of the '<em><b>Private Port</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Private Port</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Private Port</em>' attribute. + * @see #setPrivatePort(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerPort_PrivatePort() + * @model unique="false" + * @generated + */ + int getPrivatePort(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerPort#getPrivatePort <em>Private Port</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Private Port</em>' attribute. + * @see #getPrivatePort() + * @generated + */ + void setPrivatePort(int value); + + /** + * Returns the value of the '<em><b>Public Port</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Public Port</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Public Port</em>' attribute. + * @see #setPublicPort(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerPort_PublicPort() + * @model unique="false" + * @generated + */ + int getPublicPort(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerPort#getPublicPort <em>Public Port</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Public Port</em>' attribute. + * @see #getPublicPort() + * @generated + */ + void setPublicPort(int 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.ncomp.docker.DockerPackage#getDockerPort_Type() + * @model unique="false" + * @generated + */ + String getType(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerPort#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); + +} // DockerPort diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerProcess.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerProcess.java new file mode 100644 index 0000000..a23711b --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerProcess.java @@ -0,0 +1,360 @@ + +/*- + * ============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.ncomp.docker; + +import org.openecomp.ncomp.core.NamedEntity; +import java.util.Date; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Process</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * docker container process table json + * + * { + * "Titles" : [ + * "USER","PID","%CPU","%MEM","VSZ","RSS","TTY","STAT","START","TIME","COMMAND" + * ] + * "Processes" : [ + * [ + * "root","13642","0.0","0.1","18172","3184","pts/0","Ss","17:03","0:00","/bin/bash" + * ], + * [ + * "root","13895","0.0","0.0","4348","692","pts/0","S+","17:15","0:00","sleep 10" + * ] + * ], + * } + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.DockerProcess#getUser <em>User</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerProcess#getPid <em>Pid</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerProcess#getCpu <em>Cpu</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerProcess#getMem <em>Mem</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerProcess#getVsz <em>Vsz</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerProcess#getRss <em>Rss</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerProcess#getTty <em>Tty</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerProcess#getStat <em>Stat</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerProcess#getStart <em>Start</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerProcess#getTimeElapsed <em>Time Elapsed</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.DockerProcess#getCommand <em>Command</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerProcess() + * @model + * @generated + */ +public interface DockerProcess extends NamedEntity { + /** + * Returns the value of the '<em><b>User</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>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>User</em>' attribute. + * @see #setUser(String) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerProcess_User() + * @model unique="false" + * @generated + */ + String getUser(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerProcess#getUser <em>User</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>User</em>' attribute. + * @see #getUser() + * @generated + */ + void setUser(String value); + + /** + * Returns the value of the '<em><b>Pid</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Pid</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Pid</em>' attribute. + * @see #setPid(long) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerProcess_Pid() + * @model unique="false" + * @generated + */ + long getPid(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerProcess#getPid <em>Pid</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Pid</em>' attribute. + * @see #getPid() + * @generated + */ + void setPid(long value); + + /** + * Returns the value of the '<em><b>Cpu</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Cpu</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Cpu</em>' attribute. + * @see #setCpu(double) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerProcess_Cpu() + * @model unique="false" + * @generated + */ + double getCpu(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerProcess#getCpu <em>Cpu</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Cpu</em>' attribute. + * @see #getCpu() + * @generated + */ + void setCpu(double value); + + /** + * Returns the value of the '<em><b>Mem</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Mem</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Mem</em>' attribute. + * @see #setMem(double) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerProcess_Mem() + * @model unique="false" + * @generated + */ + double getMem(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerProcess#getMem <em>Mem</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Mem</em>' attribute. + * @see #getMem() + * @generated + */ + void setMem(double value); + + /** + * Returns the value of the '<em><b>Vsz</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Vsz</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Vsz</em>' attribute. + * @see #setVsz(long) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerProcess_Vsz() + * @model unique="false" + * @generated + */ + long getVsz(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerProcess#getVsz <em>Vsz</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Vsz</em>' attribute. + * @see #getVsz() + * @generated + */ + void setVsz(long value); + + /** + * Returns the value of the '<em><b>Rss</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Rss</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Rss</em>' attribute. + * @see #setRss(long) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerProcess_Rss() + * @model unique="false" + * @generated + */ + long getRss(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerProcess#getRss <em>Rss</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Rss</em>' attribute. + * @see #getRss() + * @generated + */ + void setRss(long value); + + /** + * Returns the value of the '<em><b>Tty</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Tty</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Tty</em>' attribute. + * @see #setTty(String) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerProcess_Tty() + * @model unique="false" + * @generated + */ + String getTty(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerProcess#getTty <em>Tty</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Tty</em>' attribute. + * @see #getTty() + * @generated + */ + void setTty(String value); + + /** + * Returns the value of the '<em><b>Stat</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Stat</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Stat</em>' attribute. + * @see #setStat(String) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerProcess_Stat() + * @model unique="false" + * @generated + */ + String getStat(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerProcess#getStat <em>Stat</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Stat</em>' attribute. + * @see #getStat() + * @generated + */ + void setStat(String value); + + /** + * Returns the value of the '<em><b>Start</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Start</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Start</em>' attribute. + * @see #setStart(Date) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerProcess_Start() + * @model unique="false" + * @generated + */ + Date getStart(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerProcess#getStart <em>Start</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Start</em>' attribute. + * @see #getStart() + * @generated + */ + void setStart(Date value); + + /** + * Returns the value of the '<em><b>Time Elapsed</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Time Elapsed</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Time Elapsed</em>' attribute. + * @see #setTimeElapsed(long) + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerProcess_TimeElapsed() + * @model unique="false" + * @generated + */ + long getTimeElapsed(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerProcess#getTimeElapsed <em>Time Elapsed</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Time Elapsed</em>' attribute. + * @see #getTimeElapsed() + * @generated + */ + void setTimeElapsed(long value); + + /** + * 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.ncomp.docker.DockerPackage#getDockerProcess_Command() + * @model unique="false" + * @generated + */ + String getCommand(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.DockerProcess#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); + +} // DockerProcess diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerUpdate.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerUpdate.java new file mode 100644 index 0000000..c0d296b --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerUpdate.java @@ -0,0 +1,79 @@ + +/*- + * ============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.ncomp.docker; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Update</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * "memory_stats" : { + * "stats" : { + * "total_pgmajfault" : 0, + * "cache" : 0, + * "mapped_file" : 0, + * "total_inactive_file" : 0, + * "pgpgout" : 414, + * "rss" : 6537216, + * "total_mapped_file" : 0, + * "writeback" : 0, + * "unevictable" : 0, + * "pgpgin" : 477, + * "total_unevictable" : 0, + * "pgmajfault" : 0, + * "total_rss" : 6537216, + * "total_rss_huge" : 6291456, + * "total_writeback" : 0, + * "total_inactive_anon" : 0, + * "rss_huge" : 6291456, + * "hierarchical_memory_limit" : 67108864, + * "total_pgfault" : 964, + * "total_active_file" : 0, + * "active_anon" : 6537216, + * "total_active_anon" : 6537216, + * "total_pgpgout" : 414, + * "total_cache" : 0, + * "inactive_anon" : 0, + * "active_file" : 0, + * "pgfault" : 964, + * "inactive_file" : 0, + * "total_pgpgin" : 477 + * }, + * "max_usage" : 6651904, + * "usage" : 6537216, + * "failcnt" : 0, + * "limit" : 67108864 + * }, + * <!-- end-model-doc --> + * + * + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerUpdate() + * @model + * @generated + */ +public interface DockerUpdate extends EObject { +} // DockerUpdate diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerVersion.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerVersion.java new file mode 100644 index 0000000..fe40b94 --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/DockerVersion.java @@ -0,0 +1,43 @@ + +/*- + * ============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.ncomp.docker; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Version</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * json returned + * <!-- end-model-doc --> + * + * + * @see org.openecomp.ncomp.docker.DockerPackage#getDockerVersion() + * @model + * @generated + */ +public interface DockerVersion extends EObject { +} // DockerVersion diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/MemoryStats.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/MemoryStats.java new file mode 100644 index 0000000..88266e3 --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/MemoryStats.java @@ -0,0 +1,827 @@ + +/*- + * ============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.ncomp.docker; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Memory Stats</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.MemoryStats#getTotal_pgmajfault <em>Total pgmajfault</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.MemoryStats#getCache <em>Cache</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.MemoryStats#getMapped_file <em>Mapped file</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.MemoryStats#getTotal_inactive_file <em>Total inactive file</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.MemoryStats#getPgpgout <em>Pgpgout</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.MemoryStats#getRss <em>Rss</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.MemoryStats#getTotal_mapped_file <em>Total mapped file</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.MemoryStats#getWriteback <em>Writeback</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.MemoryStats#getUnevictable <em>Unevictable</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.MemoryStats#getPgpgin <em>Pgpgin</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.MemoryStats#getTotal_unevictable <em>Total unevictable</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.MemoryStats#getPgmajfault <em>Pgmajfault</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.MemoryStats#getTotal_rss <em>Total rss</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.MemoryStats#getTotal_rss_huge <em>Total rss huge</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.MemoryStats#getTotal_writeback <em>Total writeback</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.MemoryStats#getTotal_inactive_anon <em>Total inactive anon</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.MemoryStats#getRss_huge <em>Rss huge</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.MemoryStats#getHierarchical_memory_limit <em>Hierarchical memory limit</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.MemoryStats#getTotal_pgfault <em>Total pgfault</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.MemoryStats#getTotal_active_file <em>Total active file</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.MemoryStats#getActive_anon <em>Active anon</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.MemoryStats#getTotal_active_anon <em>Total active anon</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.MemoryStats#getTotal_pgpgout <em>Total pgpgout</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.MemoryStats#getTotal_cache <em>Total cache</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.MemoryStats#getInactive_anon <em>Inactive anon</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.MemoryStats#getActive_file <em>Active file</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.MemoryStats#getPgfault <em>Pgfault</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.MemoryStats#getInactive_file <em>Inactive file</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.MemoryStats#getTotal_pgpgin <em>Total pgpgin</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.docker.DockerPackage#getMemoryStats() + * @model + * @generated + */ +public interface MemoryStats extends EObject { + /** + * Returns the value of the '<em><b>Total pgmajfault</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Total pgmajfault</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Total pgmajfault</em>' attribute. + * @see #setTotal_pgmajfault(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getMemoryStats_Total_pgmajfault() + * @model unique="false" + * @generated + */ + int getTotal_pgmajfault(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.MemoryStats#getTotal_pgmajfault <em>Total pgmajfault</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Total pgmajfault</em>' attribute. + * @see #getTotal_pgmajfault() + * @generated + */ + void setTotal_pgmajfault(int value); + + /** + * Returns the value of the '<em><b>Cache</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Cache</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Cache</em>' attribute. + * @see #setCache(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getMemoryStats_Cache() + * @model unique="false" + * @generated + */ + int getCache(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.MemoryStats#getCache <em>Cache</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Cache</em>' attribute. + * @see #getCache() + * @generated + */ + void setCache(int value); + + /** + * Returns the value of the '<em><b>Mapped file</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Mapped file</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Mapped file</em>' attribute. + * @see #setMapped_file(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getMemoryStats_Mapped_file() + * @model unique="false" + * @generated + */ + int getMapped_file(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.MemoryStats#getMapped_file <em>Mapped file</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Mapped file</em>' attribute. + * @see #getMapped_file() + * @generated + */ + void setMapped_file(int value); + + /** + * Returns the value of the '<em><b>Total inactive file</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Total inactive file</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Total inactive file</em>' attribute. + * @see #setTotal_inactive_file(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getMemoryStats_Total_inactive_file() + * @model unique="false" + * @generated + */ + int getTotal_inactive_file(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.MemoryStats#getTotal_inactive_file <em>Total inactive file</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Total inactive file</em>' attribute. + * @see #getTotal_inactive_file() + * @generated + */ + void setTotal_inactive_file(int value); + + /** + * Returns the value of the '<em><b>Pgpgout</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Pgpgout</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Pgpgout</em>' attribute. + * @see #setPgpgout(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getMemoryStats_Pgpgout() + * @model unique="false" + * @generated + */ + int getPgpgout(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.MemoryStats#getPgpgout <em>Pgpgout</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Pgpgout</em>' attribute. + * @see #getPgpgout() + * @generated + */ + void setPgpgout(int value); + + /** + * Returns the value of the '<em><b>Rss</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Rss</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Rss</em>' attribute. + * @see #setRss(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getMemoryStats_Rss() + * @model unique="false" + * @generated + */ + int getRss(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.MemoryStats#getRss <em>Rss</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Rss</em>' attribute. + * @see #getRss() + * @generated + */ + void setRss(int value); + + /** + * Returns the value of the '<em><b>Total mapped file</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Total mapped file</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Total mapped file</em>' attribute. + * @see #setTotal_mapped_file(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getMemoryStats_Total_mapped_file() + * @model unique="false" + * @generated + */ + int getTotal_mapped_file(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.MemoryStats#getTotal_mapped_file <em>Total mapped file</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Total mapped file</em>' attribute. + * @see #getTotal_mapped_file() + * @generated + */ + void setTotal_mapped_file(int value); + + /** + * Returns the value of the '<em><b>Writeback</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Writeback</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Writeback</em>' attribute. + * @see #setWriteback(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getMemoryStats_Writeback() + * @model unique="false" + * @generated + */ + int getWriteback(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.MemoryStats#getWriteback <em>Writeback</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Writeback</em>' attribute. + * @see #getWriteback() + * @generated + */ + void setWriteback(int value); + + /** + * Returns the value of the '<em><b>Unevictable</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Unevictable</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Unevictable</em>' attribute. + * @see #setUnevictable(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getMemoryStats_Unevictable() + * @model unique="false" + * @generated + */ + int getUnevictable(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.MemoryStats#getUnevictable <em>Unevictable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Unevictable</em>' attribute. + * @see #getUnevictable() + * @generated + */ + void setUnevictable(int value); + + /** + * Returns the value of the '<em><b>Pgpgin</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Pgpgin</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Pgpgin</em>' attribute. + * @see #setPgpgin(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getMemoryStats_Pgpgin() + * @model unique="false" + * @generated + */ + int getPgpgin(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.MemoryStats#getPgpgin <em>Pgpgin</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Pgpgin</em>' attribute. + * @see #getPgpgin() + * @generated + */ + void setPgpgin(int value); + + /** + * Returns the value of the '<em><b>Total unevictable</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Total unevictable</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Total unevictable</em>' attribute. + * @see #setTotal_unevictable(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getMemoryStats_Total_unevictable() + * @model unique="false" + * @generated + */ + int getTotal_unevictable(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.MemoryStats#getTotal_unevictable <em>Total unevictable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Total unevictable</em>' attribute. + * @see #getTotal_unevictable() + * @generated + */ + void setTotal_unevictable(int value); + + /** + * Returns the value of the '<em><b>Pgmajfault</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Pgmajfault</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Pgmajfault</em>' attribute. + * @see #setPgmajfault(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getMemoryStats_Pgmajfault() + * @model unique="false" + * @generated + */ + int getPgmajfault(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.MemoryStats#getPgmajfault <em>Pgmajfault</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Pgmajfault</em>' attribute. + * @see #getPgmajfault() + * @generated + */ + void setPgmajfault(int value); + + /** + * Returns the value of the '<em><b>Total rss</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Total rss</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Total rss</em>' attribute. + * @see #setTotal_rss(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getMemoryStats_Total_rss() + * @model unique="false" + * @generated + */ + int getTotal_rss(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.MemoryStats#getTotal_rss <em>Total rss</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Total rss</em>' attribute. + * @see #getTotal_rss() + * @generated + */ + void setTotal_rss(int value); + + /** + * Returns the value of the '<em><b>Total rss huge</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Total rss huge</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Total rss huge</em>' attribute. + * @see #setTotal_rss_huge(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getMemoryStats_Total_rss_huge() + * @model unique="false" + * @generated + */ + int getTotal_rss_huge(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.MemoryStats#getTotal_rss_huge <em>Total rss huge</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Total rss huge</em>' attribute. + * @see #getTotal_rss_huge() + * @generated + */ + void setTotal_rss_huge(int value); + + /** + * Returns the value of the '<em><b>Total writeback</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Total writeback</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Total writeback</em>' attribute. + * @see #setTotal_writeback(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getMemoryStats_Total_writeback() + * @model unique="false" + * @generated + */ + int getTotal_writeback(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.MemoryStats#getTotal_writeback <em>Total writeback</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Total writeback</em>' attribute. + * @see #getTotal_writeback() + * @generated + */ + void setTotal_writeback(int value); + + /** + * Returns the value of the '<em><b>Total inactive anon</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Total inactive anon</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Total inactive anon</em>' attribute. + * @see #setTotal_inactive_anon(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getMemoryStats_Total_inactive_anon() + * @model unique="false" + * @generated + */ + int getTotal_inactive_anon(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.MemoryStats#getTotal_inactive_anon <em>Total inactive anon</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Total inactive anon</em>' attribute. + * @see #getTotal_inactive_anon() + * @generated + */ + void setTotal_inactive_anon(int value); + + /** + * Returns the value of the '<em><b>Rss huge</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Rss huge</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Rss huge</em>' attribute. + * @see #setRss_huge(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getMemoryStats_Rss_huge() + * @model unique="false" + * @generated + */ + int getRss_huge(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.MemoryStats#getRss_huge <em>Rss huge</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Rss huge</em>' attribute. + * @see #getRss_huge() + * @generated + */ + void setRss_huge(int value); + + /** + * Returns the value of the '<em><b>Hierarchical memory limit</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Hierarchical memory limit</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Hierarchical memory limit</em>' attribute. + * @see #setHierarchical_memory_limit(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getMemoryStats_Hierarchical_memory_limit() + * @model unique="false" + * @generated + */ + int getHierarchical_memory_limit(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.MemoryStats#getHierarchical_memory_limit <em>Hierarchical memory limit</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Hierarchical memory limit</em>' attribute. + * @see #getHierarchical_memory_limit() + * @generated + */ + void setHierarchical_memory_limit(int value); + + /** + * Returns the value of the '<em><b>Total pgfault</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Total pgfault</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Total pgfault</em>' attribute. + * @see #setTotal_pgfault(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getMemoryStats_Total_pgfault() + * @model unique="false" + * @generated + */ + int getTotal_pgfault(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.MemoryStats#getTotal_pgfault <em>Total pgfault</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Total pgfault</em>' attribute. + * @see #getTotal_pgfault() + * @generated + */ + void setTotal_pgfault(int value); + + /** + * Returns the value of the '<em><b>Total active file</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Total active file</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Total active file</em>' attribute. + * @see #setTotal_active_file(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getMemoryStats_Total_active_file() + * @model unique="false" + * @generated + */ + int getTotal_active_file(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.MemoryStats#getTotal_active_file <em>Total active file</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Total active file</em>' attribute. + * @see #getTotal_active_file() + * @generated + */ + void setTotal_active_file(int value); + + /** + * Returns the value of the '<em><b>Active anon</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Active anon</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Active anon</em>' attribute. + * @see #setActive_anon(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getMemoryStats_Active_anon() + * @model unique="false" + * @generated + */ + int getActive_anon(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.MemoryStats#getActive_anon <em>Active anon</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Active anon</em>' attribute. + * @see #getActive_anon() + * @generated + */ + void setActive_anon(int value); + + /** + * Returns the value of the '<em><b>Total active anon</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Total active anon</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Total active anon</em>' attribute. + * @see #setTotal_active_anon(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getMemoryStats_Total_active_anon() + * @model unique="false" + * @generated + */ + int getTotal_active_anon(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.MemoryStats#getTotal_active_anon <em>Total active anon</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Total active anon</em>' attribute. + * @see #getTotal_active_anon() + * @generated + */ + void setTotal_active_anon(int value); + + /** + * Returns the value of the '<em><b>Total pgpgout</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Total pgpgout</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Total pgpgout</em>' attribute. + * @see #setTotal_pgpgout(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getMemoryStats_Total_pgpgout() + * @model unique="false" + * @generated + */ + int getTotal_pgpgout(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.MemoryStats#getTotal_pgpgout <em>Total pgpgout</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Total pgpgout</em>' attribute. + * @see #getTotal_pgpgout() + * @generated + */ + void setTotal_pgpgout(int value); + + /** + * Returns the value of the '<em><b>Total cache</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Total cache</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Total cache</em>' attribute. + * @see #setTotal_cache(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getMemoryStats_Total_cache() + * @model unique="false" + * @generated + */ + int getTotal_cache(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.MemoryStats#getTotal_cache <em>Total cache</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Total cache</em>' attribute. + * @see #getTotal_cache() + * @generated + */ + void setTotal_cache(int value); + + /** + * Returns the value of the '<em><b>Inactive anon</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Inactive anon</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Inactive anon</em>' attribute. + * @see #setInactive_anon(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getMemoryStats_Inactive_anon() + * @model unique="false" + * @generated + */ + int getInactive_anon(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.MemoryStats#getInactive_anon <em>Inactive anon</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Inactive anon</em>' attribute. + * @see #getInactive_anon() + * @generated + */ + void setInactive_anon(int value); + + /** + * Returns the value of the '<em><b>Active file</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Active file</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Active file</em>' attribute. + * @see #setActive_file(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getMemoryStats_Active_file() + * @model unique="false" + * @generated + */ + int getActive_file(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.MemoryStats#getActive_file <em>Active file</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Active file</em>' attribute. + * @see #getActive_file() + * @generated + */ + void setActive_file(int value); + + /** + * Returns the value of the '<em><b>Pgfault</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Pgfault</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Pgfault</em>' attribute. + * @see #setPgfault(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getMemoryStats_Pgfault() + * @model unique="false" + * @generated + */ + int getPgfault(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.MemoryStats#getPgfault <em>Pgfault</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Pgfault</em>' attribute. + * @see #getPgfault() + * @generated + */ + void setPgfault(int value); + + /** + * Returns the value of the '<em><b>Inactive file</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Inactive file</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Inactive file</em>' attribute. + * @see #setInactive_file(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getMemoryStats_Inactive_file() + * @model unique="false" + * @generated + */ + int getInactive_file(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.MemoryStats#getInactive_file <em>Inactive file</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Inactive file</em>' attribute. + * @see #getInactive_file() + * @generated + */ + void setInactive_file(int value); + + /** + * Returns the value of the '<em><b>Total pgpgin</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Total pgpgin</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Total pgpgin</em>' attribute. + * @see #setTotal_pgpgin(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getMemoryStats_Total_pgpgin() + * @model unique="false" + * @generated + */ + int getTotal_pgpgin(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.MemoryStats#getTotal_pgpgin <em>Total pgpgin</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Total pgpgin</em>' attribute. + * @see #getTotal_pgpgin() + * @generated + */ + void setTotal_pgpgin(int value); + +} // MemoryStats diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/NetworkStats.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/NetworkStats.java new file mode 100644 index 0000000..0e789c0 --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/NetworkStats.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.ncomp.docker; + +import org.openecomp.ncomp.core.NamedEntity; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Network Stats</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * Container stats - JSON + * + * { + * "read" : "2015-01-08T22:57:31.547920715Z", + * "networks": { + * "eth0": { + * "rx_bytes": 5338, + * "rx_dropped": 0, + * "rx_errors": 0, + * "rx_packets": 36, + * "tx_bytes": 648, + * "tx_dropped": 0, + * "tx_errors": 0, + * "tx_packets": 8 + * }, + * "eth5": { + * "rx_bytes": 4641, + * "rx_dropped": 0, + * "rx_errors": 0, + * "rx_packets": 26, + * "tx_bytes": 690, + * "tx_dropped": 0, + * "tx_errors": 0, + * "tx_packets": 9 + * } + * }, + * "memory_stats" : { + * "stats" : { + * "total_pgmajfault" : 0, + * "cache" : 0, + * "mapped_file" : 0, + * "total_inactive_file" : 0, + * "pgpgout" : 414, + * "rss" : 6537216, + * "total_mapped_file" : 0, + * "writeback" : 0, + * "unevictable" : 0, + * "pgpgin" : 477, + * "total_unevictable" : 0, + * "pgmajfault" : 0, + * "total_rss" : 6537216, + * "total_rss_huge" : 6291456, + * "total_writeback" : 0, + * "total_inactive_anon" : 0, + * "rss_huge" : 6291456, + * "hierarchical_memory_limit" : 67108864, + * "total_pgfault" : 964, + * "total_active_file" : 0, + * "active_anon" : 6537216, + * "total_active_anon" : 6537216, + * "total_pgpgout" : 414, + * "total_cache" : 0, + * "inactive_anon" : 0, + * "active_file" : 0, + * "pgfault" : 964, + * "inactive_file" : 0, + * "total_pgpgin" : 477 + * }, + * "max_usage" : 6651904, + * "usage" : 6537216, + * "failcnt" : 0, + * "limit" : 67108864 + * }, + * "blkio_stats" : {}, + * "cpu_stats" : { + * "cpu_usage" : { + * "percpu_usage" : [ + * 16970827, + * 1839451, + * 7107380, + * 10571290 + * ], + * "usage_in_usermode" : 10000000, + * "total_usage" : 36488948, + * "usage_in_kernelmode" : 20000000 + * }, + * "system_cpu_usage" : 20091722000000000, + * "throttling_data" : {} + * } + * } + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.NetworkStats#getRx_bytes <em>Rx bytes</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.NetworkStats#getRx_dropped <em>Rx dropped</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.NetworkStats#getRx_errors <em>Rx errors</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.NetworkStats#getRx_packets <em>Rx packets</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.NetworkStats#getTx_bytes <em>Tx bytes</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.NetworkStats#getTx_dropped <em>Tx dropped</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.NetworkStats#getTx_errors <em>Tx errors</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.NetworkStats#getTx_packets <em>Tx packets</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.docker.DockerPackage#getNetworkStats() + * @model + * @generated + */ +public interface NetworkStats extends NamedEntity { + /** + * Returns the value of the '<em><b>Rx bytes</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Rx bytes</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Rx bytes</em>' attribute. + * @see #setRx_bytes(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getNetworkStats_Rx_bytes() + * @model unique="false" + * @generated + */ + int getRx_bytes(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.NetworkStats#getRx_bytes <em>Rx bytes</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Rx bytes</em>' attribute. + * @see #getRx_bytes() + * @generated + */ + void setRx_bytes(int value); + + /** + * Returns the value of the '<em><b>Rx dropped</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Rx dropped</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Rx dropped</em>' attribute. + * @see #setRx_dropped(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getNetworkStats_Rx_dropped() + * @model unique="false" + * @generated + */ + int getRx_dropped(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.NetworkStats#getRx_dropped <em>Rx dropped</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Rx dropped</em>' attribute. + * @see #getRx_dropped() + * @generated + */ + void setRx_dropped(int value); + + /** + * Returns the value of the '<em><b>Rx errors</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Rx errors</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Rx errors</em>' attribute. + * @see #setRx_errors(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getNetworkStats_Rx_errors() + * @model unique="false" + * @generated + */ + int getRx_errors(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.NetworkStats#getRx_errors <em>Rx errors</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Rx errors</em>' attribute. + * @see #getRx_errors() + * @generated + */ + void setRx_errors(int value); + + /** + * Returns the value of the '<em><b>Rx packets</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Rx packets</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Rx packets</em>' attribute. + * @see #setRx_packets(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getNetworkStats_Rx_packets() + * @model unique="false" + * @generated + */ + int getRx_packets(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.NetworkStats#getRx_packets <em>Rx packets</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Rx packets</em>' attribute. + * @see #getRx_packets() + * @generated + */ + void setRx_packets(int value); + + /** + * Returns the value of the '<em><b>Tx bytes</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Tx bytes</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Tx bytes</em>' attribute. + * @see #setTx_bytes(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getNetworkStats_Tx_bytes() + * @model unique="false" + * @generated + */ + int getTx_bytes(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.NetworkStats#getTx_bytes <em>Tx bytes</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Tx bytes</em>' attribute. + * @see #getTx_bytes() + * @generated + */ + void setTx_bytes(int value); + + /** + * Returns the value of the '<em><b>Tx dropped</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Tx dropped</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Tx dropped</em>' attribute. + * @see #setTx_dropped(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getNetworkStats_Tx_dropped() + * @model unique="false" + * @generated + */ + int getTx_dropped(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.NetworkStats#getTx_dropped <em>Tx dropped</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Tx dropped</em>' attribute. + * @see #getTx_dropped() + * @generated + */ + void setTx_dropped(int value); + + /** + * Returns the value of the '<em><b>Tx errors</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Tx errors</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Tx errors</em>' attribute. + * @see #setTx_errors(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getNetworkStats_Tx_errors() + * @model unique="false" + * @generated + */ + int getTx_errors(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.NetworkStats#getTx_errors <em>Tx errors</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Tx errors</em>' attribute. + * @see #getTx_errors() + * @generated + */ + void setTx_errors(int value); + + /** + * Returns the value of the '<em><b>Tx packets</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Tx packets</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Tx packets</em>' attribute. + * @see #setTx_packets(int) + * @see org.openecomp.ncomp.docker.DockerPackage#getNetworkStats_Tx_packets() + * @model unique="false" + * @generated + */ + int getTx_packets(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.docker.NetworkStats#getTx_packets <em>Tx packets</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Tx packets</em>' attribute. + * @see #getTx_packets() + * @generated + */ + void setTx_packets(int value); + +} // NetworkStats diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/ContainerCpuStatsImpl.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/ContainerCpuStatsImpl.java new file mode 100644 index 0000000..0e377c0 --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/ContainerCpuStatsImpl.java @@ -0,0 +1,265 @@ + +/*- + * ============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.ncomp.docker.impl; + +import org.openecomp.ncomp.docker.ContainerCpuStats; +import org.openecomp.ncomp.docker.ContainerCpuUsage; +import org.openecomp.ncomp.docker.DockerPackage; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +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>Container Cpu Stats</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerCpuStatsImpl#getCpu_usage <em>Cpu usage</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerCpuStatsImpl#getSystem_cpu_usage <em>System cpu usage</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class ContainerCpuStatsImpl extends MinimalEObjectImpl.Container implements ContainerCpuStats { + /** + * The cached value of the '{@link #getCpu_usage() <em>Cpu usage</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCpu_usage() + * @generated + * @ordered + */ + protected ContainerCpuUsage cpu_usage; + + /** + * The default value of the '{@link #getSystem_cpu_usage() <em>System cpu usage</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSystem_cpu_usage() + * @generated + * @ordered + */ + protected static final long SYSTEM_CPU_USAGE_EDEFAULT = 0L; + + /** + * The cached value of the '{@link #getSystem_cpu_usage() <em>System cpu usage</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSystem_cpu_usage() + * @generated + * @ordered + */ + protected long system_cpu_usage = SYSTEM_CPU_USAGE_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ContainerCpuStatsImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return DockerPackage.Literals.CONTAINER_CPU_STATS; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ContainerCpuUsage getCpu_usage() { + return cpu_usage; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetCpu_usage(ContainerCpuUsage newCpu_usage, NotificationChain msgs) { + ContainerCpuUsage oldCpu_usage = cpu_usage; + cpu_usage = newCpu_usage; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_CPU_STATS__CPU_USAGE, oldCpu_usage, newCpu_usage); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setCpu_usage(ContainerCpuUsage newCpu_usage) { + if (newCpu_usage != cpu_usage) { + NotificationChain msgs = null; + if (cpu_usage != null) + msgs = ((InternalEObject)cpu_usage).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DockerPackage.CONTAINER_CPU_STATS__CPU_USAGE, null, msgs); + if (newCpu_usage != null) + msgs = ((InternalEObject)newCpu_usage).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DockerPackage.CONTAINER_CPU_STATS__CPU_USAGE, null, msgs); + msgs = basicSetCpu_usage(newCpu_usage, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_CPU_STATS__CPU_USAGE, newCpu_usage, newCpu_usage)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public long getSystem_cpu_usage() { + return system_cpu_usage; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setSystem_cpu_usage(long newSystem_cpu_usage) { + long oldSystem_cpu_usage = system_cpu_usage; + system_cpu_usage = newSystem_cpu_usage; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_CPU_STATS__SYSTEM_CPU_USAGE, oldSystem_cpu_usage, system_cpu_usage)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case DockerPackage.CONTAINER_CPU_STATS__CPU_USAGE: + return basicSetCpu_usage(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 DockerPackage.CONTAINER_CPU_STATS__CPU_USAGE: + return getCpu_usage(); + case DockerPackage.CONTAINER_CPU_STATS__SYSTEM_CPU_USAGE: + return getSystem_cpu_usage(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case DockerPackage.CONTAINER_CPU_STATS__CPU_USAGE: + setCpu_usage((ContainerCpuUsage)newValue); + return; + case DockerPackage.CONTAINER_CPU_STATS__SYSTEM_CPU_USAGE: + setSystem_cpu_usage((Long)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DockerPackage.CONTAINER_CPU_STATS__CPU_USAGE: + setCpu_usage((ContainerCpuUsage)null); + return; + case DockerPackage.CONTAINER_CPU_STATS__SYSTEM_CPU_USAGE: + setSystem_cpu_usage(SYSTEM_CPU_USAGE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DockerPackage.CONTAINER_CPU_STATS__CPU_USAGE: + return cpu_usage != null; + case DockerPackage.CONTAINER_CPU_STATS__SYSTEM_CPU_USAGE: + return system_cpu_usage != SYSTEM_CPU_USAGE_EDEFAULT; + } + 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(" (system_cpu_usage: "); + result.append(system_cpu_usage); + result.append(')'); + return result.toString(); + } + +} //ContainerCpuStatsImpl diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/ContainerCpuUsageImpl.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/ContainerCpuUsageImpl.java new file mode 100644 index 0000000..213843b --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/ContainerCpuUsageImpl.java @@ -0,0 +1,335 @@ + +/*- + * ============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.ncomp.docker.impl; + +import org.openecomp.ncomp.docker.ContainerCpuUsage; +import org.openecomp.ncomp.docker.DockerPackage; + +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.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EDataTypeEList; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Container Cpu Usage</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerCpuUsageImpl#getPercpu_usage <em>Percpu usage</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerCpuUsageImpl#getUsage_in_usermode <em>Usage in usermode</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerCpuUsageImpl#getTotal_usage <em>Total usage</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerCpuUsageImpl#getUser_in_kernelmode <em>User in kernelmode</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class ContainerCpuUsageImpl extends MinimalEObjectImpl.Container implements ContainerCpuUsage { + /** + * The cached value of the '{@link #getPercpu_usage() <em>Percpu usage</em>}' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPercpu_usage() + * @generated + * @ordered + */ + protected EList<Long> percpu_usage; + + /** + * The default value of the '{@link #getUsage_in_usermode() <em>Usage in usermode</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUsage_in_usermode() + * @generated + * @ordered + */ + protected static final long USAGE_IN_USERMODE_EDEFAULT = 0L; + + /** + * The cached value of the '{@link #getUsage_in_usermode() <em>Usage in usermode</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUsage_in_usermode() + * @generated + * @ordered + */ + protected long usage_in_usermode = USAGE_IN_USERMODE_EDEFAULT; + + /** + * The default value of the '{@link #getTotal_usage() <em>Total usage</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTotal_usage() + * @generated + * @ordered + */ + protected static final long TOTAL_USAGE_EDEFAULT = 0L; + + /** + * The cached value of the '{@link #getTotal_usage() <em>Total usage</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTotal_usage() + * @generated + * @ordered + */ + protected long total_usage = TOTAL_USAGE_EDEFAULT; + + /** + * The default value of the '{@link #getUser_in_kernelmode() <em>User in kernelmode</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUser_in_kernelmode() + * @generated + * @ordered + */ + protected static final long USER_IN_KERNELMODE_EDEFAULT = 0L; + + /** + * The cached value of the '{@link #getUser_in_kernelmode() <em>User in kernelmode</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUser_in_kernelmode() + * @generated + * @ordered + */ + protected long user_in_kernelmode = USER_IN_KERNELMODE_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ContainerCpuUsageImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return DockerPackage.Literals.CONTAINER_CPU_USAGE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<Long> getPercpu_usage() { + if (percpu_usage == null) { + percpu_usage = new EDataTypeEList<Long>(Long.class, this, DockerPackage.CONTAINER_CPU_USAGE__PERCPU_USAGE); + } + return percpu_usage; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public long getUsage_in_usermode() { + return usage_in_usermode; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setUsage_in_usermode(long newUsage_in_usermode) { + long oldUsage_in_usermode = usage_in_usermode; + usage_in_usermode = newUsage_in_usermode; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_CPU_USAGE__USAGE_IN_USERMODE, oldUsage_in_usermode, usage_in_usermode)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public long getTotal_usage() { + return total_usage; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTotal_usage(long newTotal_usage) { + long oldTotal_usage = total_usage; + total_usage = newTotal_usage; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_CPU_USAGE__TOTAL_USAGE, oldTotal_usage, total_usage)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public long getUser_in_kernelmode() { + return user_in_kernelmode; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setUser_in_kernelmode(long newUser_in_kernelmode) { + long oldUser_in_kernelmode = user_in_kernelmode; + user_in_kernelmode = newUser_in_kernelmode; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_CPU_USAGE__USER_IN_KERNELMODE, oldUser_in_kernelmode, user_in_kernelmode)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case DockerPackage.CONTAINER_CPU_USAGE__PERCPU_USAGE: + return getPercpu_usage(); + case DockerPackage.CONTAINER_CPU_USAGE__USAGE_IN_USERMODE: + return getUsage_in_usermode(); + case DockerPackage.CONTAINER_CPU_USAGE__TOTAL_USAGE: + return getTotal_usage(); + case DockerPackage.CONTAINER_CPU_USAGE__USER_IN_KERNELMODE: + return getUser_in_kernelmode(); + } + 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 DockerPackage.CONTAINER_CPU_USAGE__PERCPU_USAGE: + getPercpu_usage().clear(); + getPercpu_usage().addAll((Collection<? extends Long>)newValue); + return; + case DockerPackage.CONTAINER_CPU_USAGE__USAGE_IN_USERMODE: + setUsage_in_usermode((Long)newValue); + return; + case DockerPackage.CONTAINER_CPU_USAGE__TOTAL_USAGE: + setTotal_usage((Long)newValue); + return; + case DockerPackage.CONTAINER_CPU_USAGE__USER_IN_KERNELMODE: + setUser_in_kernelmode((Long)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DockerPackage.CONTAINER_CPU_USAGE__PERCPU_USAGE: + getPercpu_usage().clear(); + return; + case DockerPackage.CONTAINER_CPU_USAGE__USAGE_IN_USERMODE: + setUsage_in_usermode(USAGE_IN_USERMODE_EDEFAULT); + return; + case DockerPackage.CONTAINER_CPU_USAGE__TOTAL_USAGE: + setTotal_usage(TOTAL_USAGE_EDEFAULT); + return; + case DockerPackage.CONTAINER_CPU_USAGE__USER_IN_KERNELMODE: + setUser_in_kernelmode(USER_IN_KERNELMODE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DockerPackage.CONTAINER_CPU_USAGE__PERCPU_USAGE: + return percpu_usage != null && !percpu_usage.isEmpty(); + case DockerPackage.CONTAINER_CPU_USAGE__USAGE_IN_USERMODE: + return usage_in_usermode != USAGE_IN_USERMODE_EDEFAULT; + case DockerPackage.CONTAINER_CPU_USAGE__TOTAL_USAGE: + return total_usage != TOTAL_USAGE_EDEFAULT; + case DockerPackage.CONTAINER_CPU_USAGE__USER_IN_KERNELMODE: + return user_in_kernelmode != USER_IN_KERNELMODE_EDEFAULT; + } + 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(" (percpu_usage: "); + result.append(percpu_usage); + result.append(", usage_in_usermode: "); + result.append(usage_in_usermode); + result.append(", total_usage: "); + result.append(total_usage); + result.append(", user_in_kernelmode: "); + result.append(user_in_kernelmode); + result.append(')'); + return result.toString(); + } + +} //ContainerCpuUsageImpl diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/ContainerMemoryStatsImpl.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/ContainerMemoryStatsImpl.java new file mode 100644 index 0000000..022022f --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/ContainerMemoryStatsImpl.java @@ -0,0 +1,1696 @@ + +/*- + * ============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.ncomp.docker.impl; + +import org.openecomp.ncomp.docker.ContainerMemoryStats; +import org.openecomp.ncomp.docker.DockerPackage; + +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>Container Memory Stats</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerMemoryStatsImpl#getTotal_pgmajfault <em>Total pgmajfault</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerMemoryStatsImpl#getCache <em>Cache</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerMemoryStatsImpl#getMapped_file <em>Mapped file</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerMemoryStatsImpl#getTotal_inactive_file <em>Total inactive file</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerMemoryStatsImpl#getPgpgout <em>Pgpgout</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerMemoryStatsImpl#getRss <em>Rss</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerMemoryStatsImpl#getTotal_mapped_file <em>Total mapped file</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerMemoryStatsImpl#getWriteback <em>Writeback</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerMemoryStatsImpl#getUnevictable <em>Unevictable</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerMemoryStatsImpl#getPgpgin <em>Pgpgin</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerMemoryStatsImpl#getTotal_unevictable <em>Total unevictable</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerMemoryStatsImpl#getPgmajfault <em>Pgmajfault</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerMemoryStatsImpl#getTotal_rss <em>Total rss</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerMemoryStatsImpl#getTotal_rss_huge <em>Total rss huge</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerMemoryStatsImpl#getTotal_writeback <em>Total writeback</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerMemoryStatsImpl#getTotal_inactive_anon <em>Total inactive anon</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerMemoryStatsImpl#getRss_huge <em>Rss huge</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerMemoryStatsImpl#getHierarchical_memory_limit <em>Hierarchical memory limit</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerMemoryStatsImpl#getTotal_pgfault <em>Total pgfault</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerMemoryStatsImpl#getTotal_active_file <em>Total active file</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerMemoryStatsImpl#getActive_anon <em>Active anon</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerMemoryStatsImpl#getTotal_active_anon <em>Total active anon</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerMemoryStatsImpl#getTotal_pgpgout <em>Total pgpgout</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerMemoryStatsImpl#getTotal_cache <em>Total cache</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerMemoryStatsImpl#getInactive_anon <em>Inactive anon</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerMemoryStatsImpl#getActive_file <em>Active file</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerMemoryStatsImpl#getPgfault <em>Pgfault</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerMemoryStatsImpl#getInactive_file <em>Inactive file</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerMemoryStatsImpl#getTotal_pgpgin <em>Total pgpgin</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class ContainerMemoryStatsImpl extends MinimalEObjectImpl.Container implements ContainerMemoryStats { + /** + * The default value of the '{@link #getTotal_pgmajfault() <em>Total pgmajfault</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTotal_pgmajfault() + * @generated + * @ordered + */ + protected static final int TOTAL_PGMAJFAULT_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getTotal_pgmajfault() <em>Total pgmajfault</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTotal_pgmajfault() + * @generated + * @ordered + */ + protected int total_pgmajfault = TOTAL_PGMAJFAULT_EDEFAULT; + + /** + * The default value of the '{@link #getCache() <em>Cache</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCache() + * @generated + * @ordered + */ + protected static final int CACHE_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getCache() <em>Cache</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCache() + * @generated + * @ordered + */ + protected int cache = CACHE_EDEFAULT; + + /** + * The default value of the '{@link #getMapped_file() <em>Mapped file</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMapped_file() + * @generated + * @ordered + */ + protected static final int MAPPED_FILE_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getMapped_file() <em>Mapped file</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMapped_file() + * @generated + * @ordered + */ + protected int mapped_file = MAPPED_FILE_EDEFAULT; + + /** + * The default value of the '{@link #getTotal_inactive_file() <em>Total inactive file</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTotal_inactive_file() + * @generated + * @ordered + */ + protected static final int TOTAL_INACTIVE_FILE_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getTotal_inactive_file() <em>Total inactive file</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTotal_inactive_file() + * @generated + * @ordered + */ + protected int total_inactive_file = TOTAL_INACTIVE_FILE_EDEFAULT; + + /** + * The default value of the '{@link #getPgpgout() <em>Pgpgout</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPgpgout() + * @generated + * @ordered + */ + protected static final int PGPGOUT_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getPgpgout() <em>Pgpgout</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPgpgout() + * @generated + * @ordered + */ + protected int pgpgout = PGPGOUT_EDEFAULT; + + /** + * The default value of the '{@link #getRss() <em>Rss</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRss() + * @generated + * @ordered + */ + protected static final int RSS_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getRss() <em>Rss</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRss() + * @generated + * @ordered + */ + protected int rss = RSS_EDEFAULT; + + /** + * The default value of the '{@link #getTotal_mapped_file() <em>Total mapped file</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTotal_mapped_file() + * @generated + * @ordered + */ + protected static final int TOTAL_MAPPED_FILE_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getTotal_mapped_file() <em>Total mapped file</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTotal_mapped_file() + * @generated + * @ordered + */ + protected int total_mapped_file = TOTAL_MAPPED_FILE_EDEFAULT; + + /** + * The default value of the '{@link #getWriteback() <em>Writeback</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getWriteback() + * @generated + * @ordered + */ + protected static final int WRITEBACK_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getWriteback() <em>Writeback</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getWriteback() + * @generated + * @ordered + */ + protected int writeback = WRITEBACK_EDEFAULT; + + /** + * The default value of the '{@link #getUnevictable() <em>Unevictable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUnevictable() + * @generated + * @ordered + */ + protected static final int UNEVICTABLE_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getUnevictable() <em>Unevictable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUnevictable() + * @generated + * @ordered + */ + protected int unevictable = UNEVICTABLE_EDEFAULT; + + /** + * The default value of the '{@link #getPgpgin() <em>Pgpgin</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPgpgin() + * @generated + * @ordered + */ + protected static final int PGPGIN_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getPgpgin() <em>Pgpgin</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPgpgin() + * @generated + * @ordered + */ + protected int pgpgin = PGPGIN_EDEFAULT; + + /** + * The default value of the '{@link #getTotal_unevictable() <em>Total unevictable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTotal_unevictable() + * @generated + * @ordered + */ + protected static final int TOTAL_UNEVICTABLE_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getTotal_unevictable() <em>Total unevictable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTotal_unevictable() + * @generated + * @ordered + */ + protected int total_unevictable = TOTAL_UNEVICTABLE_EDEFAULT; + + /** + * The default value of the '{@link #getPgmajfault() <em>Pgmajfault</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPgmajfault() + * @generated + * @ordered + */ + protected static final int PGMAJFAULT_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getPgmajfault() <em>Pgmajfault</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPgmajfault() + * @generated + * @ordered + */ + protected int pgmajfault = PGMAJFAULT_EDEFAULT; + + /** + * The default value of the '{@link #getTotal_rss() <em>Total rss</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTotal_rss() + * @generated + * @ordered + */ + protected static final int TOTAL_RSS_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getTotal_rss() <em>Total rss</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTotal_rss() + * @generated + * @ordered + */ + protected int total_rss = TOTAL_RSS_EDEFAULT; + + /** + * The default value of the '{@link #getTotal_rss_huge() <em>Total rss huge</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTotal_rss_huge() + * @generated + * @ordered + */ + protected static final int TOTAL_RSS_HUGE_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getTotal_rss_huge() <em>Total rss huge</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTotal_rss_huge() + * @generated + * @ordered + */ + protected int total_rss_huge = TOTAL_RSS_HUGE_EDEFAULT; + + /** + * The default value of the '{@link #getTotal_writeback() <em>Total writeback</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTotal_writeback() + * @generated + * @ordered + */ + protected static final int TOTAL_WRITEBACK_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getTotal_writeback() <em>Total writeback</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTotal_writeback() + * @generated + * @ordered + */ + protected int total_writeback = TOTAL_WRITEBACK_EDEFAULT; + + /** + * The default value of the '{@link #getTotal_inactive_anon() <em>Total inactive anon</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTotal_inactive_anon() + * @generated + * @ordered + */ + protected static final int TOTAL_INACTIVE_ANON_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getTotal_inactive_anon() <em>Total inactive anon</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTotal_inactive_anon() + * @generated + * @ordered + */ + protected int total_inactive_anon = TOTAL_INACTIVE_ANON_EDEFAULT; + + /** + * The default value of the '{@link #getRss_huge() <em>Rss huge</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRss_huge() + * @generated + * @ordered + */ + protected static final int RSS_HUGE_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getRss_huge() <em>Rss huge</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRss_huge() + * @generated + * @ordered + */ + protected int rss_huge = RSS_HUGE_EDEFAULT; + + /** + * The default value of the '{@link #getHierarchical_memory_limit() <em>Hierarchical memory limit</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getHierarchical_memory_limit() + * @generated + * @ordered + */ + protected static final int HIERARCHICAL_MEMORY_LIMIT_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getHierarchical_memory_limit() <em>Hierarchical memory limit</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getHierarchical_memory_limit() + * @generated + * @ordered + */ + protected int hierarchical_memory_limit = HIERARCHICAL_MEMORY_LIMIT_EDEFAULT; + + /** + * The default value of the '{@link #getTotal_pgfault() <em>Total pgfault</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTotal_pgfault() + * @generated + * @ordered + */ + protected static final int TOTAL_PGFAULT_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getTotal_pgfault() <em>Total pgfault</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTotal_pgfault() + * @generated + * @ordered + */ + protected int total_pgfault = TOTAL_PGFAULT_EDEFAULT; + + /** + * The default value of the '{@link #getTotal_active_file() <em>Total active file</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTotal_active_file() + * @generated + * @ordered + */ + protected static final int TOTAL_ACTIVE_FILE_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getTotal_active_file() <em>Total active file</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTotal_active_file() + * @generated + * @ordered + */ + protected int total_active_file = TOTAL_ACTIVE_FILE_EDEFAULT; + + /** + * The default value of the '{@link #getActive_anon() <em>Active anon</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getActive_anon() + * @generated + * @ordered + */ + protected static final int ACTIVE_ANON_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getActive_anon() <em>Active anon</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getActive_anon() + * @generated + * @ordered + */ + protected int active_anon = ACTIVE_ANON_EDEFAULT; + + /** + * The default value of the '{@link #getTotal_active_anon() <em>Total active anon</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTotal_active_anon() + * @generated + * @ordered + */ + protected static final int TOTAL_ACTIVE_ANON_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getTotal_active_anon() <em>Total active anon</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTotal_active_anon() + * @generated + * @ordered + */ + protected int total_active_anon = TOTAL_ACTIVE_ANON_EDEFAULT; + + /** + * The default value of the '{@link #getTotal_pgpgout() <em>Total pgpgout</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTotal_pgpgout() + * @generated + * @ordered + */ + protected static final int TOTAL_PGPGOUT_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getTotal_pgpgout() <em>Total pgpgout</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTotal_pgpgout() + * @generated + * @ordered + */ + protected int total_pgpgout = TOTAL_PGPGOUT_EDEFAULT; + + /** + * The default value of the '{@link #getTotal_cache() <em>Total cache</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTotal_cache() + * @generated + * @ordered + */ + protected static final int TOTAL_CACHE_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getTotal_cache() <em>Total cache</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTotal_cache() + * @generated + * @ordered + */ + protected int total_cache = TOTAL_CACHE_EDEFAULT; + + /** + * The default value of the '{@link #getInactive_anon() <em>Inactive anon</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getInactive_anon() + * @generated + * @ordered + */ + protected static final int INACTIVE_ANON_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getInactive_anon() <em>Inactive anon</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getInactive_anon() + * @generated + * @ordered + */ + protected int inactive_anon = INACTIVE_ANON_EDEFAULT; + + /** + * The default value of the '{@link #getActive_file() <em>Active file</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getActive_file() + * @generated + * @ordered + */ + protected static final int ACTIVE_FILE_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getActive_file() <em>Active file</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getActive_file() + * @generated + * @ordered + */ + protected int active_file = ACTIVE_FILE_EDEFAULT; + + /** + * The default value of the '{@link #getPgfault() <em>Pgfault</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPgfault() + * @generated + * @ordered + */ + protected static final int PGFAULT_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getPgfault() <em>Pgfault</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPgfault() + * @generated + * @ordered + */ + protected int pgfault = PGFAULT_EDEFAULT; + + /** + * The default value of the '{@link #getInactive_file() <em>Inactive file</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getInactive_file() + * @generated + * @ordered + */ + protected static final int INACTIVE_FILE_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getInactive_file() <em>Inactive file</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getInactive_file() + * @generated + * @ordered + */ + protected int inactive_file = INACTIVE_FILE_EDEFAULT; + + /** + * The default value of the '{@link #getTotal_pgpgin() <em>Total pgpgin</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTotal_pgpgin() + * @generated + * @ordered + */ + protected static final int TOTAL_PGPGIN_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getTotal_pgpgin() <em>Total pgpgin</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTotal_pgpgin() + * @generated + * @ordered + */ + protected int total_pgpgin = TOTAL_PGPGIN_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ContainerMemoryStatsImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return DockerPackage.Literals.CONTAINER_MEMORY_STATS; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getTotal_pgmajfault() { + return total_pgmajfault; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTotal_pgmajfault(int newTotal_pgmajfault) { + int oldTotal_pgmajfault = total_pgmajfault; + total_pgmajfault = newTotal_pgmajfault; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_PGMAJFAULT, oldTotal_pgmajfault, total_pgmajfault)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getCache() { + return cache; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setCache(int newCache) { + int oldCache = cache; + cache = newCache; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_MEMORY_STATS__CACHE, oldCache, cache)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getMapped_file() { + return mapped_file; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setMapped_file(int newMapped_file) { + int oldMapped_file = mapped_file; + mapped_file = newMapped_file; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_MEMORY_STATS__MAPPED_FILE, oldMapped_file, mapped_file)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getTotal_inactive_file() { + return total_inactive_file; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTotal_inactive_file(int newTotal_inactive_file) { + int oldTotal_inactive_file = total_inactive_file; + total_inactive_file = newTotal_inactive_file; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_INACTIVE_FILE, oldTotal_inactive_file, total_inactive_file)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getPgpgout() { + return pgpgout; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPgpgout(int newPgpgout) { + int oldPgpgout = pgpgout; + pgpgout = newPgpgout; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_MEMORY_STATS__PGPGOUT, oldPgpgout, pgpgout)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getRss() { + return rss; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setRss(int newRss) { + int oldRss = rss; + rss = newRss; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_MEMORY_STATS__RSS, oldRss, rss)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getTotal_mapped_file() { + return total_mapped_file; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTotal_mapped_file(int newTotal_mapped_file) { + int oldTotal_mapped_file = total_mapped_file; + total_mapped_file = newTotal_mapped_file; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_MAPPED_FILE, oldTotal_mapped_file, total_mapped_file)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getWriteback() { + return writeback; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setWriteback(int newWriteback) { + int oldWriteback = writeback; + writeback = newWriteback; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_MEMORY_STATS__WRITEBACK, oldWriteback, writeback)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getUnevictable() { + return unevictable; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setUnevictable(int newUnevictable) { + int oldUnevictable = unevictable; + unevictable = newUnevictable; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_MEMORY_STATS__UNEVICTABLE, oldUnevictable, unevictable)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getPgpgin() { + return pgpgin; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPgpgin(int newPgpgin) { + int oldPgpgin = pgpgin; + pgpgin = newPgpgin; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_MEMORY_STATS__PGPGIN, oldPgpgin, pgpgin)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getTotal_unevictable() { + return total_unevictable; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTotal_unevictable(int newTotal_unevictable) { + int oldTotal_unevictable = total_unevictable; + total_unevictable = newTotal_unevictable; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_UNEVICTABLE, oldTotal_unevictable, total_unevictable)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getPgmajfault() { + return pgmajfault; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPgmajfault(int newPgmajfault) { + int oldPgmajfault = pgmajfault; + pgmajfault = newPgmajfault; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_MEMORY_STATS__PGMAJFAULT, oldPgmajfault, pgmajfault)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getTotal_rss() { + return total_rss; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTotal_rss(int newTotal_rss) { + int oldTotal_rss = total_rss; + total_rss = newTotal_rss; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_RSS, oldTotal_rss, total_rss)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getTotal_rss_huge() { + return total_rss_huge; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTotal_rss_huge(int newTotal_rss_huge) { + int oldTotal_rss_huge = total_rss_huge; + total_rss_huge = newTotal_rss_huge; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_RSS_HUGE, oldTotal_rss_huge, total_rss_huge)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getTotal_writeback() { + return total_writeback; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTotal_writeback(int newTotal_writeback) { + int oldTotal_writeback = total_writeback; + total_writeback = newTotal_writeback; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_WRITEBACK, oldTotal_writeback, total_writeback)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getTotal_inactive_anon() { + return total_inactive_anon; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTotal_inactive_anon(int newTotal_inactive_anon) { + int oldTotal_inactive_anon = total_inactive_anon; + total_inactive_anon = newTotal_inactive_anon; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_INACTIVE_ANON, oldTotal_inactive_anon, total_inactive_anon)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getRss_huge() { + return rss_huge; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setRss_huge(int newRss_huge) { + int oldRss_huge = rss_huge; + rss_huge = newRss_huge; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_MEMORY_STATS__RSS_HUGE, oldRss_huge, rss_huge)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getHierarchical_memory_limit() { + return hierarchical_memory_limit; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setHierarchical_memory_limit(int newHierarchical_memory_limit) { + int oldHierarchical_memory_limit = hierarchical_memory_limit; + hierarchical_memory_limit = newHierarchical_memory_limit; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_MEMORY_STATS__HIERARCHICAL_MEMORY_LIMIT, oldHierarchical_memory_limit, hierarchical_memory_limit)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getTotal_pgfault() { + return total_pgfault; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTotal_pgfault(int newTotal_pgfault) { + int oldTotal_pgfault = total_pgfault; + total_pgfault = newTotal_pgfault; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_PGFAULT, oldTotal_pgfault, total_pgfault)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getTotal_active_file() { + return total_active_file; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTotal_active_file(int newTotal_active_file) { + int oldTotal_active_file = total_active_file; + total_active_file = newTotal_active_file; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_ACTIVE_FILE, oldTotal_active_file, total_active_file)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getActive_anon() { + return active_anon; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setActive_anon(int newActive_anon) { + int oldActive_anon = active_anon; + active_anon = newActive_anon; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_MEMORY_STATS__ACTIVE_ANON, oldActive_anon, active_anon)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getTotal_active_anon() { + return total_active_anon; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTotal_active_anon(int newTotal_active_anon) { + int oldTotal_active_anon = total_active_anon; + total_active_anon = newTotal_active_anon; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_ACTIVE_ANON, oldTotal_active_anon, total_active_anon)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getTotal_pgpgout() { + return total_pgpgout; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTotal_pgpgout(int newTotal_pgpgout) { + int oldTotal_pgpgout = total_pgpgout; + total_pgpgout = newTotal_pgpgout; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_PGPGOUT, oldTotal_pgpgout, total_pgpgout)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getTotal_cache() { + return total_cache; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTotal_cache(int newTotal_cache) { + int oldTotal_cache = total_cache; + total_cache = newTotal_cache; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_CACHE, oldTotal_cache, total_cache)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getInactive_anon() { + return inactive_anon; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setInactive_anon(int newInactive_anon) { + int oldInactive_anon = inactive_anon; + inactive_anon = newInactive_anon; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_MEMORY_STATS__INACTIVE_ANON, oldInactive_anon, inactive_anon)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getActive_file() { + return active_file; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setActive_file(int newActive_file) { + int oldActive_file = active_file; + active_file = newActive_file; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_MEMORY_STATS__ACTIVE_FILE, oldActive_file, active_file)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getPgfault() { + return pgfault; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPgfault(int newPgfault) { + int oldPgfault = pgfault; + pgfault = newPgfault; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_MEMORY_STATS__PGFAULT, oldPgfault, pgfault)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getInactive_file() { + return inactive_file; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setInactive_file(int newInactive_file) { + int oldInactive_file = inactive_file; + inactive_file = newInactive_file; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_MEMORY_STATS__INACTIVE_FILE, oldInactive_file, inactive_file)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getTotal_pgpgin() { + return total_pgpgin; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTotal_pgpgin(int newTotal_pgpgin) { + int oldTotal_pgpgin = total_pgpgin; + total_pgpgin = newTotal_pgpgin; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_PGPGIN, oldTotal_pgpgin, total_pgpgin)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_PGMAJFAULT: + return getTotal_pgmajfault(); + case DockerPackage.CONTAINER_MEMORY_STATS__CACHE: + return getCache(); + case DockerPackage.CONTAINER_MEMORY_STATS__MAPPED_FILE: + return getMapped_file(); + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_INACTIVE_FILE: + return getTotal_inactive_file(); + case DockerPackage.CONTAINER_MEMORY_STATS__PGPGOUT: + return getPgpgout(); + case DockerPackage.CONTAINER_MEMORY_STATS__RSS: + return getRss(); + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_MAPPED_FILE: + return getTotal_mapped_file(); + case DockerPackage.CONTAINER_MEMORY_STATS__WRITEBACK: + return getWriteback(); + case DockerPackage.CONTAINER_MEMORY_STATS__UNEVICTABLE: + return getUnevictable(); + case DockerPackage.CONTAINER_MEMORY_STATS__PGPGIN: + return getPgpgin(); + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_UNEVICTABLE: + return getTotal_unevictable(); + case DockerPackage.CONTAINER_MEMORY_STATS__PGMAJFAULT: + return getPgmajfault(); + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_RSS: + return getTotal_rss(); + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_RSS_HUGE: + return getTotal_rss_huge(); + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_WRITEBACK: + return getTotal_writeback(); + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_INACTIVE_ANON: + return getTotal_inactive_anon(); + case DockerPackage.CONTAINER_MEMORY_STATS__RSS_HUGE: + return getRss_huge(); + case DockerPackage.CONTAINER_MEMORY_STATS__HIERARCHICAL_MEMORY_LIMIT: + return getHierarchical_memory_limit(); + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_PGFAULT: + return getTotal_pgfault(); + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_ACTIVE_FILE: + return getTotal_active_file(); + case DockerPackage.CONTAINER_MEMORY_STATS__ACTIVE_ANON: + return getActive_anon(); + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_ACTIVE_ANON: + return getTotal_active_anon(); + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_PGPGOUT: + return getTotal_pgpgout(); + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_CACHE: + return getTotal_cache(); + case DockerPackage.CONTAINER_MEMORY_STATS__INACTIVE_ANON: + return getInactive_anon(); + case DockerPackage.CONTAINER_MEMORY_STATS__ACTIVE_FILE: + return getActive_file(); + case DockerPackage.CONTAINER_MEMORY_STATS__PGFAULT: + return getPgfault(); + case DockerPackage.CONTAINER_MEMORY_STATS__INACTIVE_FILE: + return getInactive_file(); + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_PGPGIN: + return getTotal_pgpgin(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_PGMAJFAULT: + setTotal_pgmajfault((Integer)newValue); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__CACHE: + setCache((Integer)newValue); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__MAPPED_FILE: + setMapped_file((Integer)newValue); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_INACTIVE_FILE: + setTotal_inactive_file((Integer)newValue); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__PGPGOUT: + setPgpgout((Integer)newValue); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__RSS: + setRss((Integer)newValue); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_MAPPED_FILE: + setTotal_mapped_file((Integer)newValue); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__WRITEBACK: + setWriteback((Integer)newValue); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__UNEVICTABLE: + setUnevictable((Integer)newValue); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__PGPGIN: + setPgpgin((Integer)newValue); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_UNEVICTABLE: + setTotal_unevictable((Integer)newValue); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__PGMAJFAULT: + setPgmajfault((Integer)newValue); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_RSS: + setTotal_rss((Integer)newValue); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_RSS_HUGE: + setTotal_rss_huge((Integer)newValue); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_WRITEBACK: + setTotal_writeback((Integer)newValue); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_INACTIVE_ANON: + setTotal_inactive_anon((Integer)newValue); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__RSS_HUGE: + setRss_huge((Integer)newValue); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__HIERARCHICAL_MEMORY_LIMIT: + setHierarchical_memory_limit((Integer)newValue); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_PGFAULT: + setTotal_pgfault((Integer)newValue); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_ACTIVE_FILE: + setTotal_active_file((Integer)newValue); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__ACTIVE_ANON: + setActive_anon((Integer)newValue); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_ACTIVE_ANON: + setTotal_active_anon((Integer)newValue); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_PGPGOUT: + setTotal_pgpgout((Integer)newValue); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_CACHE: + setTotal_cache((Integer)newValue); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__INACTIVE_ANON: + setInactive_anon((Integer)newValue); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__ACTIVE_FILE: + setActive_file((Integer)newValue); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__PGFAULT: + setPgfault((Integer)newValue); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__INACTIVE_FILE: + setInactive_file((Integer)newValue); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_PGPGIN: + setTotal_pgpgin((Integer)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_PGMAJFAULT: + setTotal_pgmajfault(TOTAL_PGMAJFAULT_EDEFAULT); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__CACHE: + setCache(CACHE_EDEFAULT); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__MAPPED_FILE: + setMapped_file(MAPPED_FILE_EDEFAULT); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_INACTIVE_FILE: + setTotal_inactive_file(TOTAL_INACTIVE_FILE_EDEFAULT); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__PGPGOUT: + setPgpgout(PGPGOUT_EDEFAULT); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__RSS: + setRss(RSS_EDEFAULT); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_MAPPED_FILE: + setTotal_mapped_file(TOTAL_MAPPED_FILE_EDEFAULT); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__WRITEBACK: + setWriteback(WRITEBACK_EDEFAULT); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__UNEVICTABLE: + setUnevictable(UNEVICTABLE_EDEFAULT); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__PGPGIN: + setPgpgin(PGPGIN_EDEFAULT); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_UNEVICTABLE: + setTotal_unevictable(TOTAL_UNEVICTABLE_EDEFAULT); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__PGMAJFAULT: + setPgmajfault(PGMAJFAULT_EDEFAULT); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_RSS: + setTotal_rss(TOTAL_RSS_EDEFAULT); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_RSS_HUGE: + setTotal_rss_huge(TOTAL_RSS_HUGE_EDEFAULT); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_WRITEBACK: + setTotal_writeback(TOTAL_WRITEBACK_EDEFAULT); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_INACTIVE_ANON: + setTotal_inactive_anon(TOTAL_INACTIVE_ANON_EDEFAULT); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__RSS_HUGE: + setRss_huge(RSS_HUGE_EDEFAULT); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__HIERARCHICAL_MEMORY_LIMIT: + setHierarchical_memory_limit(HIERARCHICAL_MEMORY_LIMIT_EDEFAULT); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_PGFAULT: + setTotal_pgfault(TOTAL_PGFAULT_EDEFAULT); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_ACTIVE_FILE: + setTotal_active_file(TOTAL_ACTIVE_FILE_EDEFAULT); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__ACTIVE_ANON: + setActive_anon(ACTIVE_ANON_EDEFAULT); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_ACTIVE_ANON: + setTotal_active_anon(TOTAL_ACTIVE_ANON_EDEFAULT); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_PGPGOUT: + setTotal_pgpgout(TOTAL_PGPGOUT_EDEFAULT); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_CACHE: + setTotal_cache(TOTAL_CACHE_EDEFAULT); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__INACTIVE_ANON: + setInactive_anon(INACTIVE_ANON_EDEFAULT); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__ACTIVE_FILE: + setActive_file(ACTIVE_FILE_EDEFAULT); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__PGFAULT: + setPgfault(PGFAULT_EDEFAULT); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__INACTIVE_FILE: + setInactive_file(INACTIVE_FILE_EDEFAULT); + return; + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_PGPGIN: + setTotal_pgpgin(TOTAL_PGPGIN_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_PGMAJFAULT: + return total_pgmajfault != TOTAL_PGMAJFAULT_EDEFAULT; + case DockerPackage.CONTAINER_MEMORY_STATS__CACHE: + return cache != CACHE_EDEFAULT; + case DockerPackage.CONTAINER_MEMORY_STATS__MAPPED_FILE: + return mapped_file != MAPPED_FILE_EDEFAULT; + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_INACTIVE_FILE: + return total_inactive_file != TOTAL_INACTIVE_FILE_EDEFAULT; + case DockerPackage.CONTAINER_MEMORY_STATS__PGPGOUT: + return pgpgout != PGPGOUT_EDEFAULT; + case DockerPackage.CONTAINER_MEMORY_STATS__RSS: + return rss != RSS_EDEFAULT; + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_MAPPED_FILE: + return total_mapped_file != TOTAL_MAPPED_FILE_EDEFAULT; + case DockerPackage.CONTAINER_MEMORY_STATS__WRITEBACK: + return writeback != WRITEBACK_EDEFAULT; + case DockerPackage.CONTAINER_MEMORY_STATS__UNEVICTABLE: + return unevictable != UNEVICTABLE_EDEFAULT; + case DockerPackage.CONTAINER_MEMORY_STATS__PGPGIN: + return pgpgin != PGPGIN_EDEFAULT; + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_UNEVICTABLE: + return total_unevictable != TOTAL_UNEVICTABLE_EDEFAULT; + case DockerPackage.CONTAINER_MEMORY_STATS__PGMAJFAULT: + return pgmajfault != PGMAJFAULT_EDEFAULT; + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_RSS: + return total_rss != TOTAL_RSS_EDEFAULT; + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_RSS_HUGE: + return total_rss_huge != TOTAL_RSS_HUGE_EDEFAULT; + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_WRITEBACK: + return total_writeback != TOTAL_WRITEBACK_EDEFAULT; + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_INACTIVE_ANON: + return total_inactive_anon != TOTAL_INACTIVE_ANON_EDEFAULT; + case DockerPackage.CONTAINER_MEMORY_STATS__RSS_HUGE: + return rss_huge != RSS_HUGE_EDEFAULT; + case DockerPackage.CONTAINER_MEMORY_STATS__HIERARCHICAL_MEMORY_LIMIT: + return hierarchical_memory_limit != HIERARCHICAL_MEMORY_LIMIT_EDEFAULT; + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_PGFAULT: + return total_pgfault != TOTAL_PGFAULT_EDEFAULT; + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_ACTIVE_FILE: + return total_active_file != TOTAL_ACTIVE_FILE_EDEFAULT; + case DockerPackage.CONTAINER_MEMORY_STATS__ACTIVE_ANON: + return active_anon != ACTIVE_ANON_EDEFAULT; + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_ACTIVE_ANON: + return total_active_anon != TOTAL_ACTIVE_ANON_EDEFAULT; + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_PGPGOUT: + return total_pgpgout != TOTAL_PGPGOUT_EDEFAULT; + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_CACHE: + return total_cache != TOTAL_CACHE_EDEFAULT; + case DockerPackage.CONTAINER_MEMORY_STATS__INACTIVE_ANON: + return inactive_anon != INACTIVE_ANON_EDEFAULT; + case DockerPackage.CONTAINER_MEMORY_STATS__ACTIVE_FILE: + return active_file != ACTIVE_FILE_EDEFAULT; + case DockerPackage.CONTAINER_MEMORY_STATS__PGFAULT: + return pgfault != PGFAULT_EDEFAULT; + case DockerPackage.CONTAINER_MEMORY_STATS__INACTIVE_FILE: + return inactive_file != INACTIVE_FILE_EDEFAULT; + case DockerPackage.CONTAINER_MEMORY_STATS__TOTAL_PGPGIN: + return total_pgpgin != TOTAL_PGPGIN_EDEFAULT; + } + 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(" (total_pgmajfault: "); + result.append(total_pgmajfault); + result.append(", cache: "); + result.append(cache); + result.append(", mapped_file: "); + result.append(mapped_file); + result.append(", total_inactive_file: "); + result.append(total_inactive_file); + result.append(", pgpgout: "); + result.append(pgpgout); + result.append(", rss: "); + result.append(rss); + result.append(", total_mapped_file: "); + result.append(total_mapped_file); + result.append(", writeback: "); + result.append(writeback); + result.append(", unevictable: "); + result.append(unevictable); + result.append(", pgpgin: "); + result.append(pgpgin); + result.append(", total_unevictable: "); + result.append(total_unevictable); + result.append(", pgmajfault: "); + result.append(pgmajfault); + result.append(", total_rss: "); + result.append(total_rss); + result.append(", total_rss_huge: "); + result.append(total_rss_huge); + result.append(", total_writeback: "); + result.append(total_writeback); + result.append(", total_inactive_anon: "); + result.append(total_inactive_anon); + result.append(", rss_huge: "); + result.append(rss_huge); + result.append(", hierarchical_memory_limit: "); + result.append(hierarchical_memory_limit); + result.append(", total_pgfault: "); + result.append(total_pgfault); + result.append(", total_active_file: "); + result.append(total_active_file); + result.append(", active_anon: "); + result.append(active_anon); + result.append(", total_active_anon: "); + result.append(total_active_anon); + result.append(", total_pgpgout: "); + result.append(total_pgpgout); + result.append(", total_cache: "); + result.append(total_cache); + result.append(", inactive_anon: "); + result.append(inactive_anon); + result.append(", active_file: "); + result.append(active_file); + result.append(", pgfault: "); + result.append(pgfault); + result.append(", inactive_file: "); + result.append(inactive_file); + result.append(", total_pgpgin: "); + result.append(total_pgpgin); + result.append(')'); + return result.toString(); + } + +} //ContainerMemoryStatsImpl diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/ContainerMemoryUsageImpl.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/ContainerMemoryUsageImpl.java new file mode 100644 index 0000000..37d99af --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/ContainerMemoryUsageImpl.java @@ -0,0 +1,427 @@ + +/*- + * ============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.ncomp.docker.impl; + +import org.openecomp.ncomp.docker.ContainerMemoryStats; +import org.openecomp.ncomp.docker.ContainerMemoryUsage; +import org.openecomp.ncomp.docker.DockerPackage; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +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>Container Memory Usage</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerMemoryUsageImpl#getMemstats <em>Memstats</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerMemoryUsageImpl#getMax_usage <em>Max usage</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerMemoryUsageImpl#getUsage <em>Usage</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerMemoryUsageImpl#getFailcnt <em>Failcnt</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerMemoryUsageImpl#getLimit <em>Limit</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class ContainerMemoryUsageImpl extends MinimalEObjectImpl.Container implements ContainerMemoryUsage { + /** + * The cached value of the '{@link #getMemstats() <em>Memstats</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMemstats() + * @generated + * @ordered + */ + protected ContainerMemoryStats memstats; + + /** + * The default value of the '{@link #getMax_usage() <em>Max usage</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMax_usage() + * @generated + * @ordered + */ + protected static final int MAX_USAGE_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getMax_usage() <em>Max usage</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMax_usage() + * @generated + * @ordered + */ + protected int max_usage = MAX_USAGE_EDEFAULT; + + /** + * The default value of the '{@link #getUsage() <em>Usage</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUsage() + * @generated + * @ordered + */ + protected static final int USAGE_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getUsage() <em>Usage</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUsage() + * @generated + * @ordered + */ + protected int usage = USAGE_EDEFAULT; + + /** + * The default value of the '{@link #getFailcnt() <em>Failcnt</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFailcnt() + * @generated + * @ordered + */ + protected static final int FAILCNT_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getFailcnt() <em>Failcnt</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFailcnt() + * @generated + * @ordered + */ + protected int failcnt = FAILCNT_EDEFAULT; + + /** + * The default value of the '{@link #getLimit() <em>Limit</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getLimit() + * @generated + * @ordered + */ + protected static final int LIMIT_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getLimit() <em>Limit</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getLimit() + * @generated + * @ordered + */ + protected int limit = LIMIT_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ContainerMemoryUsageImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return DockerPackage.Literals.CONTAINER_MEMORY_USAGE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ContainerMemoryStats getMemstats() { + return memstats; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetMemstats(ContainerMemoryStats newMemstats, NotificationChain msgs) { + ContainerMemoryStats oldMemstats = memstats; + memstats = newMemstats; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_MEMORY_USAGE__MEMSTATS, oldMemstats, newMemstats); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setMemstats(ContainerMemoryStats newMemstats) { + if (newMemstats != memstats) { + NotificationChain msgs = null; + if (memstats != null) + msgs = ((InternalEObject)memstats).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DockerPackage.CONTAINER_MEMORY_USAGE__MEMSTATS, null, msgs); + if (newMemstats != null) + msgs = ((InternalEObject)newMemstats).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DockerPackage.CONTAINER_MEMORY_USAGE__MEMSTATS, null, msgs); + msgs = basicSetMemstats(newMemstats, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_MEMORY_USAGE__MEMSTATS, newMemstats, newMemstats)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getMax_usage() { + return max_usage; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setMax_usage(int newMax_usage) { + int oldMax_usage = max_usage; + max_usage = newMax_usage; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_MEMORY_USAGE__MAX_USAGE, oldMax_usage, max_usage)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getUsage() { + return usage; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setUsage(int newUsage) { + int oldUsage = usage; + usage = newUsage; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_MEMORY_USAGE__USAGE, oldUsage, usage)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getFailcnt() { + return failcnt; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setFailcnt(int newFailcnt) { + int oldFailcnt = failcnt; + failcnt = newFailcnt; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_MEMORY_USAGE__FAILCNT, oldFailcnt, failcnt)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getLimit() { + return limit; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setLimit(int newLimit) { + int oldLimit = limit; + limit = newLimit; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_MEMORY_USAGE__LIMIT, oldLimit, limit)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case DockerPackage.CONTAINER_MEMORY_USAGE__MEMSTATS: + return basicSetMemstats(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 DockerPackage.CONTAINER_MEMORY_USAGE__MEMSTATS: + return getMemstats(); + case DockerPackage.CONTAINER_MEMORY_USAGE__MAX_USAGE: + return getMax_usage(); + case DockerPackage.CONTAINER_MEMORY_USAGE__USAGE: + return getUsage(); + case DockerPackage.CONTAINER_MEMORY_USAGE__FAILCNT: + return getFailcnt(); + case DockerPackage.CONTAINER_MEMORY_USAGE__LIMIT: + return getLimit(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case DockerPackage.CONTAINER_MEMORY_USAGE__MEMSTATS: + setMemstats((ContainerMemoryStats)newValue); + return; + case DockerPackage.CONTAINER_MEMORY_USAGE__MAX_USAGE: + setMax_usage((Integer)newValue); + return; + case DockerPackage.CONTAINER_MEMORY_USAGE__USAGE: + setUsage((Integer)newValue); + return; + case DockerPackage.CONTAINER_MEMORY_USAGE__FAILCNT: + setFailcnt((Integer)newValue); + return; + case DockerPackage.CONTAINER_MEMORY_USAGE__LIMIT: + setLimit((Integer)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DockerPackage.CONTAINER_MEMORY_USAGE__MEMSTATS: + setMemstats((ContainerMemoryStats)null); + return; + case DockerPackage.CONTAINER_MEMORY_USAGE__MAX_USAGE: + setMax_usage(MAX_USAGE_EDEFAULT); + return; + case DockerPackage.CONTAINER_MEMORY_USAGE__USAGE: + setUsage(USAGE_EDEFAULT); + return; + case DockerPackage.CONTAINER_MEMORY_USAGE__FAILCNT: + setFailcnt(FAILCNT_EDEFAULT); + return; + case DockerPackage.CONTAINER_MEMORY_USAGE__LIMIT: + setLimit(LIMIT_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DockerPackage.CONTAINER_MEMORY_USAGE__MEMSTATS: + return memstats != null; + case DockerPackage.CONTAINER_MEMORY_USAGE__MAX_USAGE: + return max_usage != MAX_USAGE_EDEFAULT; + case DockerPackage.CONTAINER_MEMORY_USAGE__USAGE: + return usage != USAGE_EDEFAULT; + case DockerPackage.CONTAINER_MEMORY_USAGE__FAILCNT: + return failcnt != FAILCNT_EDEFAULT; + case DockerPackage.CONTAINER_MEMORY_USAGE__LIMIT: + return limit != LIMIT_EDEFAULT; + } + 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(" (max_usage: "); + result.append(max_usage); + result.append(", usage: "); + result.append(usage); + result.append(", failcnt: "); + result.append(failcnt); + result.append(", limit: "); + result.append(limit); + result.append(')'); + return result.toString(); + } + +} //ContainerMemoryUsageImpl diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/ContainerNetworkStatsImpl.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/ContainerNetworkStatsImpl.java new file mode 100644 index 0000000..6d112b7 --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/ContainerNetworkStatsImpl.java @@ -0,0 +1,616 @@ + +/*- + * ============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.ncomp.docker.impl; + +import org.openecomp.ncomp.docker.ContainerNetworkStats; +import org.openecomp.ncomp.docker.DockerPackage; + +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>Container Network Stats</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerNetworkStatsImpl#getIntf <em>Intf</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerNetworkStatsImpl#getRx_bytes <em>Rx bytes</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerNetworkStatsImpl#getRx_dropped <em>Rx dropped</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerNetworkStatsImpl#getRx_errors <em>Rx errors</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerNetworkStatsImpl#getRx_packets <em>Rx packets</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerNetworkStatsImpl#getTx_bytes <em>Tx bytes</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerNetworkStatsImpl#getTx_dropped <em>Tx dropped</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerNetworkStatsImpl#getTx_errors <em>Tx errors</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerNetworkStatsImpl#getTx_packets <em>Tx packets</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class ContainerNetworkStatsImpl extends MinimalEObjectImpl.Container implements ContainerNetworkStats { + /** + * The default value of the '{@link #getIntf() <em>Intf</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIntf() + * @generated + * @ordered + */ + protected static final String INTF_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIntf() <em>Intf</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIntf() + * @generated + * @ordered + */ + protected String intf = INTF_EDEFAULT; + + /** + * The default value of the '{@link #getRx_bytes() <em>Rx bytes</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRx_bytes() + * @generated + * @ordered + */ + protected static final int RX_BYTES_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getRx_bytes() <em>Rx bytes</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRx_bytes() + * @generated + * @ordered + */ + protected int rx_bytes = RX_BYTES_EDEFAULT; + + /** + * The default value of the '{@link #getRx_dropped() <em>Rx dropped</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRx_dropped() + * @generated + * @ordered + */ + protected static final int RX_DROPPED_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getRx_dropped() <em>Rx dropped</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRx_dropped() + * @generated + * @ordered + */ + protected int rx_dropped = RX_DROPPED_EDEFAULT; + + /** + * The default value of the '{@link #getRx_errors() <em>Rx errors</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRx_errors() + * @generated + * @ordered + */ + protected static final int RX_ERRORS_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getRx_errors() <em>Rx errors</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRx_errors() + * @generated + * @ordered + */ + protected int rx_errors = RX_ERRORS_EDEFAULT; + + /** + * The default value of the '{@link #getRx_packets() <em>Rx packets</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRx_packets() + * @generated + * @ordered + */ + protected static final int RX_PACKETS_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getRx_packets() <em>Rx packets</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRx_packets() + * @generated + * @ordered + */ + protected int rx_packets = RX_PACKETS_EDEFAULT; + + /** + * The default value of the '{@link #getTx_bytes() <em>Tx bytes</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTx_bytes() + * @generated + * @ordered + */ + protected static final int TX_BYTES_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getTx_bytes() <em>Tx bytes</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTx_bytes() + * @generated + * @ordered + */ + protected int tx_bytes = TX_BYTES_EDEFAULT; + + /** + * The default value of the '{@link #getTx_dropped() <em>Tx dropped</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTx_dropped() + * @generated + * @ordered + */ + protected static final int TX_DROPPED_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getTx_dropped() <em>Tx dropped</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTx_dropped() + * @generated + * @ordered + */ + protected int tx_dropped = TX_DROPPED_EDEFAULT; + + /** + * The default value of the '{@link #getTx_errors() <em>Tx errors</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTx_errors() + * @generated + * @ordered + */ + protected static final int TX_ERRORS_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getTx_errors() <em>Tx errors</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTx_errors() + * @generated + * @ordered + */ + protected int tx_errors = TX_ERRORS_EDEFAULT; + + /** + * The default value of the '{@link #getTx_packets() <em>Tx packets</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTx_packets() + * @generated + * @ordered + */ + protected static final int TX_PACKETS_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getTx_packets() <em>Tx packets</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTx_packets() + * @generated + * @ordered + */ + protected int tx_packets = TX_PACKETS_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ContainerNetworkStatsImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return DockerPackage.Literals.CONTAINER_NETWORK_STATS; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getIntf() { + return intf; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setIntf(String newIntf) { + String oldIntf = intf; + intf = newIntf; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_NETWORK_STATS__INTF, oldIntf, intf)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getRx_bytes() { + return rx_bytes; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setRx_bytes(int newRx_bytes) { + int oldRx_bytes = rx_bytes; + rx_bytes = newRx_bytes; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_NETWORK_STATS__RX_BYTES, oldRx_bytes, rx_bytes)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getRx_dropped() { + return rx_dropped; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setRx_dropped(int newRx_dropped) { + int oldRx_dropped = rx_dropped; + rx_dropped = newRx_dropped; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_NETWORK_STATS__RX_DROPPED, oldRx_dropped, rx_dropped)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getRx_errors() { + return rx_errors; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setRx_errors(int newRx_errors) { + int oldRx_errors = rx_errors; + rx_errors = newRx_errors; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_NETWORK_STATS__RX_ERRORS, oldRx_errors, rx_errors)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getRx_packets() { + return rx_packets; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setRx_packets(int newRx_packets) { + int oldRx_packets = rx_packets; + rx_packets = newRx_packets; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_NETWORK_STATS__RX_PACKETS, oldRx_packets, rx_packets)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getTx_bytes() { + return tx_bytes; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTx_bytes(int newTx_bytes) { + int oldTx_bytes = tx_bytes; + tx_bytes = newTx_bytes; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_NETWORK_STATS__TX_BYTES, oldTx_bytes, tx_bytes)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getTx_dropped() { + return tx_dropped; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTx_dropped(int newTx_dropped) { + int oldTx_dropped = tx_dropped; + tx_dropped = newTx_dropped; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_NETWORK_STATS__TX_DROPPED, oldTx_dropped, tx_dropped)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getTx_errors() { + return tx_errors; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTx_errors(int newTx_errors) { + int oldTx_errors = tx_errors; + tx_errors = newTx_errors; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_NETWORK_STATS__TX_ERRORS, oldTx_errors, tx_errors)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getTx_packets() { + return tx_packets; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTx_packets(int newTx_packets) { + int oldTx_packets = tx_packets; + tx_packets = newTx_packets; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_NETWORK_STATS__TX_PACKETS, oldTx_packets, tx_packets)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case DockerPackage.CONTAINER_NETWORK_STATS__INTF: + return getIntf(); + case DockerPackage.CONTAINER_NETWORK_STATS__RX_BYTES: + return getRx_bytes(); + case DockerPackage.CONTAINER_NETWORK_STATS__RX_DROPPED: + return getRx_dropped(); + case DockerPackage.CONTAINER_NETWORK_STATS__RX_ERRORS: + return getRx_errors(); + case DockerPackage.CONTAINER_NETWORK_STATS__RX_PACKETS: + return getRx_packets(); + case DockerPackage.CONTAINER_NETWORK_STATS__TX_BYTES: + return getTx_bytes(); + case DockerPackage.CONTAINER_NETWORK_STATS__TX_DROPPED: + return getTx_dropped(); + case DockerPackage.CONTAINER_NETWORK_STATS__TX_ERRORS: + return getTx_errors(); + case DockerPackage.CONTAINER_NETWORK_STATS__TX_PACKETS: + return getTx_packets(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case DockerPackage.CONTAINER_NETWORK_STATS__INTF: + setIntf((String)newValue); + return; + case DockerPackage.CONTAINER_NETWORK_STATS__RX_BYTES: + setRx_bytes((Integer)newValue); + return; + case DockerPackage.CONTAINER_NETWORK_STATS__RX_DROPPED: + setRx_dropped((Integer)newValue); + return; + case DockerPackage.CONTAINER_NETWORK_STATS__RX_ERRORS: + setRx_errors((Integer)newValue); + return; + case DockerPackage.CONTAINER_NETWORK_STATS__RX_PACKETS: + setRx_packets((Integer)newValue); + return; + case DockerPackage.CONTAINER_NETWORK_STATS__TX_BYTES: + setTx_bytes((Integer)newValue); + return; + case DockerPackage.CONTAINER_NETWORK_STATS__TX_DROPPED: + setTx_dropped((Integer)newValue); + return; + case DockerPackage.CONTAINER_NETWORK_STATS__TX_ERRORS: + setTx_errors((Integer)newValue); + return; + case DockerPackage.CONTAINER_NETWORK_STATS__TX_PACKETS: + setTx_packets((Integer)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DockerPackage.CONTAINER_NETWORK_STATS__INTF: + setIntf(INTF_EDEFAULT); + return; + case DockerPackage.CONTAINER_NETWORK_STATS__RX_BYTES: + setRx_bytes(RX_BYTES_EDEFAULT); + return; + case DockerPackage.CONTAINER_NETWORK_STATS__RX_DROPPED: + setRx_dropped(RX_DROPPED_EDEFAULT); + return; + case DockerPackage.CONTAINER_NETWORK_STATS__RX_ERRORS: + setRx_errors(RX_ERRORS_EDEFAULT); + return; + case DockerPackage.CONTAINER_NETWORK_STATS__RX_PACKETS: + setRx_packets(RX_PACKETS_EDEFAULT); + return; + case DockerPackage.CONTAINER_NETWORK_STATS__TX_BYTES: + setTx_bytes(TX_BYTES_EDEFAULT); + return; + case DockerPackage.CONTAINER_NETWORK_STATS__TX_DROPPED: + setTx_dropped(TX_DROPPED_EDEFAULT); + return; + case DockerPackage.CONTAINER_NETWORK_STATS__TX_ERRORS: + setTx_errors(TX_ERRORS_EDEFAULT); + return; + case DockerPackage.CONTAINER_NETWORK_STATS__TX_PACKETS: + setTx_packets(TX_PACKETS_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DockerPackage.CONTAINER_NETWORK_STATS__INTF: + return INTF_EDEFAULT == null ? intf != null : !INTF_EDEFAULT.equals(intf); + case DockerPackage.CONTAINER_NETWORK_STATS__RX_BYTES: + return rx_bytes != RX_BYTES_EDEFAULT; + case DockerPackage.CONTAINER_NETWORK_STATS__RX_DROPPED: + return rx_dropped != RX_DROPPED_EDEFAULT; + case DockerPackage.CONTAINER_NETWORK_STATS__RX_ERRORS: + return rx_errors != RX_ERRORS_EDEFAULT; + case DockerPackage.CONTAINER_NETWORK_STATS__RX_PACKETS: + return rx_packets != RX_PACKETS_EDEFAULT; + case DockerPackage.CONTAINER_NETWORK_STATS__TX_BYTES: + return tx_bytes != TX_BYTES_EDEFAULT; + case DockerPackage.CONTAINER_NETWORK_STATS__TX_DROPPED: + return tx_dropped != TX_DROPPED_EDEFAULT; + case DockerPackage.CONTAINER_NETWORK_STATS__TX_ERRORS: + return tx_errors != TX_ERRORS_EDEFAULT; + case DockerPackage.CONTAINER_NETWORK_STATS__TX_PACKETS: + return tx_packets != TX_PACKETS_EDEFAULT; + } + 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(" (intf: "); + result.append(intf); + result.append(", rx_bytes: "); + result.append(rx_bytes); + result.append(", rx_dropped: "); + result.append(rx_dropped); + result.append(", rx_errors: "); + result.append(rx_errors); + result.append(", rx_packets: "); + result.append(rx_packets); + result.append(", tx_bytes: "); + result.append(tx_bytes); + result.append(", tx_dropped: "); + result.append(tx_dropped); + result.append(", tx_errors: "); + result.append(tx_errors); + result.append(", tx_packets: "); + result.append(tx_packets); + result.append(')'); + return result.toString(); + } + +} //ContainerNetworkStatsImpl diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/ContainerOptionsImpl.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/ContainerOptionsImpl.java new file mode 100644 index 0000000..f4cac7f --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/ContainerOptionsImpl.java @@ -0,0 +1,521 @@ + +/*- + * ============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.ncomp.docker.impl; + +import org.openecomp.ncomp.core.impl.NamedEntityImpl; +import org.openecomp.ncomp.docker.ContainerOptions; +import org.openecomp.ncomp.docker.ContainerPortBindings; +import org.openecomp.ncomp.docker.ContainerRestartPolicy; +import org.openecomp.ncomp.docker.DockerPackage; +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.InternalEList; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Container Options</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerOptionsImpl#getImageNm <em>Image Nm</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerOptionsImpl#getEnv <em>Env</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerOptionsImpl#getVolumes <em>Volumes</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerOptionsImpl#getLinks <em>Links</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerOptionsImpl#isSetContainerName <em>Set Container Name</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerOptionsImpl#isPublishAllPorts <em>Publish All Ports</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerOptionsImpl#getPortBindings <em>Port Bindings</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerOptionsImpl#getAutoRestart <em>Auto Restart</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class ContainerOptionsImpl extends NamedEntityImpl implements ContainerOptions { + /** + * The default value of the '{@link #getImageNm() <em>Image Nm</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getImageNm() + * @generated + * @ordered + */ + protected static final String IMAGE_NM_EDEFAULT = null; + + /** + * The cached value of the '{@link #getImageNm() <em>Image Nm</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getImageNm() + * @generated + * @ordered + */ + protected String imageNm = IMAGE_NM_EDEFAULT; + + /** + * The cached value of the '{@link #getEnv() <em>Env</em>}' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getEnv() + * @generated + * @ordered + */ + protected EList<String> env; + + /** + * The cached value of the '{@link #getVolumes() <em>Volumes</em>}' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVolumes() + * @generated + * @ordered + */ + protected EList<String> volumes; + + /** + * The cached value of the '{@link #getLinks() <em>Links</em>}' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getLinks() + * @generated + * @ordered + */ + protected EList<String> links; + + /** + * The default value of the '{@link #isSetContainerName() <em>Set Container Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetContainerName() + * @generated + * @ordered + */ + protected static final boolean SET_CONTAINER_NAME_EDEFAULT = false; + + /** + * The cached value of the '{@link #isSetContainerName() <em>Set Container Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetContainerName() + * @generated + * @ordered + */ + protected boolean setContainerName = SET_CONTAINER_NAME_EDEFAULT; + + /** + * The default value of the '{@link #isPublishAllPorts() <em>Publish All Ports</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isPublishAllPorts() + * @generated + * @ordered + */ + protected static final boolean PUBLISH_ALL_PORTS_EDEFAULT = false; + + /** + * The cached value of the '{@link #isPublishAllPorts() <em>Publish All Ports</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isPublishAllPorts() + * @generated + * @ordered + */ + protected boolean publishAllPorts = PUBLISH_ALL_PORTS_EDEFAULT; + + /** + * The cached value of the '{@link #getPortBindings() <em>Port Bindings</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPortBindings() + * @generated + * @ordered + */ + protected EList<ContainerPortBindings> portBindings; + + /** + * The cached value of the '{@link #getAutoRestart() <em>Auto Restart</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAutoRestart() + * @generated + * @ordered + */ + protected ContainerRestartPolicy autoRestart; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ContainerOptionsImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return DockerPackage.Literals.CONTAINER_OPTIONS; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getImageNm() { + return imageNm; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setImageNm(String newImageNm) { + String oldImageNm = imageNm; + imageNm = newImageNm; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_OPTIONS__IMAGE_NM, oldImageNm, imageNm)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<String> getEnv() { + if (env == null) { + env = new EDataTypeEList<String>(String.class, this, DockerPackage.CONTAINER_OPTIONS__ENV); + } + return env; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<String> getVolumes() { + if (volumes == null) { + volumes = new EDataTypeEList<String>(String.class, this, DockerPackage.CONTAINER_OPTIONS__VOLUMES); + } + return volumes; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<String> getLinks() { + if (links == null) { + links = new EDataTypeEList<String>(String.class, this, DockerPackage.CONTAINER_OPTIONS__LINKS); + } + return links; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isSetContainerName() { + return setContainerName; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setSetContainerName(boolean newSetContainerName) { + boolean oldSetContainerName = setContainerName; + setContainerName = newSetContainerName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_OPTIONS__SET_CONTAINER_NAME, oldSetContainerName, setContainerName)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isPublishAllPorts() { + return publishAllPorts; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPublishAllPorts(boolean newPublishAllPorts) { + boolean oldPublishAllPorts = publishAllPorts; + publishAllPorts = newPublishAllPorts; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_OPTIONS__PUBLISH_ALL_PORTS, oldPublishAllPorts, publishAllPorts)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<ContainerPortBindings> getPortBindings() { + if (portBindings == null) { + portBindings = new EObjectContainmentEList<ContainerPortBindings>(ContainerPortBindings.class, this, DockerPackage.CONTAINER_OPTIONS__PORT_BINDINGS); + } + return portBindings; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ContainerRestartPolicy getAutoRestart() { + return autoRestart; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetAutoRestart(ContainerRestartPolicy newAutoRestart, NotificationChain msgs) { + ContainerRestartPolicy oldAutoRestart = autoRestart; + autoRestart = newAutoRestart; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_OPTIONS__AUTO_RESTART, oldAutoRestart, newAutoRestart); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setAutoRestart(ContainerRestartPolicy newAutoRestart) { + if (newAutoRestart != autoRestart) { + NotificationChain msgs = null; + if (autoRestart != null) + msgs = ((InternalEObject)autoRestart).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DockerPackage.CONTAINER_OPTIONS__AUTO_RESTART, null, msgs); + if (newAutoRestart != null) + msgs = ((InternalEObject)newAutoRestart).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DockerPackage.CONTAINER_OPTIONS__AUTO_RESTART, null, msgs); + msgs = basicSetAutoRestart(newAutoRestart, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_OPTIONS__AUTO_RESTART, newAutoRestart, newAutoRestart)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case DockerPackage.CONTAINER_OPTIONS__PORT_BINDINGS: + return ((InternalEList<?>)getPortBindings()).basicRemove(otherEnd, msgs); + case DockerPackage.CONTAINER_OPTIONS__AUTO_RESTART: + return basicSetAutoRestart(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 DockerPackage.CONTAINER_OPTIONS__IMAGE_NM: + return getImageNm(); + case DockerPackage.CONTAINER_OPTIONS__ENV: + return getEnv(); + case DockerPackage.CONTAINER_OPTIONS__VOLUMES: + return getVolumes(); + case DockerPackage.CONTAINER_OPTIONS__LINKS: + return getLinks(); + case DockerPackage.CONTAINER_OPTIONS__SET_CONTAINER_NAME: + return isSetContainerName(); + case DockerPackage.CONTAINER_OPTIONS__PUBLISH_ALL_PORTS: + return isPublishAllPorts(); + case DockerPackage.CONTAINER_OPTIONS__PORT_BINDINGS: + return getPortBindings(); + case DockerPackage.CONTAINER_OPTIONS__AUTO_RESTART: + return getAutoRestart(); + } + 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 DockerPackage.CONTAINER_OPTIONS__IMAGE_NM: + setImageNm((String)newValue); + return; + case DockerPackage.CONTAINER_OPTIONS__ENV: + getEnv().clear(); + getEnv().addAll((Collection<? extends String>)newValue); + return; + case DockerPackage.CONTAINER_OPTIONS__VOLUMES: + getVolumes().clear(); + getVolumes().addAll((Collection<? extends String>)newValue); + return; + case DockerPackage.CONTAINER_OPTIONS__LINKS: + getLinks().clear(); + getLinks().addAll((Collection<? extends String>)newValue); + return; + case DockerPackage.CONTAINER_OPTIONS__SET_CONTAINER_NAME: + setSetContainerName((Boolean)newValue); + return; + case DockerPackage.CONTAINER_OPTIONS__PUBLISH_ALL_PORTS: + setPublishAllPorts((Boolean)newValue); + return; + case DockerPackage.CONTAINER_OPTIONS__PORT_BINDINGS: + getPortBindings().clear(); + getPortBindings().addAll((Collection<? extends ContainerPortBindings>)newValue); + return; + case DockerPackage.CONTAINER_OPTIONS__AUTO_RESTART: + setAutoRestart((ContainerRestartPolicy)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DockerPackage.CONTAINER_OPTIONS__IMAGE_NM: + setImageNm(IMAGE_NM_EDEFAULT); + return; + case DockerPackage.CONTAINER_OPTIONS__ENV: + getEnv().clear(); + return; + case DockerPackage.CONTAINER_OPTIONS__VOLUMES: + getVolumes().clear(); + return; + case DockerPackage.CONTAINER_OPTIONS__LINKS: + getLinks().clear(); + return; + case DockerPackage.CONTAINER_OPTIONS__SET_CONTAINER_NAME: + setSetContainerName(SET_CONTAINER_NAME_EDEFAULT); + return; + case DockerPackage.CONTAINER_OPTIONS__PUBLISH_ALL_PORTS: + setPublishAllPorts(PUBLISH_ALL_PORTS_EDEFAULT); + return; + case DockerPackage.CONTAINER_OPTIONS__PORT_BINDINGS: + getPortBindings().clear(); + return; + case DockerPackage.CONTAINER_OPTIONS__AUTO_RESTART: + setAutoRestart((ContainerRestartPolicy)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DockerPackage.CONTAINER_OPTIONS__IMAGE_NM: + return IMAGE_NM_EDEFAULT == null ? imageNm != null : !IMAGE_NM_EDEFAULT.equals(imageNm); + case DockerPackage.CONTAINER_OPTIONS__ENV: + return env != null && !env.isEmpty(); + case DockerPackage.CONTAINER_OPTIONS__VOLUMES: + return volumes != null && !volumes.isEmpty(); + case DockerPackage.CONTAINER_OPTIONS__LINKS: + return links != null && !links.isEmpty(); + case DockerPackage.CONTAINER_OPTIONS__SET_CONTAINER_NAME: + return setContainerName != SET_CONTAINER_NAME_EDEFAULT; + case DockerPackage.CONTAINER_OPTIONS__PUBLISH_ALL_PORTS: + return publishAllPorts != PUBLISH_ALL_PORTS_EDEFAULT; + case DockerPackage.CONTAINER_OPTIONS__PORT_BINDINGS: + return portBindings != null && !portBindings.isEmpty(); + case DockerPackage.CONTAINER_OPTIONS__AUTO_RESTART: + return autoRestart != null; + } + 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(" (imageNm: "); + result.append(imageNm); + result.append(", env: "); + result.append(env); + result.append(", volumes: "); + result.append(volumes); + result.append(", links: "); + result.append(links); + result.append(", setContainerName: "); + result.append(setContainerName); + result.append(", publishAllPorts: "); + result.append(publishAllPorts); + result.append(')'); + return result.toString(); + } + +} //ContainerOptionsImpl diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/ContainerPortBindingsImpl.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/ContainerPortBindingsImpl.java new file mode 100644 index 0000000..5e47609 --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/ContainerPortBindingsImpl.java @@ -0,0 +1,293 @@ + +/*- + * ============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.ncomp.docker.impl; + +import org.openecomp.ncomp.core.impl.NamedEntityImpl; + +import org.openecomp.ncomp.docker.ContainerPortBindings; +import org.openecomp.ncomp.docker.DockerPackage; + +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>Container Port Bindings</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerPortBindingsImpl#getContainerPort <em>Container Port</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerPortBindingsImpl#getProtocol <em>Protocol</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerPortBindingsImpl#getVmPort <em>Vm Port</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class ContainerPortBindingsImpl extends NamedEntityImpl implements ContainerPortBindings { + /** + * The default value of the '{@link #getContainerPort() <em>Container Port</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getContainerPort() + * @generated + * @ordered + */ + protected static final int CONTAINER_PORT_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getContainerPort() <em>Container Port</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getContainerPort() + * @generated + * @ordered + */ + protected int containerPort = CONTAINER_PORT_EDEFAULT; + + /** + * The default value of the '{@link #getProtocol() <em>Protocol</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getProtocol() + * @generated + * @ordered + */ + protected static final String PROTOCOL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getProtocol() <em>Protocol</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getProtocol() + * @generated + * @ordered + */ + protected String protocol = PROTOCOL_EDEFAULT; + + /** + * The default value of the '{@link #getVmPort() <em>Vm Port</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVmPort() + * @generated + * @ordered + */ + protected static final int VM_PORT_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getVmPort() <em>Vm Port</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVmPort() + * @generated + * @ordered + */ + protected int vmPort = VM_PORT_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ContainerPortBindingsImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return DockerPackage.Literals.CONTAINER_PORT_BINDINGS; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getContainerPort() { + return containerPort; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setContainerPort(int newContainerPort) { + int oldContainerPort = containerPort; + containerPort = newContainerPort; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_PORT_BINDINGS__CONTAINER_PORT, oldContainerPort, containerPort)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getProtocol() { + return protocol; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setProtocol(String newProtocol) { + String oldProtocol = protocol; + protocol = newProtocol; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_PORT_BINDINGS__PROTOCOL, oldProtocol, protocol)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getVmPort() { + return vmPort; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setVmPort(int newVmPort) { + int oldVmPort = vmPort; + vmPort = newVmPort; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_PORT_BINDINGS__VM_PORT, oldVmPort, vmPort)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case DockerPackage.CONTAINER_PORT_BINDINGS__CONTAINER_PORT: + return getContainerPort(); + case DockerPackage.CONTAINER_PORT_BINDINGS__PROTOCOL: + return getProtocol(); + case DockerPackage.CONTAINER_PORT_BINDINGS__VM_PORT: + return getVmPort(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case DockerPackage.CONTAINER_PORT_BINDINGS__CONTAINER_PORT: + setContainerPort((Integer)newValue); + return; + case DockerPackage.CONTAINER_PORT_BINDINGS__PROTOCOL: + setProtocol((String)newValue); + return; + case DockerPackage.CONTAINER_PORT_BINDINGS__VM_PORT: + setVmPort((Integer)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DockerPackage.CONTAINER_PORT_BINDINGS__CONTAINER_PORT: + setContainerPort(CONTAINER_PORT_EDEFAULT); + return; + case DockerPackage.CONTAINER_PORT_BINDINGS__PROTOCOL: + setProtocol(PROTOCOL_EDEFAULT); + return; + case DockerPackage.CONTAINER_PORT_BINDINGS__VM_PORT: + setVmPort(VM_PORT_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DockerPackage.CONTAINER_PORT_BINDINGS__CONTAINER_PORT: + return containerPort != CONTAINER_PORT_EDEFAULT; + case DockerPackage.CONTAINER_PORT_BINDINGS__PROTOCOL: + return PROTOCOL_EDEFAULT == null ? protocol != null : !PROTOCOL_EDEFAULT.equals(protocol); + case DockerPackage.CONTAINER_PORT_BINDINGS__VM_PORT: + return vmPort != VM_PORT_EDEFAULT; + } + 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(" (containerPort: "); + result.append(containerPort); + result.append(", protocol: "); + result.append(protocol); + result.append(", vmPort: "); + result.append(vmPort); + result.append(')'); + return result.toString(); + } + +} //ContainerPortBindingsImpl diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/ContainerRestartPolicyImpl.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/ContainerRestartPolicyImpl.java new file mode 100644 index 0000000..b52bd31 --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/ContainerRestartPolicyImpl.java @@ -0,0 +1,238 @@ + +/*- + * ============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.ncomp.docker.impl; + +import org.openecomp.ncomp.docker.ContainerRestartPolicy; +import org.openecomp.ncomp.docker.DockerPackage; + +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>Container Restart Policy</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerRestartPolicyImpl#getNm <em>Nm</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.ContainerRestartPolicyImpl#getMaxRetryCnt <em>Max Retry Cnt</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class ContainerRestartPolicyImpl extends MinimalEObjectImpl.Container implements ContainerRestartPolicy { + /** + * The default value of the '{@link #getNm() <em>Nm</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getNm() + * @generated + * @ordered + */ + protected static final String NM_EDEFAULT = null; + + /** + * The cached value of the '{@link #getNm() <em>Nm</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getNm() + * @generated + * @ordered + */ + protected String nm = NM_EDEFAULT; + + /** + * The default value of the '{@link #getMaxRetryCnt() <em>Max Retry Cnt</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMaxRetryCnt() + * @generated + * @ordered + */ + protected static final int MAX_RETRY_CNT_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getMaxRetryCnt() <em>Max Retry Cnt</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMaxRetryCnt() + * @generated + * @ordered + */ + protected int maxRetryCnt = MAX_RETRY_CNT_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ContainerRestartPolicyImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return DockerPackage.Literals.CONTAINER_RESTART_POLICY; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getNm() { + return nm; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setNm(String newNm) { + String oldNm = nm; + nm = newNm; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_RESTART_POLICY__NM, oldNm, nm)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getMaxRetryCnt() { + return maxRetryCnt; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setMaxRetryCnt(int newMaxRetryCnt) { + int oldMaxRetryCnt = maxRetryCnt; + maxRetryCnt = newMaxRetryCnt; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.CONTAINER_RESTART_POLICY__MAX_RETRY_CNT, oldMaxRetryCnt, maxRetryCnt)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case DockerPackage.CONTAINER_RESTART_POLICY__NM: + return getNm(); + case DockerPackage.CONTAINER_RESTART_POLICY__MAX_RETRY_CNT: + return getMaxRetryCnt(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case DockerPackage.CONTAINER_RESTART_POLICY__NM: + setNm((String)newValue); + return; + case DockerPackage.CONTAINER_RESTART_POLICY__MAX_RETRY_CNT: + setMaxRetryCnt((Integer)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DockerPackage.CONTAINER_RESTART_POLICY__NM: + setNm(NM_EDEFAULT); + return; + case DockerPackage.CONTAINER_RESTART_POLICY__MAX_RETRY_CNT: + setMaxRetryCnt(MAX_RETRY_CNT_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DockerPackage.CONTAINER_RESTART_POLICY__NM: + return NM_EDEFAULT == null ? nm != null : !NM_EDEFAULT.equals(nm); + case DockerPackage.CONTAINER_RESTART_POLICY__MAX_RETRY_CNT: + return maxRetryCnt != MAX_RETRY_CNT_EDEFAULT; + } + 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(" (nm: "); + result.append(nm); + result.append(", maxRetryCnt: "); + result.append(maxRetryCnt); + result.append(')'); + return result.toString(); + } + +} //ContainerRestartPolicyImpl diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerActorAttributesImpl.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerActorAttributesImpl.java new file mode 100644 index 0000000..57cbae1 --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerActorAttributesImpl.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.ncomp.docker.impl; + +import org.openecomp.ncomp.docker.DockerActorAttributes; +import org.openecomp.ncomp.docker.DockerPackage; + +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>Actor Attributes</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerActorAttributesImpl#getName <em>Name</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class DockerActorAttributesImpl extends MinimalEObjectImpl.Container implements DockerActorAttributes { + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected DockerActorAttributesImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return DockerPackage.Literals.DOCKER_ACTOR_ATTRIBUTES; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_ACTOR_ATTRIBUTES__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case DockerPackage.DOCKER_ACTOR_ATTRIBUTES__NAME: + return getName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case DockerPackage.DOCKER_ACTOR_ATTRIBUTES__NAME: + setName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DockerPackage.DOCKER_ACTOR_ATTRIBUTES__NAME: + setName(NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DockerPackage.DOCKER_ACTOR_ATTRIBUTES__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + } + 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(" (name: "); + result.append(name); + result.append(')'); + return result.toString(); + } + +} //DockerActorAttributesImpl diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerActorImpl.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerActorImpl.java new file mode 100644 index 0000000..92f702d --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerActorImpl.java @@ -0,0 +1,265 @@ + +/*- + * ============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.ncomp.docker.impl; + +import org.openecomp.ncomp.docker.DockerActor; +import org.openecomp.ncomp.docker.DockerActorAttributes; +import org.openecomp.ncomp.docker.DockerPackage; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +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>Actor</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerActorImpl#getId <em>Id</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerActorImpl#getAttributes <em>Attributes</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class DockerActorImpl extends MinimalEObjectImpl.Container implements DockerActor { + /** + * The default value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getId() + * @generated + * @ordered + */ + protected static final String ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getId() + * @generated + * @ordered + */ + protected String id = ID_EDEFAULT; + + /** + * The cached value of the '{@link #getAttributes() <em>Attributes</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAttributes() + * @generated + * @ordered + */ + protected DockerActorAttributes attributes; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected DockerActorImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return DockerPackage.Literals.DOCKER_ACTOR; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getId() { + return id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setId(String newId) { + String oldId = id; + id = newId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_ACTOR__ID, oldId, id)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DockerActorAttributes getAttributes() { + return attributes; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetAttributes(DockerActorAttributes newAttributes, NotificationChain msgs) { + DockerActorAttributes oldAttributes = attributes; + attributes = newAttributes; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_ACTOR__ATTRIBUTES, oldAttributes, newAttributes); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setAttributes(DockerActorAttributes newAttributes) { + if (newAttributes != attributes) { + NotificationChain msgs = null; + if (attributes != null) + msgs = ((InternalEObject)attributes).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DockerPackage.DOCKER_ACTOR__ATTRIBUTES, null, msgs); + if (newAttributes != null) + msgs = ((InternalEObject)newAttributes).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DockerPackage.DOCKER_ACTOR__ATTRIBUTES, null, msgs); + msgs = basicSetAttributes(newAttributes, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_ACTOR__ATTRIBUTES, newAttributes, newAttributes)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case DockerPackage.DOCKER_ACTOR__ATTRIBUTES: + return basicSetAttributes(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 DockerPackage.DOCKER_ACTOR__ID: + return getId(); + case DockerPackage.DOCKER_ACTOR__ATTRIBUTES: + return getAttributes(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case DockerPackage.DOCKER_ACTOR__ID: + setId((String)newValue); + return; + case DockerPackage.DOCKER_ACTOR__ATTRIBUTES: + setAttributes((DockerActorAttributes)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DockerPackage.DOCKER_ACTOR__ID: + setId(ID_EDEFAULT); + return; + case DockerPackage.DOCKER_ACTOR__ATTRIBUTES: + setAttributes((DockerActorAttributes)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DockerPackage.DOCKER_ACTOR__ID: + return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); + case DockerPackage.DOCKER_ACTOR__ATTRIBUTES: + return attributes != null; + } + 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(" (id: "); + result.append(id); + result.append(')'); + return result.toString(); + } + +} //DockerActorImpl diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerAdaptorImpl.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerAdaptorImpl.java new file mode 100644 index 0000000..4ec07ae --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerAdaptorImpl.java @@ -0,0 +1,169 @@ + +/*- + * ============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.ncomp.docker.impl; + +import org.openecomp.ncomp.docker.DockerAdaptor; +import org.openecomp.ncomp.docker.DockerHost; +import org.openecomp.ncomp.docker.DockerPackage; + +import java.util.Collection; +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.MinimalEObjectImpl; +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Adaptor</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerAdaptorImpl#getDockerHosts <em>Docker Hosts</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class DockerAdaptorImpl extends MinimalEObjectImpl.Container implements DockerAdaptor { + /** + * The cached value of the '{@link #getDockerHosts() <em>Docker Hosts</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDockerHosts() + * @generated + * @ordered + */ + protected EList<DockerHost> dockerHosts; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected DockerAdaptorImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return DockerPackage.Literals.DOCKER_ADAPTOR; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<DockerHost> getDockerHosts() { + if (dockerHosts == null) { + dockerHosts = new EObjectContainmentEList<DockerHost>(DockerHost.class, this, DockerPackage.DOCKER_ADAPTOR__DOCKER_HOSTS); + } + return dockerHosts; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case DockerPackage.DOCKER_ADAPTOR__DOCKER_HOSTS: + return ((InternalEList<?>)getDockerHosts()).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 DockerPackage.DOCKER_ADAPTOR__DOCKER_HOSTS: + return getDockerHosts(); + } + 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 DockerPackage.DOCKER_ADAPTOR__DOCKER_HOSTS: + getDockerHosts().clear(); + getDockerHosts().addAll((Collection<? extends DockerHost>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DockerPackage.DOCKER_ADAPTOR__DOCKER_HOSTS: + getDockerHosts().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DockerPackage.DOCKER_ADAPTOR__DOCKER_HOSTS: + return dockerHosts != null && !dockerHosts.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //DockerAdaptorImpl diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerContainerImpl.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerContainerImpl.java new file mode 100644 index 0000000..e053bfc --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerContainerImpl.java @@ -0,0 +1,802 @@ + +/*- + * ============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.ncomp.docker.impl; + +import org.openecomp.ncomp.core.impl.NamedEntityImpl; + +import org.openecomp.ncomp.docker.DockerContainer; +import org.openecomp.ncomp.docker.DockerContainerStats; +import org.openecomp.ncomp.docker.DockerEvents; +import org.openecomp.ncomp.docker.DockerKeyPair; +import org.openecomp.ncomp.docker.DockerMount; +import org.openecomp.ncomp.docker.DockerPackage; +import org.openecomp.ncomp.docker.DockerPort; +import org.openecomp.ncomp.docker.DockerProcess; + +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.InternalEList; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Container</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerContainerImpl#getId <em>Id</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerContainerImpl#getNames <em>Names</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerContainerImpl#getImage <em>Image</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerContainerImpl#getImageID <em>Image ID</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerContainerImpl#getCommand <em>Command</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerContainerImpl#getDockerCreated <em>Docker Created</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerContainerImpl#getPorts <em>Ports</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerContainerImpl#getLabels <em>Labels</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerContainerImpl#getStatus <em>Status</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerContainerImpl#getHostConfig <em>Host Config</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerContainerImpl#getProcesses <em>Processes</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerContainerImpl#getMounts <em>Mounts</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerContainerImpl#getStats <em>Stats</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerContainerImpl#getEvents <em>Events</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class DockerContainerImpl extends NamedEntityImpl implements DockerContainer { + /** + * The default value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getId() + * @generated + * @ordered + */ + protected static final String ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getId() + * @generated + * @ordered + */ + protected String id = ID_EDEFAULT; + + /** + * The cached value of the '{@link #getNames() <em>Names</em>}' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getNames() + * @generated + * @ordered + */ + protected EList<String> names; + + /** + * The default value of the '{@link #getImage() <em>Image</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getImage() + * @generated + * @ordered + */ + protected static final String IMAGE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getImage() <em>Image</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getImage() + * @generated + * @ordered + */ + protected String image = IMAGE_EDEFAULT; + + /** + * The default value of the '{@link #getImageID() <em>Image ID</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getImageID() + * @generated + * @ordered + */ + protected static final String IMAGE_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getImageID() <em>Image ID</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getImageID() + * @generated + * @ordered + */ + protected String imageID = IMAGE_ID_EDEFAULT; + + /** + * 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; + + /** + * The default value of the '{@link #getDockerCreated() <em>Docker Created</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDockerCreated() + * @generated + * @ordered + */ + protected static final String DOCKER_CREATED_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDockerCreated() <em>Docker Created</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDockerCreated() + * @generated + * @ordered + */ + protected String dockerCreated = DOCKER_CREATED_EDEFAULT; + + /** + * The cached value of the '{@link #getPorts() <em>Ports</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPorts() + * @generated + * @ordered + */ + protected EList<DockerPort> ports; + + /** + * The cached value of the '{@link #getLabels() <em>Labels</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getLabels() + * @generated + * @ordered + */ + protected EList<DockerKeyPair> labels; + + /** + * The default value of the '{@link #getStatus() <em>Status</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getStatus() + * @generated + * @ordered + */ + protected static final String STATUS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getStatus() <em>Status</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getStatus() + * @generated + * @ordered + */ + protected String status = STATUS_EDEFAULT; + + /** + * The cached value of the '{@link #getHostConfig() <em>Host Config</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getHostConfig() + * @generated + * @ordered + */ + protected EList<DockerKeyPair> hostConfig; + + /** + * The cached value of the '{@link #getProcesses() <em>Processes</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getProcesses() + * @generated + * @ordered + */ + protected EList<DockerProcess> processes; + + /** + * The cached value of the '{@link #getMounts() <em>Mounts</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMounts() + * @generated + * @ordered + */ + protected EList<DockerMount> mounts; + + /** + * The cached value of the '{@link #getStats() <em>Stats</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getStats() + * @generated + * @ordered + */ + protected DockerContainerStats stats; + + /** + * The cached value of the '{@link #getEvents() <em>Events</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getEvents() + * @generated + * @ordered + */ + protected EList<DockerEvents> events; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected DockerContainerImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return DockerPackage.Literals.DOCKER_CONTAINER; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getId() { + return id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setId(String newId) { + String oldId = id; + id = newId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_CONTAINER__ID, oldId, id)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<String> getNames() { + if (names == null) { + names = new EDataTypeEList<String>(String.class, this, DockerPackage.DOCKER_CONTAINER__NAMES); + } + return names; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getImage() { + return image; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setImage(String newImage) { + String oldImage = image; + image = newImage; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_CONTAINER__IMAGE, oldImage, image)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getImageID() { + return imageID; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setImageID(String newImageID) { + String oldImageID = imageID; + imageID = newImageID; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_CONTAINER__IMAGE_ID, oldImageID, imageID)); + } + + /** + * <!-- 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, DockerPackage.DOCKER_CONTAINER__COMMAND, oldCommand, command)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getDockerCreated() { + return dockerCreated; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDockerCreated(String newDockerCreated) { + String oldDockerCreated = dockerCreated; + dockerCreated = newDockerCreated; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_CONTAINER__DOCKER_CREATED, oldDockerCreated, dockerCreated)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<DockerPort> getPorts() { + if (ports == null) { + ports = new EObjectContainmentEList<DockerPort>(DockerPort.class, this, DockerPackage.DOCKER_CONTAINER__PORTS); + } + return ports; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<DockerKeyPair> getLabels() { + if (labels == null) { + labels = new EObjectContainmentEList<DockerKeyPair>(DockerKeyPair.class, this, DockerPackage.DOCKER_CONTAINER__LABELS); + } + return labels; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getStatus() { + return status; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setStatus(String newStatus) { + String oldStatus = status; + status = newStatus; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_CONTAINER__STATUS, oldStatus, status)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<DockerKeyPair> getHostConfig() { + if (hostConfig == null) { + hostConfig = new EObjectContainmentEList<DockerKeyPair>(DockerKeyPair.class, this, DockerPackage.DOCKER_CONTAINER__HOST_CONFIG); + } + return hostConfig; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<DockerProcess> getProcesses() { + if (processes == null) { + processes = new EObjectContainmentEList<DockerProcess>(DockerProcess.class, this, DockerPackage.DOCKER_CONTAINER__PROCESSES); + } + return processes; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<DockerMount> getMounts() { + if (mounts == null) { + mounts = new EObjectContainmentEList<DockerMount>(DockerMount.class, this, DockerPackage.DOCKER_CONTAINER__MOUNTS); + } + return mounts; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DockerContainerStats getStats() { + return stats; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetStats(DockerContainerStats newStats, NotificationChain msgs) { + DockerContainerStats oldStats = stats; + stats = newStats; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_CONTAINER__STATS, oldStats, newStats); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setStats(DockerContainerStats newStats) { + if (newStats != stats) { + NotificationChain msgs = null; + if (stats != null) + msgs = ((InternalEObject)stats).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DockerPackage.DOCKER_CONTAINER__STATS, null, msgs); + if (newStats != null) + msgs = ((InternalEObject)newStats).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DockerPackage.DOCKER_CONTAINER__STATS, null, msgs); + msgs = basicSetStats(newStats, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_CONTAINER__STATS, newStats, newStats)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<DockerEvents> getEvents() { + if (events == null) { + events = new EObjectContainmentEList<DockerEvents>(DockerEvents.class, this, DockerPackage.DOCKER_CONTAINER__EVENTS); + } + return events; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case DockerPackage.DOCKER_CONTAINER__PORTS: + return ((InternalEList<?>)getPorts()).basicRemove(otherEnd, msgs); + case DockerPackage.DOCKER_CONTAINER__LABELS: + return ((InternalEList<?>)getLabels()).basicRemove(otherEnd, msgs); + case DockerPackage.DOCKER_CONTAINER__HOST_CONFIG: + return ((InternalEList<?>)getHostConfig()).basicRemove(otherEnd, msgs); + case DockerPackage.DOCKER_CONTAINER__PROCESSES: + return ((InternalEList<?>)getProcesses()).basicRemove(otherEnd, msgs); + case DockerPackage.DOCKER_CONTAINER__MOUNTS: + return ((InternalEList<?>)getMounts()).basicRemove(otherEnd, msgs); + case DockerPackage.DOCKER_CONTAINER__STATS: + return basicSetStats(null, msgs); + case DockerPackage.DOCKER_CONTAINER__EVENTS: + return ((InternalEList<?>)getEvents()).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 DockerPackage.DOCKER_CONTAINER__ID: + return getId(); + case DockerPackage.DOCKER_CONTAINER__NAMES: + return getNames(); + case DockerPackage.DOCKER_CONTAINER__IMAGE: + return getImage(); + case DockerPackage.DOCKER_CONTAINER__IMAGE_ID: + return getImageID(); + case DockerPackage.DOCKER_CONTAINER__COMMAND: + return getCommand(); + case DockerPackage.DOCKER_CONTAINER__DOCKER_CREATED: + return getDockerCreated(); + case DockerPackage.DOCKER_CONTAINER__PORTS: + return getPorts(); + case DockerPackage.DOCKER_CONTAINER__LABELS: + return getLabels(); + case DockerPackage.DOCKER_CONTAINER__STATUS: + return getStatus(); + case DockerPackage.DOCKER_CONTAINER__HOST_CONFIG: + return getHostConfig(); + case DockerPackage.DOCKER_CONTAINER__PROCESSES: + return getProcesses(); + case DockerPackage.DOCKER_CONTAINER__MOUNTS: + return getMounts(); + case DockerPackage.DOCKER_CONTAINER__STATS: + return getStats(); + case DockerPackage.DOCKER_CONTAINER__EVENTS: + return getEvents(); + } + 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 DockerPackage.DOCKER_CONTAINER__ID: + setId((String)newValue); + return; + case DockerPackage.DOCKER_CONTAINER__NAMES: + getNames().clear(); + getNames().addAll((Collection<? extends String>)newValue); + return; + case DockerPackage.DOCKER_CONTAINER__IMAGE: + setImage((String)newValue); + return; + case DockerPackage.DOCKER_CONTAINER__IMAGE_ID: + setImageID((String)newValue); + return; + case DockerPackage.DOCKER_CONTAINER__COMMAND: + setCommand((String)newValue); + return; + case DockerPackage.DOCKER_CONTAINER__DOCKER_CREATED: + setDockerCreated((String)newValue); + return; + case DockerPackage.DOCKER_CONTAINER__PORTS: + getPorts().clear(); + getPorts().addAll((Collection<? extends DockerPort>)newValue); + return; + case DockerPackage.DOCKER_CONTAINER__LABELS: + getLabels().clear(); + getLabels().addAll((Collection<? extends DockerKeyPair>)newValue); + return; + case DockerPackage.DOCKER_CONTAINER__STATUS: + setStatus((String)newValue); + return; + case DockerPackage.DOCKER_CONTAINER__HOST_CONFIG: + getHostConfig().clear(); + getHostConfig().addAll((Collection<? extends DockerKeyPair>)newValue); + return; + case DockerPackage.DOCKER_CONTAINER__PROCESSES: + getProcesses().clear(); + getProcesses().addAll((Collection<? extends DockerProcess>)newValue); + return; + case DockerPackage.DOCKER_CONTAINER__MOUNTS: + getMounts().clear(); + getMounts().addAll((Collection<? extends DockerMount>)newValue); + return; + case DockerPackage.DOCKER_CONTAINER__STATS: + setStats((DockerContainerStats)newValue); + return; + case DockerPackage.DOCKER_CONTAINER__EVENTS: + getEvents().clear(); + getEvents().addAll((Collection<? extends DockerEvents>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DockerPackage.DOCKER_CONTAINER__ID: + setId(ID_EDEFAULT); + return; + case DockerPackage.DOCKER_CONTAINER__NAMES: + getNames().clear(); + return; + case DockerPackage.DOCKER_CONTAINER__IMAGE: + setImage(IMAGE_EDEFAULT); + return; + case DockerPackage.DOCKER_CONTAINER__IMAGE_ID: + setImageID(IMAGE_ID_EDEFAULT); + return; + case DockerPackage.DOCKER_CONTAINER__COMMAND: + setCommand(COMMAND_EDEFAULT); + return; + case DockerPackage.DOCKER_CONTAINER__DOCKER_CREATED: + setDockerCreated(DOCKER_CREATED_EDEFAULT); + return; + case DockerPackage.DOCKER_CONTAINER__PORTS: + getPorts().clear(); + return; + case DockerPackage.DOCKER_CONTAINER__LABELS: + getLabels().clear(); + return; + case DockerPackage.DOCKER_CONTAINER__STATUS: + setStatus(STATUS_EDEFAULT); + return; + case DockerPackage.DOCKER_CONTAINER__HOST_CONFIG: + getHostConfig().clear(); + return; + case DockerPackage.DOCKER_CONTAINER__PROCESSES: + getProcesses().clear(); + return; + case DockerPackage.DOCKER_CONTAINER__MOUNTS: + getMounts().clear(); + return; + case DockerPackage.DOCKER_CONTAINER__STATS: + setStats((DockerContainerStats)null); + return; + case DockerPackage.DOCKER_CONTAINER__EVENTS: + getEvents().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DockerPackage.DOCKER_CONTAINER__ID: + return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); + case DockerPackage.DOCKER_CONTAINER__NAMES: + return names != null && !names.isEmpty(); + case DockerPackage.DOCKER_CONTAINER__IMAGE: + return IMAGE_EDEFAULT == null ? image != null : !IMAGE_EDEFAULT.equals(image); + case DockerPackage.DOCKER_CONTAINER__IMAGE_ID: + return IMAGE_ID_EDEFAULT == null ? imageID != null : !IMAGE_ID_EDEFAULT.equals(imageID); + case DockerPackage.DOCKER_CONTAINER__COMMAND: + return COMMAND_EDEFAULT == null ? command != null : !COMMAND_EDEFAULT.equals(command); + case DockerPackage.DOCKER_CONTAINER__DOCKER_CREATED: + return DOCKER_CREATED_EDEFAULT == null ? dockerCreated != null : !DOCKER_CREATED_EDEFAULT.equals(dockerCreated); + case DockerPackage.DOCKER_CONTAINER__PORTS: + return ports != null && !ports.isEmpty(); + case DockerPackage.DOCKER_CONTAINER__LABELS: + return labels != null && !labels.isEmpty(); + case DockerPackage.DOCKER_CONTAINER__STATUS: + return STATUS_EDEFAULT == null ? status != null : !STATUS_EDEFAULT.equals(status); + case DockerPackage.DOCKER_CONTAINER__HOST_CONFIG: + return hostConfig != null && !hostConfig.isEmpty(); + case DockerPackage.DOCKER_CONTAINER__PROCESSES: + return processes != null && !processes.isEmpty(); + case DockerPackage.DOCKER_CONTAINER__MOUNTS: + return mounts != null && !mounts.isEmpty(); + case DockerPackage.DOCKER_CONTAINER__STATS: + return stats != null; + case DockerPackage.DOCKER_CONTAINER__EVENTS: + return events != null && !events.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(" (id: "); + result.append(id); + result.append(", names: "); + result.append(names); + result.append(", image: "); + result.append(image); + result.append(", imageID: "); + result.append(imageID); + result.append(", command: "); + result.append(command); + result.append(", dockerCreated: "); + result.append(dockerCreated); + result.append(", status: "); + result.append(status); + result.append(')'); + return result.toString(); + } + +} //DockerContainerImpl diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerContainerStatsImpl.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerContainerStatsImpl.java new file mode 100644 index 0000000..2b67dee --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerContainerStatsImpl.java @@ -0,0 +1,379 @@ + +/*- + * ============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.ncomp.docker.impl; + +import org.openecomp.ncomp.core.impl.NamedEntityImpl; + +import org.openecomp.ncomp.docker.ContainerCpuStats; +import org.openecomp.ncomp.docker.ContainerMemoryUsage; +import org.openecomp.ncomp.docker.ContainerNetworkStats; +import org.openecomp.ncomp.docker.DockerContainerStats; +import org.openecomp.ncomp.docker.DockerPackage; + +import java.util.Collection; + +import java.util.Date; +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.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Container Stats</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerContainerStatsImpl#getNetworks <em>Networks</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerContainerStatsImpl#getMemory <em>Memory</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerContainerStatsImpl#getCpu <em>Cpu</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerContainerStatsImpl#getLastRead <em>Last Read</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class DockerContainerStatsImpl extends NamedEntityImpl implements DockerContainerStats { + /** + * The cached value of the '{@link #getNetworks() <em>Networks</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getNetworks() + * @generated + * @ordered + */ + protected EList<ContainerNetworkStats> networks; + + /** + * The cached value of the '{@link #getMemory() <em>Memory</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMemory() + * @generated + * @ordered + */ + protected ContainerMemoryUsage memory; + + /** + * The cached value of the '{@link #getCpu() <em>Cpu</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCpu() + * @generated + * @ordered + */ + protected ContainerCpuStats cpu; + + /** + * The default value of the '{@link #getLastRead() <em>Last Read</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getLastRead() + * @generated + * @ordered + */ + protected static final Date LAST_READ_EDEFAULT = null; + + /** + * The cached value of the '{@link #getLastRead() <em>Last Read</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getLastRead() + * @generated + * @ordered + */ + protected Date lastRead = LAST_READ_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected DockerContainerStatsImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return DockerPackage.Literals.DOCKER_CONTAINER_STATS; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<ContainerNetworkStats> getNetworks() { + if (networks == null) { + networks = new EObjectContainmentEList<ContainerNetworkStats>(ContainerNetworkStats.class, this, DockerPackage.DOCKER_CONTAINER_STATS__NETWORKS); + } + return networks; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ContainerMemoryUsage getMemory() { + return memory; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetMemory(ContainerMemoryUsage newMemory, NotificationChain msgs) { + ContainerMemoryUsage oldMemory = memory; + memory = newMemory; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_CONTAINER_STATS__MEMORY, oldMemory, newMemory); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setMemory(ContainerMemoryUsage newMemory) { + if (newMemory != memory) { + NotificationChain msgs = null; + if (memory != null) + msgs = ((InternalEObject)memory).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DockerPackage.DOCKER_CONTAINER_STATS__MEMORY, null, msgs); + if (newMemory != null) + msgs = ((InternalEObject)newMemory).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DockerPackage.DOCKER_CONTAINER_STATS__MEMORY, null, msgs); + msgs = basicSetMemory(newMemory, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_CONTAINER_STATS__MEMORY, newMemory, newMemory)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ContainerCpuStats getCpu() { + return cpu; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetCpu(ContainerCpuStats newCpu, NotificationChain msgs) { + ContainerCpuStats oldCpu = cpu; + cpu = newCpu; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_CONTAINER_STATS__CPU, oldCpu, newCpu); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setCpu(ContainerCpuStats newCpu) { + if (newCpu != cpu) { + NotificationChain msgs = null; + if (cpu != null) + msgs = ((InternalEObject)cpu).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DockerPackage.DOCKER_CONTAINER_STATS__CPU, null, msgs); + if (newCpu != null) + msgs = ((InternalEObject)newCpu).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DockerPackage.DOCKER_CONTAINER_STATS__CPU, null, msgs); + msgs = basicSetCpu(newCpu, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_CONTAINER_STATS__CPU, newCpu, newCpu)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Date getLastRead() { + return lastRead; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setLastRead(Date newLastRead) { + Date oldLastRead = lastRead; + lastRead = newLastRead; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_CONTAINER_STATS__LAST_READ, oldLastRead, lastRead)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case DockerPackage.DOCKER_CONTAINER_STATS__NETWORKS: + return ((InternalEList<?>)getNetworks()).basicRemove(otherEnd, msgs); + case DockerPackage.DOCKER_CONTAINER_STATS__MEMORY: + return basicSetMemory(null, msgs); + case DockerPackage.DOCKER_CONTAINER_STATS__CPU: + return basicSetCpu(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 DockerPackage.DOCKER_CONTAINER_STATS__NETWORKS: + return getNetworks(); + case DockerPackage.DOCKER_CONTAINER_STATS__MEMORY: + return getMemory(); + case DockerPackage.DOCKER_CONTAINER_STATS__CPU: + return getCpu(); + case DockerPackage.DOCKER_CONTAINER_STATS__LAST_READ: + return getLastRead(); + } + 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 DockerPackage.DOCKER_CONTAINER_STATS__NETWORKS: + getNetworks().clear(); + getNetworks().addAll((Collection<? extends ContainerNetworkStats>)newValue); + return; + case DockerPackage.DOCKER_CONTAINER_STATS__MEMORY: + setMemory((ContainerMemoryUsage)newValue); + return; + case DockerPackage.DOCKER_CONTAINER_STATS__CPU: + setCpu((ContainerCpuStats)newValue); + return; + case DockerPackage.DOCKER_CONTAINER_STATS__LAST_READ: + setLastRead((Date)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DockerPackage.DOCKER_CONTAINER_STATS__NETWORKS: + getNetworks().clear(); + return; + case DockerPackage.DOCKER_CONTAINER_STATS__MEMORY: + setMemory((ContainerMemoryUsage)null); + return; + case DockerPackage.DOCKER_CONTAINER_STATS__CPU: + setCpu((ContainerCpuStats)null); + return; + case DockerPackage.DOCKER_CONTAINER_STATS__LAST_READ: + setLastRead(LAST_READ_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DockerPackage.DOCKER_CONTAINER_STATS__NETWORKS: + return networks != null && !networks.isEmpty(); + case DockerPackage.DOCKER_CONTAINER_STATS__MEMORY: + return memory != null; + case DockerPackage.DOCKER_CONTAINER_STATS__CPU: + return cpu != null; + case DockerPackage.DOCKER_CONTAINER_STATS__LAST_READ: + return LAST_READ_EDEFAULT == null ? lastRead != null : !LAST_READ_EDEFAULT.equals(lastRead); + } + 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(" (lastRead: "); + result.append(lastRead); + result.append(')'); + return result.toString(); + } + +} //DockerContainerStatsImpl diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerCreateRequestImpl.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerCreateRequestImpl.java new file mode 100644 index 0000000..32a7ce7 --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerCreateRequestImpl.java @@ -0,0 +1,227 @@ + +/*- + * ============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.ncomp.docker.impl; + +import org.openecomp.ncomp.docker.DockerCreateRequest; +import org.openecomp.ncomp.docker.DockerPackage; + +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.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EDataTypeEList; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Create Request</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerCreateRequestImpl#getHostname <em>Hostname</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerCreateRequestImpl#getCmd <em>Cmd</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class DockerCreateRequestImpl extends MinimalEObjectImpl.Container implements DockerCreateRequest { + /** + * The default value of the '{@link #getHostname() <em>Hostname</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getHostname() + * @generated + * @ordered + */ + protected static final String HOSTNAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getHostname() <em>Hostname</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getHostname() + * @generated + * @ordered + */ + protected String hostname = HOSTNAME_EDEFAULT; + + /** + * The cached value of the '{@link #getCmd() <em>Cmd</em>}' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCmd() + * @generated + * @ordered + */ + protected EList<String> cmd; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected DockerCreateRequestImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return DockerPackage.Literals.DOCKER_CREATE_REQUEST; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getHostname() { + return hostname; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setHostname(String newHostname) { + String oldHostname = hostname; + hostname = newHostname; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_CREATE_REQUEST__HOSTNAME, oldHostname, hostname)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<String> getCmd() { + if (cmd == null) { + cmd = new EDataTypeEList<String>(String.class, this, DockerPackage.DOCKER_CREATE_REQUEST__CMD); + } + return cmd; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case DockerPackage.DOCKER_CREATE_REQUEST__HOSTNAME: + return getHostname(); + case DockerPackage.DOCKER_CREATE_REQUEST__CMD: + return getCmd(); + } + 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 DockerPackage.DOCKER_CREATE_REQUEST__HOSTNAME: + setHostname((String)newValue); + return; + case DockerPackage.DOCKER_CREATE_REQUEST__CMD: + getCmd().clear(); + getCmd().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 DockerPackage.DOCKER_CREATE_REQUEST__HOSTNAME: + setHostname(HOSTNAME_EDEFAULT); + return; + case DockerPackage.DOCKER_CREATE_REQUEST__CMD: + getCmd().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DockerPackage.DOCKER_CREATE_REQUEST__HOSTNAME: + return HOSTNAME_EDEFAULT == null ? hostname != null : !HOSTNAME_EDEFAULT.equals(hostname); + case DockerPackage.DOCKER_CREATE_REQUEST__CMD: + return cmd != null && !cmd.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(" (hostname: "); + result.append(hostname); + result.append(", cmd: "); + result.append(cmd); + result.append(')'); + return result.toString(); + } + +} //DockerCreateRequestImpl diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerEventsImpl.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerEventsImpl.java new file mode 100644 index 0000000..6b4047b --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerEventsImpl.java @@ -0,0 +1,536 @@ + +/*- + * ============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.ncomp.docker.impl; + +import org.openecomp.ncomp.core.impl.NamedEntityImpl; + +import org.openecomp.ncomp.docker.DockerActor; +import org.openecomp.ncomp.docker.DockerEvents; +import org.openecomp.ncomp.docker.DockerPackage; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Events</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerEventsImpl#getStatus <em>Status</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerEventsImpl#getId <em>Id</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerEventsImpl#getType <em>Type</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerEventsImpl#getAction <em>Action</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerEventsImpl#getActor <em>Actor</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerEventsImpl#getTime <em>Time</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerEventsImpl#getTimenano <em>Timenano</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class DockerEventsImpl extends NamedEntityImpl implements DockerEvents { + /** + * The default value of the '{@link #getStatus() <em>Status</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getStatus() + * @generated + * @ordered + */ + protected static final String STATUS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getStatus() <em>Status</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getStatus() + * @generated + * @ordered + */ + protected String status = STATUS_EDEFAULT; + + /** + * The default value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getId() + * @generated + * @ordered + */ + protected static final String ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getId() + * @generated + * @ordered + */ + protected String id = ID_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 #getAction() <em>Action</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAction() + * @generated + * @ordered + */ + protected static final String ACTION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAction() <em>Action</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAction() + * @generated + * @ordered + */ + protected String action = ACTION_EDEFAULT; + + /** + * The cached value of the '{@link #getActor() <em>Actor</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getActor() + * @generated + * @ordered + */ + protected DockerActor actor; + + /** + * The default value of the '{@link #getTime() <em>Time</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTime() + * @generated + * @ordered + */ + protected static final int TIME_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getTime() <em>Time</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTime() + * @generated + * @ordered + */ + protected int time = TIME_EDEFAULT; + + /** + * The default value of the '{@link #getTimenano() <em>Timenano</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTimenano() + * @generated + * @ordered + */ + protected static final long TIMENANO_EDEFAULT = 0L; + + /** + * The cached value of the '{@link #getTimenano() <em>Timenano</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTimenano() + * @generated + * @ordered + */ + protected long timenano = TIMENANO_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected DockerEventsImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return DockerPackage.Literals.DOCKER_EVENTS; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getStatus() { + return status; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setStatus(String newStatus) { + String oldStatus = status; + status = newStatus; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_EVENTS__STATUS, oldStatus, status)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getId() { + return id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setId(String newId) { + String oldId = id; + id = newId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_EVENTS__ID, oldId, id)); + } + + /** + * <!-- 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, DockerPackage.DOCKER_EVENTS__TYPE, oldType, type)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getAction() { + return action; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setAction(String newAction) { + String oldAction = action; + action = newAction; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_EVENTS__ACTION, oldAction, action)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DockerActor getActor() { + return actor; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetActor(DockerActor newActor, NotificationChain msgs) { + DockerActor oldActor = actor; + actor = newActor; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_EVENTS__ACTOR, oldActor, newActor); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setActor(DockerActor newActor) { + if (newActor != actor) { + NotificationChain msgs = null; + if (actor != null) + msgs = ((InternalEObject)actor).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DockerPackage.DOCKER_EVENTS__ACTOR, null, msgs); + if (newActor != null) + msgs = ((InternalEObject)newActor).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DockerPackage.DOCKER_EVENTS__ACTOR, null, msgs); + msgs = basicSetActor(newActor, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_EVENTS__ACTOR, newActor, newActor)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getTime() { + return time; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTime(int newTime) { + int oldTime = time; + time = newTime; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_EVENTS__TIME, oldTime, time)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public long getTimenano() { + return timenano; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTimenano(long newTimenano) { + long oldTimenano = timenano; + timenano = newTimenano; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_EVENTS__TIMENANO, oldTimenano, timenano)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case DockerPackage.DOCKER_EVENTS__ACTOR: + return basicSetActor(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 DockerPackage.DOCKER_EVENTS__STATUS: + return getStatus(); + case DockerPackage.DOCKER_EVENTS__ID: + return getId(); + case DockerPackage.DOCKER_EVENTS__TYPE: + return getType(); + case DockerPackage.DOCKER_EVENTS__ACTION: + return getAction(); + case DockerPackage.DOCKER_EVENTS__ACTOR: + return getActor(); + case DockerPackage.DOCKER_EVENTS__TIME: + return getTime(); + case DockerPackage.DOCKER_EVENTS__TIMENANO: + return getTimenano(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case DockerPackage.DOCKER_EVENTS__STATUS: + setStatus((String)newValue); + return; + case DockerPackage.DOCKER_EVENTS__ID: + setId((String)newValue); + return; + case DockerPackage.DOCKER_EVENTS__TYPE: + setType((String)newValue); + return; + case DockerPackage.DOCKER_EVENTS__ACTION: + setAction((String)newValue); + return; + case DockerPackage.DOCKER_EVENTS__ACTOR: + setActor((DockerActor)newValue); + return; + case DockerPackage.DOCKER_EVENTS__TIME: + setTime((Integer)newValue); + return; + case DockerPackage.DOCKER_EVENTS__TIMENANO: + setTimenano((Long)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DockerPackage.DOCKER_EVENTS__STATUS: + setStatus(STATUS_EDEFAULT); + return; + case DockerPackage.DOCKER_EVENTS__ID: + setId(ID_EDEFAULT); + return; + case DockerPackage.DOCKER_EVENTS__TYPE: + setType(TYPE_EDEFAULT); + return; + case DockerPackage.DOCKER_EVENTS__ACTION: + setAction(ACTION_EDEFAULT); + return; + case DockerPackage.DOCKER_EVENTS__ACTOR: + setActor((DockerActor)null); + return; + case DockerPackage.DOCKER_EVENTS__TIME: + setTime(TIME_EDEFAULT); + return; + case DockerPackage.DOCKER_EVENTS__TIMENANO: + setTimenano(TIMENANO_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DockerPackage.DOCKER_EVENTS__STATUS: + return STATUS_EDEFAULT == null ? status != null : !STATUS_EDEFAULT.equals(status); + case DockerPackage.DOCKER_EVENTS__ID: + return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); + case DockerPackage.DOCKER_EVENTS__TYPE: + return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type); + case DockerPackage.DOCKER_EVENTS__ACTION: + return ACTION_EDEFAULT == null ? action != null : !ACTION_EDEFAULT.equals(action); + case DockerPackage.DOCKER_EVENTS__ACTOR: + return actor != null; + case DockerPackage.DOCKER_EVENTS__TIME: + return time != TIME_EDEFAULT; + case DockerPackage.DOCKER_EVENTS__TIMENANO: + return timenano != TIMENANO_EDEFAULT; + } + 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(" (status: "); + result.append(status); + result.append(", id: "); + result.append(id); + result.append(", type: "); + result.append(type); + result.append(", action: "); + result.append(action); + result.append(", time: "); + result.append(time); + result.append(", timenano: "); + result.append(timenano); + result.append(')'); + return result.toString(); + } + +} //DockerEventsImpl diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerFactoryImpl.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerFactoryImpl.java new file mode 100644 index 0000000..ac207a6 --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerFactoryImpl.java @@ -0,0 +1,380 @@ + +/*- + * ============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.ncomp.docker.impl; + +import org.openecomp.ncomp.docker.*; + +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 DockerFactoryImpl extends EFactoryImpl implements DockerFactory { + /** + * Creates the default factory implementation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static DockerFactory init() { + try { + DockerFactory theDockerFactory = (DockerFactory)EPackage.Registry.INSTANCE.getEFactory(DockerPackage.eNS_URI); + if (theDockerFactory != null) { + return theDockerFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new DockerFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DockerFactoryImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case DockerPackage.DOCKER_ADAPTOR: return createDockerAdaptor(); + case DockerPackage.DOCKER_HOST: return createDockerHost(); + case DockerPackage.DOCKER_IMAGE: return createDockerImage(); + case DockerPackage.DOCKER_CONTAINER: return createDockerContainer(); + case DockerPackage.DOCKER_PORT: return createDockerPort(); + case DockerPackage.DOCKER_KEY_PAIR: return createDockerKeyPair(); + case DockerPackage.DOCKER_MOUNT: return createDockerMount(); + case DockerPackage.CONTAINER_OPTIONS: return createContainerOptions(); + case DockerPackage.CONTAINER_RESTART_POLICY: return createContainerRestartPolicy(); + case DockerPackage.CONTAINER_PORT_BINDINGS: return createContainerPortBindings(); + case DockerPackage.DOCKER_NETWORK: return createDockerNetwork(); + case DockerPackage.DOCKER_IPAM: return createDockerIpam(); + case DockerPackage.DOCKER_IPAM_CONFIG: return createDockerIpamConfig(); + case DockerPackage.DOCKER_NETWORK_CONTAINER: return createDockerNetworkContainer(); + case DockerPackage.DOCKER_EVENTS: return createDockerEvents(); + case DockerPackage.DOCKER_ACTOR: return createDockerActor(); + case DockerPackage.DOCKER_ACTOR_ATTRIBUTES: return createDockerActorAttributes(); + case DockerPackage.DOCKER_CREATE_REQUEST: return createDockerCreateRequest(); + case DockerPackage.DOCKER_PROCESS: return createDockerProcess(); + case DockerPackage.DOCKER_CONTAINER_STATS: return createDockerContainerStats(); + case DockerPackage.CONTAINER_NETWORK_STATS: return createContainerNetworkStats(); + case DockerPackage.CONTAINER_MEMORY_STATS: return createContainerMemoryStats(); + case DockerPackage.CONTAINER_MEMORY_USAGE: return createContainerMemoryUsage(); + case DockerPackage.CONTAINER_CPU_USAGE: return createContainerCpuUsage(); + case DockerPackage.CONTAINER_CPU_STATS: return createContainerCpuStats(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DockerAdaptor createDockerAdaptor() { + DockerAdaptorImpl dockerAdaptor = new DockerAdaptorImpl(); + return dockerAdaptor; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DockerHost createDockerHost() { + DockerHostImpl dockerHost = new DockerHostImpl(); + return dockerHost; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DockerImage createDockerImage() { + DockerImageImpl dockerImage = new DockerImageImpl(); + return dockerImage; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DockerContainer createDockerContainer() { + DockerContainerImpl dockerContainer = new DockerContainerImpl(); + return dockerContainer; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DockerPort createDockerPort() { + DockerPortImpl dockerPort = new DockerPortImpl(); + return dockerPort; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DockerKeyPair createDockerKeyPair() { + DockerKeyPairImpl dockerKeyPair = new DockerKeyPairImpl(); + return dockerKeyPair; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DockerMount createDockerMount() { + DockerMountImpl dockerMount = new DockerMountImpl(); + return dockerMount; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ContainerOptions createContainerOptions() { + ContainerOptionsImpl containerOptions = new ContainerOptionsImpl(); + return containerOptions; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ContainerRestartPolicy createContainerRestartPolicy() { + ContainerRestartPolicyImpl containerRestartPolicy = new ContainerRestartPolicyImpl(); + return containerRestartPolicy; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ContainerPortBindings createContainerPortBindings() { + ContainerPortBindingsImpl containerPortBindings = new ContainerPortBindingsImpl(); + return containerPortBindings; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DockerNetwork createDockerNetwork() { + DockerNetworkImpl dockerNetwork = new DockerNetworkImpl(); + return dockerNetwork; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DockerIpam createDockerIpam() { + DockerIpamImpl dockerIpam = new DockerIpamImpl(); + return dockerIpam; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DockerIpamConfig createDockerIpamConfig() { + DockerIpamConfigImpl dockerIpamConfig = new DockerIpamConfigImpl(); + return dockerIpamConfig; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DockerNetworkContainer createDockerNetworkContainer() { + DockerNetworkContainerImpl dockerNetworkContainer = new DockerNetworkContainerImpl(); + return dockerNetworkContainer; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DockerEvents createDockerEvents() { + DockerEventsImpl dockerEvents = new DockerEventsImpl(); + return dockerEvents; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DockerActor createDockerActor() { + DockerActorImpl dockerActor = new DockerActorImpl(); + return dockerActor; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DockerActorAttributes createDockerActorAttributes() { + DockerActorAttributesImpl dockerActorAttributes = new DockerActorAttributesImpl(); + return dockerActorAttributes; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DockerCreateRequest createDockerCreateRequest() { + DockerCreateRequestImpl dockerCreateRequest = new DockerCreateRequestImpl(); + return dockerCreateRequest; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DockerProcess createDockerProcess() { + DockerProcessImpl dockerProcess = new DockerProcessImpl(); + return dockerProcess; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DockerContainerStats createDockerContainerStats() { + DockerContainerStatsImpl dockerContainerStats = new DockerContainerStatsImpl(); + return dockerContainerStats; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ContainerNetworkStats createContainerNetworkStats() { + ContainerNetworkStatsImpl containerNetworkStats = new ContainerNetworkStatsImpl(); + return containerNetworkStats; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ContainerMemoryStats createContainerMemoryStats() { + ContainerMemoryStatsImpl containerMemoryStats = new ContainerMemoryStatsImpl(); + return containerMemoryStats; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ContainerMemoryUsage createContainerMemoryUsage() { + ContainerMemoryUsageImpl containerMemoryUsage = new ContainerMemoryUsageImpl(); + return containerMemoryUsage; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ContainerCpuUsage createContainerCpuUsage() { + ContainerCpuUsageImpl containerCpuUsage = new ContainerCpuUsageImpl(); + return containerCpuUsage; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ContainerCpuStats createContainerCpuStats() { + ContainerCpuStatsImpl containerCpuStats = new ContainerCpuStatsImpl(); + return containerCpuStats; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DockerPackage getDockerPackage() { + return (DockerPackage)getEPackage(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @deprecated + * @generated + */ + @Deprecated + public static DockerPackage getPackage() { + return DockerPackage.eINSTANCE; + } + +} //DockerFactoryImpl diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerHostImpl.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerHostImpl.java new file mode 100644 index 0000000..7b787ef --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerHostImpl.java @@ -0,0 +1,637 @@ + +/*- + * ============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.ncomp.docker.impl; + +import org.openecomp.ncomp.core.impl.NamedEntityImpl; + +import org.openecomp.ncomp.docker.ContainerOptions; +import org.openecomp.ncomp.docker.DockerContainer; +import org.openecomp.ncomp.docker.DockerHost; +import org.openecomp.ncomp.docker.DockerImage; +import org.openecomp.ncomp.docker.DockerNetwork; +import org.openecomp.ncomp.docker.DockerPackage; + +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.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Host</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerHostImpl#getUrl <em>Url</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerHostImpl#getPollingFrequency <em>Polling Frequency</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerHostImpl#isRemote <em>Remote</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerHostImpl#getImages <em>Images</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerHostImpl#getContainers <em>Containers</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerHostImpl#getNetworks <em>Networks</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class DockerHostImpl extends NamedEntityImpl implements DockerHost { + /** + * 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 #getPollingFrequency() <em>Polling Frequency</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPollingFrequency() + * @generated + * @ordered + */ + protected static final long POLLING_FREQUENCY_EDEFAULT = 30000L; + + /** + * The cached value of the '{@link #getPollingFrequency() <em>Polling Frequency</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPollingFrequency() + * @generated + * @ordered + */ + protected long pollingFrequency = POLLING_FREQUENCY_EDEFAULT; + + /** + * The default value of the '{@link #isRemote() <em>Remote</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isRemote() + * @generated + * @ordered + */ + protected static final boolean REMOTE_EDEFAULT = false; + + /** + * The cached value of the '{@link #isRemote() <em>Remote</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isRemote() + * @generated + * @ordered + */ + protected boolean remote = REMOTE_EDEFAULT; + + /** + * The cached value of the '{@link #getImages() <em>Images</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getImages() + * @generated + * @ordered + */ + protected EList<DockerImage> images; + + /** + * The cached value of the '{@link #getContainers() <em>Containers</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getContainers() + * @generated + * @ordered + */ + protected EList<DockerContainer> containers; + + /** + * The cached value of the '{@link #getNetworks() <em>Networks</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getNetworks() + * @generated + * @ordered + */ + protected EList<DockerNetwork> networks; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected DockerHostImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return DockerPackage.Literals.DOCKER_HOST; + } + + /** + * <!-- 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, DockerPackage.DOCKER_HOST__URL, oldUrl, url)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public long getPollingFrequency() { + return pollingFrequency; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPollingFrequency(long newPollingFrequency) { + long oldPollingFrequency = pollingFrequency; + pollingFrequency = newPollingFrequency; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_HOST__POLLING_FREQUENCY, oldPollingFrequency, pollingFrequency)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isRemote() { + return remote; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setRemote(boolean newRemote) { + boolean oldRemote = remote; + remote = newRemote; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_HOST__REMOTE, oldRemote, remote)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<DockerImage> getImages() { + if (images == null) { + images = new EObjectContainmentEList<DockerImage>(DockerImage.class, this, DockerPackage.DOCKER_HOST__IMAGES); + } + return images; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<DockerContainer> getContainers() { + if (containers == null) { + containers = new EObjectContainmentEList<DockerContainer>(DockerContainer.class, this, DockerPackage.DOCKER_HOST__CONTAINERS); + } + return containers; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<DockerNetwork> getNetworks() { + if (networks == null) { + networks = new EObjectContainmentEList<DockerNetwork>(DockerNetwork.class, this, DockerPackage.DOCKER_HOST__NETWORKS); + } + return networks; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void poll() { + // 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 startContainer(String name) { + // 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 stopContainer(String name, int seconds) { + // 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 restartContainer(String name, int seconds) { + // 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 pauseContainer(String name) { + // 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 unpauseContainer(String name) { + // 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 removeContainer(String name, boolean remove, boolean force) { + // 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 inspectContainer(String name) { + // 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 killContainer(String name, String sigint) { + // 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 dockerRun(String image) { + // 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 dockerRunWithName(String image, String name) { + // 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 dockerRunWithOptions(String image, ContainerOptions opts) { + // 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 containerStats(String name, boolean stream) { + // 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 containerProcesses(String name) { + // 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 DockerPackage.DOCKER_HOST__IMAGES: + return ((InternalEList<?>)getImages()).basicRemove(otherEnd, msgs); + case DockerPackage.DOCKER_HOST__CONTAINERS: + return ((InternalEList<?>)getContainers()).basicRemove(otherEnd, msgs); + case DockerPackage.DOCKER_HOST__NETWORKS: + return ((InternalEList<?>)getNetworks()).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 DockerPackage.DOCKER_HOST__URL: + return getUrl(); + case DockerPackage.DOCKER_HOST__POLLING_FREQUENCY: + return getPollingFrequency(); + case DockerPackage.DOCKER_HOST__REMOTE: + return isRemote(); + case DockerPackage.DOCKER_HOST__IMAGES: + return getImages(); + case DockerPackage.DOCKER_HOST__CONTAINERS: + return getContainers(); + case DockerPackage.DOCKER_HOST__NETWORKS: + return getNetworks(); + } + 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 DockerPackage.DOCKER_HOST__URL: + setUrl((String)newValue); + return; + case DockerPackage.DOCKER_HOST__POLLING_FREQUENCY: + setPollingFrequency((Long)newValue); + return; + case DockerPackage.DOCKER_HOST__REMOTE: + setRemote((Boolean)newValue); + return; + case DockerPackage.DOCKER_HOST__IMAGES: + getImages().clear(); + getImages().addAll((Collection<? extends DockerImage>)newValue); + return; + case DockerPackage.DOCKER_HOST__CONTAINERS: + getContainers().clear(); + getContainers().addAll((Collection<? extends DockerContainer>)newValue); + return; + case DockerPackage.DOCKER_HOST__NETWORKS: + getNetworks().clear(); + getNetworks().addAll((Collection<? extends DockerNetwork>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DockerPackage.DOCKER_HOST__URL: + setUrl(URL_EDEFAULT); + return; + case DockerPackage.DOCKER_HOST__POLLING_FREQUENCY: + setPollingFrequency(POLLING_FREQUENCY_EDEFAULT); + return; + case DockerPackage.DOCKER_HOST__REMOTE: + setRemote(REMOTE_EDEFAULT); + return; + case DockerPackage.DOCKER_HOST__IMAGES: + getImages().clear(); + return; + case DockerPackage.DOCKER_HOST__CONTAINERS: + getContainers().clear(); + return; + case DockerPackage.DOCKER_HOST__NETWORKS: + getNetworks().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DockerPackage.DOCKER_HOST__URL: + return URL_EDEFAULT == null ? url != null : !URL_EDEFAULT.equals(url); + case DockerPackage.DOCKER_HOST__POLLING_FREQUENCY: + return pollingFrequency != POLLING_FREQUENCY_EDEFAULT; + case DockerPackage.DOCKER_HOST__REMOTE: + return remote != REMOTE_EDEFAULT; + case DockerPackage.DOCKER_HOST__IMAGES: + return images != null && !images.isEmpty(); + case DockerPackage.DOCKER_HOST__CONTAINERS: + return containers != null && !containers.isEmpty(); + case DockerPackage.DOCKER_HOST__NETWORKS: + return networks != null && !networks.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException { + switch (operationID) { + case DockerPackage.DOCKER_HOST___POLL: + poll(); + return null; + case DockerPackage.DOCKER_HOST___START_CONTAINER__STRING: + startContainer((String)arguments.get(0)); + return null; + case DockerPackage.DOCKER_HOST___STOP_CONTAINER__STRING_INT: + stopContainer((String)arguments.get(0), (Integer)arguments.get(1)); + return null; + case DockerPackage.DOCKER_HOST___RESTART_CONTAINER__STRING_INT: + restartContainer((String)arguments.get(0), (Integer)arguments.get(1)); + return null; + case DockerPackage.DOCKER_HOST___PAUSE_CONTAINER__STRING: + pauseContainer((String)arguments.get(0)); + return null; + case DockerPackage.DOCKER_HOST___UNPAUSE_CONTAINER__STRING: + unpauseContainer((String)arguments.get(0)); + return null; + case DockerPackage.DOCKER_HOST___REMOVE_CONTAINER__STRING_BOOLEAN_BOOLEAN: + removeContainer((String)arguments.get(0), (Boolean)arguments.get(1), (Boolean)arguments.get(2)); + return null; + case DockerPackage.DOCKER_HOST___INSPECT_CONTAINER__STRING: + inspectContainer((String)arguments.get(0)); + return null; + case DockerPackage.DOCKER_HOST___KILL_CONTAINER__STRING_STRING: + killContainer((String)arguments.get(0), (String)arguments.get(1)); + return null; + case DockerPackage.DOCKER_HOST___DOCKER_RUN__STRING: + dockerRun((String)arguments.get(0)); + return null; + case DockerPackage.DOCKER_HOST___DOCKER_RUN_WITH_NAME__STRING_STRING: + dockerRunWithName((String)arguments.get(0), (String)arguments.get(1)); + return null; + case DockerPackage.DOCKER_HOST___DOCKER_RUN_WITH_OPTIONS__STRING_CONTAINEROPTIONS: + dockerRunWithOptions((String)arguments.get(0), (ContainerOptions)arguments.get(1)); + return null; + case DockerPackage.DOCKER_HOST___CONTAINER_STATS__STRING_BOOLEAN: + containerStats((String)arguments.get(0), (Boolean)arguments.get(1)); + return null; + case DockerPackage.DOCKER_HOST___CONTAINER_PROCESSES__STRING: + containerProcesses((String)arguments.get(0)); + 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(" (url: "); + result.append(url); + result.append(", pollingFrequency: "); + result.append(pollingFrequency); + result.append(", remote: "); + result.append(remote); + result.append(')'); + return result.toString(); + } + +} //DockerHostImpl diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerImageImpl.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerImageImpl.java new file mode 100644 index 0000000..ad91660 --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerImageImpl.java @@ -0,0 +1,517 @@ + +/*- + * ============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.ncomp.docker.impl; + +import org.openecomp.ncomp.core.impl.NamedEntityImpl; + +import org.openecomp.ncomp.docker.DockerImage; +import org.openecomp.ncomp.docker.DockerPackage; + +import java.util.Collection; +import java.util.Date; + +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>Image</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerImageImpl#getId <em>Id</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerImageImpl#getParentId <em>Parent Id</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerImageImpl#getRepoTags <em>Repo Tags</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerImageImpl#getRepoDigests <em>Repo Digests</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerImageImpl#getDockerCreated <em>Docker Created</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerImageImpl#getSize <em>Size</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerImageImpl#getVirtualSize <em>Virtual Size</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerImageImpl#getLabels <em>Labels</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class DockerImageImpl extends NamedEntityImpl implements DockerImage { + /** + * The default value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getId() + * @generated + * @ordered + */ + protected static final String ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getId() + * @generated + * @ordered + */ + protected String id = ID_EDEFAULT; + + /** + * The default value of the '{@link #getParentId() <em>Parent Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getParentId() + * @generated + * @ordered + */ + protected static final String PARENT_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getParentId() <em>Parent Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getParentId() + * @generated + * @ordered + */ + protected String parentId = PARENT_ID_EDEFAULT; + + /** + * The cached value of the '{@link #getRepoTags() <em>Repo Tags</em>}' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRepoTags() + * @generated + * @ordered + */ + protected EList<String> repoTags; + + /** + * The cached value of the '{@link #getRepoDigests() <em>Repo Digests</em>}' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRepoDigests() + * @generated + * @ordered + */ + protected EList<String> repoDigests; + + /** + * The default value of the '{@link #getDockerCreated() <em>Docker Created</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDockerCreated() + * @generated + * @ordered + */ + protected static final Date DOCKER_CREATED_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDockerCreated() <em>Docker Created</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDockerCreated() + * @generated + * @ordered + */ + protected Date dockerCreated = DOCKER_CREATED_EDEFAULT; + + /** + * The default value of the '{@link #getSize() <em>Size</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSize() + * @generated + * @ordered + */ + protected static final Long SIZE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSize() <em>Size</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSize() + * @generated + * @ordered + */ + protected Long size = SIZE_EDEFAULT; + + /** + * The default value of the '{@link #getVirtualSize() <em>Virtual Size</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVirtualSize() + * @generated + * @ordered + */ + protected static final Long VIRTUAL_SIZE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getVirtualSize() <em>Virtual Size</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVirtualSize() + * @generated + * @ordered + */ + protected Long virtualSize = VIRTUAL_SIZE_EDEFAULT; + + /** + * The cached value of the '{@link #getLabels() <em>Labels</em>}' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getLabels() + * @generated + * @ordered + */ + protected EList<String> labels; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected DockerImageImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return DockerPackage.Literals.DOCKER_IMAGE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getId() { + return id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setId(String newId) { + String oldId = id; + id = newId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_IMAGE__ID, oldId, id)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getParentId() { + return parentId; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setParentId(String newParentId) { + String oldParentId = parentId; + parentId = newParentId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_IMAGE__PARENT_ID, oldParentId, parentId)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<String> getRepoTags() { + if (repoTags == null) { + repoTags = new EDataTypeEList<String>(String.class, this, DockerPackage.DOCKER_IMAGE__REPO_TAGS); + } + return repoTags; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<String> getRepoDigests() { + if (repoDigests == null) { + repoDigests = new EDataTypeEList<String>(String.class, this, DockerPackage.DOCKER_IMAGE__REPO_DIGESTS); + } + return repoDigests; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Date getDockerCreated() { + return dockerCreated; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDockerCreated(Date newDockerCreated) { + Date oldDockerCreated = dockerCreated; + dockerCreated = newDockerCreated; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_IMAGE__DOCKER_CREATED, oldDockerCreated, dockerCreated)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Long getSize() { + return size; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setSize(Long newSize) { + Long oldSize = size; + size = newSize; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_IMAGE__SIZE, oldSize, size)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Long getVirtualSize() { + return virtualSize; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setVirtualSize(Long newVirtualSize) { + Long oldVirtualSize = virtualSize; + virtualSize = newVirtualSize; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_IMAGE__VIRTUAL_SIZE, oldVirtualSize, virtualSize)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<String> getLabels() { + if (labels == null) { + labels = new EDataTypeEList<String>(String.class, this, DockerPackage.DOCKER_IMAGE__LABELS); + } + return labels; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case DockerPackage.DOCKER_IMAGE__ID: + return getId(); + case DockerPackage.DOCKER_IMAGE__PARENT_ID: + return getParentId(); + case DockerPackage.DOCKER_IMAGE__REPO_TAGS: + return getRepoTags(); + case DockerPackage.DOCKER_IMAGE__REPO_DIGESTS: + return getRepoDigests(); + case DockerPackage.DOCKER_IMAGE__DOCKER_CREATED: + return getDockerCreated(); + case DockerPackage.DOCKER_IMAGE__SIZE: + return getSize(); + case DockerPackage.DOCKER_IMAGE__VIRTUAL_SIZE: + return getVirtualSize(); + case DockerPackage.DOCKER_IMAGE__LABELS: + return getLabels(); + } + 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 DockerPackage.DOCKER_IMAGE__ID: + setId((String)newValue); + return; + case DockerPackage.DOCKER_IMAGE__PARENT_ID: + setParentId((String)newValue); + return; + case DockerPackage.DOCKER_IMAGE__REPO_TAGS: + getRepoTags().clear(); + getRepoTags().addAll((Collection<? extends String>)newValue); + return; + case DockerPackage.DOCKER_IMAGE__REPO_DIGESTS: + getRepoDigests().clear(); + getRepoDigests().addAll((Collection<? extends String>)newValue); + return; + case DockerPackage.DOCKER_IMAGE__DOCKER_CREATED: + setDockerCreated((Date)newValue); + return; + case DockerPackage.DOCKER_IMAGE__SIZE: + setSize((Long)newValue); + return; + case DockerPackage.DOCKER_IMAGE__VIRTUAL_SIZE: + setVirtualSize((Long)newValue); + return; + case DockerPackage.DOCKER_IMAGE__LABELS: + getLabels().clear(); + getLabels().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 DockerPackage.DOCKER_IMAGE__ID: + setId(ID_EDEFAULT); + return; + case DockerPackage.DOCKER_IMAGE__PARENT_ID: + setParentId(PARENT_ID_EDEFAULT); + return; + case DockerPackage.DOCKER_IMAGE__REPO_TAGS: + getRepoTags().clear(); + return; + case DockerPackage.DOCKER_IMAGE__REPO_DIGESTS: + getRepoDigests().clear(); + return; + case DockerPackage.DOCKER_IMAGE__DOCKER_CREATED: + setDockerCreated(DOCKER_CREATED_EDEFAULT); + return; + case DockerPackage.DOCKER_IMAGE__SIZE: + setSize(SIZE_EDEFAULT); + return; + case DockerPackage.DOCKER_IMAGE__VIRTUAL_SIZE: + setVirtualSize(VIRTUAL_SIZE_EDEFAULT); + return; + case DockerPackage.DOCKER_IMAGE__LABELS: + getLabels().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DockerPackage.DOCKER_IMAGE__ID: + return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); + case DockerPackage.DOCKER_IMAGE__PARENT_ID: + return PARENT_ID_EDEFAULT == null ? parentId != null : !PARENT_ID_EDEFAULT.equals(parentId); + case DockerPackage.DOCKER_IMAGE__REPO_TAGS: + return repoTags != null && !repoTags.isEmpty(); + case DockerPackage.DOCKER_IMAGE__REPO_DIGESTS: + return repoDigests != null && !repoDigests.isEmpty(); + case DockerPackage.DOCKER_IMAGE__DOCKER_CREATED: + return DOCKER_CREATED_EDEFAULT == null ? dockerCreated != null : !DOCKER_CREATED_EDEFAULT.equals(dockerCreated); + case DockerPackage.DOCKER_IMAGE__SIZE: + return SIZE_EDEFAULT == null ? size != null : !SIZE_EDEFAULT.equals(size); + case DockerPackage.DOCKER_IMAGE__VIRTUAL_SIZE: + return VIRTUAL_SIZE_EDEFAULT == null ? virtualSize != null : !VIRTUAL_SIZE_EDEFAULT.equals(virtualSize); + case DockerPackage.DOCKER_IMAGE__LABELS: + return labels != null && !labels.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(" (id: "); + result.append(id); + result.append(", parentId: "); + result.append(parentId); + result.append(", repoTags: "); + result.append(repoTags); + result.append(", repoDigests: "); + result.append(repoDigests); + result.append(", dockerCreated: "); + result.append(dockerCreated); + result.append(", size: "); + result.append(size); + result.append(", virtualSize: "); + result.append(virtualSize); + result.append(", labels: "); + result.append(labels); + result.append(')'); + return result.toString(); + } + +} //DockerImageImpl diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerIpamConfigImpl.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerIpamConfigImpl.java new file mode 100644 index 0000000..532b803 --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerIpamConfigImpl.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.ncomp.docker.impl; + +import org.openecomp.ncomp.docker.DockerIpamConfig; +import org.openecomp.ncomp.docker.DockerPackage; + +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>Ipam Config</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerIpamConfigImpl#getSubnet <em>Subnet</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class DockerIpamConfigImpl extends MinimalEObjectImpl.Container implements DockerIpamConfig { + /** + * The default value of the '{@link #getSubnet() <em>Subnet</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSubnet() + * @generated + * @ordered + */ + protected static final String SUBNET_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSubnet() <em>Subnet</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSubnet() + * @generated + * @ordered + */ + protected String subnet = SUBNET_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected DockerIpamConfigImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return DockerPackage.Literals.DOCKER_IPAM_CONFIG; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getSubnet() { + return subnet; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setSubnet(String newSubnet) { + String oldSubnet = subnet; + subnet = newSubnet; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_IPAM_CONFIG__SUBNET, oldSubnet, subnet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case DockerPackage.DOCKER_IPAM_CONFIG__SUBNET: + return getSubnet(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case DockerPackage.DOCKER_IPAM_CONFIG__SUBNET: + setSubnet((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DockerPackage.DOCKER_IPAM_CONFIG__SUBNET: + setSubnet(SUBNET_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DockerPackage.DOCKER_IPAM_CONFIG__SUBNET: + return SUBNET_EDEFAULT == null ? subnet != null : !SUBNET_EDEFAULT.equals(subnet); + } + 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(" (subnet: "); + result.append(subnet); + result.append(')'); + return result.toString(); + } + +} //DockerIpamConfigImpl diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerIpamImpl.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerIpamImpl.java new file mode 100644 index 0000000..fb93731 --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerIpamImpl.java @@ -0,0 +1,243 @@ + +/*- + * ============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.ncomp.docker.impl; + +import org.openecomp.ncomp.docker.DockerIpam; +import org.openecomp.ncomp.docker.DockerIpamConfig; +import org.openecomp.ncomp.docker.DockerPackage; + +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.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Ipam</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerIpamImpl#getDriver <em>Driver</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerIpamImpl#getConfig <em>Config</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class DockerIpamImpl extends MinimalEObjectImpl.Container implements DockerIpam { + /** + * The default value of the '{@link #getDriver() <em>Driver</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDriver() + * @generated + * @ordered + */ + protected static final String DRIVER_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDriver() <em>Driver</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDriver() + * @generated + * @ordered + */ + protected String driver = DRIVER_EDEFAULT; + + /** + * The cached value of the '{@link #getConfig() <em>Config</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getConfig() + * @generated + * @ordered + */ + protected EList<DockerIpamConfig> config; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected DockerIpamImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return DockerPackage.Literals.DOCKER_IPAM; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getDriver() { + return driver; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDriver(String newDriver) { + String oldDriver = driver; + driver = newDriver; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_IPAM__DRIVER, oldDriver, driver)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<DockerIpamConfig> getConfig() { + if (config == null) { + config = new EObjectContainmentEList<DockerIpamConfig>(DockerIpamConfig.class, this, DockerPackage.DOCKER_IPAM__CONFIG); + } + return config; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case DockerPackage.DOCKER_IPAM__CONFIG: + return ((InternalEList<?>)getConfig()).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 DockerPackage.DOCKER_IPAM__DRIVER: + return getDriver(); + case DockerPackage.DOCKER_IPAM__CONFIG: + return getConfig(); + } + 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 DockerPackage.DOCKER_IPAM__DRIVER: + setDriver((String)newValue); + return; + case DockerPackage.DOCKER_IPAM__CONFIG: + getConfig().clear(); + getConfig().addAll((Collection<? extends DockerIpamConfig>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DockerPackage.DOCKER_IPAM__DRIVER: + setDriver(DRIVER_EDEFAULT); + return; + case DockerPackage.DOCKER_IPAM__CONFIG: + getConfig().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DockerPackage.DOCKER_IPAM__DRIVER: + return DRIVER_EDEFAULT == null ? driver != null : !DRIVER_EDEFAULT.equals(driver); + case DockerPackage.DOCKER_IPAM__CONFIG: + return config != null && !config.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(" (driver: "); + result.append(driver); + result.append(')'); + return result.toString(); + } + +} //DockerIpamImpl diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerKeyPairImpl.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerKeyPairImpl.java new file mode 100644 index 0000000..83d62ea --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerKeyPairImpl.java @@ -0,0 +1,238 @@ + +/*- + * ============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.ncomp.docker.impl; + +import org.openecomp.ncomp.docker.DockerKeyPair; +import org.openecomp.ncomp.docker.DockerPackage; + +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>Key Pair</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerKeyPairImpl#getName <em>Name</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerKeyPairImpl#getValue <em>Value</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class DockerKeyPairImpl extends MinimalEObjectImpl.Container implements DockerKeyPair { + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getValue() <em>Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getValue() + * @generated + * @ordered + */ + protected static final String VALUE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getValue() <em>Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getValue() + * @generated + * @ordered + */ + protected String value = VALUE_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected DockerKeyPairImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return DockerPackage.Literals.DOCKER_KEY_PAIR; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_KEY_PAIR__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getValue() { + return value; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setValue(String newValue) { + String oldValue = value; + value = newValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_KEY_PAIR__VALUE, oldValue, value)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case DockerPackage.DOCKER_KEY_PAIR__NAME: + return getName(); + case DockerPackage.DOCKER_KEY_PAIR__VALUE: + return getValue(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case DockerPackage.DOCKER_KEY_PAIR__NAME: + setName((String)newValue); + return; + case DockerPackage.DOCKER_KEY_PAIR__VALUE: + setValue((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DockerPackage.DOCKER_KEY_PAIR__NAME: + setName(NAME_EDEFAULT); + return; + case DockerPackage.DOCKER_KEY_PAIR__VALUE: + setValue(VALUE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DockerPackage.DOCKER_KEY_PAIR__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case DockerPackage.DOCKER_KEY_PAIR__VALUE: + return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); + } + 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(" (name: "); + result.append(name); + result.append(", value: "); + result.append(value); + result.append(')'); + return result.toString(); + } + +} //DockerKeyPairImpl diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerMountImpl.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerMountImpl.java new file mode 100644 index 0000000..69c4d0e --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerMountImpl.java @@ -0,0 +1,400 @@ + +/*- + * ============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.ncomp.docker.impl; + +import org.openecomp.ncomp.docker.DockerMount; +import org.openecomp.ncomp.docker.DockerPackage; + +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>Mount</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerMountImpl#getSource <em>Source</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerMountImpl#getDestination <em>Destination</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerMountImpl#getMode <em>Mode</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerMountImpl#getRW <em>RW</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerMountImpl#getPropagation <em>Propagation</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class DockerMountImpl extends MinimalEObjectImpl.Container implements DockerMount { + /** + * The default value of the '{@link #getSource() <em>Source</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSource() + * @generated + * @ordered + */ + protected static final String SOURCE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSource() <em>Source</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSource() + * @generated + * @ordered + */ + protected String source = SOURCE_EDEFAULT; + + /** + * The default value of the '{@link #getDestination() <em>Destination</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDestination() + * @generated + * @ordered + */ + protected static final String DESTINATION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDestination() <em>Destination</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDestination() + * @generated + * @ordered + */ + protected String destination = DESTINATION_EDEFAULT; + + /** + * The default value of the '{@link #getMode() <em>Mode</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMode() + * @generated + * @ordered + */ + protected static final String MODE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMode() <em>Mode</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMode() + * @generated + * @ordered + */ + protected String mode = MODE_EDEFAULT; + + /** + * The default value of the '{@link #getRW() <em>RW</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRW() + * @generated + * @ordered + */ + protected static final Boolean RW_EDEFAULT = null; + + /** + * The cached value of the '{@link #getRW() <em>RW</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRW() + * @generated + * @ordered + */ + protected Boolean rW = RW_EDEFAULT; + + /** + * The default value of the '{@link #getPropagation() <em>Propagation</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPropagation() + * @generated + * @ordered + */ + protected static final String PROPAGATION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPropagation() <em>Propagation</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPropagation() + * @generated + * @ordered + */ + protected String propagation = PROPAGATION_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected DockerMountImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return DockerPackage.Literals.DOCKER_MOUNT; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getSource() { + return source; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setSource(String newSource) { + String oldSource = source; + source = newSource; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_MOUNT__SOURCE, oldSource, source)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getDestination() { + return destination; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDestination(String newDestination) { + String oldDestination = destination; + destination = newDestination; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_MOUNT__DESTINATION, oldDestination, destination)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getMode() { + return mode; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setMode(String newMode) { + String oldMode = mode; + mode = newMode; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_MOUNT__MODE, oldMode, mode)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Boolean getRW() { + return rW; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setRW(Boolean newRW) { + Boolean oldRW = rW; + rW = newRW; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_MOUNT__RW, oldRW, rW)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getPropagation() { + return propagation; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPropagation(String newPropagation) { + String oldPropagation = propagation; + propagation = newPropagation; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_MOUNT__PROPAGATION, oldPropagation, propagation)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case DockerPackage.DOCKER_MOUNT__SOURCE: + return getSource(); + case DockerPackage.DOCKER_MOUNT__DESTINATION: + return getDestination(); + case DockerPackage.DOCKER_MOUNT__MODE: + return getMode(); + case DockerPackage.DOCKER_MOUNT__RW: + return getRW(); + case DockerPackage.DOCKER_MOUNT__PROPAGATION: + return getPropagation(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case DockerPackage.DOCKER_MOUNT__SOURCE: + setSource((String)newValue); + return; + case DockerPackage.DOCKER_MOUNT__DESTINATION: + setDestination((String)newValue); + return; + case DockerPackage.DOCKER_MOUNT__MODE: + setMode((String)newValue); + return; + case DockerPackage.DOCKER_MOUNT__RW: + setRW((Boolean)newValue); + return; + case DockerPackage.DOCKER_MOUNT__PROPAGATION: + setPropagation((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DockerPackage.DOCKER_MOUNT__SOURCE: + setSource(SOURCE_EDEFAULT); + return; + case DockerPackage.DOCKER_MOUNT__DESTINATION: + setDestination(DESTINATION_EDEFAULT); + return; + case DockerPackage.DOCKER_MOUNT__MODE: + setMode(MODE_EDEFAULT); + return; + case DockerPackage.DOCKER_MOUNT__RW: + setRW(RW_EDEFAULT); + return; + case DockerPackage.DOCKER_MOUNT__PROPAGATION: + setPropagation(PROPAGATION_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DockerPackage.DOCKER_MOUNT__SOURCE: + return SOURCE_EDEFAULT == null ? source != null : !SOURCE_EDEFAULT.equals(source); + case DockerPackage.DOCKER_MOUNT__DESTINATION: + return DESTINATION_EDEFAULT == null ? destination != null : !DESTINATION_EDEFAULT.equals(destination); + case DockerPackage.DOCKER_MOUNT__MODE: + return MODE_EDEFAULT == null ? mode != null : !MODE_EDEFAULT.equals(mode); + case DockerPackage.DOCKER_MOUNT__RW: + return RW_EDEFAULT == null ? rW != null : !RW_EDEFAULT.equals(rW); + case DockerPackage.DOCKER_MOUNT__PROPAGATION: + return PROPAGATION_EDEFAULT == null ? propagation != null : !PROPAGATION_EDEFAULT.equals(propagation); + } + 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(" (source: "); + result.append(source); + result.append(", destination: "); + result.append(destination); + result.append(", mode: "); + result.append(mode); + result.append(", rW: "); + result.append(rW); + result.append(", propagation: "); + result.append(propagation); + result.append(')'); + return result.toString(); + } + +} //DockerMountImpl diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerNetworkContainerImpl.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerNetworkContainerImpl.java new file mode 100644 index 0000000..f9c110e --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerNetworkContainerImpl.java @@ -0,0 +1,400 @@ + +/*- + * ============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.ncomp.docker.impl; + +import org.openecomp.ncomp.docker.DockerNetworkContainer; +import org.openecomp.ncomp.docker.DockerPackage; + +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>Network Container</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerNetworkContainerImpl#getId <em>Id</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerNetworkContainerImpl#getIPv4Address <em>IPv4 Address</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerNetworkContainerImpl#getIPv6Address <em>IPv6 Address</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerNetworkContainerImpl#getEndpointID <em>Endpoint ID</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerNetworkContainerImpl#getMacAddress <em>Mac Address</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class DockerNetworkContainerImpl extends MinimalEObjectImpl.Container implements DockerNetworkContainer { + /** + * The default value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getId() + * @generated + * @ordered + */ + protected static final String ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getId() + * @generated + * @ordered + */ + protected String id = ID_EDEFAULT; + + /** + * The default value of the '{@link #getIPv4Address() <em>IPv4 Address</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIPv4Address() + * @generated + * @ordered + */ + protected static final String IPV4_ADDRESS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIPv4Address() <em>IPv4 Address</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIPv4Address() + * @generated + * @ordered + */ + protected String iPv4Address = IPV4_ADDRESS_EDEFAULT; + + /** + * The default value of the '{@link #getIPv6Address() <em>IPv6 Address</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIPv6Address() + * @generated + * @ordered + */ + protected static final String IPV6_ADDRESS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIPv6Address() <em>IPv6 Address</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIPv6Address() + * @generated + * @ordered + */ + protected String iPv6Address = IPV6_ADDRESS_EDEFAULT; + + /** + * The default value of the '{@link #getEndpointID() <em>Endpoint ID</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getEndpointID() + * @generated + * @ordered + */ + protected static final String ENDPOINT_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getEndpointID() <em>Endpoint ID</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getEndpointID() + * @generated + * @ordered + */ + protected String endpointID = ENDPOINT_ID_EDEFAULT; + + /** + * The default value of the '{@link #getMacAddress() <em>Mac Address</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMacAddress() + * @generated + * @ordered + */ + protected static final String MAC_ADDRESS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMacAddress() <em>Mac Address</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMacAddress() + * @generated + * @ordered + */ + protected String macAddress = MAC_ADDRESS_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected DockerNetworkContainerImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return DockerPackage.Literals.DOCKER_NETWORK_CONTAINER; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getId() { + return id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setId(String newId) { + String oldId = id; + id = newId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_NETWORK_CONTAINER__ID, oldId, id)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getIPv4Address() { + return iPv4Address; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setIPv4Address(String newIPv4Address) { + String oldIPv4Address = iPv4Address; + iPv4Address = newIPv4Address; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_NETWORK_CONTAINER__IPV4_ADDRESS, oldIPv4Address, iPv4Address)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getIPv6Address() { + return iPv6Address; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setIPv6Address(String newIPv6Address) { + String oldIPv6Address = iPv6Address; + iPv6Address = newIPv6Address; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_NETWORK_CONTAINER__IPV6_ADDRESS, oldIPv6Address, iPv6Address)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getEndpointID() { + return endpointID; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setEndpointID(String newEndpointID) { + String oldEndpointID = endpointID; + endpointID = newEndpointID; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_NETWORK_CONTAINER__ENDPOINT_ID, oldEndpointID, endpointID)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getMacAddress() { + return macAddress; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setMacAddress(String newMacAddress) { + String oldMacAddress = macAddress; + macAddress = newMacAddress; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_NETWORK_CONTAINER__MAC_ADDRESS, oldMacAddress, macAddress)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case DockerPackage.DOCKER_NETWORK_CONTAINER__ID: + return getId(); + case DockerPackage.DOCKER_NETWORK_CONTAINER__IPV4_ADDRESS: + return getIPv4Address(); + case DockerPackage.DOCKER_NETWORK_CONTAINER__IPV6_ADDRESS: + return getIPv6Address(); + case DockerPackage.DOCKER_NETWORK_CONTAINER__ENDPOINT_ID: + return getEndpointID(); + case DockerPackage.DOCKER_NETWORK_CONTAINER__MAC_ADDRESS: + return getMacAddress(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case DockerPackage.DOCKER_NETWORK_CONTAINER__ID: + setId((String)newValue); + return; + case DockerPackage.DOCKER_NETWORK_CONTAINER__IPV4_ADDRESS: + setIPv4Address((String)newValue); + return; + case DockerPackage.DOCKER_NETWORK_CONTAINER__IPV6_ADDRESS: + setIPv6Address((String)newValue); + return; + case DockerPackage.DOCKER_NETWORK_CONTAINER__ENDPOINT_ID: + setEndpointID((String)newValue); + return; + case DockerPackage.DOCKER_NETWORK_CONTAINER__MAC_ADDRESS: + setMacAddress((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DockerPackage.DOCKER_NETWORK_CONTAINER__ID: + setId(ID_EDEFAULT); + return; + case DockerPackage.DOCKER_NETWORK_CONTAINER__IPV4_ADDRESS: + setIPv4Address(IPV4_ADDRESS_EDEFAULT); + return; + case DockerPackage.DOCKER_NETWORK_CONTAINER__IPV6_ADDRESS: + setIPv6Address(IPV6_ADDRESS_EDEFAULT); + return; + case DockerPackage.DOCKER_NETWORK_CONTAINER__ENDPOINT_ID: + setEndpointID(ENDPOINT_ID_EDEFAULT); + return; + case DockerPackage.DOCKER_NETWORK_CONTAINER__MAC_ADDRESS: + setMacAddress(MAC_ADDRESS_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DockerPackage.DOCKER_NETWORK_CONTAINER__ID: + return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); + case DockerPackage.DOCKER_NETWORK_CONTAINER__IPV4_ADDRESS: + return IPV4_ADDRESS_EDEFAULT == null ? iPv4Address != null : !IPV4_ADDRESS_EDEFAULT.equals(iPv4Address); + case DockerPackage.DOCKER_NETWORK_CONTAINER__IPV6_ADDRESS: + return IPV6_ADDRESS_EDEFAULT == null ? iPv6Address != null : !IPV6_ADDRESS_EDEFAULT.equals(iPv6Address); + case DockerPackage.DOCKER_NETWORK_CONTAINER__ENDPOINT_ID: + return ENDPOINT_ID_EDEFAULT == null ? endpointID != null : !ENDPOINT_ID_EDEFAULT.equals(endpointID); + case DockerPackage.DOCKER_NETWORK_CONTAINER__MAC_ADDRESS: + return MAC_ADDRESS_EDEFAULT == null ? macAddress != null : !MAC_ADDRESS_EDEFAULT.equals(macAddress); + } + 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(" (id: "); + result.append(id); + result.append(", iPv4Address: "); + result.append(iPv4Address); + result.append(", iPv6Address: "); + result.append(iPv6Address); + result.append(", endpointID: "); + result.append(endpointID); + result.append(", macAddress: "); + result.append(macAddress); + result.append(')'); + return result.toString(); + } + +} //DockerNetworkContainerImpl diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerNetworkImpl.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerNetworkImpl.java new file mode 100644 index 0000000..4f1be74 --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerNetworkImpl.java @@ -0,0 +1,456 @@ + +/*- + * ============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.ncomp.docker.impl; + +import org.openecomp.ncomp.core.impl.NamedEntityImpl; + +import org.openecomp.ncomp.docker.DockerIpam; +import org.openecomp.ncomp.docker.DockerKeyPair; +import org.openecomp.ncomp.docker.DockerNetwork; +import org.openecomp.ncomp.docker.DockerNetworkContainer; +import org.openecomp.ncomp.docker.DockerPackage; + +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.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Network</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerNetworkImpl#getId <em>Id</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerNetworkImpl#getScope <em>Scope</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerNetworkImpl#getDriver <em>Driver</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerNetworkImpl#getIPAM <em>IPAM</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerNetworkImpl#getContainers <em>Containers</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerNetworkImpl#getOptions <em>Options</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class DockerNetworkImpl extends NamedEntityImpl implements DockerNetwork { + /** + * The default value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getId() + * @generated + * @ordered + */ + protected static final String ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getId() + * @generated + * @ordered + */ + protected String id = ID_EDEFAULT; + + /** + * The default value of the '{@link #getScope() <em>Scope</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getScope() + * @generated + * @ordered + */ + protected static final String SCOPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getScope() <em>Scope</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getScope() + * @generated + * @ordered + */ + protected String scope = SCOPE_EDEFAULT; + + /** + * The default value of the '{@link #getDriver() <em>Driver</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDriver() + * @generated + * @ordered + */ + protected static final String DRIVER_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDriver() <em>Driver</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDriver() + * @generated + * @ordered + */ + protected String driver = DRIVER_EDEFAULT; + + /** + * The cached value of the '{@link #getIPAM() <em>IPAM</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIPAM() + * @generated + * @ordered + */ + protected DockerIpam iPAM; + + /** + * The cached value of the '{@link #getContainers() <em>Containers</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getContainers() + * @generated + * @ordered + */ + protected EList<DockerNetworkContainer> containers; + + /** + * The cached value of the '{@link #getOptions() <em>Options</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOptions() + * @generated + * @ordered + */ + protected EList<DockerKeyPair> options; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected DockerNetworkImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return DockerPackage.Literals.DOCKER_NETWORK; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getId() { + return id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setId(String newId) { + String oldId = id; + id = newId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_NETWORK__ID, oldId, id)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getScope() { + return scope; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setScope(String newScope) { + String oldScope = scope; + scope = newScope; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_NETWORK__SCOPE, oldScope, scope)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getDriver() { + return driver; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDriver(String newDriver) { + String oldDriver = driver; + driver = newDriver; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_NETWORK__DRIVER, oldDriver, driver)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DockerIpam getIPAM() { + return iPAM; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetIPAM(DockerIpam newIPAM, NotificationChain msgs) { + DockerIpam oldIPAM = iPAM; + iPAM = newIPAM; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_NETWORK__IPAM, oldIPAM, newIPAM); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setIPAM(DockerIpam newIPAM) { + if (newIPAM != iPAM) { + NotificationChain msgs = null; + if (iPAM != null) + msgs = ((InternalEObject)iPAM).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DockerPackage.DOCKER_NETWORK__IPAM, null, msgs); + if (newIPAM != null) + msgs = ((InternalEObject)newIPAM).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DockerPackage.DOCKER_NETWORK__IPAM, null, msgs); + msgs = basicSetIPAM(newIPAM, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_NETWORK__IPAM, newIPAM, newIPAM)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<DockerNetworkContainer> getContainers() { + if (containers == null) { + containers = new EObjectContainmentEList<DockerNetworkContainer>(DockerNetworkContainer.class, this, DockerPackage.DOCKER_NETWORK__CONTAINERS); + } + return containers; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<DockerKeyPair> getOptions() { + if (options == null) { + options = new EObjectContainmentEList<DockerKeyPair>(DockerKeyPair.class, this, DockerPackage.DOCKER_NETWORK__OPTIONS); + } + return options; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case DockerPackage.DOCKER_NETWORK__IPAM: + return basicSetIPAM(null, msgs); + case DockerPackage.DOCKER_NETWORK__CONTAINERS: + return ((InternalEList<?>)getContainers()).basicRemove(otherEnd, msgs); + case DockerPackage.DOCKER_NETWORK__OPTIONS: + return ((InternalEList<?>)getOptions()).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 DockerPackage.DOCKER_NETWORK__ID: + return getId(); + case DockerPackage.DOCKER_NETWORK__SCOPE: + return getScope(); + case DockerPackage.DOCKER_NETWORK__DRIVER: + return getDriver(); + case DockerPackage.DOCKER_NETWORK__IPAM: + return getIPAM(); + case DockerPackage.DOCKER_NETWORK__CONTAINERS: + return getContainers(); + case DockerPackage.DOCKER_NETWORK__OPTIONS: + return getOptions(); + } + 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 DockerPackage.DOCKER_NETWORK__ID: + setId((String)newValue); + return; + case DockerPackage.DOCKER_NETWORK__SCOPE: + setScope((String)newValue); + return; + case DockerPackage.DOCKER_NETWORK__DRIVER: + setDriver((String)newValue); + return; + case DockerPackage.DOCKER_NETWORK__IPAM: + setIPAM((DockerIpam)newValue); + return; + case DockerPackage.DOCKER_NETWORK__CONTAINERS: + getContainers().clear(); + getContainers().addAll((Collection<? extends DockerNetworkContainer>)newValue); + return; + case DockerPackage.DOCKER_NETWORK__OPTIONS: + getOptions().clear(); + getOptions().addAll((Collection<? extends DockerKeyPair>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DockerPackage.DOCKER_NETWORK__ID: + setId(ID_EDEFAULT); + return; + case DockerPackage.DOCKER_NETWORK__SCOPE: + setScope(SCOPE_EDEFAULT); + return; + case DockerPackage.DOCKER_NETWORK__DRIVER: + setDriver(DRIVER_EDEFAULT); + return; + case DockerPackage.DOCKER_NETWORK__IPAM: + setIPAM((DockerIpam)null); + return; + case DockerPackage.DOCKER_NETWORK__CONTAINERS: + getContainers().clear(); + return; + case DockerPackage.DOCKER_NETWORK__OPTIONS: + getOptions().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DockerPackage.DOCKER_NETWORK__ID: + return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); + case DockerPackage.DOCKER_NETWORK__SCOPE: + return SCOPE_EDEFAULT == null ? scope != null : !SCOPE_EDEFAULT.equals(scope); + case DockerPackage.DOCKER_NETWORK__DRIVER: + return DRIVER_EDEFAULT == null ? driver != null : !DRIVER_EDEFAULT.equals(driver); + case DockerPackage.DOCKER_NETWORK__IPAM: + return iPAM != null; + case DockerPackage.DOCKER_NETWORK__CONTAINERS: + return containers != null && !containers.isEmpty(); + case DockerPackage.DOCKER_NETWORK__OPTIONS: + return options != null && !options.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(" (id: "); + result.append(id); + result.append(", scope: "); + result.append(scope); + result.append(", driver: "); + result.append(driver); + result.append(')'); + return result.toString(); + } + +} //DockerNetworkImpl diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerPackageImpl.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerPackageImpl.java new file mode 100644 index 0000000..ab982f9 --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerPackageImpl.java @@ -0,0 +1,2463 @@ + +/*- + * ============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.ncomp.docker.impl; + +import org.openecomp.ncomp.core.CorePackage; + +import org.openecomp.ncomp.docker.ContainerCpuStats; +import org.openecomp.ncomp.docker.ContainerCpuUsage; +import org.openecomp.ncomp.docker.ContainerMemoryStats; +import org.openecomp.ncomp.docker.ContainerMemoryUsage; +import org.openecomp.ncomp.docker.ContainerNetworkStats; +import org.openecomp.ncomp.docker.ContainerOptions; +import org.openecomp.ncomp.docker.ContainerPortBindings; +import org.openecomp.ncomp.docker.ContainerRestartPolicy; +import org.openecomp.ncomp.docker.DockerActor; +import org.openecomp.ncomp.docker.DockerActorAttributes; +import org.openecomp.ncomp.docker.DockerAdaptor; +import org.openecomp.ncomp.docker.DockerContainer; +import org.openecomp.ncomp.docker.DockerContainerStats; +import org.openecomp.ncomp.docker.DockerCreateRequest; +import org.openecomp.ncomp.docker.DockerEvents; +import org.openecomp.ncomp.docker.DockerFactory; +import org.openecomp.ncomp.docker.DockerHost; +import org.openecomp.ncomp.docker.DockerImage; +import org.openecomp.ncomp.docker.DockerIpam; +import org.openecomp.ncomp.docker.DockerIpamConfig; +import org.openecomp.ncomp.docker.DockerKeyPair; +import org.openecomp.ncomp.docker.DockerMount; +import org.openecomp.ncomp.docker.DockerNetwork; +import org.openecomp.ncomp.docker.DockerNetworkContainer; +import org.openecomp.ncomp.docker.DockerPackage; +import org.openecomp.ncomp.docker.DockerPort; +import org.openecomp.ncomp.docker.DockerProcess; + +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 DockerPackageImpl extends EPackageImpl implements DockerPackage { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass dockerAdaptorEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass dockerHostEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass dockerImageEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass dockerContainerEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass dockerPortEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass dockerKeyPairEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass dockerMountEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass containerOptionsEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass containerRestartPolicyEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass containerPortBindingsEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass dockerNetworkEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass dockerIpamEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass dockerIpamConfigEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass dockerNetworkContainerEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass dockerEventsEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass dockerActorEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass dockerActorAttributesEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass dockerCreateRequestEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass dockerProcessEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass dockerContainerStatsEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass containerNetworkStatsEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass containerMemoryStatsEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass containerMemoryUsageEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass containerCpuUsageEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass containerCpuStatsEClass = 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.ncomp.docker.DockerPackage#eNS_URI + * @see #init() + * @generated + */ + private DockerPackageImpl() { + super(eNS_URI, DockerFactory.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 DockerPackage#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 DockerPackage init() { + if (isInited) return (DockerPackage)EPackage.Registry.INSTANCE.getEPackage(DockerPackage.eNS_URI); + + // Obtain or create and register package + DockerPackageImpl theDockerPackage = (DockerPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof DockerPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new DockerPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + CorePackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theDockerPackage.createPackageContents(); + + // Initialize created meta-data + theDockerPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theDockerPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(DockerPackage.eNS_URI, theDockerPackage); + return theDockerPackage; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getDockerAdaptor() { + return dockerAdaptorEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getDockerAdaptor_DockerHosts() { + return (EReference)dockerAdaptorEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getDockerHost() { + return dockerHostEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerHost_Url() { + return (EAttribute)dockerHostEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerHost_PollingFrequency() { + return (EAttribute)dockerHostEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerHost_Remote() { + return (EAttribute)dockerHostEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getDockerHost_Images() { + return (EReference)dockerHostEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getDockerHost_Containers() { + return (EReference)dockerHostEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getDockerHost_Networks() { + return (EReference)dockerHostEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getDockerHost__Poll() { + return dockerHostEClass.getEOperations().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getDockerHost__StartContainer__String() { + return dockerHostEClass.getEOperations().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getDockerHost__StopContainer__String_int() { + return dockerHostEClass.getEOperations().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getDockerHost__RestartContainer__String_int() { + return dockerHostEClass.getEOperations().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getDockerHost__PauseContainer__String() { + return dockerHostEClass.getEOperations().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getDockerHost__UnpauseContainer__String() { + return dockerHostEClass.getEOperations().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getDockerHost__RemoveContainer__String_boolean_boolean() { + return dockerHostEClass.getEOperations().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getDockerHost__InspectContainer__String() { + return dockerHostEClass.getEOperations().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getDockerHost__KillContainer__String_String() { + return dockerHostEClass.getEOperations().get(8); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getDockerHost__DockerRun__String() { + return dockerHostEClass.getEOperations().get(9); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getDockerHost__DockerRunWithName__String_String() { + return dockerHostEClass.getEOperations().get(10); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getDockerHost__DockerRunWithOptions__String_ContainerOptions() { + return dockerHostEClass.getEOperations().get(11); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getDockerHost__ContainerStats__String_boolean() { + return dockerHostEClass.getEOperations().get(12); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getDockerHost__ContainerProcesses__String() { + return dockerHostEClass.getEOperations().get(13); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getDockerImage() { + return dockerImageEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerImage_Id() { + return (EAttribute)dockerImageEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerImage_ParentId() { + return (EAttribute)dockerImageEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerImage_RepoTags() { + return (EAttribute)dockerImageEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerImage_RepoDigests() { + return (EAttribute)dockerImageEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerImage_DockerCreated() { + return (EAttribute)dockerImageEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerImage_Size() { + return (EAttribute)dockerImageEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerImage_VirtualSize() { + return (EAttribute)dockerImageEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerImage_Labels() { + return (EAttribute)dockerImageEClass.getEStructuralFeatures().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getDockerContainer() { + return dockerContainerEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerContainer_Id() { + return (EAttribute)dockerContainerEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerContainer_Names() { + return (EAttribute)dockerContainerEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerContainer_Image() { + return (EAttribute)dockerContainerEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerContainer_ImageID() { + return (EAttribute)dockerContainerEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerContainer_Command() { + return (EAttribute)dockerContainerEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerContainer_DockerCreated() { + return (EAttribute)dockerContainerEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getDockerContainer_Ports() { + return (EReference)dockerContainerEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getDockerContainer_Labels() { + return (EReference)dockerContainerEClass.getEStructuralFeatures().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerContainer_Status() { + return (EAttribute)dockerContainerEClass.getEStructuralFeatures().get(8); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getDockerContainer_HostConfig() { + return (EReference)dockerContainerEClass.getEStructuralFeatures().get(9); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getDockerContainer_Processes() { + return (EReference)dockerContainerEClass.getEStructuralFeatures().get(10); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getDockerContainer_Mounts() { + return (EReference)dockerContainerEClass.getEStructuralFeatures().get(11); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getDockerContainer_Stats() { + return (EReference)dockerContainerEClass.getEStructuralFeatures().get(12); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getDockerContainer_Events() { + return (EReference)dockerContainerEClass.getEStructuralFeatures().get(13); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getDockerPort() { + return dockerPortEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerPort_PrivatePort() { + return (EAttribute)dockerPortEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerPort_PublicPort() { + return (EAttribute)dockerPortEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerPort_Type() { + return (EAttribute)dockerPortEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getDockerKeyPair() { + return dockerKeyPairEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerKeyPair_Name() { + return (EAttribute)dockerKeyPairEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerKeyPair_Value() { + return (EAttribute)dockerKeyPairEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getDockerMount() { + return dockerMountEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerMount_Source() { + return (EAttribute)dockerMountEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerMount_Destination() { + return (EAttribute)dockerMountEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerMount_Mode() { + return (EAttribute)dockerMountEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerMount_RW() { + return (EAttribute)dockerMountEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerMount_Propagation() { + return (EAttribute)dockerMountEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getContainerOptions() { + return containerOptionsEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerOptions_ImageNm() { + return (EAttribute)containerOptionsEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerOptions_Env() { + return (EAttribute)containerOptionsEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerOptions_Volumes() { + return (EAttribute)containerOptionsEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerOptions_Links() { + return (EAttribute)containerOptionsEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerOptions_SetContainerName() { + return (EAttribute)containerOptionsEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerOptions_PublishAllPorts() { + return (EAttribute)containerOptionsEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getContainerOptions_PortBindings() { + return (EReference)containerOptionsEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getContainerOptions_AutoRestart() { + return (EReference)containerOptionsEClass.getEStructuralFeatures().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getContainerRestartPolicy() { + return containerRestartPolicyEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerRestartPolicy_Nm() { + return (EAttribute)containerRestartPolicyEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerRestartPolicy_MaxRetryCnt() { + return (EAttribute)containerRestartPolicyEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getContainerPortBindings() { + return containerPortBindingsEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerPortBindings_ContainerPort() { + return (EAttribute)containerPortBindingsEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerPortBindings_Protocol() { + return (EAttribute)containerPortBindingsEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerPortBindings_VmPort() { + return (EAttribute)containerPortBindingsEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getDockerNetwork() { + return dockerNetworkEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerNetwork_Id() { + return (EAttribute)dockerNetworkEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerNetwork_Scope() { + return (EAttribute)dockerNetworkEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerNetwork_Driver() { + return (EAttribute)dockerNetworkEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getDockerNetwork_IPAM() { + return (EReference)dockerNetworkEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getDockerNetwork_Containers() { + return (EReference)dockerNetworkEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getDockerNetwork_Options() { + return (EReference)dockerNetworkEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getDockerIpam() { + return dockerIpamEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerIpam_Driver() { + return (EAttribute)dockerIpamEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getDockerIpam_Config() { + return (EReference)dockerIpamEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getDockerIpamConfig() { + return dockerIpamConfigEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerIpamConfig_Subnet() { + return (EAttribute)dockerIpamConfigEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getDockerNetworkContainer() { + return dockerNetworkContainerEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerNetworkContainer_Id() { + return (EAttribute)dockerNetworkContainerEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerNetworkContainer_IPv4Address() { + return (EAttribute)dockerNetworkContainerEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerNetworkContainer_IPv6Address() { + return (EAttribute)dockerNetworkContainerEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerNetworkContainer_EndpointID() { + return (EAttribute)dockerNetworkContainerEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerNetworkContainer_MacAddress() { + return (EAttribute)dockerNetworkContainerEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getDockerEvents() { + return dockerEventsEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerEvents_Status() { + return (EAttribute)dockerEventsEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerEvents_Id() { + return (EAttribute)dockerEventsEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerEvents_Type() { + return (EAttribute)dockerEventsEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerEvents_Action() { + return (EAttribute)dockerEventsEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getDockerEvents_Actor() { + return (EReference)dockerEventsEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerEvents_Time() { + return (EAttribute)dockerEventsEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerEvents_Timenano() { + return (EAttribute)dockerEventsEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getDockerActor() { + return dockerActorEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerActor_Id() { + return (EAttribute)dockerActorEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getDockerActor_Attributes() { + return (EReference)dockerActorEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getDockerActorAttributes() { + return dockerActorAttributesEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerActorAttributes_Name() { + return (EAttribute)dockerActorAttributesEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getDockerCreateRequest() { + return dockerCreateRequestEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerCreateRequest_Hostname() { + return (EAttribute)dockerCreateRequestEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerCreateRequest_Cmd() { + return (EAttribute)dockerCreateRequestEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getDockerProcess() { + return dockerProcessEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerProcess_User() { + return (EAttribute)dockerProcessEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerProcess_Pid() { + return (EAttribute)dockerProcessEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerProcess_Cpu() { + return (EAttribute)dockerProcessEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerProcess_Mem() { + return (EAttribute)dockerProcessEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerProcess_Vsz() { + return (EAttribute)dockerProcessEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerProcess_Rss() { + return (EAttribute)dockerProcessEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerProcess_Tty() { + return (EAttribute)dockerProcessEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerProcess_Stat() { + return (EAttribute)dockerProcessEClass.getEStructuralFeatures().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerProcess_Start() { + return (EAttribute)dockerProcessEClass.getEStructuralFeatures().get(8); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerProcess_TimeElapsed() { + return (EAttribute)dockerProcessEClass.getEStructuralFeatures().get(9); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerProcess_Command() { + return (EAttribute)dockerProcessEClass.getEStructuralFeatures().get(10); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getDockerContainerStats() { + return dockerContainerStatsEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getDockerContainerStats_Networks() { + return (EReference)dockerContainerStatsEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getDockerContainerStats_Memory() { + return (EReference)dockerContainerStatsEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getDockerContainerStats_Cpu() { + return (EReference)dockerContainerStatsEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDockerContainerStats_LastRead() { + return (EAttribute)dockerContainerStatsEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getContainerNetworkStats() { + return containerNetworkStatsEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerNetworkStats_Intf() { + return (EAttribute)containerNetworkStatsEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerNetworkStats_Rx_bytes() { + return (EAttribute)containerNetworkStatsEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerNetworkStats_Rx_dropped() { + return (EAttribute)containerNetworkStatsEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerNetworkStats_Rx_errors() { + return (EAttribute)containerNetworkStatsEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerNetworkStats_Rx_packets() { + return (EAttribute)containerNetworkStatsEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerNetworkStats_Tx_bytes() { + return (EAttribute)containerNetworkStatsEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerNetworkStats_Tx_dropped() { + return (EAttribute)containerNetworkStatsEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerNetworkStats_Tx_errors() { + return (EAttribute)containerNetworkStatsEClass.getEStructuralFeatures().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerNetworkStats_Tx_packets() { + return (EAttribute)containerNetworkStatsEClass.getEStructuralFeatures().get(8); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getContainerMemoryStats() { + return containerMemoryStatsEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerMemoryStats_Total_pgmajfault() { + return (EAttribute)containerMemoryStatsEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerMemoryStats_Cache() { + return (EAttribute)containerMemoryStatsEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerMemoryStats_Mapped_file() { + return (EAttribute)containerMemoryStatsEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerMemoryStats_Total_inactive_file() { + return (EAttribute)containerMemoryStatsEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerMemoryStats_Pgpgout() { + return (EAttribute)containerMemoryStatsEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerMemoryStats_Rss() { + return (EAttribute)containerMemoryStatsEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerMemoryStats_Total_mapped_file() { + return (EAttribute)containerMemoryStatsEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerMemoryStats_Writeback() { + return (EAttribute)containerMemoryStatsEClass.getEStructuralFeatures().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerMemoryStats_Unevictable() { + return (EAttribute)containerMemoryStatsEClass.getEStructuralFeatures().get(8); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerMemoryStats_Pgpgin() { + return (EAttribute)containerMemoryStatsEClass.getEStructuralFeatures().get(9); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerMemoryStats_Total_unevictable() { + return (EAttribute)containerMemoryStatsEClass.getEStructuralFeatures().get(10); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerMemoryStats_Pgmajfault() { + return (EAttribute)containerMemoryStatsEClass.getEStructuralFeatures().get(11); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerMemoryStats_Total_rss() { + return (EAttribute)containerMemoryStatsEClass.getEStructuralFeatures().get(12); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerMemoryStats_Total_rss_huge() { + return (EAttribute)containerMemoryStatsEClass.getEStructuralFeatures().get(13); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerMemoryStats_Total_writeback() { + return (EAttribute)containerMemoryStatsEClass.getEStructuralFeatures().get(14); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerMemoryStats_Total_inactive_anon() { + return (EAttribute)containerMemoryStatsEClass.getEStructuralFeatures().get(15); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerMemoryStats_Rss_huge() { + return (EAttribute)containerMemoryStatsEClass.getEStructuralFeatures().get(16); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerMemoryStats_Hierarchical_memory_limit() { + return (EAttribute)containerMemoryStatsEClass.getEStructuralFeatures().get(17); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerMemoryStats_Total_pgfault() { + return (EAttribute)containerMemoryStatsEClass.getEStructuralFeatures().get(18); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerMemoryStats_Total_active_file() { + return (EAttribute)containerMemoryStatsEClass.getEStructuralFeatures().get(19); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerMemoryStats_Active_anon() { + return (EAttribute)containerMemoryStatsEClass.getEStructuralFeatures().get(20); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerMemoryStats_Total_active_anon() { + return (EAttribute)containerMemoryStatsEClass.getEStructuralFeatures().get(21); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerMemoryStats_Total_pgpgout() { + return (EAttribute)containerMemoryStatsEClass.getEStructuralFeatures().get(22); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerMemoryStats_Total_cache() { + return (EAttribute)containerMemoryStatsEClass.getEStructuralFeatures().get(23); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerMemoryStats_Inactive_anon() { + return (EAttribute)containerMemoryStatsEClass.getEStructuralFeatures().get(24); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerMemoryStats_Active_file() { + return (EAttribute)containerMemoryStatsEClass.getEStructuralFeatures().get(25); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerMemoryStats_Pgfault() { + return (EAttribute)containerMemoryStatsEClass.getEStructuralFeatures().get(26); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerMemoryStats_Inactive_file() { + return (EAttribute)containerMemoryStatsEClass.getEStructuralFeatures().get(27); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerMemoryStats_Total_pgpgin() { + return (EAttribute)containerMemoryStatsEClass.getEStructuralFeatures().get(28); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getContainerMemoryUsage() { + return containerMemoryUsageEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getContainerMemoryUsage_Memstats() { + return (EReference)containerMemoryUsageEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerMemoryUsage_Max_usage() { + return (EAttribute)containerMemoryUsageEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerMemoryUsage_Usage() { + return (EAttribute)containerMemoryUsageEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerMemoryUsage_Failcnt() { + return (EAttribute)containerMemoryUsageEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerMemoryUsage_Limit() { + return (EAttribute)containerMemoryUsageEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getContainerCpuUsage() { + return containerCpuUsageEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerCpuUsage_Percpu_usage() { + return (EAttribute)containerCpuUsageEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerCpuUsage_Usage_in_usermode() { + return (EAttribute)containerCpuUsageEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerCpuUsage_Total_usage() { + return (EAttribute)containerCpuUsageEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerCpuUsage_User_in_kernelmode() { + return (EAttribute)containerCpuUsageEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getContainerCpuStats() { + return containerCpuStatsEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getContainerCpuStats_Cpu_usage() { + return (EReference)containerCpuStatsEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getContainerCpuStats_System_cpu_usage() { + return (EAttribute)containerCpuStatsEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DockerFactory getDockerFactory() { + return (DockerFactory)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 + dockerAdaptorEClass = createEClass(DOCKER_ADAPTOR); + createEReference(dockerAdaptorEClass, DOCKER_ADAPTOR__DOCKER_HOSTS); + + dockerHostEClass = createEClass(DOCKER_HOST); + createEAttribute(dockerHostEClass, DOCKER_HOST__URL); + createEAttribute(dockerHostEClass, DOCKER_HOST__POLLING_FREQUENCY); + createEAttribute(dockerHostEClass, DOCKER_HOST__REMOTE); + createEReference(dockerHostEClass, DOCKER_HOST__IMAGES); + createEReference(dockerHostEClass, DOCKER_HOST__CONTAINERS); + createEReference(dockerHostEClass, DOCKER_HOST__NETWORKS); + createEOperation(dockerHostEClass, DOCKER_HOST___POLL); + createEOperation(dockerHostEClass, DOCKER_HOST___START_CONTAINER__STRING); + createEOperation(dockerHostEClass, DOCKER_HOST___STOP_CONTAINER__STRING_INT); + createEOperation(dockerHostEClass, DOCKER_HOST___RESTART_CONTAINER__STRING_INT); + createEOperation(dockerHostEClass, DOCKER_HOST___PAUSE_CONTAINER__STRING); + createEOperation(dockerHostEClass, DOCKER_HOST___UNPAUSE_CONTAINER__STRING); + createEOperation(dockerHostEClass, DOCKER_HOST___REMOVE_CONTAINER__STRING_BOOLEAN_BOOLEAN); + createEOperation(dockerHostEClass, DOCKER_HOST___INSPECT_CONTAINER__STRING); + createEOperation(dockerHostEClass, DOCKER_HOST___KILL_CONTAINER__STRING_STRING); + createEOperation(dockerHostEClass, DOCKER_HOST___DOCKER_RUN__STRING); + createEOperation(dockerHostEClass, DOCKER_HOST___DOCKER_RUN_WITH_NAME__STRING_STRING); + createEOperation(dockerHostEClass, DOCKER_HOST___DOCKER_RUN_WITH_OPTIONS__STRING_CONTAINEROPTIONS); + createEOperation(dockerHostEClass, DOCKER_HOST___CONTAINER_STATS__STRING_BOOLEAN); + createEOperation(dockerHostEClass, DOCKER_HOST___CONTAINER_PROCESSES__STRING); + + dockerImageEClass = createEClass(DOCKER_IMAGE); + createEAttribute(dockerImageEClass, DOCKER_IMAGE__ID); + createEAttribute(dockerImageEClass, DOCKER_IMAGE__PARENT_ID); + createEAttribute(dockerImageEClass, DOCKER_IMAGE__REPO_TAGS); + createEAttribute(dockerImageEClass, DOCKER_IMAGE__REPO_DIGESTS); + createEAttribute(dockerImageEClass, DOCKER_IMAGE__DOCKER_CREATED); + createEAttribute(dockerImageEClass, DOCKER_IMAGE__SIZE); + createEAttribute(dockerImageEClass, DOCKER_IMAGE__VIRTUAL_SIZE); + createEAttribute(dockerImageEClass, DOCKER_IMAGE__LABELS); + + dockerContainerEClass = createEClass(DOCKER_CONTAINER); + createEAttribute(dockerContainerEClass, DOCKER_CONTAINER__ID); + createEAttribute(dockerContainerEClass, DOCKER_CONTAINER__NAMES); + createEAttribute(dockerContainerEClass, DOCKER_CONTAINER__IMAGE); + createEAttribute(dockerContainerEClass, DOCKER_CONTAINER__IMAGE_ID); + createEAttribute(dockerContainerEClass, DOCKER_CONTAINER__COMMAND); + createEAttribute(dockerContainerEClass, DOCKER_CONTAINER__DOCKER_CREATED); + createEReference(dockerContainerEClass, DOCKER_CONTAINER__PORTS); + createEReference(dockerContainerEClass, DOCKER_CONTAINER__LABELS); + createEAttribute(dockerContainerEClass, DOCKER_CONTAINER__STATUS); + createEReference(dockerContainerEClass, DOCKER_CONTAINER__HOST_CONFIG); + createEReference(dockerContainerEClass, DOCKER_CONTAINER__PROCESSES); + createEReference(dockerContainerEClass, DOCKER_CONTAINER__MOUNTS); + createEReference(dockerContainerEClass, DOCKER_CONTAINER__STATS); + createEReference(dockerContainerEClass, DOCKER_CONTAINER__EVENTS); + + dockerPortEClass = createEClass(DOCKER_PORT); + createEAttribute(dockerPortEClass, DOCKER_PORT__PRIVATE_PORT); + createEAttribute(dockerPortEClass, DOCKER_PORT__PUBLIC_PORT); + createEAttribute(dockerPortEClass, DOCKER_PORT__TYPE); + + dockerKeyPairEClass = createEClass(DOCKER_KEY_PAIR); + createEAttribute(dockerKeyPairEClass, DOCKER_KEY_PAIR__NAME); + createEAttribute(dockerKeyPairEClass, DOCKER_KEY_PAIR__VALUE); + + dockerMountEClass = createEClass(DOCKER_MOUNT); + createEAttribute(dockerMountEClass, DOCKER_MOUNT__SOURCE); + createEAttribute(dockerMountEClass, DOCKER_MOUNT__DESTINATION); + createEAttribute(dockerMountEClass, DOCKER_MOUNT__MODE); + createEAttribute(dockerMountEClass, DOCKER_MOUNT__RW); + createEAttribute(dockerMountEClass, DOCKER_MOUNT__PROPAGATION); + + containerOptionsEClass = createEClass(CONTAINER_OPTIONS); + createEAttribute(containerOptionsEClass, CONTAINER_OPTIONS__IMAGE_NM); + createEAttribute(containerOptionsEClass, CONTAINER_OPTIONS__ENV); + createEAttribute(containerOptionsEClass, CONTAINER_OPTIONS__VOLUMES); + createEAttribute(containerOptionsEClass, CONTAINER_OPTIONS__LINKS); + createEAttribute(containerOptionsEClass, CONTAINER_OPTIONS__SET_CONTAINER_NAME); + createEAttribute(containerOptionsEClass, CONTAINER_OPTIONS__PUBLISH_ALL_PORTS); + createEReference(containerOptionsEClass, CONTAINER_OPTIONS__PORT_BINDINGS); + createEReference(containerOptionsEClass, CONTAINER_OPTIONS__AUTO_RESTART); + + containerRestartPolicyEClass = createEClass(CONTAINER_RESTART_POLICY); + createEAttribute(containerRestartPolicyEClass, CONTAINER_RESTART_POLICY__NM); + createEAttribute(containerRestartPolicyEClass, CONTAINER_RESTART_POLICY__MAX_RETRY_CNT); + + containerPortBindingsEClass = createEClass(CONTAINER_PORT_BINDINGS); + createEAttribute(containerPortBindingsEClass, CONTAINER_PORT_BINDINGS__CONTAINER_PORT); + createEAttribute(containerPortBindingsEClass, CONTAINER_PORT_BINDINGS__PROTOCOL); + createEAttribute(containerPortBindingsEClass, CONTAINER_PORT_BINDINGS__VM_PORT); + + dockerNetworkEClass = createEClass(DOCKER_NETWORK); + createEAttribute(dockerNetworkEClass, DOCKER_NETWORK__ID); + createEAttribute(dockerNetworkEClass, DOCKER_NETWORK__SCOPE); + createEAttribute(dockerNetworkEClass, DOCKER_NETWORK__DRIVER); + createEReference(dockerNetworkEClass, DOCKER_NETWORK__IPAM); + createEReference(dockerNetworkEClass, DOCKER_NETWORK__CONTAINERS); + createEReference(dockerNetworkEClass, DOCKER_NETWORK__OPTIONS); + + dockerIpamEClass = createEClass(DOCKER_IPAM); + createEAttribute(dockerIpamEClass, DOCKER_IPAM__DRIVER); + createEReference(dockerIpamEClass, DOCKER_IPAM__CONFIG); + + dockerIpamConfigEClass = createEClass(DOCKER_IPAM_CONFIG); + createEAttribute(dockerIpamConfigEClass, DOCKER_IPAM_CONFIG__SUBNET); + + dockerNetworkContainerEClass = createEClass(DOCKER_NETWORK_CONTAINER); + createEAttribute(dockerNetworkContainerEClass, DOCKER_NETWORK_CONTAINER__ID); + createEAttribute(dockerNetworkContainerEClass, DOCKER_NETWORK_CONTAINER__IPV4_ADDRESS); + createEAttribute(dockerNetworkContainerEClass, DOCKER_NETWORK_CONTAINER__IPV6_ADDRESS); + createEAttribute(dockerNetworkContainerEClass, DOCKER_NETWORK_CONTAINER__ENDPOINT_ID); + createEAttribute(dockerNetworkContainerEClass, DOCKER_NETWORK_CONTAINER__MAC_ADDRESS); + + dockerEventsEClass = createEClass(DOCKER_EVENTS); + createEAttribute(dockerEventsEClass, DOCKER_EVENTS__STATUS); + createEAttribute(dockerEventsEClass, DOCKER_EVENTS__ID); + createEAttribute(dockerEventsEClass, DOCKER_EVENTS__TYPE); + createEAttribute(dockerEventsEClass, DOCKER_EVENTS__ACTION); + createEReference(dockerEventsEClass, DOCKER_EVENTS__ACTOR); + createEAttribute(dockerEventsEClass, DOCKER_EVENTS__TIME); + createEAttribute(dockerEventsEClass, DOCKER_EVENTS__TIMENANO); + + dockerActorEClass = createEClass(DOCKER_ACTOR); + createEAttribute(dockerActorEClass, DOCKER_ACTOR__ID); + createEReference(dockerActorEClass, DOCKER_ACTOR__ATTRIBUTES); + + dockerActorAttributesEClass = createEClass(DOCKER_ACTOR_ATTRIBUTES); + createEAttribute(dockerActorAttributesEClass, DOCKER_ACTOR_ATTRIBUTES__NAME); + + dockerCreateRequestEClass = createEClass(DOCKER_CREATE_REQUEST); + createEAttribute(dockerCreateRequestEClass, DOCKER_CREATE_REQUEST__HOSTNAME); + createEAttribute(dockerCreateRequestEClass, DOCKER_CREATE_REQUEST__CMD); + + dockerProcessEClass = createEClass(DOCKER_PROCESS); + createEAttribute(dockerProcessEClass, DOCKER_PROCESS__USER); + createEAttribute(dockerProcessEClass, DOCKER_PROCESS__PID); + createEAttribute(dockerProcessEClass, DOCKER_PROCESS__CPU); + createEAttribute(dockerProcessEClass, DOCKER_PROCESS__MEM); + createEAttribute(dockerProcessEClass, DOCKER_PROCESS__VSZ); + createEAttribute(dockerProcessEClass, DOCKER_PROCESS__RSS); + createEAttribute(dockerProcessEClass, DOCKER_PROCESS__TTY); + createEAttribute(dockerProcessEClass, DOCKER_PROCESS__STAT); + createEAttribute(dockerProcessEClass, DOCKER_PROCESS__START); + createEAttribute(dockerProcessEClass, DOCKER_PROCESS__TIME_ELAPSED); + createEAttribute(dockerProcessEClass, DOCKER_PROCESS__COMMAND); + + dockerContainerStatsEClass = createEClass(DOCKER_CONTAINER_STATS); + createEReference(dockerContainerStatsEClass, DOCKER_CONTAINER_STATS__NETWORKS); + createEReference(dockerContainerStatsEClass, DOCKER_CONTAINER_STATS__MEMORY); + createEReference(dockerContainerStatsEClass, DOCKER_CONTAINER_STATS__CPU); + createEAttribute(dockerContainerStatsEClass, DOCKER_CONTAINER_STATS__LAST_READ); + + containerNetworkStatsEClass = createEClass(CONTAINER_NETWORK_STATS); + createEAttribute(containerNetworkStatsEClass, CONTAINER_NETWORK_STATS__INTF); + createEAttribute(containerNetworkStatsEClass, CONTAINER_NETWORK_STATS__RX_BYTES); + createEAttribute(containerNetworkStatsEClass, CONTAINER_NETWORK_STATS__RX_DROPPED); + createEAttribute(containerNetworkStatsEClass, CONTAINER_NETWORK_STATS__RX_ERRORS); + createEAttribute(containerNetworkStatsEClass, CONTAINER_NETWORK_STATS__RX_PACKETS); + createEAttribute(containerNetworkStatsEClass, CONTAINER_NETWORK_STATS__TX_BYTES); + createEAttribute(containerNetworkStatsEClass, CONTAINER_NETWORK_STATS__TX_DROPPED); + createEAttribute(containerNetworkStatsEClass, CONTAINER_NETWORK_STATS__TX_ERRORS); + createEAttribute(containerNetworkStatsEClass, CONTAINER_NETWORK_STATS__TX_PACKETS); + + containerMemoryStatsEClass = createEClass(CONTAINER_MEMORY_STATS); + createEAttribute(containerMemoryStatsEClass, CONTAINER_MEMORY_STATS__TOTAL_PGMAJFAULT); + createEAttribute(containerMemoryStatsEClass, CONTAINER_MEMORY_STATS__CACHE); + createEAttribute(containerMemoryStatsEClass, CONTAINER_MEMORY_STATS__MAPPED_FILE); + createEAttribute(containerMemoryStatsEClass, CONTAINER_MEMORY_STATS__TOTAL_INACTIVE_FILE); + createEAttribute(containerMemoryStatsEClass, CONTAINER_MEMORY_STATS__PGPGOUT); + createEAttribute(containerMemoryStatsEClass, CONTAINER_MEMORY_STATS__RSS); + createEAttribute(containerMemoryStatsEClass, CONTAINER_MEMORY_STATS__TOTAL_MAPPED_FILE); + createEAttribute(containerMemoryStatsEClass, CONTAINER_MEMORY_STATS__WRITEBACK); + createEAttribute(containerMemoryStatsEClass, CONTAINER_MEMORY_STATS__UNEVICTABLE); + createEAttribute(containerMemoryStatsEClass, CONTAINER_MEMORY_STATS__PGPGIN); + createEAttribute(containerMemoryStatsEClass, CONTAINER_MEMORY_STATS__TOTAL_UNEVICTABLE); + createEAttribute(containerMemoryStatsEClass, CONTAINER_MEMORY_STATS__PGMAJFAULT); + createEAttribute(containerMemoryStatsEClass, CONTAINER_MEMORY_STATS__TOTAL_RSS); + createEAttribute(containerMemoryStatsEClass, CONTAINER_MEMORY_STATS__TOTAL_RSS_HUGE); + createEAttribute(containerMemoryStatsEClass, CONTAINER_MEMORY_STATS__TOTAL_WRITEBACK); + createEAttribute(containerMemoryStatsEClass, CONTAINER_MEMORY_STATS__TOTAL_INACTIVE_ANON); + createEAttribute(containerMemoryStatsEClass, CONTAINER_MEMORY_STATS__RSS_HUGE); + createEAttribute(containerMemoryStatsEClass, CONTAINER_MEMORY_STATS__HIERARCHICAL_MEMORY_LIMIT); + createEAttribute(containerMemoryStatsEClass, CONTAINER_MEMORY_STATS__TOTAL_PGFAULT); + createEAttribute(containerMemoryStatsEClass, CONTAINER_MEMORY_STATS__TOTAL_ACTIVE_FILE); + createEAttribute(containerMemoryStatsEClass, CONTAINER_MEMORY_STATS__ACTIVE_ANON); + createEAttribute(containerMemoryStatsEClass, CONTAINER_MEMORY_STATS__TOTAL_ACTIVE_ANON); + createEAttribute(containerMemoryStatsEClass, CONTAINER_MEMORY_STATS__TOTAL_PGPGOUT); + createEAttribute(containerMemoryStatsEClass, CONTAINER_MEMORY_STATS__TOTAL_CACHE); + createEAttribute(containerMemoryStatsEClass, CONTAINER_MEMORY_STATS__INACTIVE_ANON); + createEAttribute(containerMemoryStatsEClass, CONTAINER_MEMORY_STATS__ACTIVE_FILE); + createEAttribute(containerMemoryStatsEClass, CONTAINER_MEMORY_STATS__PGFAULT); + createEAttribute(containerMemoryStatsEClass, CONTAINER_MEMORY_STATS__INACTIVE_FILE); + createEAttribute(containerMemoryStatsEClass, CONTAINER_MEMORY_STATS__TOTAL_PGPGIN); + + containerMemoryUsageEClass = createEClass(CONTAINER_MEMORY_USAGE); + createEReference(containerMemoryUsageEClass, CONTAINER_MEMORY_USAGE__MEMSTATS); + createEAttribute(containerMemoryUsageEClass, CONTAINER_MEMORY_USAGE__MAX_USAGE); + createEAttribute(containerMemoryUsageEClass, CONTAINER_MEMORY_USAGE__USAGE); + createEAttribute(containerMemoryUsageEClass, CONTAINER_MEMORY_USAGE__FAILCNT); + createEAttribute(containerMemoryUsageEClass, CONTAINER_MEMORY_USAGE__LIMIT); + + containerCpuUsageEClass = createEClass(CONTAINER_CPU_USAGE); + createEAttribute(containerCpuUsageEClass, CONTAINER_CPU_USAGE__PERCPU_USAGE); + createEAttribute(containerCpuUsageEClass, CONTAINER_CPU_USAGE__USAGE_IN_USERMODE); + createEAttribute(containerCpuUsageEClass, CONTAINER_CPU_USAGE__TOTAL_USAGE); + createEAttribute(containerCpuUsageEClass, CONTAINER_CPU_USAGE__USER_IN_KERNELMODE); + + containerCpuStatsEClass = createEClass(CONTAINER_CPU_STATS); + createEReference(containerCpuStatsEClass, CONTAINER_CPU_STATS__CPU_USAGE); + createEAttribute(containerCpuStatsEClass, CONTAINER_CPU_STATS__SYSTEM_CPU_USAGE); + } + + /** + * <!-- 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 + CorePackage theCorePackage = (CorePackage)EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI); + EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + dockerHostEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + dockerImageEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + dockerContainerEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + containerOptionsEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + containerPortBindingsEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + dockerNetworkEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + dockerEventsEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + dockerProcessEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + dockerContainerStatsEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + + // Initialize classes, features, and operations; add parameters + initEClass(dockerAdaptorEClass, DockerAdaptor.class, "DockerAdaptor", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getDockerAdaptor_DockerHosts(), this.getDockerHost(), null, "dockerHosts", null, 0, -1, DockerAdaptor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(dockerHostEClass, DockerHost.class, "DockerHost", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getDockerHost_Url(), theEcorePackage.getEString(), "url", null, 0, 1, DockerHost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDockerHost_PollingFrequency(), theEcorePackage.getELong(), "pollingFrequency", "30000", 0, 1, DockerHost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDockerHost_Remote(), theEcorePackage.getEBoolean(), "remote", "false", 0, 1, DockerHost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDockerHost_Images(), this.getDockerImage(), null, "images", null, 0, -1, DockerHost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDockerHost_Containers(), this.getDockerContainer(), null, "containers", null, 0, -1, DockerHost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDockerHost_Networks(), this.getDockerNetwork(), null, "networks", null, 0, -1, DockerHost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEOperation(getDockerHost__Poll(), null, "poll", 0, 1, !IS_UNIQUE, IS_ORDERED); + + EOperation op = initEOperation(getDockerHost__StartContainer__String(), null, "startContainer", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "name", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getDockerHost__StopContainer__String_int(), null, "stopContainer", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "name", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEInt(), "seconds", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getDockerHost__RestartContainer__String_int(), null, "restartContainer", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "name", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEInt(), "seconds", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getDockerHost__PauseContainer__String(), null, "pauseContainer", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "name", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getDockerHost__UnpauseContainer__String(), null, "unpauseContainer", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "name", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getDockerHost__RemoveContainer__String_boolean_boolean(), null, "removeContainer", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "name", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEBoolean(), "remove", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEBoolean(), "force", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getDockerHost__InspectContainer__String(), null, "inspectContainer", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "name", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getDockerHost__KillContainer__String_String(), null, "killContainer", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "name", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "sigint", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getDockerHost__DockerRun__String(), null, "dockerRun", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "image", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getDockerHost__DockerRunWithName__String_String(), null, "dockerRunWithName", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "image", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "name", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getDockerHost__DockerRunWithOptions__String_ContainerOptions(), null, "dockerRunWithOptions", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "image", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, this.getContainerOptions(), "opts", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getDockerHost__ContainerStats__String_boolean(), null, "containerStats", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "name", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEBoolean(), "stream", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getDockerHost__ContainerProcesses__String(), null, "containerProcesses", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "name", 0, 1, !IS_UNIQUE, IS_ORDERED); + + initEClass(dockerImageEClass, DockerImage.class, "DockerImage", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getDockerImage_Id(), theEcorePackage.getEString(), "id", null, 0, 1, DockerImage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDockerImage_ParentId(), theEcorePackage.getEString(), "parentId", null, 0, 1, DockerImage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDockerImage_RepoTags(), theEcorePackage.getEString(), "repoTags", null, 0, -1, DockerImage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDockerImage_RepoDigests(), theEcorePackage.getEString(), "repoDigests", null, 0, -1, DockerImage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDockerImage_DockerCreated(), theEcorePackage.getEDate(), "dockerCreated", null, 0, 1, DockerImage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDockerImage_Size(), theEcorePackage.getELongObject(), "size", null, 0, 1, DockerImage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDockerImage_VirtualSize(), theEcorePackage.getELongObject(), "virtualSize", null, 0, 1, DockerImage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDockerImage_Labels(), theEcorePackage.getEString(), "labels", null, 0, -1, DockerImage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(dockerContainerEClass, DockerContainer.class, "DockerContainer", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getDockerContainer_Id(), theEcorePackage.getEString(), "id", null, 0, 1, DockerContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDockerContainer_Names(), theEcorePackage.getEString(), "names", null, 0, -1, DockerContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDockerContainer_Image(), theEcorePackage.getEString(), "image", null, 0, 1, DockerContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDockerContainer_ImageID(), theEcorePackage.getEString(), "imageID", null, 0, 1, DockerContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDockerContainer_Command(), theEcorePackage.getEString(), "command", null, 0, 1, DockerContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDockerContainer_DockerCreated(), theEcorePackage.getEString(), "dockerCreated", null, 0, 1, DockerContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDockerContainer_Ports(), this.getDockerPort(), null, "ports", null, 0, -1, DockerContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDockerContainer_Labels(), this.getDockerKeyPair(), null, "labels", null, 0, -1, DockerContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDockerContainer_Status(), theEcorePackage.getEString(), "status", null, 0, 1, DockerContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDockerContainer_HostConfig(), this.getDockerKeyPair(), null, "hostConfig", null, 0, -1, DockerContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDockerContainer_Processes(), this.getDockerProcess(), null, "processes", null, 0, -1, DockerContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDockerContainer_Mounts(), this.getDockerMount(), null, "mounts", null, 0, -1, DockerContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDockerContainer_Stats(), this.getDockerContainerStats(), null, "stats", null, 0, 1, DockerContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDockerContainer_Events(), this.getDockerEvents(), null, "events", null, 0, -1, DockerContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(dockerPortEClass, DockerPort.class, "DockerPort", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getDockerPort_PrivatePort(), theEcorePackage.getEInt(), "privatePort", null, 0, 1, DockerPort.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDockerPort_PublicPort(), theEcorePackage.getEInt(), "publicPort", null, 0, 1, DockerPort.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDockerPort_Type(), theEcorePackage.getEString(), "type", null, 0, 1, DockerPort.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(dockerKeyPairEClass, DockerKeyPair.class, "DockerKeyPair", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getDockerKeyPair_Name(), theEcorePackage.getEString(), "name", null, 0, 1, DockerKeyPair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDockerKeyPair_Value(), theEcorePackage.getEString(), "value", null, 0, 1, DockerKeyPair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(dockerMountEClass, DockerMount.class, "DockerMount", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getDockerMount_Source(), theEcorePackage.getEString(), "source", null, 0, 1, DockerMount.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDockerMount_Destination(), theEcorePackage.getEString(), "destination", null, 0, 1, DockerMount.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDockerMount_Mode(), theEcorePackage.getEString(), "mode", null, 0, 1, DockerMount.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDockerMount_RW(), theEcorePackage.getEBooleanObject(), "rW", null, 0, 1, DockerMount.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDockerMount_Propagation(), theEcorePackage.getEString(), "propagation", null, 0, 1, DockerMount.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(containerOptionsEClass, ContainerOptions.class, "ContainerOptions", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getContainerOptions_ImageNm(), theEcorePackage.getEString(), "imageNm", null, 0, 1, ContainerOptions.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerOptions_Env(), theEcorePackage.getEString(), "env", null, 0, -1, ContainerOptions.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerOptions_Volumes(), theEcorePackage.getEString(), "volumes", null, 0, -1, ContainerOptions.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerOptions_Links(), theEcorePackage.getEString(), "links", null, 0, -1, ContainerOptions.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerOptions_SetContainerName(), theEcorePackage.getEBoolean(), "setContainerName", null, 0, 1, ContainerOptions.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerOptions_PublishAllPorts(), theEcorePackage.getEBoolean(), "publishAllPorts", null, 0, 1, ContainerOptions.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getContainerOptions_PortBindings(), this.getContainerPortBindings(), null, "portBindings", null, 0, -1, ContainerOptions.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getContainerOptions_AutoRestart(), this.getContainerRestartPolicy(), null, "autoRestart", null, 0, 1, ContainerOptions.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(containerRestartPolicyEClass, ContainerRestartPolicy.class, "ContainerRestartPolicy", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getContainerRestartPolicy_Nm(), theEcorePackage.getEString(), "nm", null, 0, 1, ContainerRestartPolicy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerRestartPolicy_MaxRetryCnt(), theEcorePackage.getEInt(), "maxRetryCnt", null, 0, 1, ContainerRestartPolicy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(containerPortBindingsEClass, ContainerPortBindings.class, "ContainerPortBindings", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getContainerPortBindings_ContainerPort(), theEcorePackage.getEInt(), "containerPort", null, 0, 1, ContainerPortBindings.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerPortBindings_Protocol(), theEcorePackage.getEString(), "protocol", null, 0, 1, ContainerPortBindings.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerPortBindings_VmPort(), theEcorePackage.getEInt(), "vmPort", null, 0, 1, ContainerPortBindings.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(dockerNetworkEClass, DockerNetwork.class, "DockerNetwork", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getDockerNetwork_Id(), theEcorePackage.getEString(), "id", null, 0, 1, DockerNetwork.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDockerNetwork_Scope(), theEcorePackage.getEString(), "scope", null, 0, 1, DockerNetwork.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDockerNetwork_Driver(), theEcorePackage.getEString(), "driver", null, 0, 1, DockerNetwork.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDockerNetwork_IPAM(), this.getDockerIpam(), null, "iPAM", null, 0, 1, DockerNetwork.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDockerNetwork_Containers(), this.getDockerNetworkContainer(), null, "containers", null, 0, -1, DockerNetwork.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDockerNetwork_Options(), this.getDockerKeyPair(), null, "options", null, 0, -1, DockerNetwork.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(dockerIpamEClass, DockerIpam.class, "DockerIpam", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getDockerIpam_Driver(), theEcorePackage.getEString(), "driver", null, 0, 1, DockerIpam.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDockerIpam_Config(), this.getDockerIpamConfig(), null, "config", null, 0, -1, DockerIpam.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(dockerIpamConfigEClass, DockerIpamConfig.class, "DockerIpamConfig", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getDockerIpamConfig_Subnet(), theEcorePackage.getEString(), "subnet", null, 0, 1, DockerIpamConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(dockerNetworkContainerEClass, DockerNetworkContainer.class, "DockerNetworkContainer", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getDockerNetworkContainer_Id(), theEcorePackage.getEString(), "id", null, 0, 1, DockerNetworkContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDockerNetworkContainer_IPv4Address(), theEcorePackage.getEString(), "iPv4Address", null, 0, 1, DockerNetworkContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDockerNetworkContainer_IPv6Address(), theEcorePackage.getEString(), "iPv6Address", null, 0, 1, DockerNetworkContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDockerNetworkContainer_EndpointID(), theEcorePackage.getEString(), "endpointID", null, 0, 1, DockerNetworkContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDockerNetworkContainer_MacAddress(), theEcorePackage.getEString(), "macAddress", null, 0, 1, DockerNetworkContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(dockerEventsEClass, DockerEvents.class, "DockerEvents", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getDockerEvents_Status(), theEcorePackage.getEString(), "status", null, 0, 1, DockerEvents.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDockerEvents_Id(), theEcorePackage.getEString(), "id", null, 0, 1, DockerEvents.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDockerEvents_Type(), theEcorePackage.getEString(), "type", null, 0, 1, DockerEvents.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDockerEvents_Action(), theEcorePackage.getEString(), "action", null, 0, 1, DockerEvents.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDockerEvents_Actor(), this.getDockerActor(), null, "actor", null, 0, 1, DockerEvents.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDockerEvents_Time(), theEcorePackage.getEInt(), "time", null, 0, 1, DockerEvents.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDockerEvents_Timenano(), theEcorePackage.getELong(), "timenano", null, 0, 1, DockerEvents.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(dockerActorEClass, DockerActor.class, "DockerActor", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getDockerActor_Id(), theEcorePackage.getEString(), "id", null, 0, 1, DockerActor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDockerActor_Attributes(), this.getDockerActorAttributes(), null, "attributes", null, 0, 1, DockerActor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(dockerActorAttributesEClass, DockerActorAttributes.class, "DockerActorAttributes", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getDockerActorAttributes_Name(), theEcorePackage.getEString(), "name", null, 0, 1, DockerActorAttributes.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(dockerCreateRequestEClass, DockerCreateRequest.class, "DockerCreateRequest", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getDockerCreateRequest_Hostname(), theEcorePackage.getEString(), "hostname", null, 0, 1, DockerCreateRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDockerCreateRequest_Cmd(), theEcorePackage.getEString(), "cmd", null, 0, -1, DockerCreateRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(dockerProcessEClass, DockerProcess.class, "DockerProcess", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getDockerProcess_User(), theEcorePackage.getEString(), "user", null, 0, 1, DockerProcess.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDockerProcess_Pid(), theEcorePackage.getELong(), "pid", null, 0, 1, DockerProcess.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDockerProcess_Cpu(), theEcorePackage.getEDouble(), "cpu", null, 0, 1, DockerProcess.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDockerProcess_Mem(), theEcorePackage.getEDouble(), "mem", null, 0, 1, DockerProcess.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDockerProcess_Vsz(), theEcorePackage.getELong(), "vsz", null, 0, 1, DockerProcess.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDockerProcess_Rss(), theEcorePackage.getELong(), "rss", null, 0, 1, DockerProcess.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDockerProcess_Tty(), theEcorePackage.getEString(), "tty", null, 0, 1, DockerProcess.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDockerProcess_Stat(), theEcorePackage.getEString(), "stat", null, 0, 1, DockerProcess.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDockerProcess_Start(), theEcorePackage.getEDate(), "start", null, 0, 1, DockerProcess.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDockerProcess_TimeElapsed(), theEcorePackage.getELong(), "timeElapsed", null, 0, 1, DockerProcess.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDockerProcess_Command(), theEcorePackage.getEString(), "command", null, 0, 1, DockerProcess.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(dockerContainerStatsEClass, DockerContainerStats.class, "DockerContainerStats", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getDockerContainerStats_Networks(), this.getContainerNetworkStats(), null, "networks", null, 0, -1, DockerContainerStats.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDockerContainerStats_Memory(), this.getContainerMemoryUsage(), null, "memory", null, 0, 1, DockerContainerStats.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDockerContainerStats_Cpu(), this.getContainerCpuStats(), null, "cpu", null, 0, 1, DockerContainerStats.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDockerContainerStats_LastRead(), theEcorePackage.getEDate(), "lastRead", null, 0, 1, DockerContainerStats.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(containerNetworkStatsEClass, ContainerNetworkStats.class, "ContainerNetworkStats", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getContainerNetworkStats_Intf(), theEcorePackage.getEString(), "intf", null, 0, 1, ContainerNetworkStats.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerNetworkStats_Rx_bytes(), theEcorePackage.getEInt(), "rx_bytes", null, 0, 1, ContainerNetworkStats.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerNetworkStats_Rx_dropped(), theEcorePackage.getEInt(), "rx_dropped", null, 0, 1, ContainerNetworkStats.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerNetworkStats_Rx_errors(), theEcorePackage.getEInt(), "rx_errors", null, 0, 1, ContainerNetworkStats.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerNetworkStats_Rx_packets(), theEcorePackage.getEInt(), "rx_packets", null, 0, 1, ContainerNetworkStats.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerNetworkStats_Tx_bytes(), theEcorePackage.getEInt(), "tx_bytes", null, 0, 1, ContainerNetworkStats.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerNetworkStats_Tx_dropped(), theEcorePackage.getEInt(), "tx_dropped", null, 0, 1, ContainerNetworkStats.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerNetworkStats_Tx_errors(), theEcorePackage.getEInt(), "tx_errors", null, 0, 1, ContainerNetworkStats.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerNetworkStats_Tx_packets(), theEcorePackage.getEInt(), "tx_packets", null, 0, 1, ContainerNetworkStats.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(containerMemoryStatsEClass, ContainerMemoryStats.class, "ContainerMemoryStats", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getContainerMemoryStats_Total_pgmajfault(), theEcorePackage.getEInt(), "total_pgmajfault", null, 0, 1, ContainerMemoryStats.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerMemoryStats_Cache(), theEcorePackage.getEInt(), "cache", null, 0, 1, ContainerMemoryStats.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerMemoryStats_Mapped_file(), theEcorePackage.getEInt(), "mapped_file", null, 0, 1, ContainerMemoryStats.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerMemoryStats_Total_inactive_file(), theEcorePackage.getEInt(), "total_inactive_file", null, 0, 1, ContainerMemoryStats.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerMemoryStats_Pgpgout(), theEcorePackage.getEInt(), "pgpgout", null, 0, 1, ContainerMemoryStats.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerMemoryStats_Rss(), theEcorePackage.getEInt(), "rss", null, 0, 1, ContainerMemoryStats.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerMemoryStats_Total_mapped_file(), theEcorePackage.getEInt(), "total_mapped_file", null, 0, 1, ContainerMemoryStats.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerMemoryStats_Writeback(), theEcorePackage.getEInt(), "writeback", null, 0, 1, ContainerMemoryStats.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerMemoryStats_Unevictable(), theEcorePackage.getEInt(), "unevictable", null, 0, 1, ContainerMemoryStats.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerMemoryStats_Pgpgin(), theEcorePackage.getEInt(), "pgpgin", null, 0, 1, ContainerMemoryStats.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerMemoryStats_Total_unevictable(), theEcorePackage.getEInt(), "total_unevictable", null, 0, 1, ContainerMemoryStats.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerMemoryStats_Pgmajfault(), theEcorePackage.getEInt(), "pgmajfault", null, 0, 1, ContainerMemoryStats.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerMemoryStats_Total_rss(), theEcorePackage.getEInt(), "total_rss", null, 0, 1, ContainerMemoryStats.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerMemoryStats_Total_rss_huge(), theEcorePackage.getEInt(), "total_rss_huge", null, 0, 1, ContainerMemoryStats.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerMemoryStats_Total_writeback(), theEcorePackage.getEInt(), "total_writeback", null, 0, 1, ContainerMemoryStats.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerMemoryStats_Total_inactive_anon(), theEcorePackage.getEInt(), "total_inactive_anon", null, 0, 1, ContainerMemoryStats.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerMemoryStats_Rss_huge(), theEcorePackage.getEInt(), "rss_huge", null, 0, 1, ContainerMemoryStats.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerMemoryStats_Hierarchical_memory_limit(), theEcorePackage.getEInt(), "hierarchical_memory_limit", null, 0, 1, ContainerMemoryStats.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerMemoryStats_Total_pgfault(), theEcorePackage.getEInt(), "total_pgfault", null, 0, 1, ContainerMemoryStats.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerMemoryStats_Total_active_file(), theEcorePackage.getEInt(), "total_active_file", null, 0, 1, ContainerMemoryStats.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerMemoryStats_Active_anon(), theEcorePackage.getEInt(), "active_anon", null, 0, 1, ContainerMemoryStats.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerMemoryStats_Total_active_anon(), theEcorePackage.getEInt(), "total_active_anon", null, 0, 1, ContainerMemoryStats.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerMemoryStats_Total_pgpgout(), theEcorePackage.getEInt(), "total_pgpgout", null, 0, 1, ContainerMemoryStats.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerMemoryStats_Total_cache(), theEcorePackage.getEInt(), "total_cache", null, 0, 1, ContainerMemoryStats.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerMemoryStats_Inactive_anon(), theEcorePackage.getEInt(), "inactive_anon", null, 0, 1, ContainerMemoryStats.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerMemoryStats_Active_file(), theEcorePackage.getEInt(), "active_file", null, 0, 1, ContainerMemoryStats.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerMemoryStats_Pgfault(), theEcorePackage.getEInt(), "pgfault", null, 0, 1, ContainerMemoryStats.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerMemoryStats_Inactive_file(), theEcorePackage.getEInt(), "inactive_file", null, 0, 1, ContainerMemoryStats.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerMemoryStats_Total_pgpgin(), theEcorePackage.getEInt(), "total_pgpgin", null, 0, 1, ContainerMemoryStats.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(containerMemoryUsageEClass, ContainerMemoryUsage.class, "ContainerMemoryUsage", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getContainerMemoryUsage_Memstats(), this.getContainerMemoryStats(), null, "memstats", null, 0, 1, ContainerMemoryUsage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerMemoryUsage_Max_usage(), theEcorePackage.getEInt(), "max_usage", null, 0, 1, ContainerMemoryUsage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerMemoryUsage_Usage(), theEcorePackage.getEInt(), "usage", null, 0, 1, ContainerMemoryUsage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerMemoryUsage_Failcnt(), theEcorePackage.getEInt(), "failcnt", null, 0, 1, ContainerMemoryUsage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerMemoryUsage_Limit(), theEcorePackage.getEInt(), "limit", null, 0, 1, ContainerMemoryUsage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(containerCpuUsageEClass, ContainerCpuUsage.class, "ContainerCpuUsage", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getContainerCpuUsage_Percpu_usage(), theEcorePackage.getELong(), "percpu_usage", null, 0, -1, ContainerCpuUsage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerCpuUsage_Usage_in_usermode(), theEcorePackage.getELong(), "usage_in_usermode", null, 0, 1, ContainerCpuUsage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerCpuUsage_Total_usage(), theEcorePackage.getELong(), "total_usage", null, 0, 1, ContainerCpuUsage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerCpuUsage_User_in_kernelmode(), theEcorePackage.getELong(), "user_in_kernelmode", null, 0, 1, ContainerCpuUsage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(containerCpuStatsEClass, ContainerCpuStats.class, "ContainerCpuStats", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getContainerCpuStats_Cpu_usage(), this.getContainerCpuUsage(), null, "cpu_usage", null, 0, 1, ContainerCpuStats.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainerCpuStats_System_cpu_usage(), theEcorePackage.getELong(), "system_cpu_usage", null, 0, 1, ContainerCpuStats.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + // Create resource + createResource(eNS_URI); + } + +} //DockerPackageImpl diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerPortImpl.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerPortImpl.java new file mode 100644 index 0000000..8b998b7 --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerPortImpl.java @@ -0,0 +1,292 @@ + +/*- + * ============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.ncomp.docker.impl; + +import org.openecomp.ncomp.docker.DockerPackage; +import org.openecomp.ncomp.docker.DockerPort; + +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>Port</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerPortImpl#getPrivatePort <em>Private Port</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerPortImpl#getPublicPort <em>Public Port</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerPortImpl#getType <em>Type</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class DockerPortImpl extends MinimalEObjectImpl.Container implements DockerPort { + /** + * The default value of the '{@link #getPrivatePort() <em>Private Port</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPrivatePort() + * @generated + * @ordered + */ + protected static final int PRIVATE_PORT_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getPrivatePort() <em>Private Port</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPrivatePort() + * @generated + * @ordered + */ + protected int privatePort = PRIVATE_PORT_EDEFAULT; + + /** + * The default value of the '{@link #getPublicPort() <em>Public Port</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPublicPort() + * @generated + * @ordered + */ + protected static final int PUBLIC_PORT_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getPublicPort() <em>Public Port</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPublicPort() + * @generated + * @ordered + */ + protected int publicPort = PUBLIC_PORT_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; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected DockerPortImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return DockerPackage.Literals.DOCKER_PORT; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getPrivatePort() { + return privatePort; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPrivatePort(int newPrivatePort) { + int oldPrivatePort = privatePort; + privatePort = newPrivatePort; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_PORT__PRIVATE_PORT, oldPrivatePort, privatePort)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getPublicPort() { + return publicPort; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPublicPort(int newPublicPort) { + int oldPublicPort = publicPort; + publicPort = newPublicPort; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_PORT__PUBLIC_PORT, oldPublicPort, publicPort)); + } + + /** + * <!-- 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, DockerPackage.DOCKER_PORT__TYPE, oldType, type)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case DockerPackage.DOCKER_PORT__PRIVATE_PORT: + return getPrivatePort(); + case DockerPackage.DOCKER_PORT__PUBLIC_PORT: + return getPublicPort(); + case DockerPackage.DOCKER_PORT__TYPE: + return getType(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case DockerPackage.DOCKER_PORT__PRIVATE_PORT: + setPrivatePort((Integer)newValue); + return; + case DockerPackage.DOCKER_PORT__PUBLIC_PORT: + setPublicPort((Integer)newValue); + return; + case DockerPackage.DOCKER_PORT__TYPE: + setType((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DockerPackage.DOCKER_PORT__PRIVATE_PORT: + setPrivatePort(PRIVATE_PORT_EDEFAULT); + return; + case DockerPackage.DOCKER_PORT__PUBLIC_PORT: + setPublicPort(PUBLIC_PORT_EDEFAULT); + return; + case DockerPackage.DOCKER_PORT__TYPE: + setType(TYPE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DockerPackage.DOCKER_PORT__PRIVATE_PORT: + return privatePort != PRIVATE_PORT_EDEFAULT; + case DockerPackage.DOCKER_PORT__PUBLIC_PORT: + return publicPort != PUBLIC_PORT_EDEFAULT; + case DockerPackage.DOCKER_PORT__TYPE: + return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type); + } + 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(" (privatePort: "); + result.append(privatePort); + result.append(", publicPort: "); + result.append(publicPort); + result.append(", type: "); + result.append(type); + result.append(')'); + return result.toString(); + } + +} //DockerPortImpl diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerProcessImpl.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerProcessImpl.java new file mode 100644 index 0000000..5402c48 --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/DockerProcessImpl.java @@ -0,0 +1,722 @@ + +/*- + * ============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.ncomp.docker.impl; + +import org.openecomp.ncomp.core.impl.NamedEntityImpl; +import org.openecomp.ncomp.docker.DockerPackage; +import org.openecomp.ncomp.docker.DockerProcess; +import java.util.Date; +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>Process</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerProcessImpl#getUser <em>User</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerProcessImpl#getPid <em>Pid</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerProcessImpl#getCpu <em>Cpu</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerProcessImpl#getMem <em>Mem</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerProcessImpl#getVsz <em>Vsz</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerProcessImpl#getRss <em>Rss</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerProcessImpl#getTty <em>Tty</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerProcessImpl#getStat <em>Stat</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerProcessImpl#getStart <em>Start</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerProcessImpl#getTimeElapsed <em>Time Elapsed</em>}</li> + * <li>{@link org.openecomp.ncomp.docker.impl.DockerProcessImpl#getCommand <em>Command</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class DockerProcessImpl extends NamedEntityImpl implements DockerProcess { + /** + * The default value of the '{@link #getUser() <em>User</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUser() + * @generated + * @ordered + */ + protected static final String USER_EDEFAULT = null; + + /** + * The cached value of the '{@link #getUser() <em>User</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUser() + * @generated + * @ordered + */ + protected String user = USER_EDEFAULT; + + /** + * The default value of the '{@link #getPid() <em>Pid</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPid() + * @generated + * @ordered + */ + protected static final long PID_EDEFAULT = 0L; + + /** + * The cached value of the '{@link #getPid() <em>Pid</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPid() + * @generated + * @ordered + */ + protected long pid = PID_EDEFAULT; + + /** + * The default value of the '{@link #getCpu() <em>Cpu</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCpu() + * @generated + * @ordered + */ + protected static final double CPU_EDEFAULT = 0.0; + + /** + * The cached value of the '{@link #getCpu() <em>Cpu</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCpu() + * @generated + * @ordered + */ + protected double cpu = CPU_EDEFAULT; + + /** + * The default value of the '{@link #getMem() <em>Mem</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMem() + * @generated + * @ordered + */ + protected static final double MEM_EDEFAULT = 0.0; + + /** + * The cached value of the '{@link #getMem() <em>Mem</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMem() + * @generated + * @ordered + */ + protected double mem = MEM_EDEFAULT; + + /** + * The default value of the '{@link #getVsz() <em>Vsz</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVsz() + * @generated + * @ordered + */ + protected static final long VSZ_EDEFAULT = 0L; + + /** + * The cached value of the '{@link #getVsz() <em>Vsz</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVsz() + * @generated + * @ordered + */ + protected long vsz = VSZ_EDEFAULT; + + /** + * The default value of the '{@link #getRss() <em>Rss</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRss() + * @generated + * @ordered + */ + protected static final long RSS_EDEFAULT = 0L; + + /** + * The cached value of the '{@link #getRss() <em>Rss</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRss() + * @generated + * @ordered + */ + protected long rss = RSS_EDEFAULT; + + /** + * The default value of the '{@link #getTty() <em>Tty</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTty() + * @generated + * @ordered + */ + protected static final String TTY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTty() <em>Tty</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTty() + * @generated + * @ordered + */ + protected String tty = TTY_EDEFAULT; + + /** + * The default value of the '{@link #getStat() <em>Stat</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getStat() + * @generated + * @ordered + */ + protected static final String STAT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getStat() <em>Stat</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getStat() + * @generated + * @ordered + */ + protected String stat = STAT_EDEFAULT; + + /** + * The default value of the '{@link #getStart() <em>Start</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getStart() + * @generated + * @ordered + */ + protected static final Date START_EDEFAULT = null; + + /** + * The cached value of the '{@link #getStart() <em>Start</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getStart() + * @generated + * @ordered + */ + protected Date start = START_EDEFAULT; + + /** + * The default value of the '{@link #getTimeElapsed() <em>Time Elapsed</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTimeElapsed() + * @generated + * @ordered + */ + protected static final long TIME_ELAPSED_EDEFAULT = 0L; + + /** + * The cached value of the '{@link #getTimeElapsed() <em>Time Elapsed</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTimeElapsed() + * @generated + * @ordered + */ + protected long timeElapsed = TIME_ELAPSED_EDEFAULT; + + /** + * 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 DockerProcessImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return DockerPackage.Literals.DOCKER_PROCESS; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getUser() { + return user; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setUser(String newUser) { + String oldUser = user; + user = newUser; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_PROCESS__USER, oldUser, user)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public long getPid() { + return pid; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPid(long newPid) { + long oldPid = pid; + pid = newPid; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_PROCESS__PID, oldPid, pid)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public double getCpu() { + return cpu; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setCpu(double newCpu) { + double oldCpu = cpu; + cpu = newCpu; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_PROCESS__CPU, oldCpu, cpu)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public double getMem() { + return mem; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setMem(double newMem) { + double oldMem = mem; + mem = newMem; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_PROCESS__MEM, oldMem, mem)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public long getVsz() { + return vsz; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setVsz(long newVsz) { + long oldVsz = vsz; + vsz = newVsz; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_PROCESS__VSZ, oldVsz, vsz)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public long getRss() { + return rss; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setRss(long newRss) { + long oldRss = rss; + rss = newRss; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_PROCESS__RSS, oldRss, rss)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getTty() { + return tty; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTty(String newTty) { + String oldTty = tty; + tty = newTty; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_PROCESS__TTY, oldTty, tty)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getStat() { + return stat; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setStat(String newStat) { + String oldStat = stat; + stat = newStat; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_PROCESS__STAT, oldStat, stat)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Date getStart() { + return start; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setStart(Date newStart) { + Date oldStart = start; + start = newStart; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_PROCESS__START, oldStart, start)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public long getTimeElapsed() { + return timeElapsed; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTimeElapsed(long newTimeElapsed) { + long oldTimeElapsed = timeElapsed; + timeElapsed = newTimeElapsed; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DockerPackage.DOCKER_PROCESS__TIME_ELAPSED, oldTimeElapsed, timeElapsed)); + } + + /** + * <!-- 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, DockerPackage.DOCKER_PROCESS__COMMAND, oldCommand, command)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case DockerPackage.DOCKER_PROCESS__USER: + return getUser(); + case DockerPackage.DOCKER_PROCESS__PID: + return getPid(); + case DockerPackage.DOCKER_PROCESS__CPU: + return getCpu(); + case DockerPackage.DOCKER_PROCESS__MEM: + return getMem(); + case DockerPackage.DOCKER_PROCESS__VSZ: + return getVsz(); + case DockerPackage.DOCKER_PROCESS__RSS: + return getRss(); + case DockerPackage.DOCKER_PROCESS__TTY: + return getTty(); + case DockerPackage.DOCKER_PROCESS__STAT: + return getStat(); + case DockerPackage.DOCKER_PROCESS__START: + return getStart(); + case DockerPackage.DOCKER_PROCESS__TIME_ELAPSED: + return getTimeElapsed(); + case DockerPackage.DOCKER_PROCESS__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 DockerPackage.DOCKER_PROCESS__USER: + setUser((String)newValue); + return; + case DockerPackage.DOCKER_PROCESS__PID: + setPid((Long)newValue); + return; + case DockerPackage.DOCKER_PROCESS__CPU: + setCpu((Double)newValue); + return; + case DockerPackage.DOCKER_PROCESS__MEM: + setMem((Double)newValue); + return; + case DockerPackage.DOCKER_PROCESS__VSZ: + setVsz((Long)newValue); + return; + case DockerPackage.DOCKER_PROCESS__RSS: + setRss((Long)newValue); + return; + case DockerPackage.DOCKER_PROCESS__TTY: + setTty((String)newValue); + return; + case DockerPackage.DOCKER_PROCESS__STAT: + setStat((String)newValue); + return; + case DockerPackage.DOCKER_PROCESS__START: + setStart((Date)newValue); + return; + case DockerPackage.DOCKER_PROCESS__TIME_ELAPSED: + setTimeElapsed((Long)newValue); + return; + case DockerPackage.DOCKER_PROCESS__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 DockerPackage.DOCKER_PROCESS__USER: + setUser(USER_EDEFAULT); + return; + case DockerPackage.DOCKER_PROCESS__PID: + setPid(PID_EDEFAULT); + return; + case DockerPackage.DOCKER_PROCESS__CPU: + setCpu(CPU_EDEFAULT); + return; + case DockerPackage.DOCKER_PROCESS__MEM: + setMem(MEM_EDEFAULT); + return; + case DockerPackage.DOCKER_PROCESS__VSZ: + setVsz(VSZ_EDEFAULT); + return; + case DockerPackage.DOCKER_PROCESS__RSS: + setRss(RSS_EDEFAULT); + return; + case DockerPackage.DOCKER_PROCESS__TTY: + setTty(TTY_EDEFAULT); + return; + case DockerPackage.DOCKER_PROCESS__STAT: + setStat(STAT_EDEFAULT); + return; + case DockerPackage.DOCKER_PROCESS__START: + setStart(START_EDEFAULT); + return; + case DockerPackage.DOCKER_PROCESS__TIME_ELAPSED: + setTimeElapsed(TIME_ELAPSED_EDEFAULT); + return; + case DockerPackage.DOCKER_PROCESS__COMMAND: + setCommand(COMMAND_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DockerPackage.DOCKER_PROCESS__USER: + return USER_EDEFAULT == null ? user != null : !USER_EDEFAULT.equals(user); + case DockerPackage.DOCKER_PROCESS__PID: + return pid != PID_EDEFAULT; + case DockerPackage.DOCKER_PROCESS__CPU: + return cpu != CPU_EDEFAULT; + case DockerPackage.DOCKER_PROCESS__MEM: + return mem != MEM_EDEFAULT; + case DockerPackage.DOCKER_PROCESS__VSZ: + return vsz != VSZ_EDEFAULT; + case DockerPackage.DOCKER_PROCESS__RSS: + return rss != RSS_EDEFAULT; + case DockerPackage.DOCKER_PROCESS__TTY: + return TTY_EDEFAULT == null ? tty != null : !TTY_EDEFAULT.equals(tty); + case DockerPackage.DOCKER_PROCESS__STAT: + return STAT_EDEFAULT == null ? stat != null : !STAT_EDEFAULT.equals(stat); + case DockerPackage.DOCKER_PROCESS__START: + return START_EDEFAULT == null ? start != null : !START_EDEFAULT.equals(start); + case DockerPackage.DOCKER_PROCESS__TIME_ELAPSED: + return timeElapsed != TIME_ELAPSED_EDEFAULT; + case DockerPackage.DOCKER_PROCESS__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(" (user: "); + result.append(user); + result.append(", pid: "); + result.append(pid); + result.append(", cpu: "); + result.append(cpu); + result.append(", mem: "); + result.append(mem); + result.append(", vsz: "); + result.append(vsz); + result.append(", rss: "); + result.append(rss); + result.append(", tty: "); + result.append(tty); + result.append(", stat: "); + result.append(stat); + result.append(", start: "); + result.append(start); + result.append(", timeElapsed: "); + result.append(timeElapsed); + result.append(", command: "); + result.append(command); + result.append(')'); + return result.toString(); + } + +} //DockerProcessImpl diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/util/DockerAdapterFactory.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/util/DockerAdapterFactory.java new file mode 100644 index 0000000..331a97c --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/util/DockerAdapterFactory.java @@ -0,0 +1,592 @@ + +/*- + * ============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.ncomp.docker.util; + +import org.openecomp.ncomp.core.NamedEntity; +import org.openecomp.ncomp.docker.*; + +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.ncomp.docker.DockerPackage + * @generated + */ +public class DockerAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static DockerPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DockerAdapterFactory() { + if (modelPackage == null) { + modelPackage = DockerPackage.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 DockerSwitch<Adapter> modelSwitch = + new DockerSwitch<Adapter>() { + @Override + public Adapter caseDockerAdaptor(DockerAdaptor object) { + return createDockerAdaptorAdapter(); + } + @Override + public Adapter caseDockerHost(DockerHost object) { + return createDockerHostAdapter(); + } + @Override + public Adapter caseDockerImage(DockerImage object) { + return createDockerImageAdapter(); + } + @Override + public Adapter caseDockerContainer(DockerContainer object) { + return createDockerContainerAdapter(); + } + @Override + public Adapter caseDockerPort(DockerPort object) { + return createDockerPortAdapter(); + } + @Override + public Adapter caseDockerKeyPair(DockerKeyPair object) { + return createDockerKeyPairAdapter(); + } + @Override + public Adapter caseDockerMount(DockerMount object) { + return createDockerMountAdapter(); + } + @Override + public Adapter caseContainerOptions(ContainerOptions object) { + return createContainerOptionsAdapter(); + } + @Override + public Adapter caseContainerRestartPolicy(ContainerRestartPolicy object) { + return createContainerRestartPolicyAdapter(); + } + @Override + public Adapter caseContainerPortBindings(ContainerPortBindings object) { + return createContainerPortBindingsAdapter(); + } + @Override + public Adapter caseDockerNetwork(DockerNetwork object) { + return createDockerNetworkAdapter(); + } + @Override + public Adapter caseDockerIpam(DockerIpam object) { + return createDockerIpamAdapter(); + } + @Override + public Adapter caseDockerIpamConfig(DockerIpamConfig object) { + return createDockerIpamConfigAdapter(); + } + @Override + public Adapter caseDockerNetworkContainer(DockerNetworkContainer object) { + return createDockerNetworkContainerAdapter(); + } + @Override + public Adapter caseDockerEvents(DockerEvents object) { + return createDockerEventsAdapter(); + } + @Override + public Adapter caseDockerActor(DockerActor object) { + return createDockerActorAdapter(); + } + @Override + public Adapter caseDockerActorAttributes(DockerActorAttributes object) { + return createDockerActorAttributesAdapter(); + } + @Override + public Adapter caseDockerCreateRequest(DockerCreateRequest object) { + return createDockerCreateRequestAdapter(); + } + @Override + public Adapter caseDockerProcess(DockerProcess object) { + return createDockerProcessAdapter(); + } + @Override + public Adapter caseDockerContainerStats(DockerContainerStats object) { + return createDockerContainerStatsAdapter(); + } + @Override + public Adapter caseContainerNetworkStats(ContainerNetworkStats object) { + return createContainerNetworkStatsAdapter(); + } + @Override + public Adapter caseContainerMemoryStats(ContainerMemoryStats object) { + return createContainerMemoryStatsAdapter(); + } + @Override + public Adapter caseContainerMemoryUsage(ContainerMemoryUsage object) { + return createContainerMemoryUsageAdapter(); + } + @Override + public Adapter caseContainerCpuUsage(ContainerCpuUsage object) { + return createContainerCpuUsageAdapter(); + } + @Override + public Adapter caseContainerCpuStats(ContainerCpuStats object) { + return createContainerCpuStatsAdapter(); + } + @Override + public Adapter caseNamedEntity(NamedEntity object) { + return createNamedEntityAdapter(); + } + @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.ncomp.docker.DockerAdaptor <em>Adaptor</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.docker.DockerAdaptor + * @generated + */ + public Adapter createDockerAdaptorAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.docker.DockerHost <em>Host</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.docker.DockerHost + * @generated + */ + public Adapter createDockerHostAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.docker.DockerImage <em>Image</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.docker.DockerImage + * @generated + */ + public Adapter createDockerImageAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.docker.DockerContainer <em>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.docker.DockerContainer + * @generated + */ + public Adapter createDockerContainerAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.docker.DockerPort <em>Port</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.docker.DockerPort + * @generated + */ + public Adapter createDockerPortAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.docker.DockerKeyPair <em>Key Pair</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.docker.DockerKeyPair + * @generated + */ + public Adapter createDockerKeyPairAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.docker.DockerMount <em>Mount</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.docker.DockerMount + * @generated + */ + public Adapter createDockerMountAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.docker.ContainerOptions <em>Container Options</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.docker.ContainerOptions + * @generated + */ + public Adapter createContainerOptionsAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.docker.ContainerRestartPolicy <em>Container Restart Policy</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.docker.ContainerRestartPolicy + * @generated + */ + public Adapter createContainerRestartPolicyAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.docker.ContainerPortBindings <em>Container Port Bindings</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.docker.ContainerPortBindings + * @generated + */ + public Adapter createContainerPortBindingsAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.docker.DockerNetwork <em>Network</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.docker.DockerNetwork + * @generated + */ + public Adapter createDockerNetworkAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.docker.DockerIpam <em>Ipam</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.docker.DockerIpam + * @generated + */ + public Adapter createDockerIpamAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.docker.DockerIpamConfig <em>Ipam Config</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.docker.DockerIpamConfig + * @generated + */ + public Adapter createDockerIpamConfigAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.docker.DockerNetworkContainer <em>Network 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.docker.DockerNetworkContainer + * @generated + */ + public Adapter createDockerNetworkContainerAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.docker.DockerEvents <em>Events</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.docker.DockerEvents + * @generated + */ + public Adapter createDockerEventsAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.docker.DockerActor <em>Actor</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.docker.DockerActor + * @generated + */ + public Adapter createDockerActorAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.docker.DockerActorAttributes <em>Actor Attributes</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.docker.DockerActorAttributes + * @generated + */ + public Adapter createDockerActorAttributesAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.docker.DockerCreateRequest <em>Create Request</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.docker.DockerCreateRequest + * @generated + */ + public Adapter createDockerCreateRequestAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.docker.DockerProcess <em>Process</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.docker.DockerProcess + * @generated + */ + public Adapter createDockerProcessAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.docker.DockerContainerStats <em>Container Stats</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.docker.DockerContainerStats + * @generated + */ + public Adapter createDockerContainerStatsAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.docker.ContainerNetworkStats <em>Container Network Stats</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.docker.ContainerNetworkStats + * @generated + */ + public Adapter createContainerNetworkStatsAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.docker.ContainerMemoryStats <em>Container Memory Stats</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.docker.ContainerMemoryStats + * @generated + */ + public Adapter createContainerMemoryStatsAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.docker.ContainerMemoryUsage <em>Container Memory Usage</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.docker.ContainerMemoryUsage + * @generated + */ + public Adapter createContainerMemoryUsageAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.docker.ContainerCpuUsage <em>Container Cpu Usage</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.docker.ContainerCpuUsage + * @generated + */ + public Adapter createContainerCpuUsageAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.docker.ContainerCpuStats <em>Container Cpu Stats</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.docker.ContainerCpuStats + * @generated + */ + public Adapter createContainerCpuStatsAdapter() { + 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 the default case. + * <!-- begin-user-doc --> + * This default implementation returns null. + * <!-- end-user-doc --> + * @return the new adapter. + * @generated + */ + public Adapter createEObjectAdapter() { + return null; + } + +} //DockerAdapterFactory diff --git a/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/util/DockerSwitch.java b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/util/DockerSwitch.java new file mode 100644 index 0000000..ca7f0cf --- /dev/null +++ b/ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/util/DockerSwitch.java @@ -0,0 +1,660 @@ + +/*- + * ============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.ncomp.docker.util; + +import org.openecomp.ncomp.core.NamedEntity; +import org.openecomp.ncomp.docker.*; + +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.ncomp.docker.DockerPackage + * @generated + */ +public class DockerSwitch<T> extends Switch<T> { + /** + * The cached model package + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static DockerPackage modelPackage; + + /** + * Creates an instance of the switch. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DockerSwitch() { + if (modelPackage == null) { + modelPackage = DockerPackage.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 DockerPackage.DOCKER_ADAPTOR: { + DockerAdaptor dockerAdaptor = (DockerAdaptor)theEObject; + T result = caseDockerAdaptor(dockerAdaptor); + if (result == null) result = defaultCase(theEObject); + return result; + } + case DockerPackage.DOCKER_HOST: { + DockerHost dockerHost = (DockerHost)theEObject; + T result = caseDockerHost(dockerHost); + if (result == null) result = caseNamedEntity(dockerHost); + if (result == null) result = defaultCase(theEObject); + return result; + } + case DockerPackage.DOCKER_IMAGE: { + DockerImage dockerImage = (DockerImage)theEObject; + T result = caseDockerImage(dockerImage); + if (result == null) result = caseNamedEntity(dockerImage); + if (result == null) result = defaultCase(theEObject); + return result; + } + case DockerPackage.DOCKER_CONTAINER: { + DockerContainer dockerContainer = (DockerContainer)theEObject; + T result = caseDockerContainer(dockerContainer); + if (result == null) result = caseNamedEntity(dockerContainer); + if (result == null) result = defaultCase(theEObject); + return result; + } + case DockerPackage.DOCKER_PORT: { + DockerPort dockerPort = (DockerPort)theEObject; + T result = caseDockerPort(dockerPort); + if (result == null) result = defaultCase(theEObject); + return result; + } + case DockerPackage.DOCKER_KEY_PAIR: { + DockerKeyPair dockerKeyPair = (DockerKeyPair)theEObject; + T result = caseDockerKeyPair(dockerKeyPair); + if (result == null) result = defaultCase(theEObject); + return result; + } + case DockerPackage.DOCKER_MOUNT: { + DockerMount dockerMount = (DockerMount)theEObject; + T result = caseDockerMount(dockerMount); + if (result == null) result = defaultCase(theEObject); + return result; + } + case DockerPackage.CONTAINER_OPTIONS: { + ContainerOptions containerOptions = (ContainerOptions)theEObject; + T result = caseContainerOptions(containerOptions); + if (result == null) result = caseNamedEntity(containerOptions); + if (result == null) result = defaultCase(theEObject); + return result; + } + case DockerPackage.CONTAINER_RESTART_POLICY: { + ContainerRestartPolicy containerRestartPolicy = (ContainerRestartPolicy)theEObject; + T result = caseContainerRestartPolicy(containerRestartPolicy); + if (result == null) result = defaultCase(theEObject); + return result; + } + case DockerPackage.CONTAINER_PORT_BINDINGS: { + ContainerPortBindings containerPortBindings = (ContainerPortBindings)theEObject; + T result = caseContainerPortBindings(containerPortBindings); + if (result == null) result = caseNamedEntity(containerPortBindings); + if (result == null) result = defaultCase(theEObject); + return result; + } + case DockerPackage.DOCKER_NETWORK: { + DockerNetwork dockerNetwork = (DockerNetwork)theEObject; + T result = caseDockerNetwork(dockerNetwork); + if (result == null) result = caseNamedEntity(dockerNetwork); + if (result == null) result = defaultCase(theEObject); + return result; + } + case DockerPackage.DOCKER_IPAM: { + DockerIpam dockerIpam = (DockerIpam)theEObject; + T result = caseDockerIpam(dockerIpam); + if (result == null) result = defaultCase(theEObject); + return result; + } + case DockerPackage.DOCKER_IPAM_CONFIG: { + DockerIpamConfig dockerIpamConfig = (DockerIpamConfig)theEObject; + T result = caseDockerIpamConfig(dockerIpamConfig); + if (result == null) result = defaultCase(theEObject); + return result; + } + case DockerPackage.DOCKER_NETWORK_CONTAINER: { + DockerNetworkContainer dockerNetworkContainer = (DockerNetworkContainer)theEObject; + T result = caseDockerNetworkContainer(dockerNetworkContainer); + if (result == null) result = defaultCase(theEObject); + return result; + } + case DockerPackage.DOCKER_EVENTS: { + DockerEvents dockerEvents = (DockerEvents)theEObject; + T result = caseDockerEvents(dockerEvents); + if (result == null) result = caseNamedEntity(dockerEvents); + if (result == null) result = defaultCase(theEObject); + return result; + } + case DockerPackage.DOCKER_ACTOR: { + DockerActor dockerActor = (DockerActor)theEObject; + T result = caseDockerActor(dockerActor); + if (result == null) result = defaultCase(theEObject); + return result; + } + case DockerPackage.DOCKER_ACTOR_ATTRIBUTES: { + DockerActorAttributes dockerActorAttributes = (DockerActorAttributes)theEObject; + T result = caseDockerActorAttributes(dockerActorAttributes); + if (result == null) result = defaultCase(theEObject); + return result; + } + case DockerPackage.DOCKER_CREATE_REQUEST: { + DockerCreateRequest dockerCreateRequest = (DockerCreateRequest)theEObject; + T result = caseDockerCreateRequest(dockerCreateRequest); + if (result == null) result = defaultCase(theEObject); + return result; + } + case DockerPackage.DOCKER_PROCESS: { + DockerProcess dockerProcess = (DockerProcess)theEObject; + T result = caseDockerProcess(dockerProcess); + if (result == null) result = caseNamedEntity(dockerProcess); + if (result == null) result = defaultCase(theEObject); + return result; + } + case DockerPackage.DOCKER_CONTAINER_STATS: { + DockerContainerStats dockerContainerStats = (DockerContainerStats)theEObject; + T result = caseDockerContainerStats(dockerContainerStats); + if (result == null) result = caseNamedEntity(dockerContainerStats); + if (result == null) result = defaultCase(theEObject); + return result; + } + case DockerPackage.CONTAINER_NETWORK_STATS: { + ContainerNetworkStats containerNetworkStats = (ContainerNetworkStats)theEObject; + T result = caseContainerNetworkStats(containerNetworkStats); + if (result == null) result = defaultCase(theEObject); + return result; + } + case DockerPackage.CONTAINER_MEMORY_STATS: { + ContainerMemoryStats containerMemoryStats = (ContainerMemoryStats)theEObject; + T result = caseContainerMemoryStats(containerMemoryStats); + if (result == null) result = defaultCase(theEObject); + return result; + } + case DockerPackage.CONTAINER_MEMORY_USAGE: { + ContainerMemoryUsage containerMemoryUsage = (ContainerMemoryUsage)theEObject; + T result = caseContainerMemoryUsage(containerMemoryUsage); + if (result == null) result = defaultCase(theEObject); + return result; + } + case DockerPackage.CONTAINER_CPU_USAGE: { + ContainerCpuUsage containerCpuUsage = (ContainerCpuUsage)theEObject; + T result = caseContainerCpuUsage(containerCpuUsage); + if (result == null) result = defaultCase(theEObject); + return result; + } + case DockerPackage.CONTAINER_CPU_STATS: { + ContainerCpuStats containerCpuStats = (ContainerCpuStats)theEObject; + T result = caseContainerCpuStats(containerCpuStats); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Adaptor</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>Adaptor</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDockerAdaptor(DockerAdaptor object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Host</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>Host</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDockerHost(DockerHost object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Image</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>Image</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDockerImage(DockerImage object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>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>Container</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDockerContainer(DockerContainer object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Port</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>Port</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDockerPort(DockerPort object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Key Pair</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>Key Pair</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDockerKeyPair(DockerKeyPair object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Mount</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>Mount</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDockerMount(DockerMount object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Container Options</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>Container Options</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseContainerOptions(ContainerOptions object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Container Restart Policy</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>Container Restart Policy</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseContainerRestartPolicy(ContainerRestartPolicy object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Container Port Bindings</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>Container Port Bindings</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseContainerPortBindings(ContainerPortBindings object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Network</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>Network</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDockerNetwork(DockerNetwork object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Ipam</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>Ipam</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDockerIpam(DockerIpam object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Ipam Config</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>Ipam Config</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDockerIpamConfig(DockerIpamConfig object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Network 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>Network Container</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDockerNetworkContainer(DockerNetworkContainer object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Events</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>Events</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDockerEvents(DockerEvents object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Actor</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>Actor</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDockerActor(DockerActor object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Actor Attributes</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>Actor Attributes</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDockerActorAttributes(DockerActorAttributes object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Create Request</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>Create Request</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDockerCreateRequest(DockerCreateRequest object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Process</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>Process</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDockerProcess(DockerProcess object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Container Stats</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>Container Stats</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDockerContainerStats(DockerContainerStats object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Container Network Stats</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>Container Network Stats</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseContainerNetworkStats(ContainerNetworkStats object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Container Memory Stats</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>Container Memory Stats</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseContainerMemoryStats(ContainerMemoryStats object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Container Memory Usage</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>Container Memory Usage</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseContainerMemoryUsage(ContainerMemoryUsage object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Container Cpu Usage</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>Container Cpu Usage</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseContainerCpuUsage(ContainerCpuUsage object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Container Cpu Stats</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>Container Cpu Stats</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseContainerCpuStats(ContainerCpuStats 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>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; + } + +} //DockerSwitch diff --git a/ncomp-docker-model/src/main/xcore/adaptor.xcore b/ncomp-docker-model/src/main/xcore/adaptor.xcore new file mode 100644 index 0000000..8175410 --- /dev/null +++ b/ncomp-docker-model/src/main/xcore/adaptor.xcore @@ -0,0 +1,577 @@ + +/*- + * ============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="/ncomp-docker-model/src/main/xcore-gen")
+
+
+package org.openecomp.ncomp.docker
+
+import org.openecomp.ncomp.core.NamedEntity
+
+class DockerAdaptor {
+ contains DockerHost[] dockerHosts
+}
+
+class DockerHost extends NamedEntity {
+ String url
+ long pollingFrequency = "30000"
+ boolean remote = "false"
+ contains DockerImage[] images
+ contains DockerContainer[] containers
+ contains DockerNetwork[] networks
+ op void poll()
+ op void startContainer(String name)
+ op void stopContainer(String name, int seconds)
+ op void restartContainer(String name, int seconds)
+ op void pauseContainer(String name)
+ op void unpauseContainer(String name)
+ op void removeContainer(String name,boolean remove,boolean force)
+ op void inspectContainer(String name)
+ op void killContainer(String name,String sigint)
+ op void dockerRun(String image)
+ op void dockerRunWithName(String image, String name)
+ op void dockerRunWithOptions(String image, ContainerOptions opts)
+ op void containerStats(String name, boolean stream)
+ op void containerProcesses(String name)
+}
+
+class DockerImage extends NamedEntity {
+ String ^id // "Id": "89d5d8e8bafb6e279fa70ea444260fa61cc7c5c7d93eff51002005c54a49c918",
+ String parentId // "ParentId": "e24428725dd6f8e354a0c6080570f90d40e9e963c6878144291c6ba9fd39b25f",
+ String[] repoTags //"RepoTags": ["ubuntu:latest"],
+ String[] repoDigests //"RepoDigests": [],
+ Date dockerCreated //"Created": 1449599913,
+ Long size //"Size": 0,
+ Long virtualSize //"VirtualSize": 187920354,
+ String[] labels //"Labels": null
+}
+
+class DockerContainer extends NamedEntity {
+ String ^id // "Id": "d2dc0b5f101cff3f0d015ab92266d8672f57668449710e5d05500baf8b53404e",
+ String[] names // "Names": ["/angry_bardeen"],
+ String image // "Image": "ubuntu",
+ String imageID // "ImageID": "89d5d8e8bafb6e279fa70ea444260fa61cc7c5c7d93eff51002005c54a49c918",
+ String command // "Command": "/bin/bash",
+ String dockerCreated // "Created": 1451671108,
+ contains DockerPort[] ports
+ contains DockerKeyPair[] labels // "Labels": {},
+ String status // "Status": "Up 3 hours",
+ contains DockerKeyPair[] hostConfig // "HostConfig": {"NetworkMode": "default"}
+ contains DockerProcess[] processes // container processes
+ contains DockerMount[] mounts
+ contains DockerContainerStats stats // container statistic snapshots
+ contains DockerEvents[] events // docker events since the last poll
+}
+
+class DockerPort {
+ int privatePort // "PrivatePort": 2222
+ int publicPort // "PublicPort": 3333
+ String ^type // "Type": "tcp"
+}
+
+class DockerKeyPair {
+ String name
+ String value
+}
+
+class DockerMount {
+ String source
+ String destination
+ String mode
+ Boolean rW
+ String propagation
+
+}
+
+//
+// Docker run command takes numerous runtime arguments. At present we only support
+// -v, --volume bind mount a volume
+// --name assign a name to the container
+// -P map any exposed port to an ephmeral port
+// -p cPort[/protocol]:vPort container port:vm port if no proto, defaults to tcp
+//
+class ContainerOptions extends NamedEntity {
+ String imageNm
+ // list of key=value pairs such as MYSQL_USER=nmsadm to pass as runtime environment
+ // arguments for the container
+ String[] env
+ // bind volume syntax "vm_folder:countainer_folder" such as "/var/log:/opt/app/manager/logs" which
+ // means -- mount the VM /var/log directory as /opt/app/manager/logs in the container
+ String[] volumes
+ // Link to another container. link is containerName:containerAlias
+ String[] links
+ boolean setContainerName
+ // map an exposed container port to an ephemeral VM port
+ boolean publishAllPorts
+ // expected format is container_port/protocol:host_port
+ contains ContainerPortBindings[] portBindings
+ contains ContainerRestartPolicy autoRestart
+}
+
+//
+// valid policies
+// no - do not auto restart the container, this is the default docker behavior
+// on-failure - restart only if the container exits with a non-zero status
+// always - always restart. daemon will always try, indefinitely
+// unless-stop - always restart, unless the container has been put into a stopped start
+//
+// maxRetryCnt applies to on-failure policy
+//
+class ContainerRestartPolicy {
+ String nm
+ int maxRetryCnt
+}
+
+class ContainerPortBindings extends NamedEntity {
+ int containerPort
+ String protocol
+ int vmPort
+}
+
+// {
+// "Name": "bridge",
+// "Id": "f2de39df4171b0dc801e8002d1d999b77256983dfc63041c0f34030aa3977566",
+// "Scope": "local",
+// "Driver": "bridge",
+// "IPAM": {
+// "Driver": "default",
+// "Config": [
+// {
+// "Subnet": "172.17.0.0/16"
+// }
+// ]
+// },
+// "Containers": {
+// "39b69226f9d79f5634485fb236a23b2fe4e96a0a94128390a7fbbcc167065867": {
+// "EndpointID": "ed2419a97c1d9954d05b46e462e7002ea552f216e9b136b80a7db8d98b442eda",
+// "MacAddress": "02:42:ac:11:00:02",
+// "IPv4Address": "172.17.0.2/16",
+// "IPv6Address": ""
+// }
+// },
+// "Options": {
+// "com.docker.network.bridge.default_bridge": "true",
+// "com.docker.network.bridge.enable_icc": "true",
+// "com.docker.network.bridge.enable_ip_masquerade": "true",
+// "com.docker.network.bridge.host_binding_ipv4": "0.0.0.0",
+// "com.docker.network.bridge.name": "docker0",
+// "com.docker.network.driver.mtu": "1500"
+// }
+// },
+
+class DockerNetwork extends NamedEntity {
+ String ^id
+ String scope
+ String driver
+ contains DockerIpam iPAM
+ contains DockerNetworkContainer[] containers
+ contains DockerKeyPair[] options
+}
+
+class DockerIpam {
+ String driver
+ contains DockerIpamConfig[] config
+}
+
+class DockerIpamConfig {
+ String subnet
+}
+
+class DockerNetworkContainer {
+ String ^id
+ String iPv4Address
+ String iPv6Address
+ String endpointID
+ String macAddress
+}
+
+class DockerEvents extends NamedEntity {
+ String status
+ String ^id
+ String ^type
+ String action
+ contains DockerActor actor
+ int time
+ long timenano
+}
+
+class DockerActor {
+ String ^id
+ contains DockerActorAttributes attributes
+}
+
+class DockerActorAttributes {
+ String name
+}
+
+//{
+// "Hostname": "",
+// "Domainname": "",
+// "User": "",
+// "AttachStdin": false,
+// "AttachStdout": true,
+// "AttachStderr": true,
+// "Tty": false,
+// "OpenStdin": false,
+// "StdinOnce": false,
+// "Env": [
+// "FOO=bar",
+// "BAZ=quux"
+// ],
+// "Cmd": [
+// "date"
+// ],
+// "Entrypoint": "",
+// "Image": "ubuntu",
+// "Labels": {
+// "com.example.vendor": "Acme",
+// "com.example.license": "GPL",
+// "com.example.version": "1.0"
+// },
+// "Mounts": [
+// {
+// "Source": "/data",
+// "Destination": "/data",
+// "Mode": "ro,Z",
+// "RW": false
+// }
+// ],
+// "WorkingDir": "",
+// "NetworkDisabled": false,
+// "MacAddress": "12:34:56:78:9a:bc",
+// "ExposedPorts": {
+// "22/tcp": {}
+// },
+// "StopSignal": "SIGTERM",
+// "HostConfig": {
+// "Binds": ["/tmp:/tmp"],
+// "Links": ["redis3:redis"],
+// "LxcConf": {"lxc.utsname":"docker"},
+// "Memory": 0,
+// "MemorySwap": 0,
+// "MemoryReservation": 0,
+// "KernelMemory": 0,
+// "CpuShares": 512,
+// "CpuPeriod": 100000,
+// "CpuQuota": 50000,
+// "CpusetCpus": "0,1",
+// "CpusetMems": "0,1",
+// "BlkioWeight": 300,
+// "MemorySwappiness": 60,
+// "OomKillDisable": false,
+// "PortBindings": { "22/tcp": [{ "HostPort": "11022" }] },
+// "PublishAllPorts": false,
+// "Privileged": false,
+// "ReadonlyRootfs": false,
+// "Dns": ["8.8.8.8"],
+// "DnsOptions": [""],
+// "DnsSearch": [""],
+// "ExtraHosts": null,
+// "VolumesFrom": ["parent", "other:ro"],
+// "CapAdd": ["NET_ADMIN"],
+// "CapDrop": ["MKNOD"],
+// "RestartPolicy": { "Name": "", "MaximumRetryCount": 0 },
+// "NetworkMode": "bridge",
+// "Devices": [],
+// "Ulimits": [{}],
+// "LogConfig": { "Type": "json-file", "Config": {} },
+// "SecurityOpt": [""],
+// "CgroupParent": "",
+// "VolumeDriver": ""
+// }
+// }
+
+class DockerCreateRequest {
+ String hostname
+ String[] cmd
+}
+
+/*
+ * docker container process table json
+ *
+{
+ "Titles" : [
+ "USER","PID","%CPU","%MEM","VSZ","RSS","TTY","STAT","START","TIME","COMMAND"
+ ]
+ "Processes" : [
+ [
+ "root","13642","0.0","0.1","18172","3184","pts/0","Ss","17:03","0:00","/bin/bash"
+ ],
+ [
+ "root","13895","0.0","0.0","4348","692","pts/0","S+","17:15","0:00","sleep 10"
+ ]
+ ],
+}
+*/
+
+class DockerProcess extends NamedEntity {
+ String user
+ long pid
+ double cpu
+ double mem
+ long vsz
+ long rss
+ String tty
+ String stat
+ Date start
+ long timeElapsed
+ String command
+}
+
+
+/*
+ * Container stats - JSON
+ *
+ {
+ "read" : "2015-01-08T22:57:31.547920715Z",
+ "networks": {
+ "eth0": {
+ "rx_bytes": 5338,
+ "rx_dropped": 0,
+ "rx_errors": 0,
+ "rx_packets": 36,
+ "tx_bytes": 648,
+ "tx_dropped": 0,
+ "tx_errors": 0,
+ "tx_packets": 8
+ },
+ "eth5": {
+ "rx_bytes": 4641,
+ "rx_dropped": 0,
+ "rx_errors": 0,
+ "rx_packets": 26,
+ "tx_bytes": 690,
+ "tx_dropped": 0,
+ "tx_errors": 0,
+ "tx_packets": 9
+ }
+ },
+ "memory_stats" : {
+ "stats" : {
+ "total_pgmajfault" : 0,
+ "cache" : 0,
+ "mapped_file" : 0,
+ "total_inactive_file" : 0,
+ "pgpgout" : 414,
+ "rss" : 6537216,
+ "total_mapped_file" : 0,
+ "writeback" : 0,
+ "unevictable" : 0,
+ "pgpgin" : 477,
+ "total_unevictable" : 0,
+ "pgmajfault" : 0,
+ "total_rss" : 6537216,
+ "total_rss_huge" : 6291456,
+ "total_writeback" : 0,
+ "total_inactive_anon" : 0,
+ "rss_huge" : 6291456,
+ "hierarchical_memory_limit" : 67108864,
+ "total_pgfault" : 964,
+ "total_active_file" : 0,
+ "active_anon" : 6537216,
+ "total_active_anon" : 6537216,
+ "total_pgpgout" : 414,
+ "total_cache" : 0,
+ "inactive_anon" : 0,
+ "active_file" : 0,
+ "pgfault" : 964,
+ "inactive_file" : 0,
+ "total_pgpgin" : 477
+ },
+ "max_usage" : 6651904,
+ "usage" : 6537216,
+ "failcnt" : 0,
+ "limit" : 67108864
+ },
+ "blkio_stats" : {},
+ "cpu_stats" : {
+ "cpu_usage" : {
+ "percpu_usage" : [
+ 16970827,
+ 1839451,
+ 7107380,
+ 10571290
+ ],
+ "usage_in_usermode" : 10000000,
+ "total_usage" : 36488948,
+ "usage_in_kernelmode" : 20000000
+ },
+ "system_cpu_usage" : 20091722000000000,
+ "throttling_data" : {}
+ }
+ }
+ */
+
+
+class DockerContainerStats extends NamedEntity {
+ contains ContainerNetworkStats[] networks
+ contains ContainerMemoryUsage memory
+ contains ContainerCpuStats cpu
+ Date lastRead
+}
+
+/*
+ "networks": {
+ "eth0": {
+ "rx_bytes": 5338,
+ "rx_dropped": 0,
+ "rx_errors": 0,
+ "rx_packets": 36,
+ "tx_bytes": 648,
+ "tx_dropped": 0,
+ "tx_errors": 0,
+ "tx_packets": 8
+ },
+ "eth5": {
+ "rx_bytes": 4641,
+ "rx_dropped": 0,
+ "rx_errors": 0,
+ "rx_packets": 26,
+ "tx_bytes": 690,
+ "tx_dropped": 0,
+ "tx_errors": 0,
+ "tx_packets": 9
+ }
+ },
+ */
+
+class ContainerNetworkStats {
+ String intf
+ int rx_bytes
+ int rx_dropped
+ int rx_errors
+ int rx_packets
+ int tx_bytes
+ int tx_dropped
+ int tx_errors
+ int tx_packets
+}
+
+/*
+ * "memory_stats" : {
+ "stats" : {
+ "total_pgmajfault" : 0,
+ "cache" : 0,
+ "mapped_file" : 0,
+ "total_inactive_file" : 0,
+ "pgpgout" : 414,
+ "rss" : 6537216,
+ "total_mapped_file" : 0,
+ "writeback" : 0,
+ "unevictable" : 0,
+ "pgpgin" : 477,
+ "total_unevictable" : 0,
+ "pgmajfault" : 0,
+ "total_rss" : 6537216,
+ "total_rss_huge" : 6291456,
+ "total_writeback" : 0,
+ "total_inactive_anon" : 0,
+ "rss_huge" : 6291456,
+ "hierarchical_memory_limit" : 67108864,
+ "total_pgfault" : 964,
+ "total_active_file" : 0,
+ "active_anon" : 6537216,
+ "total_active_anon" : 6537216,
+ "total_pgpgout" : 414,
+ "total_cache" : 0,
+ "inactive_anon" : 0,
+ "active_file" : 0,
+ "pgfault" : 964,
+ "inactive_file" : 0,
+ "total_pgpgin" : 477
+ },
+ "max_usage" : 6651904,
+ "usage" : 6537216,
+ "failcnt" : 0,
+ "limit" : 67108864
+ },
+ */
+
+class ContainerMemoryStats {
+ int total_pgmajfault
+ int cache
+ int mapped_file
+ int total_inactive_file
+ int pgpgout
+ int rss
+ int total_mapped_file
+ int writeback
+ int unevictable
+ int pgpgin
+ int total_unevictable
+ int pgmajfault
+ int total_rss
+ int total_rss_huge
+ int total_writeback
+ int total_inactive_anon
+ int rss_huge
+ int hierarchical_memory_limit
+ int total_pgfault
+ int total_active_file
+ int active_anon
+ int total_active_anon
+ int total_pgpgout
+ int total_cache
+ int inactive_anon
+ int active_file
+ int pgfault
+ int inactive_file
+ int total_pgpgin
+}
+
+class ContainerMemoryUsage {
+ contains ContainerMemoryStats memstats
+ int max_usage
+ int usage
+ int failcnt
+ int limit
+}
+
+/*
+ "cpu_stats" : {
+ "cpu_usage" : {
+ "percpu_usage" : [
+ 16970827,
+ 1839451,
+ 7107380,
+ 10571290
+ ],
+ "usage_in_usermode" : 10000000,
+ "total_usage" : 36488948,
+ "usage_in_kernelmode" : 20000000
+ },
+ "system_cpu_usage" : 20091722000000000,
+ "throttling_data" : {}
+ }
+ */
+
+class ContainerCpuUsage {
+ long[] percpu_usage
+ long usage_in_usermode
+ long total_usage
+ long user_in_kernelmode
+}
+
+class ContainerCpuStats {
+ contains ContainerCpuUsage cpu_usage
+ long system_cpu_usage
+}
+
|