/*- * ============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; /** * * An implementation of the model object 'Container Memory Stats'. * *

* The following features are implemented: *

*

* * @generated */ public class ContainerMemoryStatsImpl extends MinimalEObjectImpl.Container implements ContainerMemoryStats { /** * The default value of the '{@link #getTotal_pgmajfault() Total pgmajfault}' attribute. * * * @see #getTotal_pgmajfault() * @generated * @ordered */ protected static final int TOTAL_PGMAJFAULT_EDEFAULT = 0; /** * The cached value of the '{@link #getTotal_pgmajfault() Total pgmajfault}' attribute. * * * @see #getTotal_pgmajfault() * @generated * @ordered */ protected int total_pgmajfault = TOTAL_PGMAJFAULT_EDEFAULT; /** * The default value of the '{@link #getCache() Cache}' attribute. * * * @see #getCache() * @generated * @ordered */ protected static final int CACHE_EDEFAULT = 0; /** * The cached value of the '{@link #getCache() Cache}' attribute. * * * @see #getCache() * @generated * @ordered */ protected int cache = CACHE_EDEFAULT; /** * The default value of the '{@link #getMapped_file() Mapped file}' attribute. * * * @see #getMapped_file() * @generated * @ordered */ protected static final int MAPPED_FILE_EDEFAULT = 0; /** * The cached value of the '{@link #getMapped_file() Mapped file}' attribute. * * * @see #getMapped_file() * @generated * @ordered */ protected int mapped_file = MAPPED_FILE_EDEFAULT; /** * The default value of the '{@link #getTotal_inactive_file() Total inactive file}' attribute. * * * @see #getTotal_inactive_file() * @generated * @ordered */ protected static final int TOTAL_INACTIVE_FILE_EDEFAULT = 0; /** * The cached value of the '{@link #getTotal_inactive_file() Total inactive file}' attribute. * * * @see #getTotal_inactive_file() * @generated * @ordered */ protected int total_inactive_file = TOTAL_INACTIVE_FILE_EDEFAULT; /** * The default value of the '{@link #getPgpgout() Pgpgout}' attribute. * * * @see #getPgpgout() * @generated * @ordered */ protected static final int PGPGOUT_EDEFAULT = 0; /** * The cached value of the '{@link #getPgpgout() Pgpgout}' attribute. * * * @see #getPgpgout() * @generated * @ordered */ protected int pgpgout = PGPGOUT_EDEFAULT; /** * The default value of the '{@link #getRss() Rss}' attribute. * * * @see #getRss() * @generated * @ordered */ protected static final int RSS_EDEFAULT = 0; /** * The cached value of the '{@link #getRss() Rss}' attribute. * * * @see #getRss() * @generated * @ordered */ protected int rss = RSS_EDEFAULT; /** * The default value of the '{@link #getTotal_mapped_file() Total mapped file}' attribute. * * * @see #getTotal_mapped_file() * @generated * @ordered */ protected static final int TOTAL_MAPPED_FILE_EDEFAULT = 0; /** * The cached value of the '{@link #getTotal_mapped_file() Total mapped file}' attribute. * * * @see #getTotal_mapped_file() * @generated * @ordered */ protected int total_mapped_file = TOTAL_MAPPED_FILE_EDEFAULT; /** * The default value of the '{@link #getWriteback() Writeback}' attribute. * * * @see #getWriteback() * @generated * @ordered */ protected static final int WRITEBACK_EDEFAULT = 0; /** * The cached value of the '{@link #getWriteback() Writeback}' attribute. * * * @see #getWriteback() * @generated * @ordered */ protected int writeback = WRITEBACK_EDEFAULT; /** * The default value of the '{@link #getUnevictable() Unevictable}' attribute. * * * @see #getUnevictable() * @generated * @ordered */ protected static final int UNEVICTABLE_EDEFAULT = 0; /** * The cached value of the '{@link #getUnevictable() Unevictable}' attribute. * * * @see #getUnevictable() * @generated * @ordered */ protected int unevictable = UNEVICTABLE_EDEFAULT; /** * The default value of the '{@link #getPgpgin() Pgpgin}' attribute. * * * @see #getPgpgin() * @generated * @ordered */ protected static final int PGPGIN_EDEFAULT = 0; /** * The cached value of the '{@link #getPgpgin() Pgpgin}' attribute. * * * @see #getPgpgin() * @generated * @ordered */ protected int pgpgin = PGPGIN_EDEFAULT; /** * The default value of the '{@link #getTotal_unevictable() Total unevictable}' attribute. * * * @see #getTotal_unevictable() * @generated * @ordered */ protected static final int TOTAL_UNEVICTABLE_EDEFAULT = 0; /** * The cached value of the '{@link #getTotal_unevictable() Total unevictable}' attribute. * * * @see #getTotal_unevictable() * @generated * @ordered */ protected int total_unevictable = TOTAL_UNEVICTABLE_EDEFAULT; /** * The default value of the '{@link #getPgmajfault() Pgmajfault}' attribute. * * * @see #getPgmajfault() * @generated * @ordered */ protected static final int PGMAJFAULT_EDEFAULT = 0; /** * The cached value of the '{@link #getPgmajfault() Pgmajfault}' attribute. * * * @see #getPgmajfault() * @generated * @ordered */ protected int pgmajfault = PGMAJFAULT_EDEFAULT; /** * The default value of the '{@link #getTotal_rss() Total rss}' attribute. * * * @see #getTotal_rss() * @generated * @ordered */ protected static final int TOTAL_RSS_EDEFAULT = 0; /** * The cached value of the '{@link #getTotal_rss() Total rss}' attribute. * * * @see #getTotal_rss() * @generated * @ordered */ protected int total_rss = TOTAL_RSS_EDEFAULT; /** * The default value of the '{@link #getTotal_rss_huge() Total rss huge}' attribute. * * * @see #getTotal_rss_huge() * @generated * @ordered */ protected static final int TOTAL_RSS_HUGE_EDEFAULT = 0; /** * The cached value of the '{@link #getTotal_rss_huge() Total rss huge}' attribute. * * * @see #getTotal_rss_huge() * @generated * @ordered */ protected int total_rss_huge = TOTAL_RSS_HUGE_EDEFAULT; /** * The default value of the '{@link #getTotal_writeback() Total writeback}' attribute. * * * @see #getTotal_writeback() * @generated * @ordered */ protected static final int TOTAL_WRITEBACK_EDEFAULT = 0; /** * The cached value of the '{@link #getTotal_writeback() Total writeback}' attribute. * * * @see #getTotal_writeback() * @generated * @ordered */ protected int total_writeback = TOTAL_WRITEBACK_EDEFAULT; /** * The default value of the '{@link #getTotal_inactive_anon() Total inactive anon}' attribute. * * * @see #getTotal_inactive_anon() * @generated * @ordered */ protected static final int TOTAL_INACTIVE_ANON_EDEFAULT = 0; /** * The cached value of the '{@link #getTotal_inactive_anon() Total inactive anon}' attribute. * * * @see #getTotal_inactive_anon() * @generated * @ordered */ protected int total_inactive_anon = TOTAL_INACTIVE_ANON_EDEFAULT; /** * The default value of the '{@link #getRss_huge() Rss huge}' attribute. * * * @see #getRss_huge() * @generated * @ordered */ protected static final int RSS_HUGE_EDEFAULT = 0; /** * The cached value of the '{@link #getRss_huge() Rss huge}' attribute. * * * @see #getRss_huge() * @generated * @ordered */ protected int rss_huge = RSS_HUGE_EDEFAULT; /** * The default value of the '{@link #getHierarchical_memory_limit() Hierarchical memory limit}' attribute. * * * @see #getHierarchical_memory_limit() * @generated * @ordered */ protected static final int HIERARCHICAL_MEMORY_LIMIT_EDEFAULT = 0; /** * The cached value of the '{@link #getHierarchical_memory_limit() Hierarchical memory limit}' attribute. * * * @see #getHierarchical_memory_limit() * @generated * @ordered */ protected int hierarchical_memory_limit = HIERARCHICAL_MEMORY_LIMIT_EDEFAULT; /** * The default value of the '{@link #getTotal_pgfault() Total pgfault}' attribute. * * * @see #getTotal_pgfault() * @generated * @ordered */ protected static final int TOTAL_PGFAULT_EDEFAULT = 0; /** * The cached value of the '{@link #getTotal_pgfault() Total pgfault}' attribute. * * * @see #getTotal_pgfault() * @generated * @ordered */ protected int total_pgfault = TOTAL_PGFAULT_EDEFAULT; /** * The default value of the '{@link #getTotal_active_file() Total active file}' attribute. * * * @see #getTotal_active_file() * @generated * @ordered */ protected static final int TOTAL_ACTIVE_FILE_EDEFAULT = 0; /** * The cached value of the '{@link #getTotal_active_file() Total active file}' attribute. * * * @see #getTotal_active_file() * @generated * @ordered */ protected int total_active_file = TOTAL_ACTIVE_FILE_EDEFAULT; /** * The default value of the '{@link #getActive_anon() Active anon}' attribute. * * * @see #getActive_anon() * @generated * @ordered */ protected static final int ACTIVE_ANON_EDEFAULT = 0; /** * The cached value of the '{@link #getActive_anon() Active anon}' attribute. * * * @see #getActive_anon() * @generated * @ordered */ protected int active_anon = ACTIVE_ANON_EDEFAULT; /** * The default value of the '{@link #getTotal_active_anon() Total active anon}' attribute. * * * @see #getTotal_active_anon() * @generated * @ordered */ protected static final int TOTAL_ACTIVE_ANON_EDEFAULT = 0; /** * The cached value of the '{@link #getTotal_active_anon() Total active anon}' attribute. * * * @see #getTotal_active_anon() * @generated * @ordered */ protected int total_active_anon = TOTAL_ACTIVE_ANON_EDEFAULT; /** * The default value of the '{@link #getTotal_pgpgout() Total pgpgout}' attribute. * * * @see #getTotal_pgpgout() * @generated * @ordered */ protected static final int TOTAL_PGPGOUT_EDEFAULT = 0; /** * The cached value of the '{@link #getTotal_pgpgout() Total pgpgout}' attribute. * * * @see #getTotal_pgpgout() * @generated * @ordered */ protected int total_pgpgout = TOTAL_PGPGOUT_EDEFAULT; /** * The default value of the '{@link #getTotal_cache() Total cache}' attribute. * * * @see #getTotal_cache() * @generated * @ordered */ protected static final int TOTAL_CACHE_EDEFAULT = 0; /** * The cached value of the '{@link #getTotal_cache() Total cache}' attribute. * * * @see #getTotal_cache() * @generated * @ordered */ protected int total_cache = TOTAL_CACHE_EDEFAULT; /** * The default value of the '{@link #getInactive_anon() Inactive anon}' attribute. * * * @see #getInactive_anon() * @generated * @ordered */ protected static final int INACTIVE_ANON_EDEFAULT = 0; /** * The cached value of the '{@link #getInactive_anon() Inactive anon}' attribute. * * * @see #getInactive_anon() * @generated * @ordered */ protected int inactive_anon = INACTIVE_ANON_EDEFAULT; /** * The default value of the '{@link #getActive_file() Active file}' attribute. * * * @see #getActive_file() * @generated * @ordered */ protected static final int ACTIVE_FILE_EDEFAULT = 0; /** * The cached value of the '{@link #getActive_file() Active file}' attribute. * * * @see #getActive_file() * @generated * @ordered */ protected int active_file = ACTIVE_FILE_EDEFAULT; /** * The default value of the '{@link #getPgfault() Pgfault}' attribute. * * * @see #getPgfault() * @generated * @ordered */ protected static final int PGFAULT_EDEFAULT = 0; /** * The cached value of the '{@link #getPgfault() Pgfault}' attribute. * * * @see #getPgfault() * @generated * @ordered */ protected int pgfault = PGFAULT_EDEFAULT; /** * The default value of the '{@link #getInactive_file() Inactive file}' attribute. * * * @see #getInactive_file() * @generated * @ordered */ protected static final int INACTIVE_FILE_EDEFAULT = 0; /** * The cached value of the '{@link #getInactive_file() Inactive file}' attribute. * * * @see #getInactive_file() * @generated * @ordered */ protected int inactive_file = INACTIVE_FILE_EDEFAULT; /** * The default value of the '{@link #getTotal_pgpgin() Total pgpgin}' attribute. * * * @see #getTotal_pgpgin() * @generated * @ordered */ protected static final int TOTAL_PGPGIN_EDEFAULT = 0; /** * The cached value of the '{@link #getTotal_pgpgin() Total pgpgin}' attribute. * * * @see #getTotal_pgpgin() * @generated * @ordered */ protected int total_pgpgin = TOTAL_PGPGIN_EDEFAULT; /** * * * @generated */ protected ContainerMemoryStatsImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return DockerPackage.Literals.CONTAINER_MEMORY_STATS; } /** * * * @generated */ public int getTotal_pgmajfault() { return total_pgmajfault; } /** * * * @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)); } /** * * * @generated */ public int getCache() { return cache; } /** * * * @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)); } /** * * * @generated */ public int getMapped_file() { return mapped_file; } /** * * * @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)); } /** * * * @generated */ public int getTotal_inactive_file() { return total_inactive_file; } /** * * * @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)); } /** * * * @generated */ public int getPgpgout() { return pgpgout; } /** * * * @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)); } /** * * * @generated */ public int getRss() { return rss; } /** * * * @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)); } /** * * * @generated */ public int getTotal_mapped_file() { return total_mapped_file; } /** * * * @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)); } /** * * * @generated */ public int getWriteback() { return writeback; } /** * * * @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)); } /** * * * @generated */ public int getUnevictable() { return unevictable; } /** * * * @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)); } /** * * * @generated */ public int getPgpgin() { return pgpgin; } /** * * * @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)); } /** * * * @generated */ public int getTotal_unevictable() { return total_unevictable; } /** * * * @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)); } /** * * * @generated */ public int getPgmajfault() { return pgmajfault; } /** * * * @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)); } /** * * * @generated */ public int getTotal_rss() { return total_rss; } /** * * * @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)); } /** * * * @generated */ public int getTotal_rss_huge() { return total_rss_huge; } /** * * * @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)); } /** * * * @generated */ public int getTotal_writeback() { return total_writeback; } /** * * * @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)); } /** * * * @generated */ public int getTotal_inactive_anon() { return total_inactive_anon; } /** * * * @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)); } /** * * * @generated */ public int getRss_huge() { return rss_huge; } /** * * * @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)); } /** * * * @generated */ public int getHierarchical_memory_limit() { return hierarchical_memory_limit; } /** * * * @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)); } /** * * * @generated */ public int getTotal_pgfault() { return total_pgfault; } /** * * * @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)); } /** * * * @generated */ public int getTotal_active_file() { return total_active_file; } /** * * * @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)); } /** * * * @generated */ public int getActive_anon() { return active_anon; } /** * * * @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)); } /** * * * @generated */ public int getTotal_active_anon() { return total_active_anon; } /** * * * @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)); } /** * * * @generated */ public int getTotal_pgpgout() { return total_pgpgout; } /** * * * @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)); } /** * * * @generated */ public int getTotal_cache() { return total_cache; } /** * * * @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)); } /** * * * @generated */ public int getInactive_anon() { return inactive_anon; } /** * * * @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)); } /** * * * @generated */ public int getActive_file() { return active_file; } /** * * * @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)); } /** * * * @generated */ public int getPgfault() { return pgfault; } /** * * * @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)); } /** * * * @generated */ public int getInactive_file() { return inactive_file; } /** * * * @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)); } /** * * * @generated */ public int getTotal_pgpgin() { return total_pgpgin; } /** * * * @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)); } /** * * * @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); } /** * * * @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); } /** * * * @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); } /** * * * @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); } /** * * * @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