diff options
author | lj1412 <lji@research.att.com> | 2017-02-14 15:11:44 +0000 |
---|---|---|
committer | lj1412 <lji@research.att.com> | 2017-02-14 15:11:46 +0000 |
commit | 033f0c30154107ddf36cd682c860e95025bf00b0 (patch) | |
tree | 4113f2053aac75642c51b11bfae9a0a608c1ed72 /ncomp-sirius-manager-agent-model/src/main | |
parent | f6e50f2cec6365ea71696c58a96aa923eb3a1a10 (diff) |
Init ncomp.sirius.manager
Change-Id: I6691ecd21a942c96cb20cf3baa297e4b2dc7f970
Signed-off-by: lj1412 <lji@research.att.com>
Diffstat (limited to 'ncomp-sirius-manager-agent-model/src/main')
40 files changed, 19534 insertions, 0 deletions
diff --git a/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/CollectdCpu.java b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/CollectdCpu.java new file mode 100644 index 0000000..3488e9a --- /dev/null +++ b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/CollectdCpu.java @@ -0,0 +1,156 @@ + +/*- + * ============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.sirius.manager.agent.collectd; + +import org.openecomp.ncomp.core.NamedEntity; + +import org.openecomp.ncomp.core.alerts.AlertContainer; + +import org.openecomp.ncomp.core.types.metrics.IncreasingULongMetricAttribute; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Cpu</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdCpu#getIdle <em>Idle</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdCpu#getWait <em>Wait</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdCpu#getUser <em>User</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdCpu#getSystem <em>System</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdCpu() + * @model + * @generated + */ +public interface CollectdCpu extends NamedEntity, AlertContainer { + /** + * Returns the value of the '<em><b>Idle</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Idle</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Idle</em>' attribute. + * @see #setIdle(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdCpu_Idle() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" transient="true" + * @generated + */ + IncreasingULongMetricAttribute getIdle(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdCpu#getIdle <em>Idle</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Idle</em>' attribute. + * @see #getIdle() + * @generated + */ + void setIdle(IncreasingULongMetricAttribute value); + + /** + * Returns the value of the '<em><b>Wait</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Wait</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Wait</em>' attribute. + * @see #setWait(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdCpu_Wait() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" transient="true" + * @generated + */ + IncreasingULongMetricAttribute getWait(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdCpu#getWait <em>Wait</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Wait</em>' attribute. + * @see #getWait() + * @generated + */ + void setWait(IncreasingULongMetricAttribute value); + + /** + * 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(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdCpu_User() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" transient="true" + * @generated + */ + IncreasingULongMetricAttribute getUser(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdCpu#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(IncreasingULongMetricAttribute value); + + /** + * Returns the value of the '<em><b>System</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>System</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</em>' attribute. + * @see #setSystem(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdCpu_System() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" transient="true" + * @generated + */ + IncreasingULongMetricAttribute getSystem(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdCpu#getSystem <em>System</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>System</em>' attribute. + * @see #getSystem() + * @generated + */ + void setSystem(IncreasingULongMetricAttribute value); + +} // CollectdCpu diff --git a/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/CollectdDisk.java b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/CollectdDisk.java new file mode 100644 index 0000000..3fd4209 --- /dev/null +++ b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/CollectdDisk.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.sirius.manager.agent.collectd; + +import org.openecomp.ncomp.core.NamedEntity; + +import org.openecomp.ncomp.core.alerts.AlertContainer; + +import org.openecomp.ncomp.core.types.metrics.IncreasingULongMetricAttribute; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Disk</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdDisk#getDisk_merged_read <em>Disk merged read</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdDisk#getDisk_merged_write <em>Disk merged write</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdDisk#getDisk_octets_read <em>Disk octets read</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdDisk#getDisk_octets_write <em>Disk octets write</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdDisk#getDisk_ops_read <em>Disk ops read</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdDisk#getDisk_ops_write <em>Disk ops write</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdDisk#getDisk_time_read <em>Disk time read</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdDisk#getDisk_time_write <em>Disk time write</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdDisk() + * @model + * @generated + */ +public interface CollectdDisk extends NamedEntity, AlertContainer { + /** + * Returns the value of the '<em><b>Disk merged read</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Disk merged 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>Disk merged read</em>' attribute. + * @see #setDisk_merged_read(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdDisk_Disk_merged_read() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" transient="true" + * @generated + */ + IncreasingULongMetricAttribute getDisk_merged_read(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdDisk#getDisk_merged_read <em>Disk merged read</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Disk merged read</em>' attribute. + * @see #getDisk_merged_read() + * @generated + */ + void setDisk_merged_read(IncreasingULongMetricAttribute value); + + /** + * Returns the value of the '<em><b>Disk merged write</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Disk merged write</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Disk merged write</em>' attribute. + * @see #setDisk_merged_write(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdDisk_Disk_merged_write() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" transient="true" + * @generated + */ + IncreasingULongMetricAttribute getDisk_merged_write(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdDisk#getDisk_merged_write <em>Disk merged write</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Disk merged write</em>' attribute. + * @see #getDisk_merged_write() + * @generated + */ + void setDisk_merged_write(IncreasingULongMetricAttribute value); + + /** + * Returns the value of the '<em><b>Disk octets read</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Disk octets 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>Disk octets read</em>' attribute. + * @see #setDisk_octets_read(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdDisk_Disk_octets_read() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" transient="true" + * annotation="http://openecomp.org/sirius/doc unit='byte'" + * @generated + */ + IncreasingULongMetricAttribute getDisk_octets_read(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdDisk#getDisk_octets_read <em>Disk octets read</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Disk octets read</em>' attribute. + * @see #getDisk_octets_read() + * @generated + */ + void setDisk_octets_read(IncreasingULongMetricAttribute value); + + /** + * Returns the value of the '<em><b>Disk octets write</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Disk octets write</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Disk octets write</em>' attribute. + * @see #setDisk_octets_write(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdDisk_Disk_octets_write() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" transient="true" + * @generated + */ + IncreasingULongMetricAttribute getDisk_octets_write(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdDisk#getDisk_octets_write <em>Disk octets write</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Disk octets write</em>' attribute. + * @see #getDisk_octets_write() + * @generated + */ + void setDisk_octets_write(IncreasingULongMetricAttribute value); + + /** + * Returns the value of the '<em><b>Disk ops read</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Disk ops 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>Disk ops read</em>' attribute. + * @see #setDisk_ops_read(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdDisk_Disk_ops_read() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" transient="true" + * @generated + */ + IncreasingULongMetricAttribute getDisk_ops_read(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdDisk#getDisk_ops_read <em>Disk ops read</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Disk ops read</em>' attribute. + * @see #getDisk_ops_read() + * @generated + */ + void setDisk_ops_read(IncreasingULongMetricAttribute value); + + /** + * Returns the value of the '<em><b>Disk ops write</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Disk ops write</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Disk ops write</em>' attribute. + * @see #setDisk_ops_write(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdDisk_Disk_ops_write() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" transient="true" + * @generated + */ + IncreasingULongMetricAttribute getDisk_ops_write(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdDisk#getDisk_ops_write <em>Disk ops write</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Disk ops write</em>' attribute. + * @see #getDisk_ops_write() + * @generated + */ + void setDisk_ops_write(IncreasingULongMetricAttribute value); + + /** + * Returns the value of the '<em><b>Disk time read</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Disk time 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>Disk time read</em>' attribute. + * @see #setDisk_time_read(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdDisk_Disk_time_read() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" transient="true" + * @generated + */ + IncreasingULongMetricAttribute getDisk_time_read(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdDisk#getDisk_time_read <em>Disk time read</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Disk time read</em>' attribute. + * @see #getDisk_time_read() + * @generated + */ + void setDisk_time_read(IncreasingULongMetricAttribute value); + + /** + * Returns the value of the '<em><b>Disk time write</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Disk time write</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Disk time write</em>' attribute. + * @see #setDisk_time_write(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdDisk_Disk_time_write() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" transient="true" + * @generated + */ + IncreasingULongMetricAttribute getDisk_time_write(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdDisk#getDisk_time_write <em>Disk time write</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Disk time write</em>' attribute. + * @see #getDisk_time_write() + * @generated + */ + void setDisk_time_write(IncreasingULongMetricAttribute value); + +} // CollectdDisk diff --git a/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/CollectdFactory.java b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/CollectdFactory.java new file mode 100644 index 0000000..e6a7889 --- /dev/null +++ b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/CollectdFactory.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.sirius.manager.agent.collectd; + +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.sirius.manager.agent.collectd.CollectdPackage + * @generated + */ +public interface CollectdFactory extends EFactory { + /** + * The singleton instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + CollectdFactory eINSTANCE = org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdFactoryImpl.init(); + + /** + * Returns a new object of class '<em>Server</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Server</em>'. + * @generated + */ + CollectdServer createCollectdServer(); + + /** + * Returns a new object of class '<em>Memory</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Memory</em>'. + * @generated + */ + CollectdMemory createCollectdMemory(); + + /** + * Returns a new object of class '<em>Swap</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Swap</em>'. + * @generated + */ + CollectdSwap createCollectdSwap(); + + /** + * Returns a new object of class '<em>Processes</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Processes</em>'. + * @generated + */ + CollectdProcesses createCollectdProcesses(); + + /** + * Returns a new object of class '<em>Vmem</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Vmem</em>'. + * @generated + */ + CollectdVmem createCollectdVmem(); + + /** + * Returns a new object of class '<em>Cpu</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Cpu</em>'. + * @generated + */ + CollectdCpu createCollectdCpu(); + + /** + * Returns a new object of class '<em>Disk</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Disk</em>'. + * @generated + */ + CollectdDisk createCollectdDisk(); + + /** + * Returns a new object of class '<em>File System</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>File System</em>'. + * @generated + */ + CollectdFileSystem createCollectdFileSystem(); + + /** + * Returns a new object of class '<em>Interface</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Interface</em>'. + * @generated + */ + CollectdInterface createCollectdInterface(); + + /** + * Returns a new object of class '<em>Kvm Instance</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Kvm Instance</em>'. + * @generated + */ + CollectdKvmInstance createCollectdKvmInstance(); + + /** + * Returns a new object of class '<em>Kvm Disk</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Kvm Disk</em>'. + * @generated + */ + CollectdKvmDisk createCollectdKvmDisk(); + + /** + * Returns a new object of class '<em>Kvm Interface</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Kvm Interface</em>'. + * @generated + */ + CollectdKvmInterface createCollectdKvmInterface(); + + /** + * Returns the package supported by this factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the package supported by this factory. + * @generated + */ + CollectdPackage getCollectdPackage(); + +} //CollectdFactory diff --git a/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/CollectdFileSystem.java b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/CollectdFileSystem.java new file mode 100644 index 0000000..2fbf354 --- /dev/null +++ b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/CollectdFileSystem.java @@ -0,0 +1,102 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.sirius.manager.agent.collectd; + +import org.openecomp.ncomp.core.NamedEntity; + +import org.openecomp.ncomp.core.alerts.AlertContainer; + +import org.openecomp.ncomp.core.types.metrics.DoubleMetricAttribute; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>File System</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdFileSystem#getUsed <em>Used</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdFileSystem#getFree <em>Free</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdFileSystem() + * @model + * @generated + */ +public interface CollectdFileSystem extends NamedEntity, AlertContainer { + /** + * Returns the value of the '<em><b>Used</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Used</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Used</em>' attribute. + * @see #setUsed(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdFileSystem_Used() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getUsed(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdFileSystem#getUsed <em>Used</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Used</em>' attribute. + * @see #getUsed() + * @generated + */ + void setUsed(DoubleMetricAttribute value); + + /** + * Returns the value of the '<em><b>Free</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Free</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Free</em>' attribute. + * @see #setFree(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdFileSystem_Free() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getFree(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdFileSystem#getFree <em>Free</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Free</em>' attribute. + * @see #getFree() + * @generated + */ + void setFree(DoubleMetricAttribute value); + +} // CollectdFileSystem diff --git a/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/CollectdInterface.java b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/CollectdInterface.java new file mode 100644 index 0000000..9112db2 --- /dev/null +++ b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/CollectdInterface.java @@ -0,0 +1,210 @@ + +/*- + * ============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.sirius.manager.agent.collectd; + +import org.openecomp.ncomp.core.NamedEntity; + +import org.openecomp.ncomp.core.alerts.AlertContainer; + +import org.openecomp.ncomp.core.types.metrics.IncreasingULongMetricAttribute; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Interface</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdInterface#getIf_errors_rx <em>If errors rx</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdInterface#getIf_errors_tx <em>If errors tx</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdInterface#getIf_octets_rx <em>If octets rx</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdInterface#getIf_octets_tx <em>If octets tx</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdInterface#getIf_packets_rx <em>If packets rx</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdInterface#getIf_packets_tx <em>If packets tx</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdInterface() + * @model + * @generated + */ +public interface CollectdInterface extends NamedEntity, AlertContainer { + /** + * Returns the value of the '<em><b>If errors rx</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>If errors rx</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>If errors rx</em>' attribute. + * @see #setIf_errors_rx(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdInterface_If_errors_rx() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" transient="true" + * @generated + */ + IncreasingULongMetricAttribute getIf_errors_rx(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdInterface#getIf_errors_rx <em>If errors rx</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>If errors rx</em>' attribute. + * @see #getIf_errors_rx() + * @generated + */ + void setIf_errors_rx(IncreasingULongMetricAttribute value); + + /** + * Returns the value of the '<em><b>If errors tx</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>If errors tx</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>If errors tx</em>' attribute. + * @see #setIf_errors_tx(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdInterface_If_errors_tx() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" transient="true" + * @generated + */ + IncreasingULongMetricAttribute getIf_errors_tx(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdInterface#getIf_errors_tx <em>If errors tx</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>If errors tx</em>' attribute. + * @see #getIf_errors_tx() + * @generated + */ + void setIf_errors_tx(IncreasingULongMetricAttribute value); + + /** + * Returns the value of the '<em><b>If octets rx</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>If octets rx</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>If octets rx</em>' attribute. + * @see #setIf_octets_rx(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdInterface_If_octets_rx() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" transient="true" + * @generated + */ + IncreasingULongMetricAttribute getIf_octets_rx(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdInterface#getIf_octets_rx <em>If octets rx</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>If octets rx</em>' attribute. + * @see #getIf_octets_rx() + * @generated + */ + void setIf_octets_rx(IncreasingULongMetricAttribute value); + + /** + * Returns the value of the '<em><b>If octets tx</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>If octets tx</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>If octets tx</em>' attribute. + * @see #setIf_octets_tx(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdInterface_If_octets_tx() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" transient="true" + * @generated + */ + IncreasingULongMetricAttribute getIf_octets_tx(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdInterface#getIf_octets_tx <em>If octets tx</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>If octets tx</em>' attribute. + * @see #getIf_octets_tx() + * @generated + */ + void setIf_octets_tx(IncreasingULongMetricAttribute value); + + /** + * Returns the value of the '<em><b>If packets rx</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>If packets rx</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>If packets rx</em>' attribute. + * @see #setIf_packets_rx(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdInterface_If_packets_rx() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" transient="true" + * @generated + */ + IncreasingULongMetricAttribute getIf_packets_rx(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdInterface#getIf_packets_rx <em>If packets rx</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>If packets rx</em>' attribute. + * @see #getIf_packets_rx() + * @generated + */ + void setIf_packets_rx(IncreasingULongMetricAttribute value); + + /** + * Returns the value of the '<em><b>If packets tx</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>If packets tx</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>If packets tx</em>' attribute. + * @see #setIf_packets_tx(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdInterface_If_packets_tx() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" transient="true" + * @generated + */ + IncreasingULongMetricAttribute getIf_packets_tx(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdInterface#getIf_packets_tx <em>If packets tx</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>If packets tx</em>' attribute. + * @see #getIf_packets_tx() + * @generated + */ + void setIf_packets_tx(IncreasingULongMetricAttribute value); + +} // CollectdInterface diff --git a/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/CollectdKvmDisk.java b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/CollectdKvmDisk.java new file mode 100644 index 0000000..d47f7f4 --- /dev/null +++ b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/CollectdKvmDisk.java @@ -0,0 +1,156 @@ + +/*- + * ============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.sirius.manager.agent.collectd; + +import org.openecomp.ncomp.core.NamedEntity; + +import org.openecomp.ncomp.core.alerts.AlertContainer; + +import org.openecomp.ncomp.core.types.metrics.IncreasingULongMetricAttribute; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Kvm Disk</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmDisk#getDisk_octets_read <em>Disk octets read</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmDisk#getDisk_octets_write <em>Disk octets write</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmDisk#getDisk_ops_read <em>Disk ops read</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmDisk#getDisk_ops_write <em>Disk ops write</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdKvmDisk() + * @model + * @generated + */ +public interface CollectdKvmDisk extends NamedEntity, AlertContainer { + /** + * Returns the value of the '<em><b>Disk octets read</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Disk octets 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>Disk octets read</em>' attribute. + * @see #setDisk_octets_read(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdKvmDisk_Disk_octets_read() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" transient="true" + * @generated + */ + IncreasingULongMetricAttribute getDisk_octets_read(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmDisk#getDisk_octets_read <em>Disk octets read</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Disk octets read</em>' attribute. + * @see #getDisk_octets_read() + * @generated + */ + void setDisk_octets_read(IncreasingULongMetricAttribute value); + + /** + * Returns the value of the '<em><b>Disk octets write</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Disk octets write</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Disk octets write</em>' attribute. + * @see #setDisk_octets_write(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdKvmDisk_Disk_octets_write() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" transient="true" + * @generated + */ + IncreasingULongMetricAttribute getDisk_octets_write(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmDisk#getDisk_octets_write <em>Disk octets write</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Disk octets write</em>' attribute. + * @see #getDisk_octets_write() + * @generated + */ + void setDisk_octets_write(IncreasingULongMetricAttribute value); + + /** + * Returns the value of the '<em><b>Disk ops read</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Disk ops 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>Disk ops read</em>' attribute. + * @see #setDisk_ops_read(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdKvmDisk_Disk_ops_read() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" transient="true" + * @generated + */ + IncreasingULongMetricAttribute getDisk_ops_read(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmDisk#getDisk_ops_read <em>Disk ops read</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Disk ops read</em>' attribute. + * @see #getDisk_ops_read() + * @generated + */ + void setDisk_ops_read(IncreasingULongMetricAttribute value); + + /** + * Returns the value of the '<em><b>Disk ops write</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Disk ops write</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Disk ops write</em>' attribute. + * @see #setDisk_ops_write(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdKvmDisk_Disk_ops_write() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" transient="true" + * @generated + */ + IncreasingULongMetricAttribute getDisk_ops_write(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmDisk#getDisk_ops_write <em>Disk ops write</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Disk ops write</em>' attribute. + * @see #getDisk_ops_write() + * @generated + */ + void setDisk_ops_write(IncreasingULongMetricAttribute value); + +} // CollectdKvmDisk diff --git a/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/CollectdKvmInstance.java b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/CollectdKvmInstance.java new file mode 100644 index 0000000..e08a93f --- /dev/null +++ b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/CollectdKvmInstance.java @@ -0,0 +1,111 @@ + +/*- + * ============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.sirius.manager.agent.collectd; + +import org.openecomp.ncomp.core.NamedEntity; + +import org.openecomp.ncomp.core.alerts.AlertContainer; + +import org.openecomp.ncomp.core.types.metrics.IncreasingULongMetricAttribute; + +import org.eclipse.emf.common.util.EList; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Kvm Instance</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInstance#getVirt_cpu_total <em>Virt cpu total</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInstance#getDisks <em>Disks</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInstance#getInterfaces <em>Interfaces</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdKvmInstance() + * @model + * @generated + */ +public interface CollectdKvmInstance extends NamedEntity, AlertContainer { + /** + * Returns the value of the '<em><b>Virt cpu total</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Virt cpu total</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Virt cpu total</em>' attribute. + * @see #setVirt_cpu_total(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdKvmInstance_Virt_cpu_total() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" transient="true" + * @generated + */ + IncreasingULongMetricAttribute getVirt_cpu_total(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInstance#getVirt_cpu_total <em>Virt cpu total</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Virt cpu total</em>' attribute. + * @see #getVirt_cpu_total() + * @generated + */ + void setVirt_cpu_total(IncreasingULongMetricAttribute value); + + /** + * Returns the value of the '<em><b>Disks</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmDisk}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Disks</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>Disks</em>' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdKvmInstance_Disks() + * @model containment="true" + * @generated + */ + EList<CollectdKvmDisk> getDisks(); + + /** + * Returns the value of the '<em><b>Interfaces</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInterface}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Interfaces</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>Interfaces</em>' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdKvmInstance_Interfaces() + * @model containment="true" + * @generated + */ + EList<CollectdKvmInterface> getInterfaces(); + +} // CollectdKvmInstance diff --git a/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/CollectdKvmInterface.java b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/CollectdKvmInterface.java new file mode 100644 index 0000000..1f955ae --- /dev/null +++ b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/CollectdKvmInterface.java @@ -0,0 +1,264 @@ + +/*- + * ============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.sirius.manager.agent.collectd; + +import org.openecomp.ncomp.core.NamedEntity; + +import org.openecomp.ncomp.core.alerts.AlertContainer; + +import org.openecomp.ncomp.core.types.metrics.IncreasingULongMetricAttribute; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Kvm Interface</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInterface#getIf_errors_rx <em>If errors rx</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInterface#getIf_errors_tx <em>If errors tx</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInterface#getIf_dropped_rx <em>If dropped rx</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInterface#getIf_dropped_tx <em>If dropped tx</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInterface#getIf_octets_rx <em>If octets rx</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInterface#getIf_octets_tx <em>If octets tx</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInterface#getIf_packets_rx <em>If packets rx</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInterface#getIf_packets_tx <em>If packets tx</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdKvmInterface() + * @model + * @generated + */ +public interface CollectdKvmInterface extends NamedEntity, AlertContainer { + /** + * Returns the value of the '<em><b>If errors rx</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>If errors rx</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>If errors rx</em>' attribute. + * @see #setIf_errors_rx(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdKvmInterface_If_errors_rx() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" transient="true" + * @generated + */ + IncreasingULongMetricAttribute getIf_errors_rx(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInterface#getIf_errors_rx <em>If errors rx</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>If errors rx</em>' attribute. + * @see #getIf_errors_rx() + * @generated + */ + void setIf_errors_rx(IncreasingULongMetricAttribute value); + + /** + * Returns the value of the '<em><b>If errors tx</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>If errors tx</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>If errors tx</em>' attribute. + * @see #setIf_errors_tx(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdKvmInterface_If_errors_tx() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" transient="true" + * @generated + */ + IncreasingULongMetricAttribute getIf_errors_tx(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInterface#getIf_errors_tx <em>If errors tx</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>If errors tx</em>' attribute. + * @see #getIf_errors_tx() + * @generated + */ + void setIf_errors_tx(IncreasingULongMetricAttribute value); + + /** + * Returns the value of the '<em><b>If dropped rx</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>If dropped rx</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>If dropped rx</em>' attribute. + * @see #setIf_dropped_rx(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdKvmInterface_If_dropped_rx() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" transient="true" + * @generated + */ + IncreasingULongMetricAttribute getIf_dropped_rx(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInterface#getIf_dropped_rx <em>If dropped rx</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>If dropped rx</em>' attribute. + * @see #getIf_dropped_rx() + * @generated + */ + void setIf_dropped_rx(IncreasingULongMetricAttribute value); + + /** + * Returns the value of the '<em><b>If dropped tx</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>If dropped tx</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>If dropped tx</em>' attribute. + * @see #setIf_dropped_tx(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdKvmInterface_If_dropped_tx() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" transient="true" + * @generated + */ + IncreasingULongMetricAttribute getIf_dropped_tx(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInterface#getIf_dropped_tx <em>If dropped tx</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>If dropped tx</em>' attribute. + * @see #getIf_dropped_tx() + * @generated + */ + void setIf_dropped_tx(IncreasingULongMetricAttribute value); + + /** + * Returns the value of the '<em><b>If octets rx</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>If octets rx</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>If octets rx</em>' attribute. + * @see #setIf_octets_rx(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdKvmInterface_If_octets_rx() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" transient="true" + * @generated + */ + IncreasingULongMetricAttribute getIf_octets_rx(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInterface#getIf_octets_rx <em>If octets rx</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>If octets rx</em>' attribute. + * @see #getIf_octets_rx() + * @generated + */ + void setIf_octets_rx(IncreasingULongMetricAttribute value); + + /** + * Returns the value of the '<em><b>If octets tx</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>If octets tx</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>If octets tx</em>' attribute. + * @see #setIf_octets_tx(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdKvmInterface_If_octets_tx() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" transient="true" + * @generated + */ + IncreasingULongMetricAttribute getIf_octets_tx(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInterface#getIf_octets_tx <em>If octets tx</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>If octets tx</em>' attribute. + * @see #getIf_octets_tx() + * @generated + */ + void setIf_octets_tx(IncreasingULongMetricAttribute value); + + /** + * Returns the value of the '<em><b>If packets rx</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>If packets rx</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>If packets rx</em>' attribute. + * @see #setIf_packets_rx(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdKvmInterface_If_packets_rx() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" transient="true" + * @generated + */ + IncreasingULongMetricAttribute getIf_packets_rx(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInterface#getIf_packets_rx <em>If packets rx</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>If packets rx</em>' attribute. + * @see #getIf_packets_rx() + * @generated + */ + void setIf_packets_rx(IncreasingULongMetricAttribute value); + + /** + * Returns the value of the '<em><b>If packets tx</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>If packets tx</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>If packets tx</em>' attribute. + * @see #setIf_packets_tx(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdKvmInterface_If_packets_tx() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" transient="true" + * @generated + */ + IncreasingULongMetricAttribute getIf_packets_tx(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInterface#getIf_packets_tx <em>If packets tx</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>If packets tx</em>' attribute. + * @see #getIf_packets_tx() + * @generated + */ + void setIf_packets_tx(IncreasingULongMetricAttribute value); + +} // CollectdKvmInterface diff --git a/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/CollectdMemory.java b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/CollectdMemory.java new file mode 100644 index 0000000..f980ace --- /dev/null +++ b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/CollectdMemory.java @@ -0,0 +1,154 @@ + +/*- + * ============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.sirius.manager.agent.collectd; + +import org.openecomp.ncomp.core.types.metrics.DoubleMetricAttribute; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Memory</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdMemory#getBuffered <em>Buffered</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdMemory#getCached <em>Cached</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdMemory#getFree <em>Free</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdMemory#getUsed <em>Used</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdMemory() + * @model + * @generated + */ +public interface CollectdMemory extends EObject { + /** + * Returns the value of the '<em><b>Buffered</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Buffered</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Buffered</em>' attribute. + * @see #setBuffered(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdMemory_Buffered() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getBuffered(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdMemory#getBuffered <em>Buffered</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Buffered</em>' attribute. + * @see #getBuffered() + * @generated + */ + void setBuffered(DoubleMetricAttribute value); + + /** + * Returns the value of the '<em><b>Cached</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Cached</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Cached</em>' attribute. + * @see #setCached(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdMemory_Cached() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getCached(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdMemory#getCached <em>Cached</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Cached</em>' attribute. + * @see #getCached() + * @generated + */ + void setCached(DoubleMetricAttribute value); + + /** + * Returns the value of the '<em><b>Free</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Free</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Free</em>' attribute. + * @see #setFree(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdMemory_Free() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getFree(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdMemory#getFree <em>Free</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Free</em>' attribute. + * @see #getFree() + * @generated + */ + void setFree(DoubleMetricAttribute value); + + /** + * Returns the value of the '<em><b>Used</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Used</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Used</em>' attribute. + * @see #setUsed(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdMemory_Used() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getUsed(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdMemory#getUsed <em>Used</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Used</em>' attribute. + * @see #getUsed() + * @generated + */ + void setUsed(DoubleMetricAttribute value); + +} // CollectdMemory diff --git a/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/CollectdPackage.java b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/CollectdPackage.java new file mode 100644 index 0000000..4518a91 --- /dev/null +++ b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/CollectdPackage.java @@ -0,0 +1,3862 @@ + +/*- + * ============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.sirius.manager.agent.collectd; + +import org.openecomp.ncomp.core.CorePackage; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +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.sirius.manager.agent.collectd.CollectdFactory + * @model kind="package" + * annotation="http://www.eclipse.org/emf/2002/GenModel modelDirectory='/ncomp-sirius-manager-agent-model/src/main/xcore-gen' basePackage='org.openecomp.ncomp.sirius.manager.agent'" + * annotation="http://www.eclipse.org/emf/2011/Xcore doc='http://openecomp.org/sirius/doc'" + * @generated + */ +public interface CollectdPackage extends EPackage { + /** + * The package name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNAME = "collectd"; + + /** + * The package namespace URI. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNS_URI = "org.openecomp.ncomp.sirius.manager.agent.collectd"; + + /** + * The package namespace name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNS_PREFIX = "collectd"; + + /** + * The singleton instance of the package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + CollectdPackage eINSTANCE = org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdPackageImpl.init(); + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdServerImpl <em>Server</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdServerImpl + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdPackageImpl#getCollectdServer() + * @generated + */ + int COLLECTD_SERVER = 0; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_SERVER__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 COLLECTD_SERVER__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 COLLECTD_SERVER__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 COLLECTD_SERVER__CREATED = CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the '<em><b>Alerts</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_SERVER__ALERTS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Alerting Template</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_SERVER__ALERTING_TEMPLATE = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Load shortterm</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_SERVER__LOAD_SHORTTERM = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Load midterm</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_SERVER__LOAD_MIDTERM = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>Load longterm</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_SERVER__LOAD_LONGTERM = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 4; + + /** + * The feature id for the '<em><b>Entropy</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_SERVER__ENTROPY = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 5; + + /** + * The feature id for the '<em><b>Contextswitches</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_SERVER__CONTEXTSWITCHES = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 6; + + /** + * The feature id for the '<em><b>Cpus</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_SERVER__CPUS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 7; + + /** + * The feature id for the '<em><b>Memory</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_SERVER__MEMORY = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 8; + + /** + * The feature id for the '<em><b>Swap</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_SERVER__SWAP = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 9; + + /** + * The feature id for the '<em><b>Processes</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_SERVER__PROCESSES = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 10; + + /** + * The feature id for the '<em><b>Vmem</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_SERVER__VMEM = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 11; + + /** + * The feature id for the '<em><b>Filesystems</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_SERVER__FILESYSTEMS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 12; + + /** + * The feature id for the '<em><b>Disks</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_SERVER__DISKS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 13; + + /** + * The feature id for the '<em><b>Interfaces</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_SERVER__INTERFACES = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 14; + + /** + * The feature id for the '<em><b>Instances</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_SERVER__INSTANCES = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 15; + + /** + * The number of structural features of the '<em>Server</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_SERVER_FEATURE_COUNT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 16; + + /** + * The number of operations of the '<em>Server</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_SERVER_OPERATION_COUNT = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdMemoryImpl <em>Memory</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdMemoryImpl + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdPackageImpl#getCollectdMemory() + * @generated + */ + int COLLECTD_MEMORY = 1; + + /** + * The feature id for the '<em><b>Buffered</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_MEMORY__BUFFERED = 0; + + /** + * The feature id for the '<em><b>Cached</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_MEMORY__CACHED = 1; + + /** + * The feature id for the '<em><b>Free</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_MEMORY__FREE = 2; + + /** + * The feature id for the '<em><b>Used</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_MEMORY__USED = 3; + + /** + * The number of structural features of the '<em>Memory</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_MEMORY_FEATURE_COUNT = 4; + + /** + * The number of operations of the '<em>Memory</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_MEMORY_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdSwapImpl <em>Swap</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdSwapImpl + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdPackageImpl#getCollectdSwap() + * @generated + */ + int COLLECTD_SWAP = 2; + + /** + * The feature id for the '<em><b>Cached</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_SWAP__CACHED = 0; + + /** + * The feature id for the '<em><b>Free</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_SWAP__FREE = 1; + + /** + * The feature id for the '<em><b>Used</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_SWAP__USED = 2; + + /** + * The number of structural features of the '<em>Swap</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_SWAP_FEATURE_COUNT = 3; + + /** + * The number of operations of the '<em>Swap</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_SWAP_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdProcessesImpl <em>Processes</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdProcessesImpl + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdPackageImpl#getCollectdProcesses() + * @generated + */ + int COLLECTD_PROCESSES = 3; + + /** + * The feature id for the '<em><b>Fork rate</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_PROCESSES__FORK_RATE = 0; + + /** + * The feature id for the '<em><b>Blocked</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_PROCESSES__BLOCKED = 1; + + /** + * The feature id for the '<em><b>Paging</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_PROCESSES__PAGING = 2; + + /** + * The feature id for the '<em><b>Running</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_PROCESSES__RUNNING = 3; + + /** + * The feature id for the '<em><b>Sleeping</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_PROCESSES__SLEEPING = 4; + + /** + * The feature id for the '<em><b>Stopped</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_PROCESSES__STOPPED = 5; + + /** + * The feature id for the '<em><b>Zombies</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_PROCESSES__ZOMBIES = 6; + + /** + * The number of structural features of the '<em>Processes</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_PROCESSES_FEATURE_COUNT = 7; + + /** + * The number of operations of the '<em>Processes</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_PROCESSES_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdVmemImpl <em>Vmem</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdVmemImpl + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdPackageImpl#getCollectdVmem() + * @generated + */ + int COLLECTD_VMEM = 4; + + /** + * The feature id for the '<em><b>Active anon</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_VMEM__ACTIVE_ANON = 0; + + /** + * The feature id for the '<em><b>Active file</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_VMEM__ACTIVE_FILE = 1; + + /** + * The feature id for the '<em><b>Anon pages</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_VMEM__ANON_PAGES = 2; + + /** + * The feature id for the '<em><b>Anon transparent hugepages</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_VMEM__ANON_TRANSPARENT_HUGEPAGES = 3; + + /** + * The feature id for the '<em><b>Bounce</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_VMEM__BOUNCE = 4; + + /** + * The feature id for the '<em><b>Dirtied</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_VMEM__DIRTIED = 5; + + /** + * The feature id for the '<em><b>Dirty</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_VMEM__DIRTY = 6; + + /** + * The feature id for the '<em><b>Dirty background threshold</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_VMEM__DIRTY_BACKGROUND_THRESHOLD = 7; + + /** + * The feature id for the '<em><b>Dirty threshold</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_VMEM__DIRTY_THRESHOLD = 8; + + /** + * The feature id for the '<em><b>File pages</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_VMEM__FILE_PAGES = 9; + + /** + * The feature id for the '<em><b>Free pages</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_VMEM__FREE_PAGES = 10; + + /** + * The feature id for the '<em><b>Inactive anon</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_VMEM__INACTIVE_ANON = 11; + + /** + * The feature id for the '<em><b>Inactive file</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_VMEM__INACTIVE_FILE = 12; + + /** + * The feature id for the '<em><b>Isolated anon</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_VMEM__ISOLATED_ANON = 13; + + /** + * The feature id for the '<em><b>Isolated file</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_VMEM__ISOLATED_FILE = 14; + + /** + * The feature id for the '<em><b>Kernel stack</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_VMEM__KERNEL_STACK = 15; + + /** + * The feature id for the '<em><b>Mapped</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_VMEM__MAPPED = 16; + + /** + * The feature id for the '<em><b>Mlock</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_VMEM__MLOCK = 17; + + /** + * The feature id for the '<em><b>Page table pages</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_VMEM__PAGE_TABLE_PAGES = 18; + + /** + * The feature id for the '<em><b>Shmem</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_VMEM__SHMEM = 19; + + /** + * The feature id for the '<em><b>Slab reclaimable</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_VMEM__SLAB_RECLAIMABLE = 20; + + /** + * The feature id for the '<em><b>Slab unreclaimable</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_VMEM__SLAB_UNRECLAIMABLE = 21; + + /** + * The feature id for the '<em><b>Unevictable</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_VMEM__UNEVICTABLE = 22; + + /** + * The feature id for the '<em><b>Unstable</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_VMEM__UNSTABLE = 23; + + /** + * The feature id for the '<em><b>Vmscan immediate reclaim</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_VMEM__VMSCAN_IMMEDIATE_RECLAIM = 24; + + /** + * The feature id for the '<em><b>Vmscan write</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_VMEM__VMSCAN_WRITE = 25; + + /** + * The feature id for the '<em><b>Writeback</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_VMEM__WRITEBACK = 26; + + /** + * The feature id for the '<em><b>Writeback temp</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_VMEM__WRITEBACK_TEMP = 27; + + /** + * The feature id for the '<em><b>Written</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_VMEM__WRITTEN = 28; + + /** + * The feature id for the '<em><b>Memory in</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_VMEM__MEMORY_IN = 29; + + /** + * The feature id for the '<em><b>Memory out</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_VMEM__MEMORY_OUT = 30; + + /** + * The feature id for the '<em><b>Swap in</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_VMEM__SWAP_IN = 31; + + /** + * The feature id for the '<em><b>Swap out</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_VMEM__SWAP_OUT = 32; + + /** + * The feature id for the '<em><b>Faults minor</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_VMEM__FAULTS_MINOR = 33; + + /** + * The feature id for the '<em><b>Faults major</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_VMEM__FAULTS_MAJOR = 34; + + /** + * The number of structural features of the '<em>Vmem</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_VMEM_FEATURE_COUNT = 35; + + /** + * The number of operations of the '<em>Vmem</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_VMEM_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdCpuImpl <em>Cpu</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdCpuImpl + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdPackageImpl#getCollectdCpu() + * @generated + */ + int COLLECTD_CPU = 5; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_CPU__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 COLLECTD_CPU__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 COLLECTD_CPU__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 COLLECTD_CPU__CREATED = CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the '<em><b>Alerts</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_CPU__ALERTS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Alerting Template</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_CPU__ALERTING_TEMPLATE = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Idle</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_CPU__IDLE = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Wait</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_CPU__WAIT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>User</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_CPU__USER = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 4; + + /** + * The feature id for the '<em><b>System</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_CPU__SYSTEM = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 5; + + /** + * The number of structural features of the '<em>Cpu</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_CPU_FEATURE_COUNT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 6; + + /** + * The number of operations of the '<em>Cpu</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_CPU_OPERATION_COUNT = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdDiskImpl <em>Disk</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdDiskImpl + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdPackageImpl#getCollectdDisk() + * @generated + */ + int COLLECTD_DISK = 6; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_DISK__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 COLLECTD_DISK__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 COLLECTD_DISK__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 COLLECTD_DISK__CREATED = CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the '<em><b>Alerts</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_DISK__ALERTS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Alerting Template</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_DISK__ALERTING_TEMPLATE = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Disk merged read</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_DISK__DISK_MERGED_READ = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Disk merged write</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_DISK__DISK_MERGED_WRITE = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>Disk octets read</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_DISK__DISK_OCTETS_READ = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 4; + + /** + * The feature id for the '<em><b>Disk octets write</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_DISK__DISK_OCTETS_WRITE = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 5; + + /** + * The feature id for the '<em><b>Disk ops read</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_DISK__DISK_OPS_READ = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 6; + + /** + * The feature id for the '<em><b>Disk ops write</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_DISK__DISK_OPS_WRITE = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 7; + + /** + * The feature id for the '<em><b>Disk time read</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_DISK__DISK_TIME_READ = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 8; + + /** + * The feature id for the '<em><b>Disk time write</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_DISK__DISK_TIME_WRITE = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 9; + + /** + * The number of structural features of the '<em>Disk</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_DISK_FEATURE_COUNT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 10; + + /** + * The number of operations of the '<em>Disk</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_DISK_OPERATION_COUNT = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdFileSystemImpl <em>File System</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdFileSystemImpl + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdPackageImpl#getCollectdFileSystem() + * @generated + */ + int COLLECTD_FILE_SYSTEM = 7; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_FILE_SYSTEM__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 COLLECTD_FILE_SYSTEM__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 COLLECTD_FILE_SYSTEM__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 COLLECTD_FILE_SYSTEM__CREATED = CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the '<em><b>Alerts</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_FILE_SYSTEM__ALERTS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Alerting Template</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_FILE_SYSTEM__ALERTING_TEMPLATE = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Used</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_FILE_SYSTEM__USED = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Free</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_FILE_SYSTEM__FREE = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 3; + + /** + * The number of structural features of the '<em>File System</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_FILE_SYSTEM_FEATURE_COUNT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 4; + + /** + * The number of operations of the '<em>File System</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_FILE_SYSTEM_OPERATION_COUNT = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdInterfaceImpl <em>Interface</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdInterfaceImpl + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdPackageImpl#getCollectdInterface() + * @generated + */ + int COLLECTD_INTERFACE = 8; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_INTERFACE__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 COLLECTD_INTERFACE__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 COLLECTD_INTERFACE__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 COLLECTD_INTERFACE__CREATED = CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the '<em><b>Alerts</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_INTERFACE__ALERTS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Alerting Template</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_INTERFACE__ALERTING_TEMPLATE = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>If errors rx</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_INTERFACE__IF_ERRORS_RX = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>If errors tx</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_INTERFACE__IF_ERRORS_TX = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>If octets rx</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_INTERFACE__IF_OCTETS_RX = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 4; + + /** + * The feature id for the '<em><b>If octets tx</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_INTERFACE__IF_OCTETS_TX = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 5; + + /** + * The feature id for the '<em><b>If packets rx</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_INTERFACE__IF_PACKETS_RX = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 6; + + /** + * The feature id for the '<em><b>If packets tx</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_INTERFACE__IF_PACKETS_TX = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 7; + + /** + * The number of structural features of the '<em>Interface</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_INTERFACE_FEATURE_COUNT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 8; + + /** + * The number of operations of the '<em>Interface</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_INTERFACE_OPERATION_COUNT = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdKvmInstanceImpl <em>Kvm Instance</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdKvmInstanceImpl + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdPackageImpl#getCollectdKvmInstance() + * @generated + */ + int COLLECTD_KVM_INSTANCE = 9; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_KVM_INSTANCE__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 COLLECTD_KVM_INSTANCE__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 COLLECTD_KVM_INSTANCE__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 COLLECTD_KVM_INSTANCE__CREATED = CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the '<em><b>Alerts</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_KVM_INSTANCE__ALERTS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Alerting Template</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_KVM_INSTANCE__ALERTING_TEMPLATE = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Virt cpu total</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_KVM_INSTANCE__VIRT_CPU_TOTAL = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Disks</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_KVM_INSTANCE__DISKS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>Interfaces</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_KVM_INSTANCE__INTERFACES = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 4; + + /** + * The number of structural features of the '<em>Kvm Instance</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_KVM_INSTANCE_FEATURE_COUNT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 5; + + /** + * The number of operations of the '<em>Kvm Instance</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_KVM_INSTANCE_OPERATION_COUNT = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdKvmDiskImpl <em>Kvm Disk</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdKvmDiskImpl + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdPackageImpl#getCollectdKvmDisk() + * @generated + */ + int COLLECTD_KVM_DISK = 10; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_KVM_DISK__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 COLLECTD_KVM_DISK__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 COLLECTD_KVM_DISK__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 COLLECTD_KVM_DISK__CREATED = CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the '<em><b>Alerts</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_KVM_DISK__ALERTS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Alerting Template</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_KVM_DISK__ALERTING_TEMPLATE = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Disk octets read</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_KVM_DISK__DISK_OCTETS_READ = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Disk octets write</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_KVM_DISK__DISK_OCTETS_WRITE = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>Disk ops read</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_KVM_DISK__DISK_OPS_READ = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 4; + + /** + * The feature id for the '<em><b>Disk ops write</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_KVM_DISK__DISK_OPS_WRITE = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 5; + + /** + * The number of structural features of the '<em>Kvm Disk</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_KVM_DISK_FEATURE_COUNT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 6; + + /** + * The number of operations of the '<em>Kvm Disk</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_KVM_DISK_OPERATION_COUNT = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdKvmInterfaceImpl <em>Kvm Interface</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdKvmInterfaceImpl + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdPackageImpl#getCollectdKvmInterface() + * @generated + */ + int COLLECTD_KVM_INTERFACE = 11; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_KVM_INTERFACE__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 COLLECTD_KVM_INTERFACE__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 COLLECTD_KVM_INTERFACE__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 COLLECTD_KVM_INTERFACE__CREATED = CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the '<em><b>Alerts</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_KVM_INTERFACE__ALERTS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Alerting Template</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_KVM_INTERFACE__ALERTING_TEMPLATE = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>If errors rx</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_KVM_INTERFACE__IF_ERRORS_RX = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>If errors tx</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_KVM_INTERFACE__IF_ERRORS_TX = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>If dropped rx</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_KVM_INTERFACE__IF_DROPPED_RX = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 4; + + /** + * The feature id for the '<em><b>If dropped tx</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_KVM_INTERFACE__IF_DROPPED_TX = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 5; + + /** + * The feature id for the '<em><b>If octets rx</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_KVM_INTERFACE__IF_OCTETS_RX = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 6; + + /** + * The feature id for the '<em><b>If octets tx</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_KVM_INTERFACE__IF_OCTETS_TX = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 7; + + /** + * The feature id for the '<em><b>If packets rx</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_KVM_INTERFACE__IF_PACKETS_RX = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 8; + + /** + * The feature id for the '<em><b>If packets tx</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_KVM_INTERFACE__IF_PACKETS_TX = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 9; + + /** + * The number of structural features of the '<em>Kvm Interface</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_KVM_INTERFACE_FEATURE_COUNT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 10; + + /** + * The number of operations of the '<em>Kvm Interface</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLLECTD_KVM_INTERFACE_OPERATION_COUNT = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 0; + + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer <em>Server</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Server</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer + * @generated + */ + EClass getCollectdServer(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getLoad_shortterm <em>Load shortterm</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Load shortterm</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getLoad_shortterm() + * @see #getCollectdServer() + * @generated + */ + EAttribute getCollectdServer_Load_shortterm(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getLoad_midterm <em>Load midterm</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Load midterm</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getLoad_midterm() + * @see #getCollectdServer() + * @generated + */ + EAttribute getCollectdServer_Load_midterm(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getLoad_longterm <em>Load longterm</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Load longterm</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getLoad_longterm() + * @see #getCollectdServer() + * @generated + */ + EAttribute getCollectdServer_Load_longterm(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getEntropy <em>Entropy</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Entropy</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getEntropy() + * @see #getCollectdServer() + * @generated + */ + EAttribute getCollectdServer_Entropy(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getContextswitches <em>Contextswitches</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Contextswitches</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getContextswitches() + * @see #getCollectdServer() + * @generated + */ + EAttribute getCollectdServer_Contextswitches(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getCpus <em>Cpus</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Cpus</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getCpus() + * @see #getCollectdServer() + * @generated + */ + EReference getCollectdServer_Cpus(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#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.sirius.manager.agent.collectd.CollectdServer#getMemory() + * @see #getCollectdServer() + * @generated + */ + EReference getCollectdServer_Memory(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getSwap <em>Swap</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Swap</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getSwap() + * @see #getCollectdServer() + * @generated + */ + EReference getCollectdServer_Swap(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getProcesses <em>Processes</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Processes</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getProcesses() + * @see #getCollectdServer() + * @generated + */ + EReference getCollectdServer_Processes(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getVmem <em>Vmem</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Vmem</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getVmem() + * @see #getCollectdServer() + * @generated + */ + EReference getCollectdServer_Vmem(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getFilesystems <em>Filesystems</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Filesystems</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getFilesystems() + * @see #getCollectdServer() + * @generated + */ + EReference getCollectdServer_Filesystems(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getDisks <em>Disks</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Disks</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getDisks() + * @see #getCollectdServer() + * @generated + */ + EReference getCollectdServer_Disks(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getInterfaces <em>Interfaces</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Interfaces</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getInterfaces() + * @see #getCollectdServer() + * @generated + */ + EReference getCollectdServer_Interfaces(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getInstances <em>Instances</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Instances</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getInstances() + * @see #getCollectdServer() + * @generated + */ + EReference getCollectdServer_Instances(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdMemory <em>Memory</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Memory</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdMemory + * @generated + */ + EClass getCollectdMemory(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdMemory#getBuffered <em>Buffered</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Buffered</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdMemory#getBuffered() + * @see #getCollectdMemory() + * @generated + */ + EAttribute getCollectdMemory_Buffered(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdMemory#getCached <em>Cached</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Cached</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdMemory#getCached() + * @see #getCollectdMemory() + * @generated + */ + EAttribute getCollectdMemory_Cached(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdMemory#getFree <em>Free</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Free</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdMemory#getFree() + * @see #getCollectdMemory() + * @generated + */ + EAttribute getCollectdMemory_Free(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdMemory#getUsed <em>Used</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Used</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdMemory#getUsed() + * @see #getCollectdMemory() + * @generated + */ + EAttribute getCollectdMemory_Used(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdSwap <em>Swap</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Swap</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdSwap + * @generated + */ + EClass getCollectdSwap(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdSwap#getCached <em>Cached</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Cached</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdSwap#getCached() + * @see #getCollectdSwap() + * @generated + */ + EAttribute getCollectdSwap_Cached(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdSwap#getFree <em>Free</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Free</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdSwap#getFree() + * @see #getCollectdSwap() + * @generated + */ + EAttribute getCollectdSwap_Free(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdSwap#getUsed <em>Used</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Used</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdSwap#getUsed() + * @see #getCollectdSwap() + * @generated + */ + EAttribute getCollectdSwap_Used(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdProcesses <em>Processes</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Processes</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdProcesses + * @generated + */ + EClass getCollectdProcesses(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdProcesses#getFork_rate <em>Fork rate</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Fork rate</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdProcesses#getFork_rate() + * @see #getCollectdProcesses() + * @generated + */ + EAttribute getCollectdProcesses_Fork_rate(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdProcesses#getBlocked <em>Blocked</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Blocked</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdProcesses#getBlocked() + * @see #getCollectdProcesses() + * @generated + */ + EAttribute getCollectdProcesses_Blocked(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdProcesses#getPaging <em>Paging</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Paging</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdProcesses#getPaging() + * @see #getCollectdProcesses() + * @generated + */ + EAttribute getCollectdProcesses_Paging(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdProcesses#getRunning <em>Running</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Running</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdProcesses#getRunning() + * @see #getCollectdProcesses() + * @generated + */ + EAttribute getCollectdProcesses_Running(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdProcesses#getSleeping <em>Sleeping</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Sleeping</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdProcesses#getSleeping() + * @see #getCollectdProcesses() + * @generated + */ + EAttribute getCollectdProcesses_Sleeping(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdProcesses#getStopped <em>Stopped</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Stopped</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdProcesses#getStopped() + * @see #getCollectdProcesses() + * @generated + */ + EAttribute getCollectdProcesses_Stopped(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdProcesses#getZombies <em>Zombies</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Zombies</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdProcesses#getZombies() + * @see #getCollectdProcesses() + * @generated + */ + EAttribute getCollectdProcesses_Zombies(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem <em>Vmem</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Vmem</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem + * @generated + */ + EClass getCollectdVmem(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#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.sirius.manager.agent.collectd.CollectdVmem#getActive_anon() + * @see #getCollectdVmem() + * @generated + */ + EAttribute getCollectdVmem_Active_anon(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#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.sirius.manager.agent.collectd.CollectdVmem#getActive_file() + * @see #getCollectdVmem() + * @generated + */ + EAttribute getCollectdVmem_Active_file(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getAnon_pages <em>Anon pages</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Anon pages</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getAnon_pages() + * @see #getCollectdVmem() + * @generated + */ + EAttribute getCollectdVmem_Anon_pages(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getAnon_transparent_hugepages <em>Anon transparent hugepages</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Anon transparent hugepages</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getAnon_transparent_hugepages() + * @see #getCollectdVmem() + * @generated + */ + EAttribute getCollectdVmem_Anon_transparent_hugepages(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getBounce <em>Bounce</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Bounce</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getBounce() + * @see #getCollectdVmem() + * @generated + */ + EAttribute getCollectdVmem_Bounce(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getDirtied <em>Dirtied</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Dirtied</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getDirtied() + * @see #getCollectdVmem() + * @generated + */ + EAttribute getCollectdVmem_Dirtied(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getDirty <em>Dirty</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Dirty</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getDirty() + * @see #getCollectdVmem() + * @generated + */ + EAttribute getCollectdVmem_Dirty(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getDirty_background_threshold <em>Dirty background threshold</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Dirty background threshold</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getDirty_background_threshold() + * @see #getCollectdVmem() + * @generated + */ + EAttribute getCollectdVmem_Dirty_background_threshold(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getDirty_threshold <em>Dirty threshold</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Dirty threshold</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getDirty_threshold() + * @see #getCollectdVmem() + * @generated + */ + EAttribute getCollectdVmem_Dirty_threshold(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getFile_pages <em>File pages</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>File pages</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getFile_pages() + * @see #getCollectdVmem() + * @generated + */ + EAttribute getCollectdVmem_File_pages(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getFree_pages <em>Free pages</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Free pages</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getFree_pages() + * @see #getCollectdVmem() + * @generated + */ + EAttribute getCollectdVmem_Free_pages(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#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.sirius.manager.agent.collectd.CollectdVmem#getInactive_anon() + * @see #getCollectdVmem() + * @generated + */ + EAttribute getCollectdVmem_Inactive_anon(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#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.sirius.manager.agent.collectd.CollectdVmem#getInactive_file() + * @see #getCollectdVmem() + * @generated + */ + EAttribute getCollectdVmem_Inactive_file(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getIsolated_anon <em>Isolated anon</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Isolated anon</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getIsolated_anon() + * @see #getCollectdVmem() + * @generated + */ + EAttribute getCollectdVmem_Isolated_anon(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getIsolated_file <em>Isolated file</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Isolated file</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getIsolated_file() + * @see #getCollectdVmem() + * @generated + */ + EAttribute getCollectdVmem_Isolated_file(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getKernel_stack <em>Kernel stack</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Kernel stack</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getKernel_stack() + * @see #getCollectdVmem() + * @generated + */ + EAttribute getCollectdVmem_Kernel_stack(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getMapped <em>Mapped</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Mapped</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getMapped() + * @see #getCollectdVmem() + * @generated + */ + EAttribute getCollectdVmem_Mapped(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getMlock <em>Mlock</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Mlock</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getMlock() + * @see #getCollectdVmem() + * @generated + */ + EAttribute getCollectdVmem_Mlock(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getPage_table_pages <em>Page table pages</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Page table pages</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getPage_table_pages() + * @see #getCollectdVmem() + * @generated + */ + EAttribute getCollectdVmem_Page_table_pages(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getShmem <em>Shmem</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Shmem</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getShmem() + * @see #getCollectdVmem() + * @generated + */ + EAttribute getCollectdVmem_Shmem(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getSlab_reclaimable <em>Slab reclaimable</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Slab reclaimable</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getSlab_reclaimable() + * @see #getCollectdVmem() + * @generated + */ + EAttribute getCollectdVmem_Slab_reclaimable(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getSlab_unreclaimable <em>Slab unreclaimable</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Slab unreclaimable</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getSlab_unreclaimable() + * @see #getCollectdVmem() + * @generated + */ + EAttribute getCollectdVmem_Slab_unreclaimable(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getUnevictable <em>Unevictable</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Unevictable</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getUnevictable() + * @see #getCollectdVmem() + * @generated + */ + EAttribute getCollectdVmem_Unevictable(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getUnstable <em>Unstable</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Unstable</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getUnstable() + * @see #getCollectdVmem() + * @generated + */ + EAttribute getCollectdVmem_Unstable(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getVmscan_immediate_reclaim <em>Vmscan immediate reclaim</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Vmscan immediate reclaim</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getVmscan_immediate_reclaim() + * @see #getCollectdVmem() + * @generated + */ + EAttribute getCollectdVmem_Vmscan_immediate_reclaim(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getVmscan_write <em>Vmscan write</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Vmscan write</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getVmscan_write() + * @see #getCollectdVmem() + * @generated + */ + EAttribute getCollectdVmem_Vmscan_write(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getWriteback <em>Writeback</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Writeback</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getWriteback() + * @see #getCollectdVmem() + * @generated + */ + EAttribute getCollectdVmem_Writeback(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getWriteback_temp <em>Writeback temp</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Writeback temp</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getWriteback_temp() + * @see #getCollectdVmem() + * @generated + */ + EAttribute getCollectdVmem_Writeback_temp(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getWritten <em>Written</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Written</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getWritten() + * @see #getCollectdVmem() + * @generated + */ + EAttribute getCollectdVmem_Written(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getMemory_in <em>Memory in</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Memory in</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getMemory_in() + * @see #getCollectdVmem() + * @generated + */ + EAttribute getCollectdVmem_Memory_in(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getMemory_out <em>Memory out</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Memory out</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getMemory_out() + * @see #getCollectdVmem() + * @generated + */ + EAttribute getCollectdVmem_Memory_out(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getSwap_in <em>Swap in</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Swap in</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getSwap_in() + * @see #getCollectdVmem() + * @generated + */ + EAttribute getCollectdVmem_Swap_in(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getSwap_out <em>Swap out</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Swap out</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getSwap_out() + * @see #getCollectdVmem() + * @generated + */ + EAttribute getCollectdVmem_Swap_out(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getFaults_minor <em>Faults minor</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Faults minor</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getFaults_minor() + * @see #getCollectdVmem() + * @generated + */ + EAttribute getCollectdVmem_Faults_minor(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getFaults_major <em>Faults major</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Faults major</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getFaults_major() + * @see #getCollectdVmem() + * @generated + */ + EAttribute getCollectdVmem_Faults_major(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdCpu <em>Cpu</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Cpu</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdCpu + * @generated + */ + EClass getCollectdCpu(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdCpu#getIdle <em>Idle</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Idle</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdCpu#getIdle() + * @see #getCollectdCpu() + * @generated + */ + EAttribute getCollectdCpu_Idle(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdCpu#getWait <em>Wait</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Wait</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdCpu#getWait() + * @see #getCollectdCpu() + * @generated + */ + EAttribute getCollectdCpu_Wait(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdCpu#getUser <em>User</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>User</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdCpu#getUser() + * @see #getCollectdCpu() + * @generated + */ + EAttribute getCollectdCpu_User(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdCpu#getSystem <em>System</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>System</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdCpu#getSystem() + * @see #getCollectdCpu() + * @generated + */ + EAttribute getCollectdCpu_System(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdDisk <em>Disk</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Disk</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdDisk + * @generated + */ + EClass getCollectdDisk(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdDisk#getDisk_merged_read <em>Disk merged read</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Disk merged read</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdDisk#getDisk_merged_read() + * @see #getCollectdDisk() + * @generated + */ + EAttribute getCollectdDisk_Disk_merged_read(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdDisk#getDisk_merged_write <em>Disk merged write</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Disk merged write</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdDisk#getDisk_merged_write() + * @see #getCollectdDisk() + * @generated + */ + EAttribute getCollectdDisk_Disk_merged_write(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdDisk#getDisk_octets_read <em>Disk octets read</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Disk octets read</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdDisk#getDisk_octets_read() + * @see #getCollectdDisk() + * @generated + */ + EAttribute getCollectdDisk_Disk_octets_read(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdDisk#getDisk_octets_write <em>Disk octets write</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Disk octets write</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdDisk#getDisk_octets_write() + * @see #getCollectdDisk() + * @generated + */ + EAttribute getCollectdDisk_Disk_octets_write(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdDisk#getDisk_ops_read <em>Disk ops read</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Disk ops read</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdDisk#getDisk_ops_read() + * @see #getCollectdDisk() + * @generated + */ + EAttribute getCollectdDisk_Disk_ops_read(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdDisk#getDisk_ops_write <em>Disk ops write</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Disk ops write</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdDisk#getDisk_ops_write() + * @see #getCollectdDisk() + * @generated + */ + EAttribute getCollectdDisk_Disk_ops_write(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdDisk#getDisk_time_read <em>Disk time read</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Disk time read</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdDisk#getDisk_time_read() + * @see #getCollectdDisk() + * @generated + */ + EAttribute getCollectdDisk_Disk_time_read(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdDisk#getDisk_time_write <em>Disk time write</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Disk time write</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdDisk#getDisk_time_write() + * @see #getCollectdDisk() + * @generated + */ + EAttribute getCollectdDisk_Disk_time_write(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdFileSystem <em>File System</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>File System</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdFileSystem + * @generated + */ + EClass getCollectdFileSystem(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdFileSystem#getUsed <em>Used</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Used</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdFileSystem#getUsed() + * @see #getCollectdFileSystem() + * @generated + */ + EAttribute getCollectdFileSystem_Used(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdFileSystem#getFree <em>Free</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Free</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdFileSystem#getFree() + * @see #getCollectdFileSystem() + * @generated + */ + EAttribute getCollectdFileSystem_Free(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdInterface <em>Interface</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Interface</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdInterface + * @generated + */ + EClass getCollectdInterface(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdInterface#getIf_errors_rx <em>If errors rx</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>If errors rx</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdInterface#getIf_errors_rx() + * @see #getCollectdInterface() + * @generated + */ + EAttribute getCollectdInterface_If_errors_rx(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdInterface#getIf_errors_tx <em>If errors tx</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>If errors tx</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdInterface#getIf_errors_tx() + * @see #getCollectdInterface() + * @generated + */ + EAttribute getCollectdInterface_If_errors_tx(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdInterface#getIf_octets_rx <em>If octets rx</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>If octets rx</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdInterface#getIf_octets_rx() + * @see #getCollectdInterface() + * @generated + */ + EAttribute getCollectdInterface_If_octets_rx(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdInterface#getIf_octets_tx <em>If octets tx</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>If octets tx</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdInterface#getIf_octets_tx() + * @see #getCollectdInterface() + * @generated + */ + EAttribute getCollectdInterface_If_octets_tx(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdInterface#getIf_packets_rx <em>If packets rx</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>If packets rx</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdInterface#getIf_packets_rx() + * @see #getCollectdInterface() + * @generated + */ + EAttribute getCollectdInterface_If_packets_rx(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdInterface#getIf_packets_tx <em>If packets tx</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>If packets tx</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdInterface#getIf_packets_tx() + * @see #getCollectdInterface() + * @generated + */ + EAttribute getCollectdInterface_If_packets_tx(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInstance <em>Kvm Instance</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Kvm Instance</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInstance + * @generated + */ + EClass getCollectdKvmInstance(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInstance#getVirt_cpu_total <em>Virt cpu total</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Virt cpu total</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInstance#getVirt_cpu_total() + * @see #getCollectdKvmInstance() + * @generated + */ + EAttribute getCollectdKvmInstance_Virt_cpu_total(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInstance#getDisks <em>Disks</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Disks</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInstance#getDisks() + * @see #getCollectdKvmInstance() + * @generated + */ + EReference getCollectdKvmInstance_Disks(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInstance#getInterfaces <em>Interfaces</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Interfaces</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInstance#getInterfaces() + * @see #getCollectdKvmInstance() + * @generated + */ + EReference getCollectdKvmInstance_Interfaces(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmDisk <em>Kvm Disk</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Kvm Disk</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmDisk + * @generated + */ + EClass getCollectdKvmDisk(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmDisk#getDisk_octets_read <em>Disk octets read</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Disk octets read</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmDisk#getDisk_octets_read() + * @see #getCollectdKvmDisk() + * @generated + */ + EAttribute getCollectdKvmDisk_Disk_octets_read(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmDisk#getDisk_octets_write <em>Disk octets write</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Disk octets write</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmDisk#getDisk_octets_write() + * @see #getCollectdKvmDisk() + * @generated + */ + EAttribute getCollectdKvmDisk_Disk_octets_write(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmDisk#getDisk_ops_read <em>Disk ops read</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Disk ops read</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmDisk#getDisk_ops_read() + * @see #getCollectdKvmDisk() + * @generated + */ + EAttribute getCollectdKvmDisk_Disk_ops_read(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmDisk#getDisk_ops_write <em>Disk ops write</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Disk ops write</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmDisk#getDisk_ops_write() + * @see #getCollectdKvmDisk() + * @generated + */ + EAttribute getCollectdKvmDisk_Disk_ops_write(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInterface <em>Kvm Interface</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Kvm Interface</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInterface + * @generated + */ + EClass getCollectdKvmInterface(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInterface#getIf_errors_rx <em>If errors rx</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>If errors rx</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInterface#getIf_errors_rx() + * @see #getCollectdKvmInterface() + * @generated + */ + EAttribute getCollectdKvmInterface_If_errors_rx(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInterface#getIf_errors_tx <em>If errors tx</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>If errors tx</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInterface#getIf_errors_tx() + * @see #getCollectdKvmInterface() + * @generated + */ + EAttribute getCollectdKvmInterface_If_errors_tx(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInterface#getIf_dropped_rx <em>If dropped rx</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>If dropped rx</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInterface#getIf_dropped_rx() + * @see #getCollectdKvmInterface() + * @generated + */ + EAttribute getCollectdKvmInterface_If_dropped_rx(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInterface#getIf_dropped_tx <em>If dropped tx</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>If dropped tx</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInterface#getIf_dropped_tx() + * @see #getCollectdKvmInterface() + * @generated + */ + EAttribute getCollectdKvmInterface_If_dropped_tx(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInterface#getIf_octets_rx <em>If octets rx</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>If octets rx</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInterface#getIf_octets_rx() + * @see #getCollectdKvmInterface() + * @generated + */ + EAttribute getCollectdKvmInterface_If_octets_rx(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInterface#getIf_octets_tx <em>If octets tx</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>If octets tx</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInterface#getIf_octets_tx() + * @see #getCollectdKvmInterface() + * @generated + */ + EAttribute getCollectdKvmInterface_If_octets_tx(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInterface#getIf_packets_rx <em>If packets rx</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>If packets rx</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInterface#getIf_packets_rx() + * @see #getCollectdKvmInterface() + * @generated + */ + EAttribute getCollectdKvmInterface_If_packets_rx(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInterface#getIf_packets_tx <em>If packets tx</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>If packets tx</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInterface#getIf_packets_tx() + * @see #getCollectdKvmInterface() + * @generated + */ + EAttribute getCollectdKvmInterface_If_packets_tx(); + + /** + * 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 + */ + CollectdFactory getCollectdFactory(); + + /** + * <!-- 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.sirius.manager.agent.collectd.impl.CollectdServerImpl <em>Server</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdServerImpl + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdPackageImpl#getCollectdServer() + * @generated + */ + EClass COLLECTD_SERVER = eINSTANCE.getCollectdServer(); + + /** + * The meta object literal for the '<em><b>Load shortterm</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_SERVER__LOAD_SHORTTERM = eINSTANCE.getCollectdServer_Load_shortterm(); + + /** + * The meta object literal for the '<em><b>Load midterm</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_SERVER__LOAD_MIDTERM = eINSTANCE.getCollectdServer_Load_midterm(); + + /** + * The meta object literal for the '<em><b>Load longterm</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_SERVER__LOAD_LONGTERM = eINSTANCE.getCollectdServer_Load_longterm(); + + /** + * The meta object literal for the '<em><b>Entropy</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_SERVER__ENTROPY = eINSTANCE.getCollectdServer_Entropy(); + + /** + * The meta object literal for the '<em><b>Contextswitches</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_SERVER__CONTEXTSWITCHES = eINSTANCE.getCollectdServer_Contextswitches(); + + /** + * The meta object literal for the '<em><b>Cpus</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference COLLECTD_SERVER__CPUS = eINSTANCE.getCollectdServer_Cpus(); + + /** + * The meta object literal for the '<em><b>Memory</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference COLLECTD_SERVER__MEMORY = eINSTANCE.getCollectdServer_Memory(); + + /** + * The meta object literal for the '<em><b>Swap</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference COLLECTD_SERVER__SWAP = eINSTANCE.getCollectdServer_Swap(); + + /** + * The meta object literal for the '<em><b>Processes</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference COLLECTD_SERVER__PROCESSES = eINSTANCE.getCollectdServer_Processes(); + + /** + * The meta object literal for the '<em><b>Vmem</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference COLLECTD_SERVER__VMEM = eINSTANCE.getCollectdServer_Vmem(); + + /** + * The meta object literal for the '<em><b>Filesystems</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference COLLECTD_SERVER__FILESYSTEMS = eINSTANCE.getCollectdServer_Filesystems(); + + /** + * The meta object literal for the '<em><b>Disks</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference COLLECTD_SERVER__DISKS = eINSTANCE.getCollectdServer_Disks(); + + /** + * The meta object literal for the '<em><b>Interfaces</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference COLLECTD_SERVER__INTERFACES = eINSTANCE.getCollectdServer_Interfaces(); + + /** + * The meta object literal for the '<em><b>Instances</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference COLLECTD_SERVER__INSTANCES = eINSTANCE.getCollectdServer_Instances(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdMemoryImpl <em>Memory</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdMemoryImpl + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdPackageImpl#getCollectdMemory() + * @generated + */ + EClass COLLECTD_MEMORY = eINSTANCE.getCollectdMemory(); + + /** + * The meta object literal for the '<em><b>Buffered</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_MEMORY__BUFFERED = eINSTANCE.getCollectdMemory_Buffered(); + + /** + * The meta object literal for the '<em><b>Cached</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_MEMORY__CACHED = eINSTANCE.getCollectdMemory_Cached(); + + /** + * The meta object literal for the '<em><b>Free</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_MEMORY__FREE = eINSTANCE.getCollectdMemory_Free(); + + /** + * The meta object literal for the '<em><b>Used</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_MEMORY__USED = eINSTANCE.getCollectdMemory_Used(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdSwapImpl <em>Swap</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdSwapImpl + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdPackageImpl#getCollectdSwap() + * @generated + */ + EClass COLLECTD_SWAP = eINSTANCE.getCollectdSwap(); + + /** + * The meta object literal for the '<em><b>Cached</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_SWAP__CACHED = eINSTANCE.getCollectdSwap_Cached(); + + /** + * The meta object literal for the '<em><b>Free</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_SWAP__FREE = eINSTANCE.getCollectdSwap_Free(); + + /** + * The meta object literal for the '<em><b>Used</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_SWAP__USED = eINSTANCE.getCollectdSwap_Used(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdProcessesImpl <em>Processes</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdProcessesImpl + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdPackageImpl#getCollectdProcesses() + * @generated + */ + EClass COLLECTD_PROCESSES = eINSTANCE.getCollectdProcesses(); + + /** + * The meta object literal for the '<em><b>Fork rate</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_PROCESSES__FORK_RATE = eINSTANCE.getCollectdProcesses_Fork_rate(); + + /** + * The meta object literal for the '<em><b>Blocked</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_PROCESSES__BLOCKED = eINSTANCE.getCollectdProcesses_Blocked(); + + /** + * The meta object literal for the '<em><b>Paging</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_PROCESSES__PAGING = eINSTANCE.getCollectdProcesses_Paging(); + + /** + * The meta object literal for the '<em><b>Running</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_PROCESSES__RUNNING = eINSTANCE.getCollectdProcesses_Running(); + + /** + * The meta object literal for the '<em><b>Sleeping</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_PROCESSES__SLEEPING = eINSTANCE.getCollectdProcesses_Sleeping(); + + /** + * The meta object literal for the '<em><b>Stopped</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_PROCESSES__STOPPED = eINSTANCE.getCollectdProcesses_Stopped(); + + /** + * The meta object literal for the '<em><b>Zombies</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_PROCESSES__ZOMBIES = eINSTANCE.getCollectdProcesses_Zombies(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdVmemImpl <em>Vmem</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdVmemImpl + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdPackageImpl#getCollectdVmem() + * @generated + */ + EClass COLLECTD_VMEM = eINSTANCE.getCollectdVmem(); + + /** + * The meta object literal for the '<em><b>Active anon</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_VMEM__ACTIVE_ANON = eINSTANCE.getCollectdVmem_Active_anon(); + + /** + * The meta object literal for the '<em><b>Active file</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_VMEM__ACTIVE_FILE = eINSTANCE.getCollectdVmem_Active_file(); + + /** + * The meta object literal for the '<em><b>Anon pages</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_VMEM__ANON_PAGES = eINSTANCE.getCollectdVmem_Anon_pages(); + + /** + * The meta object literal for the '<em><b>Anon transparent hugepages</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_VMEM__ANON_TRANSPARENT_HUGEPAGES = eINSTANCE.getCollectdVmem_Anon_transparent_hugepages(); + + /** + * The meta object literal for the '<em><b>Bounce</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_VMEM__BOUNCE = eINSTANCE.getCollectdVmem_Bounce(); + + /** + * The meta object literal for the '<em><b>Dirtied</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_VMEM__DIRTIED = eINSTANCE.getCollectdVmem_Dirtied(); + + /** + * The meta object literal for the '<em><b>Dirty</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_VMEM__DIRTY = eINSTANCE.getCollectdVmem_Dirty(); + + /** + * The meta object literal for the '<em><b>Dirty background threshold</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_VMEM__DIRTY_BACKGROUND_THRESHOLD = eINSTANCE.getCollectdVmem_Dirty_background_threshold(); + + /** + * The meta object literal for the '<em><b>Dirty threshold</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_VMEM__DIRTY_THRESHOLD = eINSTANCE.getCollectdVmem_Dirty_threshold(); + + /** + * The meta object literal for the '<em><b>File pages</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_VMEM__FILE_PAGES = eINSTANCE.getCollectdVmem_File_pages(); + + /** + * The meta object literal for the '<em><b>Free pages</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_VMEM__FREE_PAGES = eINSTANCE.getCollectdVmem_Free_pages(); + + /** + * The meta object literal for the '<em><b>Inactive anon</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_VMEM__INACTIVE_ANON = eINSTANCE.getCollectdVmem_Inactive_anon(); + + /** + * The meta object literal for the '<em><b>Inactive file</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_VMEM__INACTIVE_FILE = eINSTANCE.getCollectdVmem_Inactive_file(); + + /** + * The meta object literal for the '<em><b>Isolated anon</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_VMEM__ISOLATED_ANON = eINSTANCE.getCollectdVmem_Isolated_anon(); + + /** + * The meta object literal for the '<em><b>Isolated file</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_VMEM__ISOLATED_FILE = eINSTANCE.getCollectdVmem_Isolated_file(); + + /** + * The meta object literal for the '<em><b>Kernel stack</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_VMEM__KERNEL_STACK = eINSTANCE.getCollectdVmem_Kernel_stack(); + + /** + * The meta object literal for the '<em><b>Mapped</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_VMEM__MAPPED = eINSTANCE.getCollectdVmem_Mapped(); + + /** + * The meta object literal for the '<em><b>Mlock</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_VMEM__MLOCK = eINSTANCE.getCollectdVmem_Mlock(); + + /** + * The meta object literal for the '<em><b>Page table pages</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_VMEM__PAGE_TABLE_PAGES = eINSTANCE.getCollectdVmem_Page_table_pages(); + + /** + * The meta object literal for the '<em><b>Shmem</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_VMEM__SHMEM = eINSTANCE.getCollectdVmem_Shmem(); + + /** + * The meta object literal for the '<em><b>Slab reclaimable</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_VMEM__SLAB_RECLAIMABLE = eINSTANCE.getCollectdVmem_Slab_reclaimable(); + + /** + * The meta object literal for the '<em><b>Slab unreclaimable</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_VMEM__SLAB_UNRECLAIMABLE = eINSTANCE.getCollectdVmem_Slab_unreclaimable(); + + /** + * The meta object literal for the '<em><b>Unevictable</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_VMEM__UNEVICTABLE = eINSTANCE.getCollectdVmem_Unevictable(); + + /** + * The meta object literal for the '<em><b>Unstable</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_VMEM__UNSTABLE = eINSTANCE.getCollectdVmem_Unstable(); + + /** + * The meta object literal for the '<em><b>Vmscan immediate reclaim</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_VMEM__VMSCAN_IMMEDIATE_RECLAIM = eINSTANCE.getCollectdVmem_Vmscan_immediate_reclaim(); + + /** + * The meta object literal for the '<em><b>Vmscan write</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_VMEM__VMSCAN_WRITE = eINSTANCE.getCollectdVmem_Vmscan_write(); + + /** + * The meta object literal for the '<em><b>Writeback</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_VMEM__WRITEBACK = eINSTANCE.getCollectdVmem_Writeback(); + + /** + * The meta object literal for the '<em><b>Writeback temp</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_VMEM__WRITEBACK_TEMP = eINSTANCE.getCollectdVmem_Writeback_temp(); + + /** + * The meta object literal for the '<em><b>Written</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_VMEM__WRITTEN = eINSTANCE.getCollectdVmem_Written(); + + /** + * The meta object literal for the '<em><b>Memory in</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_VMEM__MEMORY_IN = eINSTANCE.getCollectdVmem_Memory_in(); + + /** + * The meta object literal for the '<em><b>Memory out</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_VMEM__MEMORY_OUT = eINSTANCE.getCollectdVmem_Memory_out(); + + /** + * The meta object literal for the '<em><b>Swap in</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_VMEM__SWAP_IN = eINSTANCE.getCollectdVmem_Swap_in(); + + /** + * The meta object literal for the '<em><b>Swap out</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_VMEM__SWAP_OUT = eINSTANCE.getCollectdVmem_Swap_out(); + + /** + * The meta object literal for the '<em><b>Faults minor</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_VMEM__FAULTS_MINOR = eINSTANCE.getCollectdVmem_Faults_minor(); + + /** + * The meta object literal for the '<em><b>Faults major</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_VMEM__FAULTS_MAJOR = eINSTANCE.getCollectdVmem_Faults_major(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdCpuImpl <em>Cpu</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdCpuImpl + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdPackageImpl#getCollectdCpu() + * @generated + */ + EClass COLLECTD_CPU = eINSTANCE.getCollectdCpu(); + + /** + * The meta object literal for the '<em><b>Idle</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_CPU__IDLE = eINSTANCE.getCollectdCpu_Idle(); + + /** + * The meta object literal for the '<em><b>Wait</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_CPU__WAIT = eINSTANCE.getCollectdCpu_Wait(); + + /** + * The meta object literal for the '<em><b>User</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_CPU__USER = eINSTANCE.getCollectdCpu_User(); + + /** + * The meta object literal for the '<em><b>System</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_CPU__SYSTEM = eINSTANCE.getCollectdCpu_System(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdDiskImpl <em>Disk</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdDiskImpl + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdPackageImpl#getCollectdDisk() + * @generated + */ + EClass COLLECTD_DISK = eINSTANCE.getCollectdDisk(); + + /** + * The meta object literal for the '<em><b>Disk merged read</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_DISK__DISK_MERGED_READ = eINSTANCE.getCollectdDisk_Disk_merged_read(); + + /** + * The meta object literal for the '<em><b>Disk merged write</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_DISK__DISK_MERGED_WRITE = eINSTANCE.getCollectdDisk_Disk_merged_write(); + + /** + * The meta object literal for the '<em><b>Disk octets read</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_DISK__DISK_OCTETS_READ = eINSTANCE.getCollectdDisk_Disk_octets_read(); + + /** + * The meta object literal for the '<em><b>Disk octets write</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_DISK__DISK_OCTETS_WRITE = eINSTANCE.getCollectdDisk_Disk_octets_write(); + + /** + * The meta object literal for the '<em><b>Disk ops read</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_DISK__DISK_OPS_READ = eINSTANCE.getCollectdDisk_Disk_ops_read(); + + /** + * The meta object literal for the '<em><b>Disk ops write</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_DISK__DISK_OPS_WRITE = eINSTANCE.getCollectdDisk_Disk_ops_write(); + + /** + * The meta object literal for the '<em><b>Disk time read</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_DISK__DISK_TIME_READ = eINSTANCE.getCollectdDisk_Disk_time_read(); + + /** + * The meta object literal for the '<em><b>Disk time write</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_DISK__DISK_TIME_WRITE = eINSTANCE.getCollectdDisk_Disk_time_write(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdFileSystemImpl <em>File System</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdFileSystemImpl + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdPackageImpl#getCollectdFileSystem() + * @generated + */ + EClass COLLECTD_FILE_SYSTEM = eINSTANCE.getCollectdFileSystem(); + + /** + * The meta object literal for the '<em><b>Used</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_FILE_SYSTEM__USED = eINSTANCE.getCollectdFileSystem_Used(); + + /** + * The meta object literal for the '<em><b>Free</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_FILE_SYSTEM__FREE = eINSTANCE.getCollectdFileSystem_Free(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdInterfaceImpl <em>Interface</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdInterfaceImpl + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdPackageImpl#getCollectdInterface() + * @generated + */ + EClass COLLECTD_INTERFACE = eINSTANCE.getCollectdInterface(); + + /** + * The meta object literal for the '<em><b>If errors rx</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_INTERFACE__IF_ERRORS_RX = eINSTANCE.getCollectdInterface_If_errors_rx(); + + /** + * The meta object literal for the '<em><b>If errors tx</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_INTERFACE__IF_ERRORS_TX = eINSTANCE.getCollectdInterface_If_errors_tx(); + + /** + * The meta object literal for the '<em><b>If octets rx</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_INTERFACE__IF_OCTETS_RX = eINSTANCE.getCollectdInterface_If_octets_rx(); + + /** + * The meta object literal for the '<em><b>If octets tx</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_INTERFACE__IF_OCTETS_TX = eINSTANCE.getCollectdInterface_If_octets_tx(); + + /** + * The meta object literal for the '<em><b>If packets rx</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_INTERFACE__IF_PACKETS_RX = eINSTANCE.getCollectdInterface_If_packets_rx(); + + /** + * The meta object literal for the '<em><b>If packets tx</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_INTERFACE__IF_PACKETS_TX = eINSTANCE.getCollectdInterface_If_packets_tx(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdKvmInstanceImpl <em>Kvm Instance</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdKvmInstanceImpl + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdPackageImpl#getCollectdKvmInstance() + * @generated + */ + EClass COLLECTD_KVM_INSTANCE = eINSTANCE.getCollectdKvmInstance(); + + /** + * The meta object literal for the '<em><b>Virt cpu total</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_KVM_INSTANCE__VIRT_CPU_TOTAL = eINSTANCE.getCollectdKvmInstance_Virt_cpu_total(); + + /** + * The meta object literal for the '<em><b>Disks</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference COLLECTD_KVM_INSTANCE__DISKS = eINSTANCE.getCollectdKvmInstance_Disks(); + + /** + * The meta object literal for the '<em><b>Interfaces</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference COLLECTD_KVM_INSTANCE__INTERFACES = eINSTANCE.getCollectdKvmInstance_Interfaces(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdKvmDiskImpl <em>Kvm Disk</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdKvmDiskImpl + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdPackageImpl#getCollectdKvmDisk() + * @generated + */ + EClass COLLECTD_KVM_DISK = eINSTANCE.getCollectdKvmDisk(); + + /** + * The meta object literal for the '<em><b>Disk octets read</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_KVM_DISK__DISK_OCTETS_READ = eINSTANCE.getCollectdKvmDisk_Disk_octets_read(); + + /** + * The meta object literal for the '<em><b>Disk octets write</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_KVM_DISK__DISK_OCTETS_WRITE = eINSTANCE.getCollectdKvmDisk_Disk_octets_write(); + + /** + * The meta object literal for the '<em><b>Disk ops read</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_KVM_DISK__DISK_OPS_READ = eINSTANCE.getCollectdKvmDisk_Disk_ops_read(); + + /** + * The meta object literal for the '<em><b>Disk ops write</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_KVM_DISK__DISK_OPS_WRITE = eINSTANCE.getCollectdKvmDisk_Disk_ops_write(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdKvmInterfaceImpl <em>Kvm Interface</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdKvmInterfaceImpl + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdPackageImpl#getCollectdKvmInterface() + * @generated + */ + EClass COLLECTD_KVM_INTERFACE = eINSTANCE.getCollectdKvmInterface(); + + /** + * The meta object literal for the '<em><b>If errors rx</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_KVM_INTERFACE__IF_ERRORS_RX = eINSTANCE.getCollectdKvmInterface_If_errors_rx(); + + /** + * The meta object literal for the '<em><b>If errors tx</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_KVM_INTERFACE__IF_ERRORS_TX = eINSTANCE.getCollectdKvmInterface_If_errors_tx(); + + /** + * The meta object literal for the '<em><b>If dropped rx</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_KVM_INTERFACE__IF_DROPPED_RX = eINSTANCE.getCollectdKvmInterface_If_dropped_rx(); + + /** + * The meta object literal for the '<em><b>If dropped tx</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_KVM_INTERFACE__IF_DROPPED_TX = eINSTANCE.getCollectdKvmInterface_If_dropped_tx(); + + /** + * The meta object literal for the '<em><b>If octets rx</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_KVM_INTERFACE__IF_OCTETS_RX = eINSTANCE.getCollectdKvmInterface_If_octets_rx(); + + /** + * The meta object literal for the '<em><b>If octets tx</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_KVM_INTERFACE__IF_OCTETS_TX = eINSTANCE.getCollectdKvmInterface_If_octets_tx(); + + /** + * The meta object literal for the '<em><b>If packets rx</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_KVM_INTERFACE__IF_PACKETS_RX = eINSTANCE.getCollectdKvmInterface_If_packets_rx(); + + /** + * The meta object literal for the '<em><b>If packets tx</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLLECTD_KVM_INTERFACE__IF_PACKETS_TX = eINSTANCE.getCollectdKvmInterface_If_packets_tx(); + + } + +} //CollectdPackage diff --git a/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/CollectdProcesses.java b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/CollectdProcesses.java new file mode 100644 index 0000000..30f2e04 --- /dev/null +++ b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/CollectdProcesses.java @@ -0,0 +1,236 @@ + +/*- + * ============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.sirius.manager.agent.collectd; + +import org.openecomp.ncomp.core.types.metrics.DoubleMetricAttribute; +import org.openecomp.ncomp.core.types.metrics.IncreasingULongMetricAttribute; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Processes</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdProcesses#getFork_rate <em>Fork rate</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdProcesses#getBlocked <em>Blocked</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdProcesses#getPaging <em>Paging</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdProcesses#getRunning <em>Running</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdProcesses#getSleeping <em>Sleeping</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdProcesses#getStopped <em>Stopped</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdProcesses#getZombies <em>Zombies</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdProcesses() + * @model + * @generated + */ +public interface CollectdProcesses extends EObject { + /** + * Returns the value of the '<em><b>Fork rate</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Fork rate</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Fork rate</em>' attribute. + * @see #setFork_rate(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdProcesses_Fork_rate() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" transient="true" + * @generated + */ + IncreasingULongMetricAttribute getFork_rate(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdProcesses#getFork_rate <em>Fork rate</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Fork rate</em>' attribute. + * @see #getFork_rate() + * @generated + */ + void setFork_rate(IncreasingULongMetricAttribute value); + + /** + * Returns the value of the '<em><b>Blocked</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Blocked</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Blocked</em>' attribute. + * @see #setBlocked(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdProcesses_Blocked() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getBlocked(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdProcesses#getBlocked <em>Blocked</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Blocked</em>' attribute. + * @see #getBlocked() + * @generated + */ + void setBlocked(DoubleMetricAttribute value); + + /** + * Returns the value of the '<em><b>Paging</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Paging</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Paging</em>' attribute. + * @see #setPaging(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdProcesses_Paging() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getPaging(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdProcesses#getPaging <em>Paging</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Paging</em>' attribute. + * @see #getPaging() + * @generated + */ + void setPaging(DoubleMetricAttribute value); + + /** + * Returns the value of the '<em><b>Running</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Running</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Running</em>' attribute. + * @see #setRunning(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdProcesses_Running() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getRunning(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdProcesses#getRunning <em>Running</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Running</em>' attribute. + * @see #getRunning() + * @generated + */ + void setRunning(DoubleMetricAttribute value); + + /** + * Returns the value of the '<em><b>Sleeping</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Sleeping</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Sleeping</em>' attribute. + * @see #setSleeping(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdProcesses_Sleeping() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getSleeping(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdProcesses#getSleeping <em>Sleeping</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Sleeping</em>' attribute. + * @see #getSleeping() + * @generated + */ + void setSleeping(DoubleMetricAttribute value); + + /** + * Returns the value of the '<em><b>Stopped</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Stopped</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Stopped</em>' attribute. + * @see #setStopped(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdProcesses_Stopped() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getStopped(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdProcesses#getStopped <em>Stopped</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Stopped</em>' attribute. + * @see #getStopped() + * @generated + */ + void setStopped(DoubleMetricAttribute value); + + /** + * Returns the value of the '<em><b>Zombies</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Zombies</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Zombies</em>' attribute. + * @see #setZombies(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdProcesses_Zombies() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getZombies(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdProcesses#getZombies <em>Zombies</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Zombies</em>' attribute. + * @see #getZombies() + * @generated + */ + void setZombies(DoubleMetricAttribute value); + +} // CollectdProcesses diff --git a/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/CollectdServer.java b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/CollectdServer.java new file mode 100644 index 0000000..fdba749 --- /dev/null +++ b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/CollectdServer.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.sirius.manager.agent.collectd; + +import org.openecomp.ncomp.core.NamedEntity; + +import org.openecomp.ncomp.core.alerts.AlertContainer; + +import org.openecomp.ncomp.core.types.metrics.DoubleMetricAttribute; +import org.openecomp.ncomp.core.types.metrics.IncreasingULongMetricAttribute; + +import org.eclipse.emf.common.util.EList; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Server</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getLoad_shortterm <em>Load shortterm</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getLoad_midterm <em>Load midterm</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getLoad_longterm <em>Load longterm</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getEntropy <em>Entropy</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getContextswitches <em>Contextswitches</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getCpus <em>Cpus</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getMemory <em>Memory</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getSwap <em>Swap</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getProcesses <em>Processes</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getVmem <em>Vmem</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getFilesystems <em>Filesystems</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getDisks <em>Disks</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getInterfaces <em>Interfaces</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getInstances <em>Instances</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdServer() + * @model + * @generated + */ +public interface CollectdServer extends NamedEntity, AlertContainer { + /** + * Returns the value of the '<em><b>Load shortterm</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Load shortterm</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Load shortterm</em>' attribute. + * @see #setLoad_shortterm(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdServer_Load_shortterm() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getLoad_shortterm(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getLoad_shortterm <em>Load shortterm</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Load shortterm</em>' attribute. + * @see #getLoad_shortterm() + * @generated + */ + void setLoad_shortterm(DoubleMetricAttribute value); + + /** + * Returns the value of the '<em><b>Load midterm</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Load midterm</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Load midterm</em>' attribute. + * @see #setLoad_midterm(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdServer_Load_midterm() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getLoad_midterm(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getLoad_midterm <em>Load midterm</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Load midterm</em>' attribute. + * @see #getLoad_midterm() + * @generated + */ + void setLoad_midterm(DoubleMetricAttribute value); + + /** + * Returns the value of the '<em><b>Load longterm</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Load longterm</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Load longterm</em>' attribute. + * @see #setLoad_longterm(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdServer_Load_longterm() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getLoad_longterm(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getLoad_longterm <em>Load longterm</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Load longterm</em>' attribute. + * @see #getLoad_longterm() + * @generated + */ + void setLoad_longterm(DoubleMetricAttribute value); + + /** + * Returns the value of the '<em><b>Entropy</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Entropy</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Entropy</em>' attribute. + * @see #setEntropy(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdServer_Entropy() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getEntropy(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getEntropy <em>Entropy</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Entropy</em>' attribute. + * @see #getEntropy() + * @generated + */ + void setEntropy(DoubleMetricAttribute value); + + /** + * Returns the value of the '<em><b>Contextswitches</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Contextswitches</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Contextswitches</em>' attribute. + * @see #setContextswitches(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdServer_Contextswitches() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" transient="true" + * @generated + */ + IncreasingULongMetricAttribute getContextswitches(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getContextswitches <em>Contextswitches</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Contextswitches</em>' attribute. + * @see #getContextswitches() + * @generated + */ + void setContextswitches(IncreasingULongMetricAttribute value); + + /** + * Returns the value of the '<em><b>Cpus</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdCpu}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Cpus</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>Cpus</em>' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdServer_Cpus() + * @model containment="true" + * @generated + */ + EList<CollectdCpu> getCpus(); + + /** + * 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 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(CollectdMemory) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdServer_Memory() + * @model containment="true" + * @generated + */ + CollectdMemory getMemory(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#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(CollectdMemory value); + + /** + * Returns the value of the '<em><b>Swap</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Swap</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>Swap</em>' containment reference. + * @see #setSwap(CollectdSwap) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdServer_Swap() + * @model containment="true" + * @generated + */ + CollectdSwap getSwap(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getSwap <em>Swap</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Swap</em>' containment reference. + * @see #getSwap() + * @generated + */ + void setSwap(CollectdSwap value); + + /** + * Returns the value of the '<em><b>Processes</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Processes</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>Processes</em>' containment reference. + * @see #setProcesses(CollectdProcesses) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdServer_Processes() + * @model containment="true" + * @generated + */ + CollectdProcesses getProcesses(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getProcesses <em>Processes</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Processes</em>' containment reference. + * @see #getProcesses() + * @generated + */ + void setProcesses(CollectdProcesses value); + + /** + * Returns the value of the '<em><b>Vmem</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Vmem</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>Vmem</em>' containment reference. + * @see #setVmem(CollectdVmem) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdServer_Vmem() + * @model containment="true" + * @generated + */ + CollectdVmem getVmem(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer#getVmem <em>Vmem</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Vmem</em>' containment reference. + * @see #getVmem() + * @generated + */ + void setVmem(CollectdVmem value); + + /** + * Returns the value of the '<em><b>Filesystems</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdFileSystem}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Filesystems</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>Filesystems</em>' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdServer_Filesystems() + * @model containment="true" + * @generated + */ + EList<CollectdFileSystem> getFilesystems(); + + /** + * Returns the value of the '<em><b>Disks</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdDisk}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Disks</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>Disks</em>' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdServer_Disks() + * @model containment="true" + * @generated + */ + EList<CollectdDisk> getDisks(); + + /** + * Returns the value of the '<em><b>Interfaces</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdInterface}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Interfaces</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>Interfaces</em>' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdServer_Interfaces() + * @model containment="true" + * @generated + */ + EList<CollectdInterface> getInterfaces(); + + /** + * Returns the value of the '<em><b>Instances</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInstance}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Instances</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Instances</em>' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdServer_Instances() + * @model containment="true" + * @generated + */ + EList<CollectdKvmInstance> getInstances(); + +} // CollectdServer diff --git a/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/CollectdSwap.java b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/CollectdSwap.java new file mode 100644 index 0000000..c865364 --- /dev/null +++ b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/CollectdSwap.java @@ -0,0 +1,127 @@ + +/*- + * ============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.sirius.manager.agent.collectd; + +import org.openecomp.ncomp.core.types.metrics.DoubleMetricAttribute; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Swap</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdSwap#getCached <em>Cached</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdSwap#getFree <em>Free</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdSwap#getUsed <em>Used</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdSwap() + * @model + * @generated + */ +public interface CollectdSwap extends EObject { + /** + * Returns the value of the '<em><b>Cached</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Cached</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Cached</em>' attribute. + * @see #setCached(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdSwap_Cached() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getCached(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdSwap#getCached <em>Cached</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Cached</em>' attribute. + * @see #getCached() + * @generated + */ + void setCached(DoubleMetricAttribute value); + + /** + * Returns the value of the '<em><b>Free</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Free</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Free</em>' attribute. + * @see #setFree(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdSwap_Free() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getFree(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdSwap#getFree <em>Free</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Free</em>' attribute. + * @see #getFree() + * @generated + */ + void setFree(DoubleMetricAttribute value); + + /** + * Returns the value of the '<em><b>Used</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Used</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Used</em>' attribute. + * @see #setUsed(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdSwap_Used() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getUsed(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdSwap#getUsed <em>Used</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Used</em>' attribute. + * @see #getUsed() + * @generated + */ + void setUsed(DoubleMetricAttribute value); + +} // CollectdSwap diff --git a/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/CollectdVmem.java b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/CollectdVmem.java new file mode 100644 index 0000000..e51d6b3 --- /dev/null +++ b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/CollectdVmem.java @@ -0,0 +1,992 @@ + +/*- + * ============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.sirius.manager.agent.collectd; + +import org.openecomp.ncomp.core.types.metrics.DoubleMetricAttribute; +import org.openecomp.ncomp.core.types.metrics.IncreasingULongMetricAttribute; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Vmem</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getActive_anon <em>Active anon</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getActive_file <em>Active file</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getAnon_pages <em>Anon pages</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getAnon_transparent_hugepages <em>Anon transparent hugepages</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getBounce <em>Bounce</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getDirtied <em>Dirtied</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getDirty <em>Dirty</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getDirty_background_threshold <em>Dirty background threshold</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getDirty_threshold <em>Dirty threshold</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getFile_pages <em>File pages</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getFree_pages <em>Free pages</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getInactive_anon <em>Inactive anon</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getInactive_file <em>Inactive file</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getIsolated_anon <em>Isolated anon</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getIsolated_file <em>Isolated file</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getKernel_stack <em>Kernel stack</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getMapped <em>Mapped</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getMlock <em>Mlock</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getPage_table_pages <em>Page table pages</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getShmem <em>Shmem</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getSlab_reclaimable <em>Slab reclaimable</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getSlab_unreclaimable <em>Slab unreclaimable</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getUnevictable <em>Unevictable</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getUnstable <em>Unstable</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getVmscan_immediate_reclaim <em>Vmscan immediate reclaim</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getVmscan_write <em>Vmscan write</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getWriteback <em>Writeback</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getWriteback_temp <em>Writeback temp</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getWritten <em>Written</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getMemory_in <em>Memory in</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getMemory_out <em>Memory out</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getSwap_in <em>Swap in</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getSwap_out <em>Swap out</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getFaults_minor <em>Faults minor</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getFaults_major <em>Faults major</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdVmem() + * @model + * @generated + */ +public interface CollectdVmem extends EObject { + /** + * 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(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdVmem_Active_anon() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getActive_anon(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#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(DoubleMetricAttribute 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(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdVmem_Active_file() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getActive_file(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#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(DoubleMetricAttribute value); + + /** + * Returns the value of the '<em><b>Anon pages</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Anon pages</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Anon pages</em>' attribute. + * @see #setAnon_pages(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdVmem_Anon_pages() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getAnon_pages(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getAnon_pages <em>Anon pages</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Anon pages</em>' attribute. + * @see #getAnon_pages() + * @generated + */ + void setAnon_pages(DoubleMetricAttribute value); + + /** + * Returns the value of the '<em><b>Anon transparent hugepages</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Anon transparent hugepages</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Anon transparent hugepages</em>' attribute. + * @see #setAnon_transparent_hugepages(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdVmem_Anon_transparent_hugepages() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getAnon_transparent_hugepages(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getAnon_transparent_hugepages <em>Anon transparent hugepages</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Anon transparent hugepages</em>' attribute. + * @see #getAnon_transparent_hugepages() + * @generated + */ + void setAnon_transparent_hugepages(DoubleMetricAttribute value); + + /** + * Returns the value of the '<em><b>Bounce</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Bounce</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Bounce</em>' attribute. + * @see #setBounce(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdVmem_Bounce() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getBounce(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getBounce <em>Bounce</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Bounce</em>' attribute. + * @see #getBounce() + * @generated + */ + void setBounce(DoubleMetricAttribute value); + + /** + * Returns the value of the '<em><b>Dirtied</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Dirtied</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Dirtied</em>' attribute. + * @see #setDirtied(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdVmem_Dirtied() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getDirtied(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getDirtied <em>Dirtied</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Dirtied</em>' attribute. + * @see #getDirtied() + * @generated + */ + void setDirtied(DoubleMetricAttribute value); + + /** + * Returns the value of the '<em><b>Dirty</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Dirty</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Dirty</em>' attribute. + * @see #setDirty(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdVmem_Dirty() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getDirty(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getDirty <em>Dirty</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Dirty</em>' attribute. + * @see #getDirty() + * @generated + */ + void setDirty(DoubleMetricAttribute value); + + /** + * Returns the value of the '<em><b>Dirty background threshold</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Dirty background threshold</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Dirty background threshold</em>' attribute. + * @see #setDirty_background_threshold(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdVmem_Dirty_background_threshold() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getDirty_background_threshold(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getDirty_background_threshold <em>Dirty background threshold</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Dirty background threshold</em>' attribute. + * @see #getDirty_background_threshold() + * @generated + */ + void setDirty_background_threshold(DoubleMetricAttribute value); + + /** + * Returns the value of the '<em><b>Dirty threshold</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Dirty threshold</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Dirty threshold</em>' attribute. + * @see #setDirty_threshold(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdVmem_Dirty_threshold() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getDirty_threshold(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getDirty_threshold <em>Dirty threshold</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Dirty threshold</em>' attribute. + * @see #getDirty_threshold() + * @generated + */ + void setDirty_threshold(DoubleMetricAttribute value); + + /** + * Returns the value of the '<em><b>File pages</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>File pages</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>File pages</em>' attribute. + * @see #setFile_pages(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdVmem_File_pages() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getFile_pages(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getFile_pages <em>File pages</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>File pages</em>' attribute. + * @see #getFile_pages() + * @generated + */ + void setFile_pages(DoubleMetricAttribute value); + + /** + * Returns the value of the '<em><b>Free pages</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Free pages</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Free pages</em>' attribute. + * @see #setFree_pages(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdVmem_Free_pages() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getFree_pages(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getFree_pages <em>Free pages</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Free pages</em>' attribute. + * @see #getFree_pages() + * @generated + */ + void setFree_pages(DoubleMetricAttribute 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(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdVmem_Inactive_anon() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getInactive_anon(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#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(DoubleMetricAttribute 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(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdVmem_Inactive_file() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getInactive_file(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#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(DoubleMetricAttribute value); + + /** + * Returns the value of the '<em><b>Isolated anon</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Isolated 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>Isolated anon</em>' attribute. + * @see #setIsolated_anon(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdVmem_Isolated_anon() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getIsolated_anon(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getIsolated_anon <em>Isolated anon</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Isolated anon</em>' attribute. + * @see #getIsolated_anon() + * @generated + */ + void setIsolated_anon(DoubleMetricAttribute value); + + /** + * Returns the value of the '<em><b>Isolated file</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Isolated 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>Isolated file</em>' attribute. + * @see #setIsolated_file(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdVmem_Isolated_file() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getIsolated_file(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getIsolated_file <em>Isolated file</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Isolated file</em>' attribute. + * @see #getIsolated_file() + * @generated + */ + void setIsolated_file(DoubleMetricAttribute value); + + /** + * Returns the value of the '<em><b>Kernel stack</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Kernel stack</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Kernel stack</em>' attribute. + * @see #setKernel_stack(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdVmem_Kernel_stack() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getKernel_stack(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getKernel_stack <em>Kernel stack</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Kernel stack</em>' attribute. + * @see #getKernel_stack() + * @generated + */ + void setKernel_stack(DoubleMetricAttribute value); + + /** + * Returns the value of the '<em><b>Mapped</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Mapped</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</em>' attribute. + * @see #setMapped(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdVmem_Mapped() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getMapped(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getMapped <em>Mapped</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Mapped</em>' attribute. + * @see #getMapped() + * @generated + */ + void setMapped(DoubleMetricAttribute value); + + /** + * Returns the value of the '<em><b>Mlock</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Mlock</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Mlock</em>' attribute. + * @see #setMlock(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdVmem_Mlock() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getMlock(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getMlock <em>Mlock</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Mlock</em>' attribute. + * @see #getMlock() + * @generated + */ + void setMlock(DoubleMetricAttribute value); + + /** + * Returns the value of the '<em><b>Page table pages</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Page table pages</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Page table pages</em>' attribute. + * @see #setPage_table_pages(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdVmem_Page_table_pages() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getPage_table_pages(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getPage_table_pages <em>Page table pages</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Page table pages</em>' attribute. + * @see #getPage_table_pages() + * @generated + */ + void setPage_table_pages(DoubleMetricAttribute value); + + /** + * Returns the value of the '<em><b>Shmem</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Shmem</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Shmem</em>' attribute. + * @see #setShmem(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdVmem_Shmem() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getShmem(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getShmem <em>Shmem</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Shmem</em>' attribute. + * @see #getShmem() + * @generated + */ + void setShmem(DoubleMetricAttribute value); + + /** + * Returns the value of the '<em><b>Slab reclaimable</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Slab reclaimable</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Slab reclaimable</em>' attribute. + * @see #setSlab_reclaimable(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdVmem_Slab_reclaimable() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getSlab_reclaimable(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getSlab_reclaimable <em>Slab reclaimable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Slab reclaimable</em>' attribute. + * @see #getSlab_reclaimable() + * @generated + */ + void setSlab_reclaimable(DoubleMetricAttribute value); + + /** + * Returns the value of the '<em><b>Slab unreclaimable</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Slab unreclaimable</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Slab unreclaimable</em>' attribute. + * @see #setSlab_unreclaimable(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdVmem_Slab_unreclaimable() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getSlab_unreclaimable(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getSlab_unreclaimable <em>Slab unreclaimable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Slab unreclaimable</em>' attribute. + * @see #getSlab_unreclaimable() + * @generated + */ + void setSlab_unreclaimable(DoubleMetricAttribute 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(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdVmem_Unevictable() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getUnevictable(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#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(DoubleMetricAttribute value); + + /** + * Returns the value of the '<em><b>Unstable</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Unstable</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Unstable</em>' attribute. + * @see #setUnstable(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdVmem_Unstable() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getUnstable(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getUnstable <em>Unstable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Unstable</em>' attribute. + * @see #getUnstable() + * @generated + */ + void setUnstable(DoubleMetricAttribute value); + + /** + * Returns the value of the '<em><b>Vmscan immediate reclaim</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Vmscan immediate reclaim</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Vmscan immediate reclaim</em>' attribute. + * @see #setVmscan_immediate_reclaim(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdVmem_Vmscan_immediate_reclaim() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getVmscan_immediate_reclaim(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getVmscan_immediate_reclaim <em>Vmscan immediate reclaim</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Vmscan immediate reclaim</em>' attribute. + * @see #getVmscan_immediate_reclaim() + * @generated + */ + void setVmscan_immediate_reclaim(DoubleMetricAttribute value); + + /** + * Returns the value of the '<em><b>Vmscan write</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Vmscan write</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Vmscan write</em>' attribute. + * @see #setVmscan_write(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdVmem_Vmscan_write() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getVmscan_write(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getVmscan_write <em>Vmscan write</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Vmscan write</em>' attribute. + * @see #getVmscan_write() + * @generated + */ + void setVmscan_write(DoubleMetricAttribute 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(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdVmem_Writeback() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getWriteback(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#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(DoubleMetricAttribute value); + + /** + * Returns the value of the '<em><b>Writeback temp</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Writeback temp</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 temp</em>' attribute. + * @see #setWriteback_temp(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdVmem_Writeback_temp() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getWriteback_temp(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getWriteback_temp <em>Writeback temp</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Writeback temp</em>' attribute. + * @see #getWriteback_temp() + * @generated + */ + void setWriteback_temp(DoubleMetricAttribute value); + + /** + * Returns the value of the '<em><b>Written</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Written</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Written</em>' attribute. + * @see #setWritten(DoubleMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdVmem_Written() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getWritten(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getWritten <em>Written</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Written</em>' attribute. + * @see #getWritten() + * @generated + */ + void setWritten(DoubleMetricAttribute value); + + /** + * Returns the value of the '<em><b>Memory in</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Memory in</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Memory in</em>' attribute. + * @see #setMemory_in(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdVmem_Memory_in() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" transient="true" + * @generated + */ + IncreasingULongMetricAttribute getMemory_in(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getMemory_in <em>Memory in</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Memory in</em>' attribute. + * @see #getMemory_in() + * @generated + */ + void setMemory_in(IncreasingULongMetricAttribute value); + + /** + * Returns the value of the '<em><b>Memory out</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Memory out</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Memory out</em>' attribute. + * @see #setMemory_out(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdVmem_Memory_out() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" transient="true" + * @generated + */ + IncreasingULongMetricAttribute getMemory_out(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getMemory_out <em>Memory out</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Memory out</em>' attribute. + * @see #getMemory_out() + * @generated + */ + void setMemory_out(IncreasingULongMetricAttribute value); + + /** + * Returns the value of the '<em><b>Swap in</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Swap in</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Swap in</em>' attribute. + * @see #setSwap_in(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdVmem_Swap_in() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" transient="true" + * @generated + */ + IncreasingULongMetricAttribute getSwap_in(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getSwap_in <em>Swap in</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Swap in</em>' attribute. + * @see #getSwap_in() + * @generated + */ + void setSwap_in(IncreasingULongMetricAttribute value); + + /** + * Returns the value of the '<em><b>Swap out</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Swap out</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Swap out</em>' attribute. + * @see #setSwap_out(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdVmem_Swap_out() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" transient="true" + * @generated + */ + IncreasingULongMetricAttribute getSwap_out(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getSwap_out <em>Swap out</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Swap out</em>' attribute. + * @see #getSwap_out() + * @generated + */ + void setSwap_out(IncreasingULongMetricAttribute value); + + /** + * Returns the value of the '<em><b>Faults minor</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Faults minor</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Faults minor</em>' attribute. + * @see #setFaults_minor(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdVmem_Faults_minor() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" transient="true" + * @generated + */ + IncreasingULongMetricAttribute getFaults_minor(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getFaults_minor <em>Faults minor</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Faults minor</em>' attribute. + * @see #getFaults_minor() + * @generated + */ + void setFaults_minor(IncreasingULongMetricAttribute value); + + /** + * Returns the value of the '<em><b>Faults major</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Faults major</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Faults major</em>' attribute. + * @see #setFaults_major(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage#getCollectdVmem_Faults_major() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" transient="true" + * @generated + */ + IncreasingULongMetricAttribute getFaults_major(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem#getFaults_major <em>Faults major</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Faults major</em>' attribute. + * @see #getFaults_major() + * @generated + */ + void setFaults_major(IncreasingULongMetricAttribute value); + +} // CollectdVmem diff --git a/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/impl/CollectdCpuImpl.java b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/impl/CollectdCpuImpl.java new file mode 100644 index 0000000..5997e29 --- /dev/null +++ b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/impl/CollectdCpuImpl.java @@ -0,0 +1,506 @@ + +/*- + * ============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.sirius.manager.agent.collectd.impl; + +import org.openecomp.ncomp.core.alerts.Alert; +import org.openecomp.ncomp.core.alerts.AlertContainer; +import org.openecomp.ncomp.core.alerts.AlertingTemplate; +import org.openecomp.ncomp.core.alerts.AlertsPackage; + +import org.openecomp.ncomp.core.impl.NamedEntityImpl; + +import org.openecomp.ncomp.core.types.metrics.IncreasingULongMetricAttribute; + +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdCpu; +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage; + +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>Cpu</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdCpuImpl#getAlerts <em>Alerts</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdCpuImpl#getAlertingTemplate <em>Alerting Template</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdCpuImpl#getIdle <em>Idle</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdCpuImpl#getWait <em>Wait</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdCpuImpl#getUser <em>User</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdCpuImpl#getSystem <em>System</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class CollectdCpuImpl extends NamedEntityImpl implements CollectdCpu { + /** + * The cached value of the '{@link #getAlerts() <em>Alerts</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAlerts() + * @generated + * @ordered + */ + protected EList<Alert> alerts; + + /** + * The cached value of the '{@link #getAlertingTemplate() <em>Alerting Template</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAlertingTemplate() + * @generated + * @ordered + */ + protected AlertingTemplate alertingTemplate; + + /** + * The default value of the '{@link #getIdle() <em>Idle</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIdle() + * @generated + * @ordered + */ + protected static final IncreasingULongMetricAttribute IDLE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIdle() <em>Idle</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIdle() + * @generated + * @ordered + */ + protected IncreasingULongMetricAttribute idle = IDLE_EDEFAULT; + + /** + * The default value of the '{@link #getWait() <em>Wait</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getWait() + * @generated + * @ordered + */ + protected static final IncreasingULongMetricAttribute WAIT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getWait() <em>Wait</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getWait() + * @generated + * @ordered + */ + protected IncreasingULongMetricAttribute wait = WAIT_EDEFAULT; + + /** + * The default value of the '{@link #getUser() <em>User</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUser() + * @generated + * @ordered + */ + protected static final IncreasingULongMetricAttribute 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 IncreasingULongMetricAttribute user = USER_EDEFAULT; + + /** + * The default value of the '{@link #getSystem() <em>System</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSystem() + * @generated + * @ordered + */ + protected static final IncreasingULongMetricAttribute SYSTEM_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSystem() <em>System</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSystem() + * @generated + * @ordered + */ + protected IncreasingULongMetricAttribute system = SYSTEM_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected CollectdCpuImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return CollectdPackage.Literals.COLLECTD_CPU; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<Alert> getAlerts() { + if (alerts == null) { + alerts = new EObjectContainmentEList<Alert>(Alert.class, this, CollectdPackage.COLLECTD_CPU__ALERTS); + } + return alerts; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public AlertingTemplate getAlertingTemplate() { + if (alertingTemplate != null && alertingTemplate.eIsProxy()) { + InternalEObject oldAlertingTemplate = (InternalEObject)alertingTemplate; + alertingTemplate = (AlertingTemplate)eResolveProxy(oldAlertingTemplate); + if (alertingTemplate != oldAlertingTemplate) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, CollectdPackage.COLLECTD_CPU__ALERTING_TEMPLATE, oldAlertingTemplate, alertingTemplate)); + } + } + return alertingTemplate; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public AlertingTemplate basicGetAlertingTemplate() { + return alertingTemplate; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setAlertingTemplate(AlertingTemplate newAlertingTemplate) { + AlertingTemplate oldAlertingTemplate = alertingTemplate; + alertingTemplate = newAlertingTemplate; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_CPU__ALERTING_TEMPLATE, oldAlertingTemplate, alertingTemplate)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IncreasingULongMetricAttribute getIdle() { + return idle; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setIdle(IncreasingULongMetricAttribute newIdle) { + IncreasingULongMetricAttribute oldIdle = idle; + idle = newIdle; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_CPU__IDLE, oldIdle, idle)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IncreasingULongMetricAttribute getWait() { + return wait; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setWait(IncreasingULongMetricAttribute newWait) { + IncreasingULongMetricAttribute oldWait = wait; + wait = newWait; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_CPU__WAIT, oldWait, wait)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IncreasingULongMetricAttribute getUser() { + return user; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setUser(IncreasingULongMetricAttribute newUser) { + IncreasingULongMetricAttribute oldUser = user; + user = newUser; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_CPU__USER, oldUser, user)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IncreasingULongMetricAttribute getSystem() { + return system; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setSystem(IncreasingULongMetricAttribute newSystem) { + IncreasingULongMetricAttribute oldSystem = system; + system = newSystem; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_CPU__SYSTEM, oldSystem, system)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case CollectdPackage.COLLECTD_CPU__ALERTS: + return ((InternalEList<?>)getAlerts()).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 CollectdPackage.COLLECTD_CPU__ALERTS: + return getAlerts(); + case CollectdPackage.COLLECTD_CPU__ALERTING_TEMPLATE: + if (resolve) return getAlertingTemplate(); + return basicGetAlertingTemplate(); + case CollectdPackage.COLLECTD_CPU__IDLE: + return getIdle(); + case CollectdPackage.COLLECTD_CPU__WAIT: + return getWait(); + case CollectdPackage.COLLECTD_CPU__USER: + return getUser(); + case CollectdPackage.COLLECTD_CPU__SYSTEM: + return getSystem(); + } + 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 CollectdPackage.COLLECTD_CPU__ALERTS: + getAlerts().clear(); + getAlerts().addAll((Collection<? extends Alert>)newValue); + return; + case CollectdPackage.COLLECTD_CPU__ALERTING_TEMPLATE: + setAlertingTemplate((AlertingTemplate)newValue); + return; + case CollectdPackage.COLLECTD_CPU__IDLE: + setIdle((IncreasingULongMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_CPU__WAIT: + setWait((IncreasingULongMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_CPU__USER: + setUser((IncreasingULongMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_CPU__SYSTEM: + setSystem((IncreasingULongMetricAttribute)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case CollectdPackage.COLLECTD_CPU__ALERTS: + getAlerts().clear(); + return; + case CollectdPackage.COLLECTD_CPU__ALERTING_TEMPLATE: + setAlertingTemplate((AlertingTemplate)null); + return; + case CollectdPackage.COLLECTD_CPU__IDLE: + setIdle(IDLE_EDEFAULT); + return; + case CollectdPackage.COLLECTD_CPU__WAIT: + setWait(WAIT_EDEFAULT); + return; + case CollectdPackage.COLLECTD_CPU__USER: + setUser(USER_EDEFAULT); + return; + case CollectdPackage.COLLECTD_CPU__SYSTEM: + setSystem(SYSTEM_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case CollectdPackage.COLLECTD_CPU__ALERTS: + return alerts != null && !alerts.isEmpty(); + case CollectdPackage.COLLECTD_CPU__ALERTING_TEMPLATE: + return alertingTemplate != null; + case CollectdPackage.COLLECTD_CPU__IDLE: + return IDLE_EDEFAULT == null ? idle != null : !IDLE_EDEFAULT.equals(idle); + case CollectdPackage.COLLECTD_CPU__WAIT: + return WAIT_EDEFAULT == null ? wait != null : !WAIT_EDEFAULT.equals(wait); + case CollectdPackage.COLLECTD_CPU__USER: + return USER_EDEFAULT == null ? user != null : !USER_EDEFAULT.equals(user); + case CollectdPackage.COLLECTD_CPU__SYSTEM: + return SYSTEM_EDEFAULT == null ? system != null : !SYSTEM_EDEFAULT.equals(system); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) { + if (baseClass == AlertContainer.class) { + switch (derivedFeatureID) { + case CollectdPackage.COLLECTD_CPU__ALERTS: return AlertsPackage.ALERT_CONTAINER__ALERTS; + case CollectdPackage.COLLECTD_CPU__ALERTING_TEMPLATE: return AlertsPackage.ALERT_CONTAINER__ALERTING_TEMPLATE; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) { + if (baseClass == AlertContainer.class) { + switch (baseFeatureID) { + case AlertsPackage.ALERT_CONTAINER__ALERTS: return CollectdPackage.COLLECTD_CPU__ALERTS; + case AlertsPackage.ALERT_CONTAINER__ALERTING_TEMPLATE: return CollectdPackage.COLLECTD_CPU__ALERTING_TEMPLATE; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (idle: "); + result.append(idle); + result.append(", wait: "); + result.append(wait); + result.append(", user: "); + result.append(user); + result.append(", system: "); + result.append(system); + result.append(')'); + return result.toString(); + } + +} //CollectdCpuImpl diff --git a/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/impl/CollectdDiskImpl.java b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/impl/CollectdDiskImpl.java new file mode 100644 index 0000000..bdeb637 --- /dev/null +++ b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/impl/CollectdDiskImpl.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.sirius.manager.agent.collectd.impl; + +import org.openecomp.ncomp.core.alerts.Alert; +import org.openecomp.ncomp.core.alerts.AlertContainer; +import org.openecomp.ncomp.core.alerts.AlertingTemplate; +import org.openecomp.ncomp.core.alerts.AlertsPackage; + +import org.openecomp.ncomp.core.impl.NamedEntityImpl; + +import org.openecomp.ncomp.core.types.metrics.IncreasingULongMetricAttribute; + +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdDisk; +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage; + +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>Disk</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdDiskImpl#getAlerts <em>Alerts</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdDiskImpl#getAlertingTemplate <em>Alerting Template</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdDiskImpl#getDisk_merged_read <em>Disk merged read</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdDiskImpl#getDisk_merged_write <em>Disk merged write</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdDiskImpl#getDisk_octets_read <em>Disk octets read</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdDiskImpl#getDisk_octets_write <em>Disk octets write</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdDiskImpl#getDisk_ops_read <em>Disk ops read</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdDiskImpl#getDisk_ops_write <em>Disk ops write</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdDiskImpl#getDisk_time_read <em>Disk time read</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdDiskImpl#getDisk_time_write <em>Disk time write</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class CollectdDiskImpl extends NamedEntityImpl implements CollectdDisk { + /** + * The cached value of the '{@link #getAlerts() <em>Alerts</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAlerts() + * @generated + * @ordered + */ + protected EList<Alert> alerts; + + /** + * The cached value of the '{@link #getAlertingTemplate() <em>Alerting Template</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAlertingTemplate() + * @generated + * @ordered + */ + protected AlertingTemplate alertingTemplate; + + /** + * The default value of the '{@link #getDisk_merged_read() <em>Disk merged read</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDisk_merged_read() + * @generated + * @ordered + */ + protected static final IncreasingULongMetricAttribute DISK_MERGED_READ_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDisk_merged_read() <em>Disk merged read</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDisk_merged_read() + * @generated + * @ordered + */ + protected IncreasingULongMetricAttribute disk_merged_read = DISK_MERGED_READ_EDEFAULT; + + /** + * The default value of the '{@link #getDisk_merged_write() <em>Disk merged write</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDisk_merged_write() + * @generated + * @ordered + */ + protected static final IncreasingULongMetricAttribute DISK_MERGED_WRITE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDisk_merged_write() <em>Disk merged write</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDisk_merged_write() + * @generated + * @ordered + */ + protected IncreasingULongMetricAttribute disk_merged_write = DISK_MERGED_WRITE_EDEFAULT; + + /** + * The default value of the '{@link #getDisk_octets_read() <em>Disk octets read</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDisk_octets_read() + * @generated + * @ordered + */ + protected static final IncreasingULongMetricAttribute DISK_OCTETS_READ_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDisk_octets_read() <em>Disk octets read</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDisk_octets_read() + * @generated + * @ordered + */ + protected IncreasingULongMetricAttribute disk_octets_read = DISK_OCTETS_READ_EDEFAULT; + + /** + * The default value of the '{@link #getDisk_octets_write() <em>Disk octets write</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDisk_octets_write() + * @generated + * @ordered + */ + protected static final IncreasingULongMetricAttribute DISK_OCTETS_WRITE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDisk_octets_write() <em>Disk octets write</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDisk_octets_write() + * @generated + * @ordered + */ + protected IncreasingULongMetricAttribute disk_octets_write = DISK_OCTETS_WRITE_EDEFAULT; + + /** + * The default value of the '{@link #getDisk_ops_read() <em>Disk ops read</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDisk_ops_read() + * @generated + * @ordered + */ + protected static final IncreasingULongMetricAttribute DISK_OPS_READ_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDisk_ops_read() <em>Disk ops read</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDisk_ops_read() + * @generated + * @ordered + */ + protected IncreasingULongMetricAttribute disk_ops_read = DISK_OPS_READ_EDEFAULT; + + /** + * The default value of the '{@link #getDisk_ops_write() <em>Disk ops write</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDisk_ops_write() + * @generated + * @ordered + */ + protected static final IncreasingULongMetricAttribute DISK_OPS_WRITE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDisk_ops_write() <em>Disk ops write</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDisk_ops_write() + * @generated + * @ordered + */ + protected IncreasingULongMetricAttribute disk_ops_write = DISK_OPS_WRITE_EDEFAULT; + + /** + * The default value of the '{@link #getDisk_time_read() <em>Disk time read</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDisk_time_read() + * @generated + * @ordered + */ + protected static final IncreasingULongMetricAttribute DISK_TIME_READ_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDisk_time_read() <em>Disk time read</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDisk_time_read() + * @generated + * @ordered + */ + protected IncreasingULongMetricAttribute disk_time_read = DISK_TIME_READ_EDEFAULT; + + /** + * The default value of the '{@link #getDisk_time_write() <em>Disk time write</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDisk_time_write() + * @generated + * @ordered + */ + protected static final IncreasingULongMetricAttribute DISK_TIME_WRITE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDisk_time_write() <em>Disk time write</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDisk_time_write() + * @generated + * @ordered + */ + protected IncreasingULongMetricAttribute disk_time_write = DISK_TIME_WRITE_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected CollectdDiskImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return CollectdPackage.Literals.COLLECTD_DISK; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<Alert> getAlerts() { + if (alerts == null) { + alerts = new EObjectContainmentEList<Alert>(Alert.class, this, CollectdPackage.COLLECTD_DISK__ALERTS); + } + return alerts; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public AlertingTemplate getAlertingTemplate() { + if (alertingTemplate != null && alertingTemplate.eIsProxy()) { + InternalEObject oldAlertingTemplate = (InternalEObject)alertingTemplate; + alertingTemplate = (AlertingTemplate)eResolveProxy(oldAlertingTemplate); + if (alertingTemplate != oldAlertingTemplate) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, CollectdPackage.COLLECTD_DISK__ALERTING_TEMPLATE, oldAlertingTemplate, alertingTemplate)); + } + } + return alertingTemplate; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public AlertingTemplate basicGetAlertingTemplate() { + return alertingTemplate; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setAlertingTemplate(AlertingTemplate newAlertingTemplate) { + AlertingTemplate oldAlertingTemplate = alertingTemplate; + alertingTemplate = newAlertingTemplate; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_DISK__ALERTING_TEMPLATE, oldAlertingTemplate, alertingTemplate)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IncreasingULongMetricAttribute getDisk_merged_read() { + return disk_merged_read; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDisk_merged_read(IncreasingULongMetricAttribute newDisk_merged_read) { + IncreasingULongMetricAttribute oldDisk_merged_read = disk_merged_read; + disk_merged_read = newDisk_merged_read; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_DISK__DISK_MERGED_READ, oldDisk_merged_read, disk_merged_read)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IncreasingULongMetricAttribute getDisk_merged_write() { + return disk_merged_write; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDisk_merged_write(IncreasingULongMetricAttribute newDisk_merged_write) { + IncreasingULongMetricAttribute oldDisk_merged_write = disk_merged_write; + disk_merged_write = newDisk_merged_write; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_DISK__DISK_MERGED_WRITE, oldDisk_merged_write, disk_merged_write)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IncreasingULongMetricAttribute getDisk_octets_read() { + return disk_octets_read; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDisk_octets_read(IncreasingULongMetricAttribute newDisk_octets_read) { + IncreasingULongMetricAttribute oldDisk_octets_read = disk_octets_read; + disk_octets_read = newDisk_octets_read; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_DISK__DISK_OCTETS_READ, oldDisk_octets_read, disk_octets_read)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IncreasingULongMetricAttribute getDisk_octets_write() { + return disk_octets_write; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDisk_octets_write(IncreasingULongMetricAttribute newDisk_octets_write) { + IncreasingULongMetricAttribute oldDisk_octets_write = disk_octets_write; + disk_octets_write = newDisk_octets_write; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_DISK__DISK_OCTETS_WRITE, oldDisk_octets_write, disk_octets_write)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IncreasingULongMetricAttribute getDisk_ops_read() { + return disk_ops_read; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDisk_ops_read(IncreasingULongMetricAttribute newDisk_ops_read) { + IncreasingULongMetricAttribute oldDisk_ops_read = disk_ops_read; + disk_ops_read = newDisk_ops_read; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_DISK__DISK_OPS_READ, oldDisk_ops_read, disk_ops_read)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IncreasingULongMetricAttribute getDisk_ops_write() { + return disk_ops_write; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDisk_ops_write(IncreasingULongMetricAttribute newDisk_ops_write) { + IncreasingULongMetricAttribute oldDisk_ops_write = disk_ops_write; + disk_ops_write = newDisk_ops_write; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_DISK__DISK_OPS_WRITE, oldDisk_ops_write, disk_ops_write)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IncreasingULongMetricAttribute getDisk_time_read() { + return disk_time_read; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDisk_time_read(IncreasingULongMetricAttribute newDisk_time_read) { + IncreasingULongMetricAttribute oldDisk_time_read = disk_time_read; + disk_time_read = newDisk_time_read; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_DISK__DISK_TIME_READ, oldDisk_time_read, disk_time_read)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IncreasingULongMetricAttribute getDisk_time_write() { + return disk_time_write; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDisk_time_write(IncreasingULongMetricAttribute newDisk_time_write) { + IncreasingULongMetricAttribute oldDisk_time_write = disk_time_write; + disk_time_write = newDisk_time_write; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_DISK__DISK_TIME_WRITE, oldDisk_time_write, disk_time_write)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case CollectdPackage.COLLECTD_DISK__ALERTS: + return ((InternalEList<?>)getAlerts()).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 CollectdPackage.COLLECTD_DISK__ALERTS: + return getAlerts(); + case CollectdPackage.COLLECTD_DISK__ALERTING_TEMPLATE: + if (resolve) return getAlertingTemplate(); + return basicGetAlertingTemplate(); + case CollectdPackage.COLLECTD_DISK__DISK_MERGED_READ: + return getDisk_merged_read(); + case CollectdPackage.COLLECTD_DISK__DISK_MERGED_WRITE: + return getDisk_merged_write(); + case CollectdPackage.COLLECTD_DISK__DISK_OCTETS_READ: + return getDisk_octets_read(); + case CollectdPackage.COLLECTD_DISK__DISK_OCTETS_WRITE: + return getDisk_octets_write(); + case CollectdPackage.COLLECTD_DISK__DISK_OPS_READ: + return getDisk_ops_read(); + case CollectdPackage.COLLECTD_DISK__DISK_OPS_WRITE: + return getDisk_ops_write(); + case CollectdPackage.COLLECTD_DISK__DISK_TIME_READ: + return getDisk_time_read(); + case CollectdPackage.COLLECTD_DISK__DISK_TIME_WRITE: + return getDisk_time_write(); + } + 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 CollectdPackage.COLLECTD_DISK__ALERTS: + getAlerts().clear(); + getAlerts().addAll((Collection<? extends Alert>)newValue); + return; + case CollectdPackage.COLLECTD_DISK__ALERTING_TEMPLATE: + setAlertingTemplate((AlertingTemplate)newValue); + return; + case CollectdPackage.COLLECTD_DISK__DISK_MERGED_READ: + setDisk_merged_read((IncreasingULongMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_DISK__DISK_MERGED_WRITE: + setDisk_merged_write((IncreasingULongMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_DISK__DISK_OCTETS_READ: + setDisk_octets_read((IncreasingULongMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_DISK__DISK_OCTETS_WRITE: + setDisk_octets_write((IncreasingULongMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_DISK__DISK_OPS_READ: + setDisk_ops_read((IncreasingULongMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_DISK__DISK_OPS_WRITE: + setDisk_ops_write((IncreasingULongMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_DISK__DISK_TIME_READ: + setDisk_time_read((IncreasingULongMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_DISK__DISK_TIME_WRITE: + setDisk_time_write((IncreasingULongMetricAttribute)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case CollectdPackage.COLLECTD_DISK__ALERTS: + getAlerts().clear(); + return; + case CollectdPackage.COLLECTD_DISK__ALERTING_TEMPLATE: + setAlertingTemplate((AlertingTemplate)null); + return; + case CollectdPackage.COLLECTD_DISK__DISK_MERGED_READ: + setDisk_merged_read(DISK_MERGED_READ_EDEFAULT); + return; + case CollectdPackage.COLLECTD_DISK__DISK_MERGED_WRITE: + setDisk_merged_write(DISK_MERGED_WRITE_EDEFAULT); + return; + case CollectdPackage.COLLECTD_DISK__DISK_OCTETS_READ: + setDisk_octets_read(DISK_OCTETS_READ_EDEFAULT); + return; + case CollectdPackage.COLLECTD_DISK__DISK_OCTETS_WRITE: + setDisk_octets_write(DISK_OCTETS_WRITE_EDEFAULT); + return; + case CollectdPackage.COLLECTD_DISK__DISK_OPS_READ: + setDisk_ops_read(DISK_OPS_READ_EDEFAULT); + return; + case CollectdPackage.COLLECTD_DISK__DISK_OPS_WRITE: + setDisk_ops_write(DISK_OPS_WRITE_EDEFAULT); + return; + case CollectdPackage.COLLECTD_DISK__DISK_TIME_READ: + setDisk_time_read(DISK_TIME_READ_EDEFAULT); + return; + case CollectdPackage.COLLECTD_DISK__DISK_TIME_WRITE: + setDisk_time_write(DISK_TIME_WRITE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case CollectdPackage.COLLECTD_DISK__ALERTS: + return alerts != null && !alerts.isEmpty(); + case CollectdPackage.COLLECTD_DISK__ALERTING_TEMPLATE: + return alertingTemplate != null; + case CollectdPackage.COLLECTD_DISK__DISK_MERGED_READ: + return DISK_MERGED_READ_EDEFAULT == null ? disk_merged_read != null : !DISK_MERGED_READ_EDEFAULT.equals(disk_merged_read); + case CollectdPackage.COLLECTD_DISK__DISK_MERGED_WRITE: + return DISK_MERGED_WRITE_EDEFAULT == null ? disk_merged_write != null : !DISK_MERGED_WRITE_EDEFAULT.equals(disk_merged_write); + case CollectdPackage.COLLECTD_DISK__DISK_OCTETS_READ: + return DISK_OCTETS_READ_EDEFAULT == null ? disk_octets_read != null : !DISK_OCTETS_READ_EDEFAULT.equals(disk_octets_read); + case CollectdPackage.COLLECTD_DISK__DISK_OCTETS_WRITE: + return DISK_OCTETS_WRITE_EDEFAULT == null ? disk_octets_write != null : !DISK_OCTETS_WRITE_EDEFAULT.equals(disk_octets_write); + case CollectdPackage.COLLECTD_DISK__DISK_OPS_READ: + return DISK_OPS_READ_EDEFAULT == null ? disk_ops_read != null : !DISK_OPS_READ_EDEFAULT.equals(disk_ops_read); + case CollectdPackage.COLLECTD_DISK__DISK_OPS_WRITE: + return DISK_OPS_WRITE_EDEFAULT == null ? disk_ops_write != null : !DISK_OPS_WRITE_EDEFAULT.equals(disk_ops_write); + case CollectdPackage.COLLECTD_DISK__DISK_TIME_READ: + return DISK_TIME_READ_EDEFAULT == null ? disk_time_read != null : !DISK_TIME_READ_EDEFAULT.equals(disk_time_read); + case CollectdPackage.COLLECTD_DISK__DISK_TIME_WRITE: + return DISK_TIME_WRITE_EDEFAULT == null ? disk_time_write != null : !DISK_TIME_WRITE_EDEFAULT.equals(disk_time_write); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) { + if (baseClass == AlertContainer.class) { + switch (derivedFeatureID) { + case CollectdPackage.COLLECTD_DISK__ALERTS: return AlertsPackage.ALERT_CONTAINER__ALERTS; + case CollectdPackage.COLLECTD_DISK__ALERTING_TEMPLATE: return AlertsPackage.ALERT_CONTAINER__ALERTING_TEMPLATE; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) { + if (baseClass == AlertContainer.class) { + switch (baseFeatureID) { + case AlertsPackage.ALERT_CONTAINER__ALERTS: return CollectdPackage.COLLECTD_DISK__ALERTS; + case AlertsPackage.ALERT_CONTAINER__ALERTING_TEMPLATE: return CollectdPackage.COLLECTD_DISK__ALERTING_TEMPLATE; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (disk_merged_read: "); + result.append(disk_merged_read); + result.append(", disk_merged_write: "); + result.append(disk_merged_write); + result.append(", disk_octets_read: "); + result.append(disk_octets_read); + result.append(", disk_octets_write: "); + result.append(disk_octets_write); + result.append(", disk_ops_read: "); + result.append(disk_ops_read); + result.append(", disk_ops_write: "); + result.append(disk_ops_write); + result.append(", disk_time_read: "); + result.append(disk_time_read); + result.append(", disk_time_write: "); + result.append(disk_time_write); + result.append(')'); + return result.toString(); + } + +} //CollectdDiskImpl diff --git a/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/impl/CollectdFactoryImpl.java b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/impl/CollectdFactoryImpl.java new file mode 100644 index 0000000..9b47ef8 --- /dev/null +++ b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/impl/CollectdFactoryImpl.java @@ -0,0 +1,237 @@ + +/*- + * ============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.sirius.manager.agent.collectd.impl; + +import org.openecomp.ncomp.sirius.manager.agent.collectd.*; + +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 CollectdFactoryImpl extends EFactoryImpl implements CollectdFactory { + /** + * Creates the default factory implementation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static CollectdFactory init() { + try { + CollectdFactory theCollectdFactory = (CollectdFactory)EPackage.Registry.INSTANCE.getEFactory(CollectdPackage.eNS_URI); + if (theCollectdFactory != null) { + return theCollectdFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new CollectdFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CollectdFactoryImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case CollectdPackage.COLLECTD_SERVER: return createCollectdServer(); + case CollectdPackage.COLLECTD_MEMORY: return createCollectdMemory(); + case CollectdPackage.COLLECTD_SWAP: return createCollectdSwap(); + case CollectdPackage.COLLECTD_PROCESSES: return createCollectdProcesses(); + case CollectdPackage.COLLECTD_VMEM: return createCollectdVmem(); + case CollectdPackage.COLLECTD_CPU: return createCollectdCpu(); + case CollectdPackage.COLLECTD_DISK: return createCollectdDisk(); + case CollectdPackage.COLLECTD_FILE_SYSTEM: return createCollectdFileSystem(); + case CollectdPackage.COLLECTD_INTERFACE: return createCollectdInterface(); + case CollectdPackage.COLLECTD_KVM_INSTANCE: return createCollectdKvmInstance(); + case CollectdPackage.COLLECTD_KVM_DISK: return createCollectdKvmDisk(); + case CollectdPackage.COLLECTD_KVM_INTERFACE: return createCollectdKvmInterface(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CollectdServer createCollectdServer() { + CollectdServerImpl collectdServer = new CollectdServerImpl(); + return collectdServer; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CollectdMemory createCollectdMemory() { + CollectdMemoryImpl collectdMemory = new CollectdMemoryImpl(); + return collectdMemory; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CollectdSwap createCollectdSwap() { + CollectdSwapImpl collectdSwap = new CollectdSwapImpl(); + return collectdSwap; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CollectdProcesses createCollectdProcesses() { + CollectdProcessesImpl collectdProcesses = new CollectdProcessesImpl(); + return collectdProcesses; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CollectdVmem createCollectdVmem() { + CollectdVmemImpl collectdVmem = new CollectdVmemImpl(); + return collectdVmem; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CollectdCpu createCollectdCpu() { + CollectdCpuImpl collectdCpu = new CollectdCpuImpl(); + return collectdCpu; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CollectdDisk createCollectdDisk() { + CollectdDiskImpl collectdDisk = new CollectdDiskImpl(); + return collectdDisk; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CollectdFileSystem createCollectdFileSystem() { + CollectdFileSystemImpl collectdFileSystem = new CollectdFileSystemImpl(); + return collectdFileSystem; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CollectdInterface createCollectdInterface() { + CollectdInterfaceImpl collectdInterface = new CollectdInterfaceImpl(); + return collectdInterface; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CollectdKvmInstance createCollectdKvmInstance() { + CollectdKvmInstanceImpl collectdKvmInstance = new CollectdKvmInstanceImpl(); + return collectdKvmInstance; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CollectdKvmDisk createCollectdKvmDisk() { + CollectdKvmDiskImpl collectdKvmDisk = new CollectdKvmDiskImpl(); + return collectdKvmDisk; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CollectdKvmInterface createCollectdKvmInterface() { + CollectdKvmInterfaceImpl collectdKvmInterface = new CollectdKvmInterfaceImpl(); + return collectdKvmInterface; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CollectdPackage getCollectdPackage() { + return (CollectdPackage)getEPackage(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @deprecated + * @generated + */ + @Deprecated + public static CollectdPackage getPackage() { + return CollectdPackage.eINSTANCE; + } + +} //CollectdFactoryImpl diff --git a/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/impl/CollectdFileSystemImpl.java b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/impl/CollectdFileSystemImpl.java new file mode 100644 index 0000000..3f7d6a4 --- /dev/null +++ b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/impl/CollectdFileSystemImpl.java @@ -0,0 +1,398 @@ + +/*- + * ============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.sirius.manager.agent.collectd.impl; + +import org.openecomp.ncomp.core.alerts.Alert; +import org.openecomp.ncomp.core.alerts.AlertContainer; +import org.openecomp.ncomp.core.alerts.AlertingTemplate; +import org.openecomp.ncomp.core.alerts.AlertsPackage; + +import org.openecomp.ncomp.core.impl.NamedEntityImpl; + +import org.openecomp.ncomp.core.types.metrics.DoubleMetricAttribute; + +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdFileSystem; +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage; + +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>File System</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdFileSystemImpl#getAlerts <em>Alerts</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdFileSystemImpl#getAlertingTemplate <em>Alerting Template</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdFileSystemImpl#getUsed <em>Used</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdFileSystemImpl#getFree <em>Free</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class CollectdFileSystemImpl extends NamedEntityImpl implements CollectdFileSystem { + /** + * The cached value of the '{@link #getAlerts() <em>Alerts</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAlerts() + * @generated + * @ordered + */ + protected EList<Alert> alerts; + + /** + * The cached value of the '{@link #getAlertingTemplate() <em>Alerting Template</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAlertingTemplate() + * @generated + * @ordered + */ + protected AlertingTemplate alertingTemplate; + + /** + * The default value of the '{@link #getUsed() <em>Used</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUsed() + * @generated + * @ordered + */ + protected static final DoubleMetricAttribute USED_EDEFAULT = null; + + /** + * The cached value of the '{@link #getUsed() <em>Used</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUsed() + * @generated + * @ordered + */ + protected DoubleMetricAttribute used = USED_EDEFAULT; + + /** + * The default value of the '{@link #getFree() <em>Free</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFree() + * @generated + * @ordered + */ + protected static final DoubleMetricAttribute FREE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getFree() <em>Free</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFree() + * @generated + * @ordered + */ + protected DoubleMetricAttribute free = FREE_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected CollectdFileSystemImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return CollectdPackage.Literals.COLLECTD_FILE_SYSTEM; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<Alert> getAlerts() { + if (alerts == null) { + alerts = new EObjectContainmentEList<Alert>(Alert.class, this, CollectdPackage.COLLECTD_FILE_SYSTEM__ALERTS); + } + return alerts; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public AlertingTemplate getAlertingTemplate() { + if (alertingTemplate != null && alertingTemplate.eIsProxy()) { + InternalEObject oldAlertingTemplate = (InternalEObject)alertingTemplate; + alertingTemplate = (AlertingTemplate)eResolveProxy(oldAlertingTemplate); + if (alertingTemplate != oldAlertingTemplate) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, CollectdPackage.COLLECTD_FILE_SYSTEM__ALERTING_TEMPLATE, oldAlertingTemplate, alertingTemplate)); + } + } + return alertingTemplate; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public AlertingTemplate basicGetAlertingTemplate() { + return alertingTemplate; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setAlertingTemplate(AlertingTemplate newAlertingTemplate) { + AlertingTemplate oldAlertingTemplate = alertingTemplate; + alertingTemplate = newAlertingTemplate; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_FILE_SYSTEM__ALERTING_TEMPLATE, oldAlertingTemplate, alertingTemplate)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getUsed() { + return used; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setUsed(DoubleMetricAttribute newUsed) { + DoubleMetricAttribute oldUsed = used; + used = newUsed; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_FILE_SYSTEM__USED, oldUsed, used)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getFree() { + return free; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setFree(DoubleMetricAttribute newFree) { + DoubleMetricAttribute oldFree = free; + free = newFree; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_FILE_SYSTEM__FREE, oldFree, free)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case CollectdPackage.COLLECTD_FILE_SYSTEM__ALERTS: + return ((InternalEList<?>)getAlerts()).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 CollectdPackage.COLLECTD_FILE_SYSTEM__ALERTS: + return getAlerts(); + case CollectdPackage.COLLECTD_FILE_SYSTEM__ALERTING_TEMPLATE: + if (resolve) return getAlertingTemplate(); + return basicGetAlertingTemplate(); + case CollectdPackage.COLLECTD_FILE_SYSTEM__USED: + return getUsed(); + case CollectdPackage.COLLECTD_FILE_SYSTEM__FREE: + return getFree(); + } + 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 CollectdPackage.COLLECTD_FILE_SYSTEM__ALERTS: + getAlerts().clear(); + getAlerts().addAll((Collection<? extends Alert>)newValue); + return; + case CollectdPackage.COLLECTD_FILE_SYSTEM__ALERTING_TEMPLATE: + setAlertingTemplate((AlertingTemplate)newValue); + return; + case CollectdPackage.COLLECTD_FILE_SYSTEM__USED: + setUsed((DoubleMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_FILE_SYSTEM__FREE: + setFree((DoubleMetricAttribute)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case CollectdPackage.COLLECTD_FILE_SYSTEM__ALERTS: + getAlerts().clear(); + return; + case CollectdPackage.COLLECTD_FILE_SYSTEM__ALERTING_TEMPLATE: + setAlertingTemplate((AlertingTemplate)null); + return; + case CollectdPackage.COLLECTD_FILE_SYSTEM__USED: + setUsed(USED_EDEFAULT); + return; + case CollectdPackage.COLLECTD_FILE_SYSTEM__FREE: + setFree(FREE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case CollectdPackage.COLLECTD_FILE_SYSTEM__ALERTS: + return alerts != null && !alerts.isEmpty(); + case CollectdPackage.COLLECTD_FILE_SYSTEM__ALERTING_TEMPLATE: + return alertingTemplate != null; + case CollectdPackage.COLLECTD_FILE_SYSTEM__USED: + return USED_EDEFAULT == null ? used != null : !USED_EDEFAULT.equals(used); + case CollectdPackage.COLLECTD_FILE_SYSTEM__FREE: + return FREE_EDEFAULT == null ? free != null : !FREE_EDEFAULT.equals(free); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) { + if (baseClass == AlertContainer.class) { + switch (derivedFeatureID) { + case CollectdPackage.COLLECTD_FILE_SYSTEM__ALERTS: return AlertsPackage.ALERT_CONTAINER__ALERTS; + case CollectdPackage.COLLECTD_FILE_SYSTEM__ALERTING_TEMPLATE: return AlertsPackage.ALERT_CONTAINER__ALERTING_TEMPLATE; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) { + if (baseClass == AlertContainer.class) { + switch (baseFeatureID) { + case AlertsPackage.ALERT_CONTAINER__ALERTS: return CollectdPackage.COLLECTD_FILE_SYSTEM__ALERTS; + case AlertsPackage.ALERT_CONTAINER__ALERTING_TEMPLATE: return CollectdPackage.COLLECTD_FILE_SYSTEM__ALERTING_TEMPLATE; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (used: "); + result.append(used); + result.append(", free: "); + result.append(free); + result.append(')'); + return result.toString(); + } + +} //CollectdFileSystemImpl diff --git a/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/impl/CollectdInterfaceImpl.java b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/impl/CollectdInterfaceImpl.java new file mode 100644 index 0000000..8b26b29 --- /dev/null +++ b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/impl/CollectdInterfaceImpl.java @@ -0,0 +1,614 @@ + +/*- + * ============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.sirius.manager.agent.collectd.impl; + +import org.openecomp.ncomp.core.alerts.Alert; +import org.openecomp.ncomp.core.alerts.AlertContainer; +import org.openecomp.ncomp.core.alerts.AlertingTemplate; +import org.openecomp.ncomp.core.alerts.AlertsPackage; + +import org.openecomp.ncomp.core.impl.NamedEntityImpl; + +import org.openecomp.ncomp.core.types.metrics.IncreasingULongMetricAttribute; + +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdInterface; +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage; + +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>Interface</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdInterfaceImpl#getAlerts <em>Alerts</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdInterfaceImpl#getAlertingTemplate <em>Alerting Template</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdInterfaceImpl#getIf_errors_rx <em>If errors rx</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdInterfaceImpl#getIf_errors_tx <em>If errors tx</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdInterfaceImpl#getIf_octets_rx <em>If octets rx</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdInterfaceImpl#getIf_octets_tx <em>If octets tx</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdInterfaceImpl#getIf_packets_rx <em>If packets rx</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdInterfaceImpl#getIf_packets_tx <em>If packets tx</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class CollectdInterfaceImpl extends NamedEntityImpl implements CollectdInterface { + /** + * The cached value of the '{@link #getAlerts() <em>Alerts</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAlerts() + * @generated + * @ordered + */ + protected EList<Alert> alerts; + + /** + * The cached value of the '{@link #getAlertingTemplate() <em>Alerting Template</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAlertingTemplate() + * @generated + * @ordered + */ + protected AlertingTemplate alertingTemplate; + + /** + * The default value of the '{@link #getIf_errors_rx() <em>If errors rx</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIf_errors_rx() + * @generated + * @ordered + */ + protected static final IncreasingULongMetricAttribute IF_ERRORS_RX_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIf_errors_rx() <em>If errors rx</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIf_errors_rx() + * @generated + * @ordered + */ + protected IncreasingULongMetricAttribute if_errors_rx = IF_ERRORS_RX_EDEFAULT; + + /** + * The default value of the '{@link #getIf_errors_tx() <em>If errors tx</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIf_errors_tx() + * @generated + * @ordered + */ + protected static final IncreasingULongMetricAttribute IF_ERRORS_TX_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIf_errors_tx() <em>If errors tx</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIf_errors_tx() + * @generated + * @ordered + */ + protected IncreasingULongMetricAttribute if_errors_tx = IF_ERRORS_TX_EDEFAULT; + + /** + * The default value of the '{@link #getIf_octets_rx() <em>If octets rx</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIf_octets_rx() + * @generated + * @ordered + */ + protected static final IncreasingULongMetricAttribute IF_OCTETS_RX_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIf_octets_rx() <em>If octets rx</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIf_octets_rx() + * @generated + * @ordered + */ + protected IncreasingULongMetricAttribute if_octets_rx = IF_OCTETS_RX_EDEFAULT; + + /** + * The default value of the '{@link #getIf_octets_tx() <em>If octets tx</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIf_octets_tx() + * @generated + * @ordered + */ + protected static final IncreasingULongMetricAttribute IF_OCTETS_TX_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIf_octets_tx() <em>If octets tx</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIf_octets_tx() + * @generated + * @ordered + */ + protected IncreasingULongMetricAttribute if_octets_tx = IF_OCTETS_TX_EDEFAULT; + + /** + * The default value of the '{@link #getIf_packets_rx() <em>If packets rx</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIf_packets_rx() + * @generated + * @ordered + */ + protected static final IncreasingULongMetricAttribute IF_PACKETS_RX_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIf_packets_rx() <em>If packets rx</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIf_packets_rx() + * @generated + * @ordered + */ + protected IncreasingULongMetricAttribute if_packets_rx = IF_PACKETS_RX_EDEFAULT; + + /** + * The default value of the '{@link #getIf_packets_tx() <em>If packets tx</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIf_packets_tx() + * @generated + * @ordered + */ + protected static final IncreasingULongMetricAttribute IF_PACKETS_TX_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIf_packets_tx() <em>If packets tx</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIf_packets_tx() + * @generated + * @ordered + */ + protected IncreasingULongMetricAttribute if_packets_tx = IF_PACKETS_TX_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected CollectdInterfaceImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return CollectdPackage.Literals.COLLECTD_INTERFACE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<Alert> getAlerts() { + if (alerts == null) { + alerts = new EObjectContainmentEList<Alert>(Alert.class, this, CollectdPackage.COLLECTD_INTERFACE__ALERTS); + } + return alerts; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public AlertingTemplate getAlertingTemplate() { + if (alertingTemplate != null && alertingTemplate.eIsProxy()) { + InternalEObject oldAlertingTemplate = (InternalEObject)alertingTemplate; + alertingTemplate = (AlertingTemplate)eResolveProxy(oldAlertingTemplate); + if (alertingTemplate != oldAlertingTemplate) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, CollectdPackage.COLLECTD_INTERFACE__ALERTING_TEMPLATE, oldAlertingTemplate, alertingTemplate)); + } + } + return alertingTemplate; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public AlertingTemplate basicGetAlertingTemplate() { + return alertingTemplate; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setAlertingTemplate(AlertingTemplate newAlertingTemplate) { + AlertingTemplate oldAlertingTemplate = alertingTemplate; + alertingTemplate = newAlertingTemplate; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_INTERFACE__ALERTING_TEMPLATE, oldAlertingTemplate, alertingTemplate)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IncreasingULongMetricAttribute getIf_errors_rx() { + return if_errors_rx; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setIf_errors_rx(IncreasingULongMetricAttribute newIf_errors_rx) { + IncreasingULongMetricAttribute oldIf_errors_rx = if_errors_rx; + if_errors_rx = newIf_errors_rx; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_INTERFACE__IF_ERRORS_RX, oldIf_errors_rx, if_errors_rx)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IncreasingULongMetricAttribute getIf_errors_tx() { + return if_errors_tx; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setIf_errors_tx(IncreasingULongMetricAttribute newIf_errors_tx) { + IncreasingULongMetricAttribute oldIf_errors_tx = if_errors_tx; + if_errors_tx = newIf_errors_tx; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_INTERFACE__IF_ERRORS_TX, oldIf_errors_tx, if_errors_tx)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IncreasingULongMetricAttribute getIf_octets_rx() { + return if_octets_rx; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setIf_octets_rx(IncreasingULongMetricAttribute newIf_octets_rx) { + IncreasingULongMetricAttribute oldIf_octets_rx = if_octets_rx; + if_octets_rx = newIf_octets_rx; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_INTERFACE__IF_OCTETS_RX, oldIf_octets_rx, if_octets_rx)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IncreasingULongMetricAttribute getIf_octets_tx() { + return if_octets_tx; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setIf_octets_tx(IncreasingULongMetricAttribute newIf_octets_tx) { + IncreasingULongMetricAttribute oldIf_octets_tx = if_octets_tx; + if_octets_tx = newIf_octets_tx; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_INTERFACE__IF_OCTETS_TX, oldIf_octets_tx, if_octets_tx)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IncreasingULongMetricAttribute getIf_packets_rx() { + return if_packets_rx; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setIf_packets_rx(IncreasingULongMetricAttribute newIf_packets_rx) { + IncreasingULongMetricAttribute oldIf_packets_rx = if_packets_rx; + if_packets_rx = newIf_packets_rx; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_INTERFACE__IF_PACKETS_RX, oldIf_packets_rx, if_packets_rx)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IncreasingULongMetricAttribute getIf_packets_tx() { + return if_packets_tx; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setIf_packets_tx(IncreasingULongMetricAttribute newIf_packets_tx) { + IncreasingULongMetricAttribute oldIf_packets_tx = if_packets_tx; + if_packets_tx = newIf_packets_tx; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_INTERFACE__IF_PACKETS_TX, oldIf_packets_tx, if_packets_tx)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case CollectdPackage.COLLECTD_INTERFACE__ALERTS: + return ((InternalEList<?>)getAlerts()).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 CollectdPackage.COLLECTD_INTERFACE__ALERTS: + return getAlerts(); + case CollectdPackage.COLLECTD_INTERFACE__ALERTING_TEMPLATE: + if (resolve) return getAlertingTemplate(); + return basicGetAlertingTemplate(); + case CollectdPackage.COLLECTD_INTERFACE__IF_ERRORS_RX: + return getIf_errors_rx(); + case CollectdPackage.COLLECTD_INTERFACE__IF_ERRORS_TX: + return getIf_errors_tx(); + case CollectdPackage.COLLECTD_INTERFACE__IF_OCTETS_RX: + return getIf_octets_rx(); + case CollectdPackage.COLLECTD_INTERFACE__IF_OCTETS_TX: + return getIf_octets_tx(); + case CollectdPackage.COLLECTD_INTERFACE__IF_PACKETS_RX: + return getIf_packets_rx(); + case CollectdPackage.COLLECTD_INTERFACE__IF_PACKETS_TX: + return getIf_packets_tx(); + } + 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 CollectdPackage.COLLECTD_INTERFACE__ALERTS: + getAlerts().clear(); + getAlerts().addAll((Collection<? extends Alert>)newValue); + return; + case CollectdPackage.COLLECTD_INTERFACE__ALERTING_TEMPLATE: + setAlertingTemplate((AlertingTemplate)newValue); + return; + case CollectdPackage.COLLECTD_INTERFACE__IF_ERRORS_RX: + setIf_errors_rx((IncreasingULongMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_INTERFACE__IF_ERRORS_TX: + setIf_errors_tx((IncreasingULongMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_INTERFACE__IF_OCTETS_RX: + setIf_octets_rx((IncreasingULongMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_INTERFACE__IF_OCTETS_TX: + setIf_octets_tx((IncreasingULongMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_INTERFACE__IF_PACKETS_RX: + setIf_packets_rx((IncreasingULongMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_INTERFACE__IF_PACKETS_TX: + setIf_packets_tx((IncreasingULongMetricAttribute)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case CollectdPackage.COLLECTD_INTERFACE__ALERTS: + getAlerts().clear(); + return; + case CollectdPackage.COLLECTD_INTERFACE__ALERTING_TEMPLATE: + setAlertingTemplate((AlertingTemplate)null); + return; + case CollectdPackage.COLLECTD_INTERFACE__IF_ERRORS_RX: + setIf_errors_rx(IF_ERRORS_RX_EDEFAULT); + return; + case CollectdPackage.COLLECTD_INTERFACE__IF_ERRORS_TX: + setIf_errors_tx(IF_ERRORS_TX_EDEFAULT); + return; + case CollectdPackage.COLLECTD_INTERFACE__IF_OCTETS_RX: + setIf_octets_rx(IF_OCTETS_RX_EDEFAULT); + return; + case CollectdPackage.COLLECTD_INTERFACE__IF_OCTETS_TX: + setIf_octets_tx(IF_OCTETS_TX_EDEFAULT); + return; + case CollectdPackage.COLLECTD_INTERFACE__IF_PACKETS_RX: + setIf_packets_rx(IF_PACKETS_RX_EDEFAULT); + return; + case CollectdPackage.COLLECTD_INTERFACE__IF_PACKETS_TX: + setIf_packets_tx(IF_PACKETS_TX_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case CollectdPackage.COLLECTD_INTERFACE__ALERTS: + return alerts != null && !alerts.isEmpty(); + case CollectdPackage.COLLECTD_INTERFACE__ALERTING_TEMPLATE: + return alertingTemplate != null; + case CollectdPackage.COLLECTD_INTERFACE__IF_ERRORS_RX: + return IF_ERRORS_RX_EDEFAULT == null ? if_errors_rx != null : !IF_ERRORS_RX_EDEFAULT.equals(if_errors_rx); + case CollectdPackage.COLLECTD_INTERFACE__IF_ERRORS_TX: + return IF_ERRORS_TX_EDEFAULT == null ? if_errors_tx != null : !IF_ERRORS_TX_EDEFAULT.equals(if_errors_tx); + case CollectdPackage.COLLECTD_INTERFACE__IF_OCTETS_RX: + return IF_OCTETS_RX_EDEFAULT == null ? if_octets_rx != null : !IF_OCTETS_RX_EDEFAULT.equals(if_octets_rx); + case CollectdPackage.COLLECTD_INTERFACE__IF_OCTETS_TX: + return IF_OCTETS_TX_EDEFAULT == null ? if_octets_tx != null : !IF_OCTETS_TX_EDEFAULT.equals(if_octets_tx); + case CollectdPackage.COLLECTD_INTERFACE__IF_PACKETS_RX: + return IF_PACKETS_RX_EDEFAULT == null ? if_packets_rx != null : !IF_PACKETS_RX_EDEFAULT.equals(if_packets_rx); + case CollectdPackage.COLLECTD_INTERFACE__IF_PACKETS_TX: + return IF_PACKETS_TX_EDEFAULT == null ? if_packets_tx != null : !IF_PACKETS_TX_EDEFAULT.equals(if_packets_tx); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) { + if (baseClass == AlertContainer.class) { + switch (derivedFeatureID) { + case CollectdPackage.COLLECTD_INTERFACE__ALERTS: return AlertsPackage.ALERT_CONTAINER__ALERTS; + case CollectdPackage.COLLECTD_INTERFACE__ALERTING_TEMPLATE: return AlertsPackage.ALERT_CONTAINER__ALERTING_TEMPLATE; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) { + if (baseClass == AlertContainer.class) { + switch (baseFeatureID) { + case AlertsPackage.ALERT_CONTAINER__ALERTS: return CollectdPackage.COLLECTD_INTERFACE__ALERTS; + case AlertsPackage.ALERT_CONTAINER__ALERTING_TEMPLATE: return CollectdPackage.COLLECTD_INTERFACE__ALERTING_TEMPLATE; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (if_errors_rx: "); + result.append(if_errors_rx); + result.append(", if_errors_tx: "); + result.append(if_errors_tx); + result.append(", if_octets_rx: "); + result.append(if_octets_rx); + result.append(", if_octets_tx: "); + result.append(if_octets_tx); + result.append(", if_packets_rx: "); + result.append(if_packets_rx); + result.append(", if_packets_tx: "); + result.append(if_packets_tx); + result.append(')'); + return result.toString(); + } + +} //CollectdInterfaceImpl diff --git a/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/impl/CollectdKvmDiskImpl.java b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/impl/CollectdKvmDiskImpl.java new file mode 100644 index 0000000..954a91e --- /dev/null +++ b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/impl/CollectdKvmDiskImpl.java @@ -0,0 +1,506 @@ + +/*- + * ============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.sirius.manager.agent.collectd.impl; + +import org.openecomp.ncomp.core.alerts.Alert; +import org.openecomp.ncomp.core.alerts.AlertContainer; +import org.openecomp.ncomp.core.alerts.AlertingTemplate; +import org.openecomp.ncomp.core.alerts.AlertsPackage; + +import org.openecomp.ncomp.core.impl.NamedEntityImpl; + +import org.openecomp.ncomp.core.types.metrics.IncreasingULongMetricAttribute; + +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmDisk; +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage; + +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>Kvm Disk</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdKvmDiskImpl#getAlerts <em>Alerts</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdKvmDiskImpl#getAlertingTemplate <em>Alerting Template</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdKvmDiskImpl#getDisk_octets_read <em>Disk octets read</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdKvmDiskImpl#getDisk_octets_write <em>Disk octets write</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdKvmDiskImpl#getDisk_ops_read <em>Disk ops read</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdKvmDiskImpl#getDisk_ops_write <em>Disk ops write</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class CollectdKvmDiskImpl extends NamedEntityImpl implements CollectdKvmDisk { + /** + * The cached value of the '{@link #getAlerts() <em>Alerts</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAlerts() + * @generated + * @ordered + */ + protected EList<Alert> alerts; + + /** + * The cached value of the '{@link #getAlertingTemplate() <em>Alerting Template</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAlertingTemplate() + * @generated + * @ordered + */ + protected AlertingTemplate alertingTemplate; + + /** + * The default value of the '{@link #getDisk_octets_read() <em>Disk octets read</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDisk_octets_read() + * @generated + * @ordered + */ + protected static final IncreasingULongMetricAttribute DISK_OCTETS_READ_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDisk_octets_read() <em>Disk octets read</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDisk_octets_read() + * @generated + * @ordered + */ + protected IncreasingULongMetricAttribute disk_octets_read = DISK_OCTETS_READ_EDEFAULT; + + /** + * The default value of the '{@link #getDisk_octets_write() <em>Disk octets write</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDisk_octets_write() + * @generated + * @ordered + */ + protected static final IncreasingULongMetricAttribute DISK_OCTETS_WRITE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDisk_octets_write() <em>Disk octets write</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDisk_octets_write() + * @generated + * @ordered + */ + protected IncreasingULongMetricAttribute disk_octets_write = DISK_OCTETS_WRITE_EDEFAULT; + + /** + * The default value of the '{@link #getDisk_ops_read() <em>Disk ops read</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDisk_ops_read() + * @generated + * @ordered + */ + protected static final IncreasingULongMetricAttribute DISK_OPS_READ_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDisk_ops_read() <em>Disk ops read</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDisk_ops_read() + * @generated + * @ordered + */ + protected IncreasingULongMetricAttribute disk_ops_read = DISK_OPS_READ_EDEFAULT; + + /** + * The default value of the '{@link #getDisk_ops_write() <em>Disk ops write</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDisk_ops_write() + * @generated + * @ordered + */ + protected static final IncreasingULongMetricAttribute DISK_OPS_WRITE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDisk_ops_write() <em>Disk ops write</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDisk_ops_write() + * @generated + * @ordered + */ + protected IncreasingULongMetricAttribute disk_ops_write = DISK_OPS_WRITE_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected CollectdKvmDiskImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return CollectdPackage.Literals.COLLECTD_KVM_DISK; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<Alert> getAlerts() { + if (alerts == null) { + alerts = new EObjectContainmentEList<Alert>(Alert.class, this, CollectdPackage.COLLECTD_KVM_DISK__ALERTS); + } + return alerts; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public AlertingTemplate getAlertingTemplate() { + if (alertingTemplate != null && alertingTemplate.eIsProxy()) { + InternalEObject oldAlertingTemplate = (InternalEObject)alertingTemplate; + alertingTemplate = (AlertingTemplate)eResolveProxy(oldAlertingTemplate); + if (alertingTemplate != oldAlertingTemplate) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, CollectdPackage.COLLECTD_KVM_DISK__ALERTING_TEMPLATE, oldAlertingTemplate, alertingTemplate)); + } + } + return alertingTemplate; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public AlertingTemplate basicGetAlertingTemplate() { + return alertingTemplate; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setAlertingTemplate(AlertingTemplate newAlertingTemplate) { + AlertingTemplate oldAlertingTemplate = alertingTemplate; + alertingTemplate = newAlertingTemplate; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_KVM_DISK__ALERTING_TEMPLATE, oldAlertingTemplate, alertingTemplate)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IncreasingULongMetricAttribute getDisk_octets_read() { + return disk_octets_read; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDisk_octets_read(IncreasingULongMetricAttribute newDisk_octets_read) { + IncreasingULongMetricAttribute oldDisk_octets_read = disk_octets_read; + disk_octets_read = newDisk_octets_read; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_KVM_DISK__DISK_OCTETS_READ, oldDisk_octets_read, disk_octets_read)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IncreasingULongMetricAttribute getDisk_octets_write() { + return disk_octets_write; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDisk_octets_write(IncreasingULongMetricAttribute newDisk_octets_write) { + IncreasingULongMetricAttribute oldDisk_octets_write = disk_octets_write; + disk_octets_write = newDisk_octets_write; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_KVM_DISK__DISK_OCTETS_WRITE, oldDisk_octets_write, disk_octets_write)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IncreasingULongMetricAttribute getDisk_ops_read() { + return disk_ops_read; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDisk_ops_read(IncreasingULongMetricAttribute newDisk_ops_read) { + IncreasingULongMetricAttribute oldDisk_ops_read = disk_ops_read; + disk_ops_read = newDisk_ops_read; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_KVM_DISK__DISK_OPS_READ, oldDisk_ops_read, disk_ops_read)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IncreasingULongMetricAttribute getDisk_ops_write() { + return disk_ops_write; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDisk_ops_write(IncreasingULongMetricAttribute newDisk_ops_write) { + IncreasingULongMetricAttribute oldDisk_ops_write = disk_ops_write; + disk_ops_write = newDisk_ops_write; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_KVM_DISK__DISK_OPS_WRITE, oldDisk_ops_write, disk_ops_write)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case CollectdPackage.COLLECTD_KVM_DISK__ALERTS: + return ((InternalEList<?>)getAlerts()).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 CollectdPackage.COLLECTD_KVM_DISK__ALERTS: + return getAlerts(); + case CollectdPackage.COLLECTD_KVM_DISK__ALERTING_TEMPLATE: + if (resolve) return getAlertingTemplate(); + return basicGetAlertingTemplate(); + case CollectdPackage.COLLECTD_KVM_DISK__DISK_OCTETS_READ: + return getDisk_octets_read(); + case CollectdPackage.COLLECTD_KVM_DISK__DISK_OCTETS_WRITE: + return getDisk_octets_write(); + case CollectdPackage.COLLECTD_KVM_DISK__DISK_OPS_READ: + return getDisk_ops_read(); + case CollectdPackage.COLLECTD_KVM_DISK__DISK_OPS_WRITE: + return getDisk_ops_write(); + } + 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 CollectdPackage.COLLECTD_KVM_DISK__ALERTS: + getAlerts().clear(); + getAlerts().addAll((Collection<? extends Alert>)newValue); + return; + case CollectdPackage.COLLECTD_KVM_DISK__ALERTING_TEMPLATE: + setAlertingTemplate((AlertingTemplate)newValue); + return; + case CollectdPackage.COLLECTD_KVM_DISK__DISK_OCTETS_READ: + setDisk_octets_read((IncreasingULongMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_KVM_DISK__DISK_OCTETS_WRITE: + setDisk_octets_write((IncreasingULongMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_KVM_DISK__DISK_OPS_READ: + setDisk_ops_read((IncreasingULongMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_KVM_DISK__DISK_OPS_WRITE: + setDisk_ops_write((IncreasingULongMetricAttribute)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case CollectdPackage.COLLECTD_KVM_DISK__ALERTS: + getAlerts().clear(); + return; + case CollectdPackage.COLLECTD_KVM_DISK__ALERTING_TEMPLATE: + setAlertingTemplate((AlertingTemplate)null); + return; + case CollectdPackage.COLLECTD_KVM_DISK__DISK_OCTETS_READ: + setDisk_octets_read(DISK_OCTETS_READ_EDEFAULT); + return; + case CollectdPackage.COLLECTD_KVM_DISK__DISK_OCTETS_WRITE: + setDisk_octets_write(DISK_OCTETS_WRITE_EDEFAULT); + return; + case CollectdPackage.COLLECTD_KVM_DISK__DISK_OPS_READ: + setDisk_ops_read(DISK_OPS_READ_EDEFAULT); + return; + case CollectdPackage.COLLECTD_KVM_DISK__DISK_OPS_WRITE: + setDisk_ops_write(DISK_OPS_WRITE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case CollectdPackage.COLLECTD_KVM_DISK__ALERTS: + return alerts != null && !alerts.isEmpty(); + case CollectdPackage.COLLECTD_KVM_DISK__ALERTING_TEMPLATE: + return alertingTemplate != null; + case CollectdPackage.COLLECTD_KVM_DISK__DISK_OCTETS_READ: + return DISK_OCTETS_READ_EDEFAULT == null ? disk_octets_read != null : !DISK_OCTETS_READ_EDEFAULT.equals(disk_octets_read); + case CollectdPackage.COLLECTD_KVM_DISK__DISK_OCTETS_WRITE: + return DISK_OCTETS_WRITE_EDEFAULT == null ? disk_octets_write != null : !DISK_OCTETS_WRITE_EDEFAULT.equals(disk_octets_write); + case CollectdPackage.COLLECTD_KVM_DISK__DISK_OPS_READ: + return DISK_OPS_READ_EDEFAULT == null ? disk_ops_read != null : !DISK_OPS_READ_EDEFAULT.equals(disk_ops_read); + case CollectdPackage.COLLECTD_KVM_DISK__DISK_OPS_WRITE: + return DISK_OPS_WRITE_EDEFAULT == null ? disk_ops_write != null : !DISK_OPS_WRITE_EDEFAULT.equals(disk_ops_write); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) { + if (baseClass == AlertContainer.class) { + switch (derivedFeatureID) { + case CollectdPackage.COLLECTD_KVM_DISK__ALERTS: return AlertsPackage.ALERT_CONTAINER__ALERTS; + case CollectdPackage.COLLECTD_KVM_DISK__ALERTING_TEMPLATE: return AlertsPackage.ALERT_CONTAINER__ALERTING_TEMPLATE; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) { + if (baseClass == AlertContainer.class) { + switch (baseFeatureID) { + case AlertsPackage.ALERT_CONTAINER__ALERTS: return CollectdPackage.COLLECTD_KVM_DISK__ALERTS; + case AlertsPackage.ALERT_CONTAINER__ALERTING_TEMPLATE: return CollectdPackage.COLLECTD_KVM_DISK__ALERTING_TEMPLATE; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (disk_octets_read: "); + result.append(disk_octets_read); + result.append(", disk_octets_write: "); + result.append(disk_octets_write); + result.append(", disk_ops_read: "); + result.append(disk_ops_read); + result.append(", disk_ops_write: "); + result.append(disk_ops_write); + result.append(')'); + return result.toString(); + } + +} //CollectdKvmDiskImpl diff --git a/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/impl/CollectdKvmInstanceImpl.java b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/impl/CollectdKvmInstanceImpl.java new file mode 100644 index 0000000..997c6aa --- /dev/null +++ b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/impl/CollectdKvmInstanceImpl.java @@ -0,0 +1,418 @@ + +/*- + * ============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.sirius.manager.agent.collectd.impl; + +import org.openecomp.ncomp.core.alerts.Alert; +import org.openecomp.ncomp.core.alerts.AlertContainer; +import org.openecomp.ncomp.core.alerts.AlertingTemplate; +import org.openecomp.ncomp.core.alerts.AlertsPackage; + +import org.openecomp.ncomp.core.impl.NamedEntityImpl; + +import org.openecomp.ncomp.core.types.metrics.IncreasingULongMetricAttribute; + +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmDisk; +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInstance; +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInterface; +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage; + +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>Kvm Instance</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdKvmInstanceImpl#getAlerts <em>Alerts</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdKvmInstanceImpl#getAlertingTemplate <em>Alerting Template</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdKvmInstanceImpl#getVirt_cpu_total <em>Virt cpu total</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdKvmInstanceImpl#getDisks <em>Disks</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdKvmInstanceImpl#getInterfaces <em>Interfaces</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class CollectdKvmInstanceImpl extends NamedEntityImpl implements CollectdKvmInstance { + /** + * The cached value of the '{@link #getAlerts() <em>Alerts</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAlerts() + * @generated + * @ordered + */ + protected EList<Alert> alerts; + + /** + * The cached value of the '{@link #getAlertingTemplate() <em>Alerting Template</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAlertingTemplate() + * @generated + * @ordered + */ + protected AlertingTemplate alertingTemplate; + + /** + * The default value of the '{@link #getVirt_cpu_total() <em>Virt cpu total</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVirt_cpu_total() + * @generated + * @ordered + */ + protected static final IncreasingULongMetricAttribute VIRT_CPU_TOTAL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getVirt_cpu_total() <em>Virt cpu total</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVirt_cpu_total() + * @generated + * @ordered + */ + protected IncreasingULongMetricAttribute virt_cpu_total = VIRT_CPU_TOTAL_EDEFAULT; + + /** + * The cached value of the '{@link #getDisks() <em>Disks</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDisks() + * @generated + * @ordered + */ + protected EList<CollectdKvmDisk> disks; + + /** + * The cached value of the '{@link #getInterfaces() <em>Interfaces</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getInterfaces() + * @generated + * @ordered + */ + protected EList<CollectdKvmInterface> interfaces; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected CollectdKvmInstanceImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return CollectdPackage.Literals.COLLECTD_KVM_INSTANCE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<Alert> getAlerts() { + if (alerts == null) { + alerts = new EObjectContainmentEList<Alert>(Alert.class, this, CollectdPackage.COLLECTD_KVM_INSTANCE__ALERTS); + } + return alerts; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public AlertingTemplate getAlertingTemplate() { + if (alertingTemplate != null && alertingTemplate.eIsProxy()) { + InternalEObject oldAlertingTemplate = (InternalEObject)alertingTemplate; + alertingTemplate = (AlertingTemplate)eResolveProxy(oldAlertingTemplate); + if (alertingTemplate != oldAlertingTemplate) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, CollectdPackage.COLLECTD_KVM_INSTANCE__ALERTING_TEMPLATE, oldAlertingTemplate, alertingTemplate)); + } + } + return alertingTemplate; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public AlertingTemplate basicGetAlertingTemplate() { + return alertingTemplate; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setAlertingTemplate(AlertingTemplate newAlertingTemplate) { + AlertingTemplate oldAlertingTemplate = alertingTemplate; + alertingTemplate = newAlertingTemplate; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_KVM_INSTANCE__ALERTING_TEMPLATE, oldAlertingTemplate, alertingTemplate)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IncreasingULongMetricAttribute getVirt_cpu_total() { + return virt_cpu_total; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setVirt_cpu_total(IncreasingULongMetricAttribute newVirt_cpu_total) { + IncreasingULongMetricAttribute oldVirt_cpu_total = virt_cpu_total; + virt_cpu_total = newVirt_cpu_total; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_KVM_INSTANCE__VIRT_CPU_TOTAL, oldVirt_cpu_total, virt_cpu_total)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<CollectdKvmDisk> getDisks() { + if (disks == null) { + disks = new EObjectContainmentEList<CollectdKvmDisk>(CollectdKvmDisk.class, this, CollectdPackage.COLLECTD_KVM_INSTANCE__DISKS); + } + return disks; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<CollectdKvmInterface> getInterfaces() { + if (interfaces == null) { + interfaces = new EObjectContainmentEList<CollectdKvmInterface>(CollectdKvmInterface.class, this, CollectdPackage.COLLECTD_KVM_INSTANCE__INTERFACES); + } + return interfaces; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case CollectdPackage.COLLECTD_KVM_INSTANCE__ALERTS: + return ((InternalEList<?>)getAlerts()).basicRemove(otherEnd, msgs); + case CollectdPackage.COLLECTD_KVM_INSTANCE__DISKS: + return ((InternalEList<?>)getDisks()).basicRemove(otherEnd, msgs); + case CollectdPackage.COLLECTD_KVM_INSTANCE__INTERFACES: + return ((InternalEList<?>)getInterfaces()).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 CollectdPackage.COLLECTD_KVM_INSTANCE__ALERTS: + return getAlerts(); + case CollectdPackage.COLLECTD_KVM_INSTANCE__ALERTING_TEMPLATE: + if (resolve) return getAlertingTemplate(); + return basicGetAlertingTemplate(); + case CollectdPackage.COLLECTD_KVM_INSTANCE__VIRT_CPU_TOTAL: + return getVirt_cpu_total(); + case CollectdPackage.COLLECTD_KVM_INSTANCE__DISKS: + return getDisks(); + case CollectdPackage.COLLECTD_KVM_INSTANCE__INTERFACES: + return getInterfaces(); + } + 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 CollectdPackage.COLLECTD_KVM_INSTANCE__ALERTS: + getAlerts().clear(); + getAlerts().addAll((Collection<? extends Alert>)newValue); + return; + case CollectdPackage.COLLECTD_KVM_INSTANCE__ALERTING_TEMPLATE: + setAlertingTemplate((AlertingTemplate)newValue); + return; + case CollectdPackage.COLLECTD_KVM_INSTANCE__VIRT_CPU_TOTAL: + setVirt_cpu_total((IncreasingULongMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_KVM_INSTANCE__DISKS: + getDisks().clear(); + getDisks().addAll((Collection<? extends CollectdKvmDisk>)newValue); + return; + case CollectdPackage.COLLECTD_KVM_INSTANCE__INTERFACES: + getInterfaces().clear(); + getInterfaces().addAll((Collection<? extends CollectdKvmInterface>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case CollectdPackage.COLLECTD_KVM_INSTANCE__ALERTS: + getAlerts().clear(); + return; + case CollectdPackage.COLLECTD_KVM_INSTANCE__ALERTING_TEMPLATE: + setAlertingTemplate((AlertingTemplate)null); + return; + case CollectdPackage.COLLECTD_KVM_INSTANCE__VIRT_CPU_TOTAL: + setVirt_cpu_total(VIRT_CPU_TOTAL_EDEFAULT); + return; + case CollectdPackage.COLLECTD_KVM_INSTANCE__DISKS: + getDisks().clear(); + return; + case CollectdPackage.COLLECTD_KVM_INSTANCE__INTERFACES: + getInterfaces().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case CollectdPackage.COLLECTD_KVM_INSTANCE__ALERTS: + return alerts != null && !alerts.isEmpty(); + case CollectdPackage.COLLECTD_KVM_INSTANCE__ALERTING_TEMPLATE: + return alertingTemplate != null; + case CollectdPackage.COLLECTD_KVM_INSTANCE__VIRT_CPU_TOTAL: + return VIRT_CPU_TOTAL_EDEFAULT == null ? virt_cpu_total != null : !VIRT_CPU_TOTAL_EDEFAULT.equals(virt_cpu_total); + case CollectdPackage.COLLECTD_KVM_INSTANCE__DISKS: + return disks != null && !disks.isEmpty(); + case CollectdPackage.COLLECTD_KVM_INSTANCE__INTERFACES: + return interfaces != null && !interfaces.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) { + if (baseClass == AlertContainer.class) { + switch (derivedFeatureID) { + case CollectdPackage.COLLECTD_KVM_INSTANCE__ALERTS: return AlertsPackage.ALERT_CONTAINER__ALERTS; + case CollectdPackage.COLLECTD_KVM_INSTANCE__ALERTING_TEMPLATE: return AlertsPackage.ALERT_CONTAINER__ALERTING_TEMPLATE; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) { + if (baseClass == AlertContainer.class) { + switch (baseFeatureID) { + case AlertsPackage.ALERT_CONTAINER__ALERTS: return CollectdPackage.COLLECTD_KVM_INSTANCE__ALERTS; + case AlertsPackage.ALERT_CONTAINER__ALERTING_TEMPLATE: return CollectdPackage.COLLECTD_KVM_INSTANCE__ALERTING_TEMPLATE; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (virt_cpu_total: "); + result.append(virt_cpu_total); + result.append(')'); + return result.toString(); + } + +} //CollectdKvmInstanceImpl diff --git a/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/impl/CollectdKvmInterfaceImpl.java b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/impl/CollectdKvmInterfaceImpl.java new file mode 100644 index 0000000..b879890 --- /dev/null +++ b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/impl/CollectdKvmInterfaceImpl.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.sirius.manager.agent.collectd.impl; + +import org.openecomp.ncomp.core.alerts.Alert; +import org.openecomp.ncomp.core.alerts.AlertContainer; +import org.openecomp.ncomp.core.alerts.AlertingTemplate; +import org.openecomp.ncomp.core.alerts.AlertsPackage; + +import org.openecomp.ncomp.core.impl.NamedEntityImpl; + +import org.openecomp.ncomp.core.types.metrics.IncreasingULongMetricAttribute; + +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInterface; +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage; + +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>Kvm Interface</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdKvmInterfaceImpl#getAlerts <em>Alerts</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdKvmInterfaceImpl#getAlertingTemplate <em>Alerting Template</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdKvmInterfaceImpl#getIf_errors_rx <em>If errors rx</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdKvmInterfaceImpl#getIf_errors_tx <em>If errors tx</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdKvmInterfaceImpl#getIf_dropped_rx <em>If dropped rx</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdKvmInterfaceImpl#getIf_dropped_tx <em>If dropped tx</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdKvmInterfaceImpl#getIf_octets_rx <em>If octets rx</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdKvmInterfaceImpl#getIf_octets_tx <em>If octets tx</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdKvmInterfaceImpl#getIf_packets_rx <em>If packets rx</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdKvmInterfaceImpl#getIf_packets_tx <em>If packets tx</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class CollectdKvmInterfaceImpl extends NamedEntityImpl implements CollectdKvmInterface { + /** + * The cached value of the '{@link #getAlerts() <em>Alerts</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAlerts() + * @generated + * @ordered + */ + protected EList<Alert> alerts; + + /** + * The cached value of the '{@link #getAlertingTemplate() <em>Alerting Template</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAlertingTemplate() + * @generated + * @ordered + */ + protected AlertingTemplate alertingTemplate; + + /** + * The default value of the '{@link #getIf_errors_rx() <em>If errors rx</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIf_errors_rx() + * @generated + * @ordered + */ + protected static final IncreasingULongMetricAttribute IF_ERRORS_RX_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIf_errors_rx() <em>If errors rx</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIf_errors_rx() + * @generated + * @ordered + */ + protected IncreasingULongMetricAttribute if_errors_rx = IF_ERRORS_RX_EDEFAULT; + + /** + * The default value of the '{@link #getIf_errors_tx() <em>If errors tx</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIf_errors_tx() + * @generated + * @ordered + */ + protected static final IncreasingULongMetricAttribute IF_ERRORS_TX_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIf_errors_tx() <em>If errors tx</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIf_errors_tx() + * @generated + * @ordered + */ + protected IncreasingULongMetricAttribute if_errors_tx = IF_ERRORS_TX_EDEFAULT; + + /** + * The default value of the '{@link #getIf_dropped_rx() <em>If dropped rx</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIf_dropped_rx() + * @generated + * @ordered + */ + protected static final IncreasingULongMetricAttribute IF_DROPPED_RX_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIf_dropped_rx() <em>If dropped rx</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIf_dropped_rx() + * @generated + * @ordered + */ + protected IncreasingULongMetricAttribute if_dropped_rx = IF_DROPPED_RX_EDEFAULT; + + /** + * The default value of the '{@link #getIf_dropped_tx() <em>If dropped tx</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIf_dropped_tx() + * @generated + * @ordered + */ + protected static final IncreasingULongMetricAttribute IF_DROPPED_TX_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIf_dropped_tx() <em>If dropped tx</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIf_dropped_tx() + * @generated + * @ordered + */ + protected IncreasingULongMetricAttribute if_dropped_tx = IF_DROPPED_TX_EDEFAULT; + + /** + * The default value of the '{@link #getIf_octets_rx() <em>If octets rx</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIf_octets_rx() + * @generated + * @ordered + */ + protected static final IncreasingULongMetricAttribute IF_OCTETS_RX_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIf_octets_rx() <em>If octets rx</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIf_octets_rx() + * @generated + * @ordered + */ + protected IncreasingULongMetricAttribute if_octets_rx = IF_OCTETS_RX_EDEFAULT; + + /** + * The default value of the '{@link #getIf_octets_tx() <em>If octets tx</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIf_octets_tx() + * @generated + * @ordered + */ + protected static final IncreasingULongMetricAttribute IF_OCTETS_TX_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIf_octets_tx() <em>If octets tx</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIf_octets_tx() + * @generated + * @ordered + */ + protected IncreasingULongMetricAttribute if_octets_tx = IF_OCTETS_TX_EDEFAULT; + + /** + * The default value of the '{@link #getIf_packets_rx() <em>If packets rx</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIf_packets_rx() + * @generated + * @ordered + */ + protected static final IncreasingULongMetricAttribute IF_PACKETS_RX_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIf_packets_rx() <em>If packets rx</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIf_packets_rx() + * @generated + * @ordered + */ + protected IncreasingULongMetricAttribute if_packets_rx = IF_PACKETS_RX_EDEFAULT; + + /** + * The default value of the '{@link #getIf_packets_tx() <em>If packets tx</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIf_packets_tx() + * @generated + * @ordered + */ + protected static final IncreasingULongMetricAttribute IF_PACKETS_TX_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIf_packets_tx() <em>If packets tx</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIf_packets_tx() + * @generated + * @ordered + */ + protected IncreasingULongMetricAttribute if_packets_tx = IF_PACKETS_TX_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected CollectdKvmInterfaceImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return CollectdPackage.Literals.COLLECTD_KVM_INTERFACE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<Alert> getAlerts() { + if (alerts == null) { + alerts = new EObjectContainmentEList<Alert>(Alert.class, this, CollectdPackage.COLLECTD_KVM_INTERFACE__ALERTS); + } + return alerts; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public AlertingTemplate getAlertingTemplate() { + if (alertingTemplate != null && alertingTemplate.eIsProxy()) { + InternalEObject oldAlertingTemplate = (InternalEObject)alertingTemplate; + alertingTemplate = (AlertingTemplate)eResolveProxy(oldAlertingTemplate); + if (alertingTemplate != oldAlertingTemplate) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, CollectdPackage.COLLECTD_KVM_INTERFACE__ALERTING_TEMPLATE, oldAlertingTemplate, alertingTemplate)); + } + } + return alertingTemplate; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public AlertingTemplate basicGetAlertingTemplate() { + return alertingTemplate; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setAlertingTemplate(AlertingTemplate newAlertingTemplate) { + AlertingTemplate oldAlertingTemplate = alertingTemplate; + alertingTemplate = newAlertingTemplate; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_KVM_INTERFACE__ALERTING_TEMPLATE, oldAlertingTemplate, alertingTemplate)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IncreasingULongMetricAttribute getIf_errors_rx() { + return if_errors_rx; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setIf_errors_rx(IncreasingULongMetricAttribute newIf_errors_rx) { + IncreasingULongMetricAttribute oldIf_errors_rx = if_errors_rx; + if_errors_rx = newIf_errors_rx; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_KVM_INTERFACE__IF_ERRORS_RX, oldIf_errors_rx, if_errors_rx)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IncreasingULongMetricAttribute getIf_errors_tx() { + return if_errors_tx; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setIf_errors_tx(IncreasingULongMetricAttribute newIf_errors_tx) { + IncreasingULongMetricAttribute oldIf_errors_tx = if_errors_tx; + if_errors_tx = newIf_errors_tx; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_KVM_INTERFACE__IF_ERRORS_TX, oldIf_errors_tx, if_errors_tx)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IncreasingULongMetricAttribute getIf_dropped_rx() { + return if_dropped_rx; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setIf_dropped_rx(IncreasingULongMetricAttribute newIf_dropped_rx) { + IncreasingULongMetricAttribute oldIf_dropped_rx = if_dropped_rx; + if_dropped_rx = newIf_dropped_rx; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_KVM_INTERFACE__IF_DROPPED_RX, oldIf_dropped_rx, if_dropped_rx)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IncreasingULongMetricAttribute getIf_dropped_tx() { + return if_dropped_tx; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setIf_dropped_tx(IncreasingULongMetricAttribute newIf_dropped_tx) { + IncreasingULongMetricAttribute oldIf_dropped_tx = if_dropped_tx; + if_dropped_tx = newIf_dropped_tx; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_KVM_INTERFACE__IF_DROPPED_TX, oldIf_dropped_tx, if_dropped_tx)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IncreasingULongMetricAttribute getIf_octets_rx() { + return if_octets_rx; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setIf_octets_rx(IncreasingULongMetricAttribute newIf_octets_rx) { + IncreasingULongMetricAttribute oldIf_octets_rx = if_octets_rx; + if_octets_rx = newIf_octets_rx; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_KVM_INTERFACE__IF_OCTETS_RX, oldIf_octets_rx, if_octets_rx)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IncreasingULongMetricAttribute getIf_octets_tx() { + return if_octets_tx; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setIf_octets_tx(IncreasingULongMetricAttribute newIf_octets_tx) { + IncreasingULongMetricAttribute oldIf_octets_tx = if_octets_tx; + if_octets_tx = newIf_octets_tx; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_KVM_INTERFACE__IF_OCTETS_TX, oldIf_octets_tx, if_octets_tx)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IncreasingULongMetricAttribute getIf_packets_rx() { + return if_packets_rx; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setIf_packets_rx(IncreasingULongMetricAttribute newIf_packets_rx) { + IncreasingULongMetricAttribute oldIf_packets_rx = if_packets_rx; + if_packets_rx = newIf_packets_rx; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_KVM_INTERFACE__IF_PACKETS_RX, oldIf_packets_rx, if_packets_rx)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IncreasingULongMetricAttribute getIf_packets_tx() { + return if_packets_tx; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setIf_packets_tx(IncreasingULongMetricAttribute newIf_packets_tx) { + IncreasingULongMetricAttribute oldIf_packets_tx = if_packets_tx; + if_packets_tx = newIf_packets_tx; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_KVM_INTERFACE__IF_PACKETS_TX, oldIf_packets_tx, if_packets_tx)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case CollectdPackage.COLLECTD_KVM_INTERFACE__ALERTS: + return ((InternalEList<?>)getAlerts()).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 CollectdPackage.COLLECTD_KVM_INTERFACE__ALERTS: + return getAlerts(); + case CollectdPackage.COLLECTD_KVM_INTERFACE__ALERTING_TEMPLATE: + if (resolve) return getAlertingTemplate(); + return basicGetAlertingTemplate(); + case CollectdPackage.COLLECTD_KVM_INTERFACE__IF_ERRORS_RX: + return getIf_errors_rx(); + case CollectdPackage.COLLECTD_KVM_INTERFACE__IF_ERRORS_TX: + return getIf_errors_tx(); + case CollectdPackage.COLLECTD_KVM_INTERFACE__IF_DROPPED_RX: + return getIf_dropped_rx(); + case CollectdPackage.COLLECTD_KVM_INTERFACE__IF_DROPPED_TX: + return getIf_dropped_tx(); + case CollectdPackage.COLLECTD_KVM_INTERFACE__IF_OCTETS_RX: + return getIf_octets_rx(); + case CollectdPackage.COLLECTD_KVM_INTERFACE__IF_OCTETS_TX: + return getIf_octets_tx(); + case CollectdPackage.COLLECTD_KVM_INTERFACE__IF_PACKETS_RX: + return getIf_packets_rx(); + case CollectdPackage.COLLECTD_KVM_INTERFACE__IF_PACKETS_TX: + return getIf_packets_tx(); + } + 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 CollectdPackage.COLLECTD_KVM_INTERFACE__ALERTS: + getAlerts().clear(); + getAlerts().addAll((Collection<? extends Alert>)newValue); + return; + case CollectdPackage.COLLECTD_KVM_INTERFACE__ALERTING_TEMPLATE: + setAlertingTemplate((AlertingTemplate)newValue); + return; + case CollectdPackage.COLLECTD_KVM_INTERFACE__IF_ERRORS_RX: + setIf_errors_rx((IncreasingULongMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_KVM_INTERFACE__IF_ERRORS_TX: + setIf_errors_tx((IncreasingULongMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_KVM_INTERFACE__IF_DROPPED_RX: + setIf_dropped_rx((IncreasingULongMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_KVM_INTERFACE__IF_DROPPED_TX: + setIf_dropped_tx((IncreasingULongMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_KVM_INTERFACE__IF_OCTETS_RX: + setIf_octets_rx((IncreasingULongMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_KVM_INTERFACE__IF_OCTETS_TX: + setIf_octets_tx((IncreasingULongMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_KVM_INTERFACE__IF_PACKETS_RX: + setIf_packets_rx((IncreasingULongMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_KVM_INTERFACE__IF_PACKETS_TX: + setIf_packets_tx((IncreasingULongMetricAttribute)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case CollectdPackage.COLLECTD_KVM_INTERFACE__ALERTS: + getAlerts().clear(); + return; + case CollectdPackage.COLLECTD_KVM_INTERFACE__ALERTING_TEMPLATE: + setAlertingTemplate((AlertingTemplate)null); + return; + case CollectdPackage.COLLECTD_KVM_INTERFACE__IF_ERRORS_RX: + setIf_errors_rx(IF_ERRORS_RX_EDEFAULT); + return; + case CollectdPackage.COLLECTD_KVM_INTERFACE__IF_ERRORS_TX: + setIf_errors_tx(IF_ERRORS_TX_EDEFAULT); + return; + case CollectdPackage.COLLECTD_KVM_INTERFACE__IF_DROPPED_RX: + setIf_dropped_rx(IF_DROPPED_RX_EDEFAULT); + return; + case CollectdPackage.COLLECTD_KVM_INTERFACE__IF_DROPPED_TX: + setIf_dropped_tx(IF_DROPPED_TX_EDEFAULT); + return; + case CollectdPackage.COLLECTD_KVM_INTERFACE__IF_OCTETS_RX: + setIf_octets_rx(IF_OCTETS_RX_EDEFAULT); + return; + case CollectdPackage.COLLECTD_KVM_INTERFACE__IF_OCTETS_TX: + setIf_octets_tx(IF_OCTETS_TX_EDEFAULT); + return; + case CollectdPackage.COLLECTD_KVM_INTERFACE__IF_PACKETS_RX: + setIf_packets_rx(IF_PACKETS_RX_EDEFAULT); + return; + case CollectdPackage.COLLECTD_KVM_INTERFACE__IF_PACKETS_TX: + setIf_packets_tx(IF_PACKETS_TX_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case CollectdPackage.COLLECTD_KVM_INTERFACE__ALERTS: + return alerts != null && !alerts.isEmpty(); + case CollectdPackage.COLLECTD_KVM_INTERFACE__ALERTING_TEMPLATE: + return alertingTemplate != null; + case CollectdPackage.COLLECTD_KVM_INTERFACE__IF_ERRORS_RX: + return IF_ERRORS_RX_EDEFAULT == null ? if_errors_rx != null : !IF_ERRORS_RX_EDEFAULT.equals(if_errors_rx); + case CollectdPackage.COLLECTD_KVM_INTERFACE__IF_ERRORS_TX: + return IF_ERRORS_TX_EDEFAULT == null ? if_errors_tx != null : !IF_ERRORS_TX_EDEFAULT.equals(if_errors_tx); + case CollectdPackage.COLLECTD_KVM_INTERFACE__IF_DROPPED_RX: + return IF_DROPPED_RX_EDEFAULT == null ? if_dropped_rx != null : !IF_DROPPED_RX_EDEFAULT.equals(if_dropped_rx); + case CollectdPackage.COLLECTD_KVM_INTERFACE__IF_DROPPED_TX: + return IF_DROPPED_TX_EDEFAULT == null ? if_dropped_tx != null : !IF_DROPPED_TX_EDEFAULT.equals(if_dropped_tx); + case CollectdPackage.COLLECTD_KVM_INTERFACE__IF_OCTETS_RX: + return IF_OCTETS_RX_EDEFAULT == null ? if_octets_rx != null : !IF_OCTETS_RX_EDEFAULT.equals(if_octets_rx); + case CollectdPackage.COLLECTD_KVM_INTERFACE__IF_OCTETS_TX: + return IF_OCTETS_TX_EDEFAULT == null ? if_octets_tx != null : !IF_OCTETS_TX_EDEFAULT.equals(if_octets_tx); + case CollectdPackage.COLLECTD_KVM_INTERFACE__IF_PACKETS_RX: + return IF_PACKETS_RX_EDEFAULT == null ? if_packets_rx != null : !IF_PACKETS_RX_EDEFAULT.equals(if_packets_rx); + case CollectdPackage.COLLECTD_KVM_INTERFACE__IF_PACKETS_TX: + return IF_PACKETS_TX_EDEFAULT == null ? if_packets_tx != null : !IF_PACKETS_TX_EDEFAULT.equals(if_packets_tx); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) { + if (baseClass == AlertContainer.class) { + switch (derivedFeatureID) { + case CollectdPackage.COLLECTD_KVM_INTERFACE__ALERTS: return AlertsPackage.ALERT_CONTAINER__ALERTS; + case CollectdPackage.COLLECTD_KVM_INTERFACE__ALERTING_TEMPLATE: return AlertsPackage.ALERT_CONTAINER__ALERTING_TEMPLATE; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) { + if (baseClass == AlertContainer.class) { + switch (baseFeatureID) { + case AlertsPackage.ALERT_CONTAINER__ALERTS: return CollectdPackage.COLLECTD_KVM_INTERFACE__ALERTS; + case AlertsPackage.ALERT_CONTAINER__ALERTING_TEMPLATE: return CollectdPackage.COLLECTD_KVM_INTERFACE__ALERTING_TEMPLATE; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (if_errors_rx: "); + result.append(if_errors_rx); + result.append(", if_errors_tx: "); + result.append(if_errors_tx); + result.append(", if_dropped_rx: "); + result.append(if_dropped_rx); + result.append(", if_dropped_tx: "); + result.append(if_dropped_tx); + result.append(", if_octets_rx: "); + result.append(if_octets_rx); + result.append(", if_octets_tx: "); + result.append(if_octets_tx); + result.append(", if_packets_rx: "); + result.append(if_packets_rx); + result.append(", if_packets_tx: "); + result.append(if_packets_tx); + result.append(')'); + return result.toString(); + } + +} //CollectdKvmInterfaceImpl diff --git a/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/impl/CollectdMemoryImpl.java b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/impl/CollectdMemoryImpl.java new file mode 100644 index 0000000..7813084 --- /dev/null +++ b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/impl/CollectdMemoryImpl.java @@ -0,0 +1,348 @@ + +/*- + * ============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.sirius.manager.agent.collectd.impl; + +import org.openecomp.ncomp.core.types.metrics.DoubleMetricAttribute; + +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdMemory; +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage; + +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>Memory</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdMemoryImpl#getBuffered <em>Buffered</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdMemoryImpl#getCached <em>Cached</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdMemoryImpl#getFree <em>Free</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdMemoryImpl#getUsed <em>Used</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class CollectdMemoryImpl extends MinimalEObjectImpl.Container implements CollectdMemory { + /** + * The default value of the '{@link #getBuffered() <em>Buffered</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getBuffered() + * @generated + * @ordered + */ + protected static final DoubleMetricAttribute BUFFERED_EDEFAULT = null; + + /** + * The cached value of the '{@link #getBuffered() <em>Buffered</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getBuffered() + * @generated + * @ordered + */ + protected DoubleMetricAttribute buffered = BUFFERED_EDEFAULT; + + /** + * The default value of the '{@link #getCached() <em>Cached</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCached() + * @generated + * @ordered + */ + protected static final DoubleMetricAttribute CACHED_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCached() <em>Cached</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCached() + * @generated + * @ordered + */ + protected DoubleMetricAttribute cached = CACHED_EDEFAULT; + + /** + * The default value of the '{@link #getFree() <em>Free</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFree() + * @generated + * @ordered + */ + protected static final DoubleMetricAttribute FREE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getFree() <em>Free</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFree() + * @generated + * @ordered + */ + protected DoubleMetricAttribute free = FREE_EDEFAULT; + + /** + * The default value of the '{@link #getUsed() <em>Used</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUsed() + * @generated + * @ordered + */ + protected static final DoubleMetricAttribute USED_EDEFAULT = null; + + /** + * The cached value of the '{@link #getUsed() <em>Used</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUsed() + * @generated + * @ordered + */ + protected DoubleMetricAttribute used = USED_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected CollectdMemoryImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return CollectdPackage.Literals.COLLECTD_MEMORY; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getBuffered() { + return buffered; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setBuffered(DoubleMetricAttribute newBuffered) { + DoubleMetricAttribute oldBuffered = buffered; + buffered = newBuffered; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_MEMORY__BUFFERED, oldBuffered, buffered)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getCached() { + return cached; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setCached(DoubleMetricAttribute newCached) { + DoubleMetricAttribute oldCached = cached; + cached = newCached; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_MEMORY__CACHED, oldCached, cached)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getFree() { + return free; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setFree(DoubleMetricAttribute newFree) { + DoubleMetricAttribute oldFree = free; + free = newFree; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_MEMORY__FREE, oldFree, free)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getUsed() { + return used; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setUsed(DoubleMetricAttribute newUsed) { + DoubleMetricAttribute oldUsed = used; + used = newUsed; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_MEMORY__USED, oldUsed, used)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case CollectdPackage.COLLECTD_MEMORY__BUFFERED: + return getBuffered(); + case CollectdPackage.COLLECTD_MEMORY__CACHED: + return getCached(); + case CollectdPackage.COLLECTD_MEMORY__FREE: + return getFree(); + case CollectdPackage.COLLECTD_MEMORY__USED: + return getUsed(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case CollectdPackage.COLLECTD_MEMORY__BUFFERED: + setBuffered((DoubleMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_MEMORY__CACHED: + setCached((DoubleMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_MEMORY__FREE: + setFree((DoubleMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_MEMORY__USED: + setUsed((DoubleMetricAttribute)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case CollectdPackage.COLLECTD_MEMORY__BUFFERED: + setBuffered(BUFFERED_EDEFAULT); + return; + case CollectdPackage.COLLECTD_MEMORY__CACHED: + setCached(CACHED_EDEFAULT); + return; + case CollectdPackage.COLLECTD_MEMORY__FREE: + setFree(FREE_EDEFAULT); + return; + case CollectdPackage.COLLECTD_MEMORY__USED: + setUsed(USED_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case CollectdPackage.COLLECTD_MEMORY__BUFFERED: + return BUFFERED_EDEFAULT == null ? buffered != null : !BUFFERED_EDEFAULT.equals(buffered); + case CollectdPackage.COLLECTD_MEMORY__CACHED: + return CACHED_EDEFAULT == null ? cached != null : !CACHED_EDEFAULT.equals(cached); + case CollectdPackage.COLLECTD_MEMORY__FREE: + return FREE_EDEFAULT == null ? free != null : !FREE_EDEFAULT.equals(free); + case CollectdPackage.COLLECTD_MEMORY__USED: + return USED_EDEFAULT == null ? used != null : !USED_EDEFAULT.equals(used); + } + 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(" (buffered: "); + result.append(buffered); + result.append(", cached: "); + result.append(cached); + result.append(", free: "); + result.append(free); + result.append(", used: "); + result.append(used); + result.append(')'); + return result.toString(); + } + +} //CollectdMemoryImpl diff --git a/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/impl/CollectdPackageImpl.java b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/impl/CollectdPackageImpl.java new file mode 100644 index 0000000..8c78ec6 --- /dev/null +++ b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/impl/CollectdPackageImpl.java @@ -0,0 +1,1562 @@ + +/*- + * ============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.sirius.manager.agent.collectd.impl; + +import org.openecomp.ncomp.core.CorePackage; + +import org.openecomp.ncomp.core.alerts.AlertsPackage; + +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdCpu; +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdDisk; +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdFactory; +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdFileSystem; +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdInterface; +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmDisk; +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInstance; +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInterface; +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdMemory; +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage; +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdProcesses; +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer; +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdSwap; +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +import org.eclipse.emf.ecore.impl.EPackageImpl; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Package</b>. + * <!-- end-user-doc --> + * @generated + */ +public class CollectdPackageImpl extends EPackageImpl implements CollectdPackage { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass collectdServerEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass collectdMemoryEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass collectdSwapEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass collectdProcessesEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass collectdVmemEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass collectdCpuEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass collectdDiskEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass collectdFileSystemEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass collectdInterfaceEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass collectdKvmInstanceEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass collectdKvmDiskEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass collectdKvmInterfaceEClass = 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.sirius.manager.agent.collectd.CollectdPackage#eNS_URI + * @see #init() + * @generated + */ + private CollectdPackageImpl() { + super(eNS_URI, CollectdFactory.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 CollectdPackage#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 CollectdPackage init() { + if (isInited) return (CollectdPackage)EPackage.Registry.INSTANCE.getEPackage(CollectdPackage.eNS_URI); + + // Obtain or create and register package + CollectdPackageImpl theCollectdPackage = (CollectdPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof CollectdPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new CollectdPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + AlertsPackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theCollectdPackage.createPackageContents(); + + // Initialize created meta-data + theCollectdPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theCollectdPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(CollectdPackage.eNS_URI, theCollectdPackage); + return theCollectdPackage; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getCollectdServer() { + return collectdServerEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdServer_Load_shortterm() { + return (EAttribute)collectdServerEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdServer_Load_midterm() { + return (EAttribute)collectdServerEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdServer_Load_longterm() { + return (EAttribute)collectdServerEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdServer_Entropy() { + return (EAttribute)collectdServerEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdServer_Contextswitches() { + return (EAttribute)collectdServerEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getCollectdServer_Cpus() { + return (EReference)collectdServerEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getCollectdServer_Memory() { + return (EReference)collectdServerEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getCollectdServer_Swap() { + return (EReference)collectdServerEClass.getEStructuralFeatures().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getCollectdServer_Processes() { + return (EReference)collectdServerEClass.getEStructuralFeatures().get(8); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getCollectdServer_Vmem() { + return (EReference)collectdServerEClass.getEStructuralFeatures().get(9); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getCollectdServer_Filesystems() { + return (EReference)collectdServerEClass.getEStructuralFeatures().get(10); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getCollectdServer_Disks() { + return (EReference)collectdServerEClass.getEStructuralFeatures().get(11); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getCollectdServer_Interfaces() { + return (EReference)collectdServerEClass.getEStructuralFeatures().get(12); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getCollectdServer_Instances() { + return (EReference)collectdServerEClass.getEStructuralFeatures().get(13); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getCollectdMemory() { + return collectdMemoryEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdMemory_Buffered() { + return (EAttribute)collectdMemoryEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdMemory_Cached() { + return (EAttribute)collectdMemoryEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdMemory_Free() { + return (EAttribute)collectdMemoryEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdMemory_Used() { + return (EAttribute)collectdMemoryEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getCollectdSwap() { + return collectdSwapEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdSwap_Cached() { + return (EAttribute)collectdSwapEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdSwap_Free() { + return (EAttribute)collectdSwapEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdSwap_Used() { + return (EAttribute)collectdSwapEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getCollectdProcesses() { + return collectdProcessesEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdProcesses_Fork_rate() { + return (EAttribute)collectdProcessesEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdProcesses_Blocked() { + return (EAttribute)collectdProcessesEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdProcesses_Paging() { + return (EAttribute)collectdProcessesEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdProcesses_Running() { + return (EAttribute)collectdProcessesEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdProcesses_Sleeping() { + return (EAttribute)collectdProcessesEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdProcesses_Stopped() { + return (EAttribute)collectdProcessesEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdProcesses_Zombies() { + return (EAttribute)collectdProcessesEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getCollectdVmem() { + return collectdVmemEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdVmem_Active_anon() { + return (EAttribute)collectdVmemEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdVmem_Active_file() { + return (EAttribute)collectdVmemEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdVmem_Anon_pages() { + return (EAttribute)collectdVmemEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdVmem_Anon_transparent_hugepages() { + return (EAttribute)collectdVmemEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdVmem_Bounce() { + return (EAttribute)collectdVmemEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdVmem_Dirtied() { + return (EAttribute)collectdVmemEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdVmem_Dirty() { + return (EAttribute)collectdVmemEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdVmem_Dirty_background_threshold() { + return (EAttribute)collectdVmemEClass.getEStructuralFeatures().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdVmem_Dirty_threshold() { + return (EAttribute)collectdVmemEClass.getEStructuralFeatures().get(8); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdVmem_File_pages() { + return (EAttribute)collectdVmemEClass.getEStructuralFeatures().get(9); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdVmem_Free_pages() { + return (EAttribute)collectdVmemEClass.getEStructuralFeatures().get(10); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdVmem_Inactive_anon() { + return (EAttribute)collectdVmemEClass.getEStructuralFeatures().get(11); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdVmem_Inactive_file() { + return (EAttribute)collectdVmemEClass.getEStructuralFeatures().get(12); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdVmem_Isolated_anon() { + return (EAttribute)collectdVmemEClass.getEStructuralFeatures().get(13); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdVmem_Isolated_file() { + return (EAttribute)collectdVmemEClass.getEStructuralFeatures().get(14); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdVmem_Kernel_stack() { + return (EAttribute)collectdVmemEClass.getEStructuralFeatures().get(15); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdVmem_Mapped() { + return (EAttribute)collectdVmemEClass.getEStructuralFeatures().get(16); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdVmem_Mlock() { + return (EAttribute)collectdVmemEClass.getEStructuralFeatures().get(17); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdVmem_Page_table_pages() { + return (EAttribute)collectdVmemEClass.getEStructuralFeatures().get(18); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdVmem_Shmem() { + return (EAttribute)collectdVmemEClass.getEStructuralFeatures().get(19); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdVmem_Slab_reclaimable() { + return (EAttribute)collectdVmemEClass.getEStructuralFeatures().get(20); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdVmem_Slab_unreclaimable() { + return (EAttribute)collectdVmemEClass.getEStructuralFeatures().get(21); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdVmem_Unevictable() { + return (EAttribute)collectdVmemEClass.getEStructuralFeatures().get(22); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdVmem_Unstable() { + return (EAttribute)collectdVmemEClass.getEStructuralFeatures().get(23); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdVmem_Vmscan_immediate_reclaim() { + return (EAttribute)collectdVmemEClass.getEStructuralFeatures().get(24); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdVmem_Vmscan_write() { + return (EAttribute)collectdVmemEClass.getEStructuralFeatures().get(25); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdVmem_Writeback() { + return (EAttribute)collectdVmemEClass.getEStructuralFeatures().get(26); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdVmem_Writeback_temp() { + return (EAttribute)collectdVmemEClass.getEStructuralFeatures().get(27); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdVmem_Written() { + return (EAttribute)collectdVmemEClass.getEStructuralFeatures().get(28); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdVmem_Memory_in() { + return (EAttribute)collectdVmemEClass.getEStructuralFeatures().get(29); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdVmem_Memory_out() { + return (EAttribute)collectdVmemEClass.getEStructuralFeatures().get(30); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdVmem_Swap_in() { + return (EAttribute)collectdVmemEClass.getEStructuralFeatures().get(31); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdVmem_Swap_out() { + return (EAttribute)collectdVmemEClass.getEStructuralFeatures().get(32); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdVmem_Faults_minor() { + return (EAttribute)collectdVmemEClass.getEStructuralFeatures().get(33); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdVmem_Faults_major() { + return (EAttribute)collectdVmemEClass.getEStructuralFeatures().get(34); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getCollectdCpu() { + return collectdCpuEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdCpu_Idle() { + return (EAttribute)collectdCpuEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdCpu_Wait() { + return (EAttribute)collectdCpuEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdCpu_User() { + return (EAttribute)collectdCpuEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdCpu_System() { + return (EAttribute)collectdCpuEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getCollectdDisk() { + return collectdDiskEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdDisk_Disk_merged_read() { + return (EAttribute)collectdDiskEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdDisk_Disk_merged_write() { + return (EAttribute)collectdDiskEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdDisk_Disk_octets_read() { + return (EAttribute)collectdDiskEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdDisk_Disk_octets_write() { + return (EAttribute)collectdDiskEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdDisk_Disk_ops_read() { + return (EAttribute)collectdDiskEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdDisk_Disk_ops_write() { + return (EAttribute)collectdDiskEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdDisk_Disk_time_read() { + return (EAttribute)collectdDiskEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdDisk_Disk_time_write() { + return (EAttribute)collectdDiskEClass.getEStructuralFeatures().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getCollectdFileSystem() { + return collectdFileSystemEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdFileSystem_Used() { + return (EAttribute)collectdFileSystemEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdFileSystem_Free() { + return (EAttribute)collectdFileSystemEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getCollectdInterface() { + return collectdInterfaceEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdInterface_If_errors_rx() { + return (EAttribute)collectdInterfaceEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdInterface_If_errors_tx() { + return (EAttribute)collectdInterfaceEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdInterface_If_octets_rx() { + return (EAttribute)collectdInterfaceEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdInterface_If_octets_tx() { + return (EAttribute)collectdInterfaceEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdInterface_If_packets_rx() { + return (EAttribute)collectdInterfaceEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdInterface_If_packets_tx() { + return (EAttribute)collectdInterfaceEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getCollectdKvmInstance() { + return collectdKvmInstanceEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdKvmInstance_Virt_cpu_total() { + return (EAttribute)collectdKvmInstanceEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getCollectdKvmInstance_Disks() { + return (EReference)collectdKvmInstanceEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getCollectdKvmInstance_Interfaces() { + return (EReference)collectdKvmInstanceEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getCollectdKvmDisk() { + return collectdKvmDiskEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdKvmDisk_Disk_octets_read() { + return (EAttribute)collectdKvmDiskEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdKvmDisk_Disk_octets_write() { + return (EAttribute)collectdKvmDiskEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdKvmDisk_Disk_ops_read() { + return (EAttribute)collectdKvmDiskEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdKvmDisk_Disk_ops_write() { + return (EAttribute)collectdKvmDiskEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getCollectdKvmInterface() { + return collectdKvmInterfaceEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdKvmInterface_If_errors_rx() { + return (EAttribute)collectdKvmInterfaceEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdKvmInterface_If_errors_tx() { + return (EAttribute)collectdKvmInterfaceEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdKvmInterface_If_dropped_rx() { + return (EAttribute)collectdKvmInterfaceEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdKvmInterface_If_dropped_tx() { + return (EAttribute)collectdKvmInterfaceEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdKvmInterface_If_octets_rx() { + return (EAttribute)collectdKvmInterfaceEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdKvmInterface_If_octets_tx() { + return (EAttribute)collectdKvmInterfaceEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdKvmInterface_If_packets_rx() { + return (EAttribute)collectdKvmInterfaceEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCollectdKvmInterface_If_packets_tx() { + return (EAttribute)collectdKvmInterfaceEClass.getEStructuralFeatures().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CollectdFactory getCollectdFactory() { + return (CollectdFactory)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 + collectdServerEClass = createEClass(COLLECTD_SERVER); + createEAttribute(collectdServerEClass, COLLECTD_SERVER__LOAD_SHORTTERM); + createEAttribute(collectdServerEClass, COLLECTD_SERVER__LOAD_MIDTERM); + createEAttribute(collectdServerEClass, COLLECTD_SERVER__LOAD_LONGTERM); + createEAttribute(collectdServerEClass, COLLECTD_SERVER__ENTROPY); + createEAttribute(collectdServerEClass, COLLECTD_SERVER__CONTEXTSWITCHES); + createEReference(collectdServerEClass, COLLECTD_SERVER__CPUS); + createEReference(collectdServerEClass, COLLECTD_SERVER__MEMORY); + createEReference(collectdServerEClass, COLLECTD_SERVER__SWAP); + createEReference(collectdServerEClass, COLLECTD_SERVER__PROCESSES); + createEReference(collectdServerEClass, COLLECTD_SERVER__VMEM); + createEReference(collectdServerEClass, COLLECTD_SERVER__FILESYSTEMS); + createEReference(collectdServerEClass, COLLECTD_SERVER__DISKS); + createEReference(collectdServerEClass, COLLECTD_SERVER__INTERFACES); + createEReference(collectdServerEClass, COLLECTD_SERVER__INSTANCES); + + collectdMemoryEClass = createEClass(COLLECTD_MEMORY); + createEAttribute(collectdMemoryEClass, COLLECTD_MEMORY__BUFFERED); + createEAttribute(collectdMemoryEClass, COLLECTD_MEMORY__CACHED); + createEAttribute(collectdMemoryEClass, COLLECTD_MEMORY__FREE); + createEAttribute(collectdMemoryEClass, COLLECTD_MEMORY__USED); + + collectdSwapEClass = createEClass(COLLECTD_SWAP); + createEAttribute(collectdSwapEClass, COLLECTD_SWAP__CACHED); + createEAttribute(collectdSwapEClass, COLLECTD_SWAP__FREE); + createEAttribute(collectdSwapEClass, COLLECTD_SWAP__USED); + + collectdProcessesEClass = createEClass(COLLECTD_PROCESSES); + createEAttribute(collectdProcessesEClass, COLLECTD_PROCESSES__FORK_RATE); + createEAttribute(collectdProcessesEClass, COLLECTD_PROCESSES__BLOCKED); + createEAttribute(collectdProcessesEClass, COLLECTD_PROCESSES__PAGING); + createEAttribute(collectdProcessesEClass, COLLECTD_PROCESSES__RUNNING); + createEAttribute(collectdProcessesEClass, COLLECTD_PROCESSES__SLEEPING); + createEAttribute(collectdProcessesEClass, COLLECTD_PROCESSES__STOPPED); + createEAttribute(collectdProcessesEClass, COLLECTD_PROCESSES__ZOMBIES); + + collectdVmemEClass = createEClass(COLLECTD_VMEM); + createEAttribute(collectdVmemEClass, COLLECTD_VMEM__ACTIVE_ANON); + createEAttribute(collectdVmemEClass, COLLECTD_VMEM__ACTIVE_FILE); + createEAttribute(collectdVmemEClass, COLLECTD_VMEM__ANON_PAGES); + createEAttribute(collectdVmemEClass, COLLECTD_VMEM__ANON_TRANSPARENT_HUGEPAGES); + createEAttribute(collectdVmemEClass, COLLECTD_VMEM__BOUNCE); + createEAttribute(collectdVmemEClass, COLLECTD_VMEM__DIRTIED); + createEAttribute(collectdVmemEClass, COLLECTD_VMEM__DIRTY); + createEAttribute(collectdVmemEClass, COLLECTD_VMEM__DIRTY_BACKGROUND_THRESHOLD); + createEAttribute(collectdVmemEClass, COLLECTD_VMEM__DIRTY_THRESHOLD); + createEAttribute(collectdVmemEClass, COLLECTD_VMEM__FILE_PAGES); + createEAttribute(collectdVmemEClass, COLLECTD_VMEM__FREE_PAGES); + createEAttribute(collectdVmemEClass, COLLECTD_VMEM__INACTIVE_ANON); + createEAttribute(collectdVmemEClass, COLLECTD_VMEM__INACTIVE_FILE); + createEAttribute(collectdVmemEClass, COLLECTD_VMEM__ISOLATED_ANON); + createEAttribute(collectdVmemEClass, COLLECTD_VMEM__ISOLATED_FILE); + createEAttribute(collectdVmemEClass, COLLECTD_VMEM__KERNEL_STACK); + createEAttribute(collectdVmemEClass, COLLECTD_VMEM__MAPPED); + createEAttribute(collectdVmemEClass, COLLECTD_VMEM__MLOCK); + createEAttribute(collectdVmemEClass, COLLECTD_VMEM__PAGE_TABLE_PAGES); + createEAttribute(collectdVmemEClass, COLLECTD_VMEM__SHMEM); + createEAttribute(collectdVmemEClass, COLLECTD_VMEM__SLAB_RECLAIMABLE); + createEAttribute(collectdVmemEClass, COLLECTD_VMEM__SLAB_UNRECLAIMABLE); + createEAttribute(collectdVmemEClass, COLLECTD_VMEM__UNEVICTABLE); + createEAttribute(collectdVmemEClass, COLLECTD_VMEM__UNSTABLE); + createEAttribute(collectdVmemEClass, COLLECTD_VMEM__VMSCAN_IMMEDIATE_RECLAIM); + createEAttribute(collectdVmemEClass, COLLECTD_VMEM__VMSCAN_WRITE); + createEAttribute(collectdVmemEClass, COLLECTD_VMEM__WRITEBACK); + createEAttribute(collectdVmemEClass, COLLECTD_VMEM__WRITEBACK_TEMP); + createEAttribute(collectdVmemEClass, COLLECTD_VMEM__WRITTEN); + createEAttribute(collectdVmemEClass, COLLECTD_VMEM__MEMORY_IN); + createEAttribute(collectdVmemEClass, COLLECTD_VMEM__MEMORY_OUT); + createEAttribute(collectdVmemEClass, COLLECTD_VMEM__SWAP_IN); + createEAttribute(collectdVmemEClass, COLLECTD_VMEM__SWAP_OUT); + createEAttribute(collectdVmemEClass, COLLECTD_VMEM__FAULTS_MINOR); + createEAttribute(collectdVmemEClass, COLLECTD_VMEM__FAULTS_MAJOR); + + collectdCpuEClass = createEClass(COLLECTD_CPU); + createEAttribute(collectdCpuEClass, COLLECTD_CPU__IDLE); + createEAttribute(collectdCpuEClass, COLLECTD_CPU__WAIT); + createEAttribute(collectdCpuEClass, COLLECTD_CPU__USER); + createEAttribute(collectdCpuEClass, COLLECTD_CPU__SYSTEM); + + collectdDiskEClass = createEClass(COLLECTD_DISK); + createEAttribute(collectdDiskEClass, COLLECTD_DISK__DISK_MERGED_READ); + createEAttribute(collectdDiskEClass, COLLECTD_DISK__DISK_MERGED_WRITE); + createEAttribute(collectdDiskEClass, COLLECTD_DISK__DISK_OCTETS_READ); + createEAttribute(collectdDiskEClass, COLLECTD_DISK__DISK_OCTETS_WRITE); + createEAttribute(collectdDiskEClass, COLLECTD_DISK__DISK_OPS_READ); + createEAttribute(collectdDiskEClass, COLLECTD_DISK__DISK_OPS_WRITE); + createEAttribute(collectdDiskEClass, COLLECTD_DISK__DISK_TIME_READ); + createEAttribute(collectdDiskEClass, COLLECTD_DISK__DISK_TIME_WRITE); + + collectdFileSystemEClass = createEClass(COLLECTD_FILE_SYSTEM); + createEAttribute(collectdFileSystemEClass, COLLECTD_FILE_SYSTEM__USED); + createEAttribute(collectdFileSystemEClass, COLLECTD_FILE_SYSTEM__FREE); + + collectdInterfaceEClass = createEClass(COLLECTD_INTERFACE); + createEAttribute(collectdInterfaceEClass, COLLECTD_INTERFACE__IF_ERRORS_RX); + createEAttribute(collectdInterfaceEClass, COLLECTD_INTERFACE__IF_ERRORS_TX); + createEAttribute(collectdInterfaceEClass, COLLECTD_INTERFACE__IF_OCTETS_RX); + createEAttribute(collectdInterfaceEClass, COLLECTD_INTERFACE__IF_OCTETS_TX); + createEAttribute(collectdInterfaceEClass, COLLECTD_INTERFACE__IF_PACKETS_RX); + createEAttribute(collectdInterfaceEClass, COLLECTD_INTERFACE__IF_PACKETS_TX); + + collectdKvmInstanceEClass = createEClass(COLLECTD_KVM_INSTANCE); + createEAttribute(collectdKvmInstanceEClass, COLLECTD_KVM_INSTANCE__VIRT_CPU_TOTAL); + createEReference(collectdKvmInstanceEClass, COLLECTD_KVM_INSTANCE__DISKS); + createEReference(collectdKvmInstanceEClass, COLLECTD_KVM_INSTANCE__INTERFACES); + + collectdKvmDiskEClass = createEClass(COLLECTD_KVM_DISK); + createEAttribute(collectdKvmDiskEClass, COLLECTD_KVM_DISK__DISK_OCTETS_READ); + createEAttribute(collectdKvmDiskEClass, COLLECTD_KVM_DISK__DISK_OCTETS_WRITE); + createEAttribute(collectdKvmDiskEClass, COLLECTD_KVM_DISK__DISK_OPS_READ); + createEAttribute(collectdKvmDiskEClass, COLLECTD_KVM_DISK__DISK_OPS_WRITE); + + collectdKvmInterfaceEClass = createEClass(COLLECTD_KVM_INTERFACE); + createEAttribute(collectdKvmInterfaceEClass, COLLECTD_KVM_INTERFACE__IF_ERRORS_RX); + createEAttribute(collectdKvmInterfaceEClass, COLLECTD_KVM_INTERFACE__IF_ERRORS_TX); + createEAttribute(collectdKvmInterfaceEClass, COLLECTD_KVM_INTERFACE__IF_DROPPED_RX); + createEAttribute(collectdKvmInterfaceEClass, COLLECTD_KVM_INTERFACE__IF_DROPPED_TX); + createEAttribute(collectdKvmInterfaceEClass, COLLECTD_KVM_INTERFACE__IF_OCTETS_RX); + createEAttribute(collectdKvmInterfaceEClass, COLLECTD_KVM_INTERFACE__IF_OCTETS_TX); + createEAttribute(collectdKvmInterfaceEClass, COLLECTD_KVM_INTERFACE__IF_PACKETS_RX); + createEAttribute(collectdKvmInterfaceEClass, COLLECTD_KVM_INTERFACE__IF_PACKETS_TX); + } + + /** + * <!-- 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); + AlertsPackage theAlertsPackage = (AlertsPackage)EPackage.Registry.INSTANCE.getEPackage(AlertsPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + collectdServerEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + collectdServerEClass.getESuperTypes().add(theAlertsPackage.getAlertContainer()); + collectdCpuEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + collectdCpuEClass.getESuperTypes().add(theAlertsPackage.getAlertContainer()); + collectdDiskEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + collectdDiskEClass.getESuperTypes().add(theAlertsPackage.getAlertContainer()); + collectdFileSystemEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + collectdFileSystemEClass.getESuperTypes().add(theAlertsPackage.getAlertContainer()); + collectdInterfaceEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + collectdInterfaceEClass.getESuperTypes().add(theAlertsPackage.getAlertContainer()); + collectdKvmInstanceEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + collectdKvmInstanceEClass.getESuperTypes().add(theAlertsPackage.getAlertContainer()); + collectdKvmDiskEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + collectdKvmDiskEClass.getESuperTypes().add(theAlertsPackage.getAlertContainer()); + collectdKvmInterfaceEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + collectdKvmInterfaceEClass.getESuperTypes().add(theAlertsPackage.getAlertContainer()); + + // Initialize classes, features, and operations; add parameters + initEClass(collectdServerEClass, CollectdServer.class, "CollectdServer", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getCollectdServer_Load_shortterm(), theCorePackage.getDoubleMetricAttribute(), "load_shortterm", null, 0, 1, CollectdServer.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdServer_Load_midterm(), theCorePackage.getDoubleMetricAttribute(), "load_midterm", null, 0, 1, CollectdServer.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdServer_Load_longterm(), theCorePackage.getDoubleMetricAttribute(), "load_longterm", null, 0, 1, CollectdServer.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdServer_Entropy(), theCorePackage.getDoubleMetricAttribute(), "entropy", null, 0, 1, CollectdServer.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdServer_Contextswitches(), theCorePackage.getIncreasingULongMetricAttribute(), "contextswitches", null, 0, 1, CollectdServer.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getCollectdServer_Cpus(), this.getCollectdCpu(), null, "cpus", null, 0, -1, CollectdServer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getCollectdServer_Memory(), this.getCollectdMemory(), null, "memory", null, 0, 1, CollectdServer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getCollectdServer_Swap(), this.getCollectdSwap(), null, "swap", null, 0, 1, CollectdServer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getCollectdServer_Processes(), this.getCollectdProcesses(), null, "processes", null, 0, 1, CollectdServer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getCollectdServer_Vmem(), this.getCollectdVmem(), null, "vmem", null, 0, 1, CollectdServer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getCollectdServer_Filesystems(), this.getCollectdFileSystem(), null, "filesystems", null, 0, -1, CollectdServer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getCollectdServer_Disks(), this.getCollectdDisk(), null, "disks", null, 0, -1, CollectdServer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getCollectdServer_Interfaces(), this.getCollectdInterface(), null, "interfaces", null, 0, -1, CollectdServer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getCollectdServer_Instances(), this.getCollectdKvmInstance(), null, "instances", null, 0, -1, CollectdServer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(collectdMemoryEClass, CollectdMemory.class, "CollectdMemory", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getCollectdMemory_Buffered(), theCorePackage.getDoubleMetricAttribute(), "buffered", null, 0, 1, CollectdMemory.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdMemory_Cached(), theCorePackage.getDoubleMetricAttribute(), "cached", null, 0, 1, CollectdMemory.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdMemory_Free(), theCorePackage.getDoubleMetricAttribute(), "free", null, 0, 1, CollectdMemory.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdMemory_Used(), theCorePackage.getDoubleMetricAttribute(), "used", null, 0, 1, CollectdMemory.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(collectdSwapEClass, CollectdSwap.class, "CollectdSwap", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getCollectdSwap_Cached(), theCorePackage.getDoubleMetricAttribute(), "cached", null, 0, 1, CollectdSwap.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdSwap_Free(), theCorePackage.getDoubleMetricAttribute(), "free", null, 0, 1, CollectdSwap.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdSwap_Used(), theCorePackage.getDoubleMetricAttribute(), "used", null, 0, 1, CollectdSwap.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(collectdProcessesEClass, CollectdProcesses.class, "CollectdProcesses", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getCollectdProcesses_Fork_rate(), theCorePackage.getIncreasingULongMetricAttribute(), "fork_rate", null, 0, 1, CollectdProcesses.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdProcesses_Blocked(), theCorePackage.getDoubleMetricAttribute(), "blocked", null, 0, 1, CollectdProcesses.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdProcesses_Paging(), theCorePackage.getDoubleMetricAttribute(), "paging", null, 0, 1, CollectdProcesses.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdProcesses_Running(), theCorePackage.getDoubleMetricAttribute(), "running", null, 0, 1, CollectdProcesses.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdProcesses_Sleeping(), theCorePackage.getDoubleMetricAttribute(), "sleeping", null, 0, 1, CollectdProcesses.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdProcesses_Stopped(), theCorePackage.getDoubleMetricAttribute(), "stopped", null, 0, 1, CollectdProcesses.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdProcesses_Zombies(), theCorePackage.getDoubleMetricAttribute(), "zombies", null, 0, 1, CollectdProcesses.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(collectdVmemEClass, CollectdVmem.class, "CollectdVmem", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getCollectdVmem_Active_anon(), theCorePackage.getDoubleMetricAttribute(), "active_anon", null, 0, 1, CollectdVmem.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdVmem_Active_file(), theCorePackage.getDoubleMetricAttribute(), "active_file", null, 0, 1, CollectdVmem.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdVmem_Anon_pages(), theCorePackage.getDoubleMetricAttribute(), "anon_pages", null, 0, 1, CollectdVmem.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdVmem_Anon_transparent_hugepages(), theCorePackage.getDoubleMetricAttribute(), "anon_transparent_hugepages", null, 0, 1, CollectdVmem.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdVmem_Bounce(), theCorePackage.getDoubleMetricAttribute(), "bounce", null, 0, 1, CollectdVmem.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdVmem_Dirtied(), theCorePackage.getDoubleMetricAttribute(), "dirtied", null, 0, 1, CollectdVmem.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdVmem_Dirty(), theCorePackage.getDoubleMetricAttribute(), "dirty", null, 0, 1, CollectdVmem.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdVmem_Dirty_background_threshold(), theCorePackage.getDoubleMetricAttribute(), "dirty_background_threshold", null, 0, 1, CollectdVmem.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdVmem_Dirty_threshold(), theCorePackage.getDoubleMetricAttribute(), "dirty_threshold", null, 0, 1, CollectdVmem.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdVmem_File_pages(), theCorePackage.getDoubleMetricAttribute(), "file_pages", null, 0, 1, CollectdVmem.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdVmem_Free_pages(), theCorePackage.getDoubleMetricAttribute(), "free_pages", null, 0, 1, CollectdVmem.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdVmem_Inactive_anon(), theCorePackage.getDoubleMetricAttribute(), "inactive_anon", null, 0, 1, CollectdVmem.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdVmem_Inactive_file(), theCorePackage.getDoubleMetricAttribute(), "inactive_file", null, 0, 1, CollectdVmem.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdVmem_Isolated_anon(), theCorePackage.getDoubleMetricAttribute(), "isolated_anon", null, 0, 1, CollectdVmem.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdVmem_Isolated_file(), theCorePackage.getDoubleMetricAttribute(), "isolated_file", null, 0, 1, CollectdVmem.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdVmem_Kernel_stack(), theCorePackage.getDoubleMetricAttribute(), "kernel_stack", null, 0, 1, CollectdVmem.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdVmem_Mapped(), theCorePackage.getDoubleMetricAttribute(), "mapped", null, 0, 1, CollectdVmem.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdVmem_Mlock(), theCorePackage.getDoubleMetricAttribute(), "mlock", null, 0, 1, CollectdVmem.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdVmem_Page_table_pages(), theCorePackage.getDoubleMetricAttribute(), "page_table_pages", null, 0, 1, CollectdVmem.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdVmem_Shmem(), theCorePackage.getDoubleMetricAttribute(), "shmem", null, 0, 1, CollectdVmem.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdVmem_Slab_reclaimable(), theCorePackage.getDoubleMetricAttribute(), "slab_reclaimable", null, 0, 1, CollectdVmem.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdVmem_Slab_unreclaimable(), theCorePackage.getDoubleMetricAttribute(), "slab_unreclaimable", null, 0, 1, CollectdVmem.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdVmem_Unevictable(), theCorePackage.getDoubleMetricAttribute(), "unevictable", null, 0, 1, CollectdVmem.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdVmem_Unstable(), theCorePackage.getDoubleMetricAttribute(), "unstable", null, 0, 1, CollectdVmem.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdVmem_Vmscan_immediate_reclaim(), theCorePackage.getDoubleMetricAttribute(), "vmscan_immediate_reclaim", null, 0, 1, CollectdVmem.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdVmem_Vmscan_write(), theCorePackage.getDoubleMetricAttribute(), "vmscan_write", null, 0, 1, CollectdVmem.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdVmem_Writeback(), theCorePackage.getDoubleMetricAttribute(), "writeback", null, 0, 1, CollectdVmem.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdVmem_Writeback_temp(), theCorePackage.getDoubleMetricAttribute(), "writeback_temp", null, 0, 1, CollectdVmem.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdVmem_Written(), theCorePackage.getDoubleMetricAttribute(), "written", null, 0, 1, CollectdVmem.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdVmem_Memory_in(), theCorePackage.getIncreasingULongMetricAttribute(), "memory_in", null, 0, 1, CollectdVmem.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdVmem_Memory_out(), theCorePackage.getIncreasingULongMetricAttribute(), "memory_out", null, 0, 1, CollectdVmem.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdVmem_Swap_in(), theCorePackage.getIncreasingULongMetricAttribute(), "swap_in", null, 0, 1, CollectdVmem.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdVmem_Swap_out(), theCorePackage.getIncreasingULongMetricAttribute(), "swap_out", null, 0, 1, CollectdVmem.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdVmem_Faults_minor(), theCorePackage.getIncreasingULongMetricAttribute(), "faults_minor", null, 0, 1, CollectdVmem.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdVmem_Faults_major(), theCorePackage.getIncreasingULongMetricAttribute(), "faults_major", null, 0, 1, CollectdVmem.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(collectdCpuEClass, CollectdCpu.class, "CollectdCpu", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getCollectdCpu_Idle(), theCorePackage.getIncreasingULongMetricAttribute(), "idle", null, 0, 1, CollectdCpu.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdCpu_Wait(), theCorePackage.getIncreasingULongMetricAttribute(), "wait", null, 0, 1, CollectdCpu.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdCpu_User(), theCorePackage.getIncreasingULongMetricAttribute(), "user", null, 0, 1, CollectdCpu.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdCpu_System(), theCorePackage.getIncreasingULongMetricAttribute(), "system", null, 0, 1, CollectdCpu.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(collectdDiskEClass, CollectdDisk.class, "CollectdDisk", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getCollectdDisk_Disk_merged_read(), theCorePackage.getIncreasingULongMetricAttribute(), "disk_merged_read", null, 0, 1, CollectdDisk.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdDisk_Disk_merged_write(), theCorePackage.getIncreasingULongMetricAttribute(), "disk_merged_write", null, 0, 1, CollectdDisk.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdDisk_Disk_octets_read(), theCorePackage.getIncreasingULongMetricAttribute(), "disk_octets_read", null, 0, 1, CollectdDisk.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdDisk_Disk_octets_write(), theCorePackage.getIncreasingULongMetricAttribute(), "disk_octets_write", null, 0, 1, CollectdDisk.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdDisk_Disk_ops_read(), theCorePackage.getIncreasingULongMetricAttribute(), "disk_ops_read", null, 0, 1, CollectdDisk.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdDisk_Disk_ops_write(), theCorePackage.getIncreasingULongMetricAttribute(), "disk_ops_write", null, 0, 1, CollectdDisk.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdDisk_Disk_time_read(), theCorePackage.getIncreasingULongMetricAttribute(), "disk_time_read", null, 0, 1, CollectdDisk.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdDisk_Disk_time_write(), theCorePackage.getIncreasingULongMetricAttribute(), "disk_time_write", null, 0, 1, CollectdDisk.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(collectdFileSystemEClass, CollectdFileSystem.class, "CollectdFileSystem", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getCollectdFileSystem_Used(), theCorePackage.getDoubleMetricAttribute(), "used", null, 0, 1, CollectdFileSystem.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdFileSystem_Free(), theCorePackage.getDoubleMetricAttribute(), "free", null, 0, 1, CollectdFileSystem.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(collectdInterfaceEClass, CollectdInterface.class, "CollectdInterface", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getCollectdInterface_If_errors_rx(), theCorePackage.getIncreasingULongMetricAttribute(), "if_errors_rx", null, 0, 1, CollectdInterface.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdInterface_If_errors_tx(), theCorePackage.getIncreasingULongMetricAttribute(), "if_errors_tx", null, 0, 1, CollectdInterface.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdInterface_If_octets_rx(), theCorePackage.getIncreasingULongMetricAttribute(), "if_octets_rx", null, 0, 1, CollectdInterface.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdInterface_If_octets_tx(), theCorePackage.getIncreasingULongMetricAttribute(), "if_octets_tx", null, 0, 1, CollectdInterface.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdInterface_If_packets_rx(), theCorePackage.getIncreasingULongMetricAttribute(), "if_packets_rx", null, 0, 1, CollectdInterface.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdInterface_If_packets_tx(), theCorePackage.getIncreasingULongMetricAttribute(), "if_packets_tx", null, 0, 1, CollectdInterface.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(collectdKvmInstanceEClass, CollectdKvmInstance.class, "CollectdKvmInstance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getCollectdKvmInstance_Virt_cpu_total(), theCorePackage.getIncreasingULongMetricAttribute(), "virt_cpu_total", null, 0, 1, CollectdKvmInstance.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getCollectdKvmInstance_Disks(), this.getCollectdKvmDisk(), null, "disks", null, 0, -1, CollectdKvmInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getCollectdKvmInstance_Interfaces(), this.getCollectdKvmInterface(), null, "interfaces", null, 0, -1, CollectdKvmInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(collectdKvmDiskEClass, CollectdKvmDisk.class, "CollectdKvmDisk", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getCollectdKvmDisk_Disk_octets_read(), theCorePackage.getIncreasingULongMetricAttribute(), "disk_octets_read", null, 0, 1, CollectdKvmDisk.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdKvmDisk_Disk_octets_write(), theCorePackage.getIncreasingULongMetricAttribute(), "disk_octets_write", null, 0, 1, CollectdKvmDisk.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdKvmDisk_Disk_ops_read(), theCorePackage.getIncreasingULongMetricAttribute(), "disk_ops_read", null, 0, 1, CollectdKvmDisk.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdKvmDisk_Disk_ops_write(), theCorePackage.getIncreasingULongMetricAttribute(), "disk_ops_write", null, 0, 1, CollectdKvmDisk.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(collectdKvmInterfaceEClass, CollectdKvmInterface.class, "CollectdKvmInterface", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getCollectdKvmInterface_If_errors_rx(), theCorePackage.getIncreasingULongMetricAttribute(), "if_errors_rx", null, 0, 1, CollectdKvmInterface.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdKvmInterface_If_errors_tx(), theCorePackage.getIncreasingULongMetricAttribute(), "if_errors_tx", null, 0, 1, CollectdKvmInterface.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdKvmInterface_If_dropped_rx(), theCorePackage.getIncreasingULongMetricAttribute(), "if_dropped_rx", null, 0, 1, CollectdKvmInterface.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdKvmInterface_If_dropped_tx(), theCorePackage.getIncreasingULongMetricAttribute(), "if_dropped_tx", null, 0, 1, CollectdKvmInterface.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdKvmInterface_If_octets_rx(), theCorePackage.getIncreasingULongMetricAttribute(), "if_octets_rx", null, 0, 1, CollectdKvmInterface.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdKvmInterface_If_octets_tx(), theCorePackage.getIncreasingULongMetricAttribute(), "if_octets_tx", null, 0, 1, CollectdKvmInterface.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdKvmInterface_If_packets_rx(), theCorePackage.getIncreasingULongMetricAttribute(), "if_packets_rx", null, 0, 1, CollectdKvmInterface.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCollectdKvmInterface_If_packets_tx(), theCorePackage.getIncreasingULongMetricAttribute(), "if_packets_tx", null, 0, 1, CollectdKvmInterface.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + // Create resource + createResource(eNS_URI); + + // Create annotations + // http://www.eclipse.org/emf/2011/Xcore + createXcoreAnnotations(); + // http://openecomp.org/sirius/doc + createDocAnnotations(); + } + + /** + * Initializes the annotations for <b>http://www.eclipse.org/emf/2011/Xcore</b>. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected void createXcoreAnnotations() { + String source = "http://www.eclipse.org/emf/2011/Xcore"; + addAnnotation + (this, + source, + new String[] { + "doc", "http://openecomp.org/sirius/doc" + }); + } + + /** + * Initializes the annotations for <b>http://openecomp.org/sirius/doc</b>. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected void createDocAnnotations() { + String source = "http://openecomp.org/sirius/doc"; + addAnnotation + (getCollectdDisk_Disk_octets_read(), + source, + new String[] { + "unit", "byte" + }); + } + +} //CollectdPackageImpl diff --git a/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/impl/CollectdProcessesImpl.java b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/impl/CollectdProcessesImpl.java new file mode 100644 index 0000000..f3ee4e9 --- /dev/null +++ b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/impl/CollectdProcessesImpl.java @@ -0,0 +1,511 @@ + +/*- + * ============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.sirius.manager.agent.collectd.impl; + +import org.openecomp.ncomp.core.types.metrics.DoubleMetricAttribute; +import org.openecomp.ncomp.core.types.metrics.IncreasingULongMetricAttribute; + +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage; +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdProcesses; + +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>Processes</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdProcessesImpl#getFork_rate <em>Fork rate</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdProcessesImpl#getBlocked <em>Blocked</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdProcessesImpl#getPaging <em>Paging</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdProcessesImpl#getRunning <em>Running</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdProcessesImpl#getSleeping <em>Sleeping</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdProcessesImpl#getStopped <em>Stopped</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdProcessesImpl#getZombies <em>Zombies</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class CollectdProcessesImpl extends MinimalEObjectImpl.Container implements CollectdProcesses { + /** + * The default value of the '{@link #getFork_rate() <em>Fork rate</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFork_rate() + * @generated + * @ordered + */ + protected static final IncreasingULongMetricAttribute FORK_RATE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getFork_rate() <em>Fork rate</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFork_rate() + * @generated + * @ordered + */ + protected IncreasingULongMetricAttribute fork_rate = FORK_RATE_EDEFAULT; + + /** + * The default value of the '{@link #getBlocked() <em>Blocked</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getBlocked() + * @generated + * @ordered + */ + protected static final DoubleMetricAttribute BLOCKED_EDEFAULT = null; + + /** + * The cached value of the '{@link #getBlocked() <em>Blocked</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getBlocked() + * @generated + * @ordered + */ + protected DoubleMetricAttribute blocked = BLOCKED_EDEFAULT; + + /** + * The default value of the '{@link #getPaging() <em>Paging</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPaging() + * @generated + * @ordered + */ + protected static final DoubleMetricAttribute PAGING_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPaging() <em>Paging</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPaging() + * @generated + * @ordered + */ + protected DoubleMetricAttribute paging = PAGING_EDEFAULT; + + /** + * The default value of the '{@link #getRunning() <em>Running</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRunning() + * @generated + * @ordered + */ + protected static final DoubleMetricAttribute RUNNING_EDEFAULT = null; + + /** + * The cached value of the '{@link #getRunning() <em>Running</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRunning() + * @generated + * @ordered + */ + protected DoubleMetricAttribute running = RUNNING_EDEFAULT; + + /** + * The default value of the '{@link #getSleeping() <em>Sleeping</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSleeping() + * @generated + * @ordered + */ + protected static final DoubleMetricAttribute SLEEPING_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSleeping() <em>Sleeping</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSleeping() + * @generated + * @ordered + */ + protected DoubleMetricAttribute sleeping = SLEEPING_EDEFAULT; + + /** + * The default value of the '{@link #getStopped() <em>Stopped</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getStopped() + * @generated + * @ordered + */ + protected static final DoubleMetricAttribute STOPPED_EDEFAULT = null; + + /** + * The cached value of the '{@link #getStopped() <em>Stopped</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getStopped() + * @generated + * @ordered + */ + protected DoubleMetricAttribute stopped = STOPPED_EDEFAULT; + + /** + * The default value of the '{@link #getZombies() <em>Zombies</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getZombies() + * @generated + * @ordered + */ + protected static final DoubleMetricAttribute ZOMBIES_EDEFAULT = null; + + /** + * The cached value of the '{@link #getZombies() <em>Zombies</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getZombies() + * @generated + * @ordered + */ + protected DoubleMetricAttribute zombies = ZOMBIES_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected CollectdProcessesImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return CollectdPackage.Literals.COLLECTD_PROCESSES; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IncreasingULongMetricAttribute getFork_rate() { + return fork_rate; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setFork_rate(IncreasingULongMetricAttribute newFork_rate) { + IncreasingULongMetricAttribute oldFork_rate = fork_rate; + fork_rate = newFork_rate; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_PROCESSES__FORK_RATE, oldFork_rate, fork_rate)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getBlocked() { + return blocked; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setBlocked(DoubleMetricAttribute newBlocked) { + DoubleMetricAttribute oldBlocked = blocked; + blocked = newBlocked; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_PROCESSES__BLOCKED, oldBlocked, blocked)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getPaging() { + return paging; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPaging(DoubleMetricAttribute newPaging) { + DoubleMetricAttribute oldPaging = paging; + paging = newPaging; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_PROCESSES__PAGING, oldPaging, paging)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getRunning() { + return running; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setRunning(DoubleMetricAttribute newRunning) { + DoubleMetricAttribute oldRunning = running; + running = newRunning; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_PROCESSES__RUNNING, oldRunning, running)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getSleeping() { + return sleeping; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setSleeping(DoubleMetricAttribute newSleeping) { + DoubleMetricAttribute oldSleeping = sleeping; + sleeping = newSleeping; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_PROCESSES__SLEEPING, oldSleeping, sleeping)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getStopped() { + return stopped; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setStopped(DoubleMetricAttribute newStopped) { + DoubleMetricAttribute oldStopped = stopped; + stopped = newStopped; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_PROCESSES__STOPPED, oldStopped, stopped)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getZombies() { + return zombies; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setZombies(DoubleMetricAttribute newZombies) { + DoubleMetricAttribute oldZombies = zombies; + zombies = newZombies; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_PROCESSES__ZOMBIES, oldZombies, zombies)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case CollectdPackage.COLLECTD_PROCESSES__FORK_RATE: + return getFork_rate(); + case CollectdPackage.COLLECTD_PROCESSES__BLOCKED: + return getBlocked(); + case CollectdPackage.COLLECTD_PROCESSES__PAGING: + return getPaging(); + case CollectdPackage.COLLECTD_PROCESSES__RUNNING: + return getRunning(); + case CollectdPackage.COLLECTD_PROCESSES__SLEEPING: + return getSleeping(); + case CollectdPackage.COLLECTD_PROCESSES__STOPPED: + return getStopped(); + case CollectdPackage.COLLECTD_PROCESSES__ZOMBIES: + return getZombies(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case CollectdPackage.COLLECTD_PROCESSES__FORK_RATE: + setFork_rate((IncreasingULongMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_PROCESSES__BLOCKED: + setBlocked((DoubleMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_PROCESSES__PAGING: + setPaging((DoubleMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_PROCESSES__RUNNING: + setRunning((DoubleMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_PROCESSES__SLEEPING: + setSleeping((DoubleMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_PROCESSES__STOPPED: + setStopped((DoubleMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_PROCESSES__ZOMBIES: + setZombies((DoubleMetricAttribute)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case CollectdPackage.COLLECTD_PROCESSES__FORK_RATE: + setFork_rate(FORK_RATE_EDEFAULT); + return; + case CollectdPackage.COLLECTD_PROCESSES__BLOCKED: + setBlocked(BLOCKED_EDEFAULT); + return; + case CollectdPackage.COLLECTD_PROCESSES__PAGING: + setPaging(PAGING_EDEFAULT); + return; + case CollectdPackage.COLLECTD_PROCESSES__RUNNING: + setRunning(RUNNING_EDEFAULT); + return; + case CollectdPackage.COLLECTD_PROCESSES__SLEEPING: + setSleeping(SLEEPING_EDEFAULT); + return; + case CollectdPackage.COLLECTD_PROCESSES__STOPPED: + setStopped(STOPPED_EDEFAULT); + return; + case CollectdPackage.COLLECTD_PROCESSES__ZOMBIES: + setZombies(ZOMBIES_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case CollectdPackage.COLLECTD_PROCESSES__FORK_RATE: + return FORK_RATE_EDEFAULT == null ? fork_rate != null : !FORK_RATE_EDEFAULT.equals(fork_rate); + case CollectdPackage.COLLECTD_PROCESSES__BLOCKED: + return BLOCKED_EDEFAULT == null ? blocked != null : !BLOCKED_EDEFAULT.equals(blocked); + case CollectdPackage.COLLECTD_PROCESSES__PAGING: + return PAGING_EDEFAULT == null ? paging != null : !PAGING_EDEFAULT.equals(paging); + case CollectdPackage.COLLECTD_PROCESSES__RUNNING: + return RUNNING_EDEFAULT == null ? running != null : !RUNNING_EDEFAULT.equals(running); + case CollectdPackage.COLLECTD_PROCESSES__SLEEPING: + return SLEEPING_EDEFAULT == null ? sleeping != null : !SLEEPING_EDEFAULT.equals(sleeping); + case CollectdPackage.COLLECTD_PROCESSES__STOPPED: + return STOPPED_EDEFAULT == null ? stopped != null : !STOPPED_EDEFAULT.equals(stopped); + case CollectdPackage.COLLECTD_PROCESSES__ZOMBIES: + return ZOMBIES_EDEFAULT == null ? zombies != null : !ZOMBIES_EDEFAULT.equals(zombies); + } + 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(" (fork_rate: "); + result.append(fork_rate); + result.append(", blocked: "); + result.append(blocked); + result.append(", paging: "); + result.append(paging); + result.append(", running: "); + result.append(running); + result.append(", sleeping: "); + result.append(sleeping); + result.append(", stopped: "); + result.append(stopped); + result.append(", zombies: "); + result.append(zombies); + result.append(')'); + return result.toString(); + } + +} //CollectdProcessesImpl diff --git a/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/impl/CollectdServerImpl.java b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/impl/CollectdServerImpl.java new file mode 100644 index 0000000..c2e6385 --- /dev/null +++ b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/impl/CollectdServerImpl.java @@ -0,0 +1,1014 @@ + +/*- + * ============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.sirius.manager.agent.collectd.impl; + +import org.openecomp.ncomp.core.alerts.Alert; +import org.openecomp.ncomp.core.alerts.AlertContainer; +import org.openecomp.ncomp.core.alerts.AlertingTemplate; +import org.openecomp.ncomp.core.alerts.AlertsPackage; + +import org.openecomp.ncomp.core.impl.NamedEntityImpl; + +import org.openecomp.ncomp.core.types.metrics.DoubleMetricAttribute; +import org.openecomp.ncomp.core.types.metrics.IncreasingULongMetricAttribute; + +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdCpu; +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdDisk; +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdFileSystem; +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdInterface; +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInstance; +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdMemory; +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage; +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdProcesses; +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer; +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdSwap; +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem; + +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>Server</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdServerImpl#getAlerts <em>Alerts</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdServerImpl#getAlertingTemplate <em>Alerting Template</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdServerImpl#getLoad_shortterm <em>Load shortterm</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdServerImpl#getLoad_midterm <em>Load midterm</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdServerImpl#getLoad_longterm <em>Load longterm</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdServerImpl#getEntropy <em>Entropy</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdServerImpl#getContextswitches <em>Contextswitches</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdServerImpl#getCpus <em>Cpus</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdServerImpl#getMemory <em>Memory</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdServerImpl#getSwap <em>Swap</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdServerImpl#getProcesses <em>Processes</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdServerImpl#getVmem <em>Vmem</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdServerImpl#getFilesystems <em>Filesystems</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdServerImpl#getDisks <em>Disks</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdServerImpl#getInterfaces <em>Interfaces</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdServerImpl#getInstances <em>Instances</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class CollectdServerImpl extends NamedEntityImpl implements CollectdServer { + /** + * The cached value of the '{@link #getAlerts() <em>Alerts</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAlerts() + * @generated + * @ordered + */ + protected EList<Alert> alerts; + + /** + * The cached value of the '{@link #getAlertingTemplate() <em>Alerting Template</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAlertingTemplate() + * @generated + * @ordered + */ + protected AlertingTemplate alertingTemplate; + + /** + * The default value of the '{@link #getLoad_shortterm() <em>Load shortterm</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getLoad_shortterm() + * @generated + * @ordered + */ + protected static final DoubleMetricAttribute LOAD_SHORTTERM_EDEFAULT = null; + + /** + * The cached value of the '{@link #getLoad_shortterm() <em>Load shortterm</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getLoad_shortterm() + * @generated + * @ordered + */ + protected DoubleMetricAttribute load_shortterm = LOAD_SHORTTERM_EDEFAULT; + + /** + * The default value of the '{@link #getLoad_midterm() <em>Load midterm</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getLoad_midterm() + * @generated + * @ordered + */ + protected static final DoubleMetricAttribute LOAD_MIDTERM_EDEFAULT = null; + + /** + * The cached value of the '{@link #getLoad_midterm() <em>Load midterm</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getLoad_midterm() + * @generated + * @ordered + */ + protected DoubleMetricAttribute load_midterm = LOAD_MIDTERM_EDEFAULT; + + /** + * The default value of the '{@link #getLoad_longterm() <em>Load longterm</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getLoad_longterm() + * @generated + * @ordered + */ + protected static final DoubleMetricAttribute LOAD_LONGTERM_EDEFAULT = null; + + /** + * The cached value of the '{@link #getLoad_longterm() <em>Load longterm</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getLoad_longterm() + * @generated + * @ordered + */ + protected DoubleMetricAttribute load_longterm = LOAD_LONGTERM_EDEFAULT; + + /** + * The default value of the '{@link #getEntropy() <em>Entropy</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getEntropy() + * @generated + * @ordered + */ + protected static final DoubleMetricAttribute ENTROPY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getEntropy() <em>Entropy</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getEntropy() + * @generated + * @ordered + */ + protected DoubleMetricAttribute entropy = ENTROPY_EDEFAULT; + + /** + * The default value of the '{@link #getContextswitches() <em>Contextswitches</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getContextswitches() + * @generated + * @ordered + */ + protected static final IncreasingULongMetricAttribute CONTEXTSWITCHES_EDEFAULT = null; + + /** + * The cached value of the '{@link #getContextswitches() <em>Contextswitches</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getContextswitches() + * @generated + * @ordered + */ + protected IncreasingULongMetricAttribute contextswitches = CONTEXTSWITCHES_EDEFAULT; + + /** + * The cached value of the '{@link #getCpus() <em>Cpus</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCpus() + * @generated + * @ordered + */ + protected EList<CollectdCpu> cpus; + + /** + * The cached value of the '{@link #getMemory() <em>Memory</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMemory() + * @generated + * @ordered + */ + protected CollectdMemory memory; + + /** + * The cached value of the '{@link #getSwap() <em>Swap</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSwap() + * @generated + * @ordered + */ + protected CollectdSwap swap; + + /** + * The cached value of the '{@link #getProcesses() <em>Processes</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getProcesses() + * @generated + * @ordered + */ + protected CollectdProcesses processes; + + /** + * The cached value of the '{@link #getVmem() <em>Vmem</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVmem() + * @generated + * @ordered + */ + protected CollectdVmem vmem; + + /** + * The cached value of the '{@link #getFilesystems() <em>Filesystems</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFilesystems() + * @generated + * @ordered + */ + protected EList<CollectdFileSystem> filesystems; + + /** + * The cached value of the '{@link #getDisks() <em>Disks</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDisks() + * @generated + * @ordered + */ + protected EList<CollectdDisk> disks; + + /** + * The cached value of the '{@link #getInterfaces() <em>Interfaces</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getInterfaces() + * @generated + * @ordered + */ + protected EList<CollectdInterface> interfaces; + + /** + * The cached value of the '{@link #getInstances() <em>Instances</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getInstances() + * @generated + * @ordered + */ + protected EList<CollectdKvmInstance> instances; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected CollectdServerImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return CollectdPackage.Literals.COLLECTD_SERVER; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<Alert> getAlerts() { + if (alerts == null) { + alerts = new EObjectContainmentEList<Alert>(Alert.class, this, CollectdPackage.COLLECTD_SERVER__ALERTS); + } + return alerts; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public AlertingTemplate getAlertingTemplate() { + if (alertingTemplate != null && alertingTemplate.eIsProxy()) { + InternalEObject oldAlertingTemplate = (InternalEObject)alertingTemplate; + alertingTemplate = (AlertingTemplate)eResolveProxy(oldAlertingTemplate); + if (alertingTemplate != oldAlertingTemplate) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, CollectdPackage.COLLECTD_SERVER__ALERTING_TEMPLATE, oldAlertingTemplate, alertingTemplate)); + } + } + return alertingTemplate; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public AlertingTemplate basicGetAlertingTemplate() { + return alertingTemplate; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setAlertingTemplate(AlertingTemplate newAlertingTemplate) { + AlertingTemplate oldAlertingTemplate = alertingTemplate; + alertingTemplate = newAlertingTemplate; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_SERVER__ALERTING_TEMPLATE, oldAlertingTemplate, alertingTemplate)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getLoad_shortterm() { + return load_shortterm; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setLoad_shortterm(DoubleMetricAttribute newLoad_shortterm) { + DoubleMetricAttribute oldLoad_shortterm = load_shortterm; + load_shortterm = newLoad_shortterm; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_SERVER__LOAD_SHORTTERM, oldLoad_shortterm, load_shortterm)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getLoad_midterm() { + return load_midterm; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setLoad_midterm(DoubleMetricAttribute newLoad_midterm) { + DoubleMetricAttribute oldLoad_midterm = load_midterm; + load_midterm = newLoad_midterm; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_SERVER__LOAD_MIDTERM, oldLoad_midterm, load_midterm)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getLoad_longterm() { + return load_longterm; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setLoad_longterm(DoubleMetricAttribute newLoad_longterm) { + DoubleMetricAttribute oldLoad_longterm = load_longterm; + load_longterm = newLoad_longterm; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_SERVER__LOAD_LONGTERM, oldLoad_longterm, load_longterm)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getEntropy() { + return entropy; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setEntropy(DoubleMetricAttribute newEntropy) { + DoubleMetricAttribute oldEntropy = entropy; + entropy = newEntropy; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_SERVER__ENTROPY, oldEntropy, entropy)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IncreasingULongMetricAttribute getContextswitches() { + return contextswitches; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setContextswitches(IncreasingULongMetricAttribute newContextswitches) { + IncreasingULongMetricAttribute oldContextswitches = contextswitches; + contextswitches = newContextswitches; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_SERVER__CONTEXTSWITCHES, oldContextswitches, contextswitches)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<CollectdCpu> getCpus() { + if (cpus == null) { + cpus = new EObjectContainmentEList<CollectdCpu>(CollectdCpu.class, this, CollectdPackage.COLLECTD_SERVER__CPUS); + } + return cpus; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CollectdMemory getMemory() { + return memory; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetMemory(CollectdMemory newMemory, NotificationChain msgs) { + CollectdMemory oldMemory = memory; + memory = newMemory; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_SERVER__MEMORY, oldMemory, newMemory); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setMemory(CollectdMemory newMemory) { + if (newMemory != memory) { + NotificationChain msgs = null; + if (memory != null) + msgs = ((InternalEObject)memory).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - CollectdPackage.COLLECTD_SERVER__MEMORY, null, msgs); + if (newMemory != null) + msgs = ((InternalEObject)newMemory).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - CollectdPackage.COLLECTD_SERVER__MEMORY, null, msgs); + msgs = basicSetMemory(newMemory, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_SERVER__MEMORY, newMemory, newMemory)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CollectdSwap getSwap() { + return swap; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetSwap(CollectdSwap newSwap, NotificationChain msgs) { + CollectdSwap oldSwap = swap; + swap = newSwap; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_SERVER__SWAP, oldSwap, newSwap); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setSwap(CollectdSwap newSwap) { + if (newSwap != swap) { + NotificationChain msgs = null; + if (swap != null) + msgs = ((InternalEObject)swap).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - CollectdPackage.COLLECTD_SERVER__SWAP, null, msgs); + if (newSwap != null) + msgs = ((InternalEObject)newSwap).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - CollectdPackage.COLLECTD_SERVER__SWAP, null, msgs); + msgs = basicSetSwap(newSwap, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_SERVER__SWAP, newSwap, newSwap)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CollectdProcesses getProcesses() { + return processes; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetProcesses(CollectdProcesses newProcesses, NotificationChain msgs) { + CollectdProcesses oldProcesses = processes; + processes = newProcesses; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_SERVER__PROCESSES, oldProcesses, newProcesses); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setProcesses(CollectdProcesses newProcesses) { + if (newProcesses != processes) { + NotificationChain msgs = null; + if (processes != null) + msgs = ((InternalEObject)processes).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - CollectdPackage.COLLECTD_SERVER__PROCESSES, null, msgs); + if (newProcesses != null) + msgs = ((InternalEObject)newProcesses).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - CollectdPackage.COLLECTD_SERVER__PROCESSES, null, msgs); + msgs = basicSetProcesses(newProcesses, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_SERVER__PROCESSES, newProcesses, newProcesses)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CollectdVmem getVmem() { + return vmem; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetVmem(CollectdVmem newVmem, NotificationChain msgs) { + CollectdVmem oldVmem = vmem; + vmem = newVmem; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_SERVER__VMEM, oldVmem, newVmem); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setVmem(CollectdVmem newVmem) { + if (newVmem != vmem) { + NotificationChain msgs = null; + if (vmem != null) + msgs = ((InternalEObject)vmem).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - CollectdPackage.COLLECTD_SERVER__VMEM, null, msgs); + if (newVmem != null) + msgs = ((InternalEObject)newVmem).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - CollectdPackage.COLLECTD_SERVER__VMEM, null, msgs); + msgs = basicSetVmem(newVmem, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_SERVER__VMEM, newVmem, newVmem)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<CollectdFileSystem> getFilesystems() { + if (filesystems == null) { + filesystems = new EObjectContainmentEList<CollectdFileSystem>(CollectdFileSystem.class, this, CollectdPackage.COLLECTD_SERVER__FILESYSTEMS); + } + return filesystems; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<CollectdDisk> getDisks() { + if (disks == null) { + disks = new EObjectContainmentEList<CollectdDisk>(CollectdDisk.class, this, CollectdPackage.COLLECTD_SERVER__DISKS); + } + return disks; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<CollectdInterface> getInterfaces() { + if (interfaces == null) { + interfaces = new EObjectContainmentEList<CollectdInterface>(CollectdInterface.class, this, CollectdPackage.COLLECTD_SERVER__INTERFACES); + } + return interfaces; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<CollectdKvmInstance> getInstances() { + if (instances == null) { + instances = new EObjectContainmentEList<CollectdKvmInstance>(CollectdKvmInstance.class, this, CollectdPackage.COLLECTD_SERVER__INSTANCES); + } + return instances; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case CollectdPackage.COLLECTD_SERVER__ALERTS: + return ((InternalEList<?>)getAlerts()).basicRemove(otherEnd, msgs); + case CollectdPackage.COLLECTD_SERVER__CPUS: + return ((InternalEList<?>)getCpus()).basicRemove(otherEnd, msgs); + case CollectdPackage.COLLECTD_SERVER__MEMORY: + return basicSetMemory(null, msgs); + case CollectdPackage.COLLECTD_SERVER__SWAP: + return basicSetSwap(null, msgs); + case CollectdPackage.COLLECTD_SERVER__PROCESSES: + return basicSetProcesses(null, msgs); + case CollectdPackage.COLLECTD_SERVER__VMEM: + return basicSetVmem(null, msgs); + case CollectdPackage.COLLECTD_SERVER__FILESYSTEMS: + return ((InternalEList<?>)getFilesystems()).basicRemove(otherEnd, msgs); + case CollectdPackage.COLLECTD_SERVER__DISKS: + return ((InternalEList<?>)getDisks()).basicRemove(otherEnd, msgs); + case CollectdPackage.COLLECTD_SERVER__INTERFACES: + return ((InternalEList<?>)getInterfaces()).basicRemove(otherEnd, msgs); + case CollectdPackage.COLLECTD_SERVER__INSTANCES: + return ((InternalEList<?>)getInstances()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case CollectdPackage.COLLECTD_SERVER__ALERTS: + return getAlerts(); + case CollectdPackage.COLLECTD_SERVER__ALERTING_TEMPLATE: + if (resolve) return getAlertingTemplate(); + return basicGetAlertingTemplate(); + case CollectdPackage.COLLECTD_SERVER__LOAD_SHORTTERM: + return getLoad_shortterm(); + case CollectdPackage.COLLECTD_SERVER__LOAD_MIDTERM: + return getLoad_midterm(); + case CollectdPackage.COLLECTD_SERVER__LOAD_LONGTERM: + return getLoad_longterm(); + case CollectdPackage.COLLECTD_SERVER__ENTROPY: + return getEntropy(); + case CollectdPackage.COLLECTD_SERVER__CONTEXTSWITCHES: + return getContextswitches(); + case CollectdPackage.COLLECTD_SERVER__CPUS: + return getCpus(); + case CollectdPackage.COLLECTD_SERVER__MEMORY: + return getMemory(); + case CollectdPackage.COLLECTD_SERVER__SWAP: + return getSwap(); + case CollectdPackage.COLLECTD_SERVER__PROCESSES: + return getProcesses(); + case CollectdPackage.COLLECTD_SERVER__VMEM: + return getVmem(); + case CollectdPackage.COLLECTD_SERVER__FILESYSTEMS: + return getFilesystems(); + case CollectdPackage.COLLECTD_SERVER__DISKS: + return getDisks(); + case CollectdPackage.COLLECTD_SERVER__INTERFACES: + return getInterfaces(); + case CollectdPackage.COLLECTD_SERVER__INSTANCES: + return getInstances(); + } + 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 CollectdPackage.COLLECTD_SERVER__ALERTS: + getAlerts().clear(); + getAlerts().addAll((Collection<? extends Alert>)newValue); + return; + case CollectdPackage.COLLECTD_SERVER__ALERTING_TEMPLATE: + setAlertingTemplate((AlertingTemplate)newValue); + return; + case CollectdPackage.COLLECTD_SERVER__LOAD_SHORTTERM: + setLoad_shortterm((DoubleMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_SERVER__LOAD_MIDTERM: + setLoad_midterm((DoubleMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_SERVER__LOAD_LONGTERM: + setLoad_longterm((DoubleMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_SERVER__ENTROPY: + setEntropy((DoubleMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_SERVER__CONTEXTSWITCHES: + setContextswitches((IncreasingULongMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_SERVER__CPUS: + getCpus().clear(); + getCpus().addAll((Collection<? extends CollectdCpu>)newValue); + return; + case CollectdPackage.COLLECTD_SERVER__MEMORY: + setMemory((CollectdMemory)newValue); + return; + case CollectdPackage.COLLECTD_SERVER__SWAP: + setSwap((CollectdSwap)newValue); + return; + case CollectdPackage.COLLECTD_SERVER__PROCESSES: + setProcesses((CollectdProcesses)newValue); + return; + case CollectdPackage.COLLECTD_SERVER__VMEM: + setVmem((CollectdVmem)newValue); + return; + case CollectdPackage.COLLECTD_SERVER__FILESYSTEMS: + getFilesystems().clear(); + getFilesystems().addAll((Collection<? extends CollectdFileSystem>)newValue); + return; + case CollectdPackage.COLLECTD_SERVER__DISKS: + getDisks().clear(); + getDisks().addAll((Collection<? extends CollectdDisk>)newValue); + return; + case CollectdPackage.COLLECTD_SERVER__INTERFACES: + getInterfaces().clear(); + getInterfaces().addAll((Collection<? extends CollectdInterface>)newValue); + return; + case CollectdPackage.COLLECTD_SERVER__INSTANCES: + getInstances().clear(); + getInstances().addAll((Collection<? extends CollectdKvmInstance>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case CollectdPackage.COLLECTD_SERVER__ALERTS: + getAlerts().clear(); + return; + case CollectdPackage.COLLECTD_SERVER__ALERTING_TEMPLATE: + setAlertingTemplate((AlertingTemplate)null); + return; + case CollectdPackage.COLLECTD_SERVER__LOAD_SHORTTERM: + setLoad_shortterm(LOAD_SHORTTERM_EDEFAULT); + return; + case CollectdPackage.COLLECTD_SERVER__LOAD_MIDTERM: + setLoad_midterm(LOAD_MIDTERM_EDEFAULT); + return; + case CollectdPackage.COLLECTD_SERVER__LOAD_LONGTERM: + setLoad_longterm(LOAD_LONGTERM_EDEFAULT); + return; + case CollectdPackage.COLLECTD_SERVER__ENTROPY: + setEntropy(ENTROPY_EDEFAULT); + return; + case CollectdPackage.COLLECTD_SERVER__CONTEXTSWITCHES: + setContextswitches(CONTEXTSWITCHES_EDEFAULT); + return; + case CollectdPackage.COLLECTD_SERVER__CPUS: + getCpus().clear(); + return; + case CollectdPackage.COLLECTD_SERVER__MEMORY: + setMemory((CollectdMemory)null); + return; + case CollectdPackage.COLLECTD_SERVER__SWAP: + setSwap((CollectdSwap)null); + return; + case CollectdPackage.COLLECTD_SERVER__PROCESSES: + setProcesses((CollectdProcesses)null); + return; + case CollectdPackage.COLLECTD_SERVER__VMEM: + setVmem((CollectdVmem)null); + return; + case CollectdPackage.COLLECTD_SERVER__FILESYSTEMS: + getFilesystems().clear(); + return; + case CollectdPackage.COLLECTD_SERVER__DISKS: + getDisks().clear(); + return; + case CollectdPackage.COLLECTD_SERVER__INTERFACES: + getInterfaces().clear(); + return; + case CollectdPackage.COLLECTD_SERVER__INSTANCES: + getInstances().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case CollectdPackage.COLLECTD_SERVER__ALERTS: + return alerts != null && !alerts.isEmpty(); + case CollectdPackage.COLLECTD_SERVER__ALERTING_TEMPLATE: + return alertingTemplate != null; + case CollectdPackage.COLLECTD_SERVER__LOAD_SHORTTERM: + return LOAD_SHORTTERM_EDEFAULT == null ? load_shortterm != null : !LOAD_SHORTTERM_EDEFAULT.equals(load_shortterm); + case CollectdPackage.COLLECTD_SERVER__LOAD_MIDTERM: + return LOAD_MIDTERM_EDEFAULT == null ? load_midterm != null : !LOAD_MIDTERM_EDEFAULT.equals(load_midterm); + case CollectdPackage.COLLECTD_SERVER__LOAD_LONGTERM: + return LOAD_LONGTERM_EDEFAULT == null ? load_longterm != null : !LOAD_LONGTERM_EDEFAULT.equals(load_longterm); + case CollectdPackage.COLLECTD_SERVER__ENTROPY: + return ENTROPY_EDEFAULT == null ? entropy != null : !ENTROPY_EDEFAULT.equals(entropy); + case CollectdPackage.COLLECTD_SERVER__CONTEXTSWITCHES: + return CONTEXTSWITCHES_EDEFAULT == null ? contextswitches != null : !CONTEXTSWITCHES_EDEFAULT.equals(contextswitches); + case CollectdPackage.COLLECTD_SERVER__CPUS: + return cpus != null && !cpus.isEmpty(); + case CollectdPackage.COLLECTD_SERVER__MEMORY: + return memory != null; + case CollectdPackage.COLLECTD_SERVER__SWAP: + return swap != null; + case CollectdPackage.COLLECTD_SERVER__PROCESSES: + return processes != null; + case CollectdPackage.COLLECTD_SERVER__VMEM: + return vmem != null; + case CollectdPackage.COLLECTD_SERVER__FILESYSTEMS: + return filesystems != null && !filesystems.isEmpty(); + case CollectdPackage.COLLECTD_SERVER__DISKS: + return disks != null && !disks.isEmpty(); + case CollectdPackage.COLLECTD_SERVER__INTERFACES: + return interfaces != null && !interfaces.isEmpty(); + case CollectdPackage.COLLECTD_SERVER__INSTANCES: + return instances != null && !instances.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) { + if (baseClass == AlertContainer.class) { + switch (derivedFeatureID) { + case CollectdPackage.COLLECTD_SERVER__ALERTS: return AlertsPackage.ALERT_CONTAINER__ALERTS; + case CollectdPackage.COLLECTD_SERVER__ALERTING_TEMPLATE: return AlertsPackage.ALERT_CONTAINER__ALERTING_TEMPLATE; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) { + if (baseClass == AlertContainer.class) { + switch (baseFeatureID) { + case AlertsPackage.ALERT_CONTAINER__ALERTS: return CollectdPackage.COLLECTD_SERVER__ALERTS; + case AlertsPackage.ALERT_CONTAINER__ALERTING_TEMPLATE: return CollectdPackage.COLLECTD_SERVER__ALERTING_TEMPLATE; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (load_shortterm: "); + result.append(load_shortterm); + result.append(", load_midterm: "); + result.append(load_midterm); + result.append(", load_longterm: "); + result.append(load_longterm); + result.append(", entropy: "); + result.append(entropy); + result.append(", contextswitches: "); + result.append(contextswitches); + result.append(')'); + return result.toString(); + } + +} //CollectdServerImpl diff --git a/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/impl/CollectdSwapImpl.java b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/impl/CollectdSwapImpl.java new file mode 100644 index 0000000..dee03a4 --- /dev/null +++ b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/impl/CollectdSwapImpl.java @@ -0,0 +1,294 @@ + +/*- + * ============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.sirius.manager.agent.collectd.impl; + +import org.openecomp.ncomp.core.types.metrics.DoubleMetricAttribute; + +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage; +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdSwap; + +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>Swap</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdSwapImpl#getCached <em>Cached</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdSwapImpl#getFree <em>Free</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdSwapImpl#getUsed <em>Used</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class CollectdSwapImpl extends MinimalEObjectImpl.Container implements CollectdSwap { + /** + * The default value of the '{@link #getCached() <em>Cached</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCached() + * @generated + * @ordered + */ + protected static final DoubleMetricAttribute CACHED_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCached() <em>Cached</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCached() + * @generated + * @ordered + */ + protected DoubleMetricAttribute cached = CACHED_EDEFAULT; + + /** + * The default value of the '{@link #getFree() <em>Free</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFree() + * @generated + * @ordered + */ + protected static final DoubleMetricAttribute FREE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getFree() <em>Free</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFree() + * @generated + * @ordered + */ + protected DoubleMetricAttribute free = FREE_EDEFAULT; + + /** + * The default value of the '{@link #getUsed() <em>Used</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUsed() + * @generated + * @ordered + */ + protected static final DoubleMetricAttribute USED_EDEFAULT = null; + + /** + * The cached value of the '{@link #getUsed() <em>Used</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUsed() + * @generated + * @ordered + */ + protected DoubleMetricAttribute used = USED_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected CollectdSwapImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return CollectdPackage.Literals.COLLECTD_SWAP; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getCached() { + return cached; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setCached(DoubleMetricAttribute newCached) { + DoubleMetricAttribute oldCached = cached; + cached = newCached; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_SWAP__CACHED, oldCached, cached)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getFree() { + return free; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setFree(DoubleMetricAttribute newFree) { + DoubleMetricAttribute oldFree = free; + free = newFree; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_SWAP__FREE, oldFree, free)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getUsed() { + return used; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setUsed(DoubleMetricAttribute newUsed) { + DoubleMetricAttribute oldUsed = used; + used = newUsed; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_SWAP__USED, oldUsed, used)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case CollectdPackage.COLLECTD_SWAP__CACHED: + return getCached(); + case CollectdPackage.COLLECTD_SWAP__FREE: + return getFree(); + case CollectdPackage.COLLECTD_SWAP__USED: + return getUsed(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case CollectdPackage.COLLECTD_SWAP__CACHED: + setCached((DoubleMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_SWAP__FREE: + setFree((DoubleMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_SWAP__USED: + setUsed((DoubleMetricAttribute)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case CollectdPackage.COLLECTD_SWAP__CACHED: + setCached(CACHED_EDEFAULT); + return; + case CollectdPackage.COLLECTD_SWAP__FREE: + setFree(FREE_EDEFAULT); + return; + case CollectdPackage.COLLECTD_SWAP__USED: + setUsed(USED_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case CollectdPackage.COLLECTD_SWAP__CACHED: + return CACHED_EDEFAULT == null ? cached != null : !CACHED_EDEFAULT.equals(cached); + case CollectdPackage.COLLECTD_SWAP__FREE: + return FREE_EDEFAULT == null ? free != null : !FREE_EDEFAULT.equals(free); + case CollectdPackage.COLLECTD_SWAP__USED: + return USED_EDEFAULT == null ? used != null : !USED_EDEFAULT.equals(used); + } + 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(" (cached: "); + result.append(cached); + result.append(", free: "); + result.append(free); + result.append(", used: "); + result.append(used); + result.append(')'); + return result.toString(); + } + +} //CollectdSwapImpl diff --git a/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/impl/CollectdVmemImpl.java b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/impl/CollectdVmemImpl.java new file mode 100644 index 0000000..dd65dd6 --- /dev/null +++ b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/impl/CollectdVmemImpl.java @@ -0,0 +1,2023 @@ + +/*- + * ============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.sirius.manager.agent.collectd.impl; + +import org.openecomp.ncomp.core.types.metrics.DoubleMetricAttribute; +import org.openecomp.ncomp.core.types.metrics.IncreasingULongMetricAttribute; + +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdPackage; +import org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem; + +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>Vmem</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdVmemImpl#getActive_anon <em>Active anon</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdVmemImpl#getActive_file <em>Active file</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdVmemImpl#getAnon_pages <em>Anon pages</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdVmemImpl#getAnon_transparent_hugepages <em>Anon transparent hugepages</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdVmemImpl#getBounce <em>Bounce</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdVmemImpl#getDirtied <em>Dirtied</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdVmemImpl#getDirty <em>Dirty</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdVmemImpl#getDirty_background_threshold <em>Dirty background threshold</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdVmemImpl#getDirty_threshold <em>Dirty threshold</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdVmemImpl#getFile_pages <em>File pages</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdVmemImpl#getFree_pages <em>Free pages</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdVmemImpl#getInactive_anon <em>Inactive anon</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdVmemImpl#getInactive_file <em>Inactive file</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdVmemImpl#getIsolated_anon <em>Isolated anon</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdVmemImpl#getIsolated_file <em>Isolated file</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdVmemImpl#getKernel_stack <em>Kernel stack</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdVmemImpl#getMapped <em>Mapped</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdVmemImpl#getMlock <em>Mlock</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdVmemImpl#getPage_table_pages <em>Page table pages</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdVmemImpl#getShmem <em>Shmem</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdVmemImpl#getSlab_reclaimable <em>Slab reclaimable</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdVmemImpl#getSlab_unreclaimable <em>Slab unreclaimable</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdVmemImpl#getUnevictable <em>Unevictable</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdVmemImpl#getUnstable <em>Unstable</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdVmemImpl#getVmscan_immediate_reclaim <em>Vmscan immediate reclaim</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdVmemImpl#getVmscan_write <em>Vmscan write</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdVmemImpl#getWriteback <em>Writeback</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdVmemImpl#getWriteback_temp <em>Writeback temp</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdVmemImpl#getWritten <em>Written</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdVmemImpl#getMemory_in <em>Memory in</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdVmemImpl#getMemory_out <em>Memory out</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdVmemImpl#getSwap_in <em>Swap in</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdVmemImpl#getSwap_out <em>Swap out</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdVmemImpl#getFaults_minor <em>Faults minor</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.collectd.impl.CollectdVmemImpl#getFaults_major <em>Faults major</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class CollectdVmemImpl extends MinimalEObjectImpl.Container implements CollectdVmem { + /** + * 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 DoubleMetricAttribute ACTIVE_ANON_EDEFAULT = null; + + /** + * 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 DoubleMetricAttribute active_anon = ACTIVE_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 DoubleMetricAttribute ACTIVE_FILE_EDEFAULT = null; + + /** + * 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 DoubleMetricAttribute active_file = ACTIVE_FILE_EDEFAULT; + + /** + * The default value of the '{@link #getAnon_pages() <em>Anon pages</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAnon_pages() + * @generated + * @ordered + */ + protected static final DoubleMetricAttribute ANON_PAGES_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAnon_pages() <em>Anon pages</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAnon_pages() + * @generated + * @ordered + */ + protected DoubleMetricAttribute anon_pages = ANON_PAGES_EDEFAULT; + + /** + * The default value of the '{@link #getAnon_transparent_hugepages() <em>Anon transparent hugepages</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAnon_transparent_hugepages() + * @generated + * @ordered + */ + protected static final DoubleMetricAttribute ANON_TRANSPARENT_HUGEPAGES_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAnon_transparent_hugepages() <em>Anon transparent hugepages</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAnon_transparent_hugepages() + * @generated + * @ordered + */ + protected DoubleMetricAttribute anon_transparent_hugepages = ANON_TRANSPARENT_HUGEPAGES_EDEFAULT; + + /** + * The default value of the '{@link #getBounce() <em>Bounce</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getBounce() + * @generated + * @ordered + */ + protected static final DoubleMetricAttribute BOUNCE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getBounce() <em>Bounce</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getBounce() + * @generated + * @ordered + */ + protected DoubleMetricAttribute bounce = BOUNCE_EDEFAULT; + + /** + * The default value of the '{@link #getDirtied() <em>Dirtied</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDirtied() + * @generated + * @ordered + */ + protected static final DoubleMetricAttribute DIRTIED_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDirtied() <em>Dirtied</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDirtied() + * @generated + * @ordered + */ + protected DoubleMetricAttribute dirtied = DIRTIED_EDEFAULT; + + /** + * The default value of the '{@link #getDirty() <em>Dirty</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDirty() + * @generated + * @ordered + */ + protected static final DoubleMetricAttribute DIRTY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDirty() <em>Dirty</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDirty() + * @generated + * @ordered + */ + protected DoubleMetricAttribute dirty = DIRTY_EDEFAULT; + + /** + * The default value of the '{@link #getDirty_background_threshold() <em>Dirty background threshold</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDirty_background_threshold() + * @generated + * @ordered + */ + protected static final DoubleMetricAttribute DIRTY_BACKGROUND_THRESHOLD_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDirty_background_threshold() <em>Dirty background threshold</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDirty_background_threshold() + * @generated + * @ordered + */ + protected DoubleMetricAttribute dirty_background_threshold = DIRTY_BACKGROUND_THRESHOLD_EDEFAULT; + + /** + * The default value of the '{@link #getDirty_threshold() <em>Dirty threshold</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDirty_threshold() + * @generated + * @ordered + */ + protected static final DoubleMetricAttribute DIRTY_THRESHOLD_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDirty_threshold() <em>Dirty threshold</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDirty_threshold() + * @generated + * @ordered + */ + protected DoubleMetricAttribute dirty_threshold = DIRTY_THRESHOLD_EDEFAULT; + + /** + * The default value of the '{@link #getFile_pages() <em>File pages</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFile_pages() + * @generated + * @ordered + */ + protected static final DoubleMetricAttribute FILE_PAGES_EDEFAULT = null; + + /** + * The cached value of the '{@link #getFile_pages() <em>File pages</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFile_pages() + * @generated + * @ordered + */ + protected DoubleMetricAttribute file_pages = FILE_PAGES_EDEFAULT; + + /** + * The default value of the '{@link #getFree_pages() <em>Free pages</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFree_pages() + * @generated + * @ordered + */ + protected static final DoubleMetricAttribute FREE_PAGES_EDEFAULT = null; + + /** + * The cached value of the '{@link #getFree_pages() <em>Free pages</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFree_pages() + * @generated + * @ordered + */ + protected DoubleMetricAttribute free_pages = FREE_PAGES_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 DoubleMetricAttribute INACTIVE_ANON_EDEFAULT = null; + + /** + * 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 DoubleMetricAttribute inactive_anon = INACTIVE_ANON_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 DoubleMetricAttribute INACTIVE_FILE_EDEFAULT = null; + + /** + * 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 DoubleMetricAttribute inactive_file = INACTIVE_FILE_EDEFAULT; + + /** + * The default value of the '{@link #getIsolated_anon() <em>Isolated anon</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIsolated_anon() + * @generated + * @ordered + */ + protected static final DoubleMetricAttribute ISOLATED_ANON_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIsolated_anon() <em>Isolated anon</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIsolated_anon() + * @generated + * @ordered + */ + protected DoubleMetricAttribute isolated_anon = ISOLATED_ANON_EDEFAULT; + + /** + * The default value of the '{@link #getIsolated_file() <em>Isolated file</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIsolated_file() + * @generated + * @ordered + */ + protected static final DoubleMetricAttribute ISOLATED_FILE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIsolated_file() <em>Isolated file</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIsolated_file() + * @generated + * @ordered + */ + protected DoubleMetricAttribute isolated_file = ISOLATED_FILE_EDEFAULT; + + /** + * The default value of the '{@link #getKernel_stack() <em>Kernel stack</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getKernel_stack() + * @generated + * @ordered + */ + protected static final DoubleMetricAttribute KERNEL_STACK_EDEFAULT = null; + + /** + * The cached value of the '{@link #getKernel_stack() <em>Kernel stack</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getKernel_stack() + * @generated + * @ordered + */ + protected DoubleMetricAttribute kernel_stack = KERNEL_STACK_EDEFAULT; + + /** + * The default value of the '{@link #getMapped() <em>Mapped</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMapped() + * @generated + * @ordered + */ + protected static final DoubleMetricAttribute MAPPED_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMapped() <em>Mapped</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMapped() + * @generated + * @ordered + */ + protected DoubleMetricAttribute mapped = MAPPED_EDEFAULT; + + /** + * The default value of the '{@link #getMlock() <em>Mlock</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMlock() + * @generated + * @ordered + */ + protected static final DoubleMetricAttribute MLOCK_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMlock() <em>Mlock</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMlock() + * @generated + * @ordered + */ + protected DoubleMetricAttribute mlock = MLOCK_EDEFAULT; + + /** + * The default value of the '{@link #getPage_table_pages() <em>Page table pages</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPage_table_pages() + * @generated + * @ordered + */ + protected static final DoubleMetricAttribute PAGE_TABLE_PAGES_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPage_table_pages() <em>Page table pages</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPage_table_pages() + * @generated + * @ordered + */ + protected DoubleMetricAttribute page_table_pages = PAGE_TABLE_PAGES_EDEFAULT; + + /** + * The default value of the '{@link #getShmem() <em>Shmem</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getShmem() + * @generated + * @ordered + */ + protected static final DoubleMetricAttribute SHMEM_EDEFAULT = null; + + /** + * The cached value of the '{@link #getShmem() <em>Shmem</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getShmem() + * @generated + * @ordered + */ + protected DoubleMetricAttribute shmem = SHMEM_EDEFAULT; + + /** + * The default value of the '{@link #getSlab_reclaimable() <em>Slab reclaimable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSlab_reclaimable() + * @generated + * @ordered + */ + protected static final DoubleMetricAttribute SLAB_RECLAIMABLE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSlab_reclaimable() <em>Slab reclaimable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSlab_reclaimable() + * @generated + * @ordered + */ + protected DoubleMetricAttribute slab_reclaimable = SLAB_RECLAIMABLE_EDEFAULT; + + /** + * The default value of the '{@link #getSlab_unreclaimable() <em>Slab unreclaimable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSlab_unreclaimable() + * @generated + * @ordered + */ + protected static final DoubleMetricAttribute SLAB_UNRECLAIMABLE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSlab_unreclaimable() <em>Slab unreclaimable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSlab_unreclaimable() + * @generated + * @ordered + */ + protected DoubleMetricAttribute slab_unreclaimable = SLAB_UNRECLAIMABLE_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 DoubleMetricAttribute UNEVICTABLE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getUnevictable() <em>Unevictable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUnevictable() + * @generated + * @ordered + */ + protected DoubleMetricAttribute unevictable = UNEVICTABLE_EDEFAULT; + + /** + * The default value of the '{@link #getUnstable() <em>Unstable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUnstable() + * @generated + * @ordered + */ + protected static final DoubleMetricAttribute UNSTABLE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getUnstable() <em>Unstable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUnstable() + * @generated + * @ordered + */ + protected DoubleMetricAttribute unstable = UNSTABLE_EDEFAULT; + + /** + * The default value of the '{@link #getVmscan_immediate_reclaim() <em>Vmscan immediate reclaim</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVmscan_immediate_reclaim() + * @generated + * @ordered + */ + protected static final DoubleMetricAttribute VMSCAN_IMMEDIATE_RECLAIM_EDEFAULT = null; + + /** + * The cached value of the '{@link #getVmscan_immediate_reclaim() <em>Vmscan immediate reclaim</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVmscan_immediate_reclaim() + * @generated + * @ordered + */ + protected DoubleMetricAttribute vmscan_immediate_reclaim = VMSCAN_IMMEDIATE_RECLAIM_EDEFAULT; + + /** + * The default value of the '{@link #getVmscan_write() <em>Vmscan write</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVmscan_write() + * @generated + * @ordered + */ + protected static final DoubleMetricAttribute VMSCAN_WRITE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getVmscan_write() <em>Vmscan write</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVmscan_write() + * @generated + * @ordered + */ + protected DoubleMetricAttribute vmscan_write = VMSCAN_WRITE_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 DoubleMetricAttribute WRITEBACK_EDEFAULT = null; + + /** + * The cached value of the '{@link #getWriteback() <em>Writeback</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getWriteback() + * @generated + * @ordered + */ + protected DoubleMetricAttribute writeback = WRITEBACK_EDEFAULT; + + /** + * The default value of the '{@link #getWriteback_temp() <em>Writeback temp</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getWriteback_temp() + * @generated + * @ordered + */ + protected static final DoubleMetricAttribute WRITEBACK_TEMP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getWriteback_temp() <em>Writeback temp</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getWriteback_temp() + * @generated + * @ordered + */ + protected DoubleMetricAttribute writeback_temp = WRITEBACK_TEMP_EDEFAULT; + + /** + * The default value of the '{@link #getWritten() <em>Written</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getWritten() + * @generated + * @ordered + */ + protected static final DoubleMetricAttribute WRITTEN_EDEFAULT = null; + + /** + * The cached value of the '{@link #getWritten() <em>Written</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getWritten() + * @generated + * @ordered + */ + protected DoubleMetricAttribute written = WRITTEN_EDEFAULT; + + /** + * The default value of the '{@link #getMemory_in() <em>Memory in</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMemory_in() + * @generated + * @ordered + */ + protected static final IncreasingULongMetricAttribute MEMORY_IN_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMemory_in() <em>Memory in</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMemory_in() + * @generated + * @ordered + */ + protected IncreasingULongMetricAttribute memory_in = MEMORY_IN_EDEFAULT; + + /** + * The default value of the '{@link #getMemory_out() <em>Memory out</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMemory_out() + * @generated + * @ordered + */ + protected static final IncreasingULongMetricAttribute MEMORY_OUT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMemory_out() <em>Memory out</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMemory_out() + * @generated + * @ordered + */ + protected IncreasingULongMetricAttribute memory_out = MEMORY_OUT_EDEFAULT; + + /** + * The default value of the '{@link #getSwap_in() <em>Swap in</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSwap_in() + * @generated + * @ordered + */ + protected static final IncreasingULongMetricAttribute SWAP_IN_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSwap_in() <em>Swap in</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSwap_in() + * @generated + * @ordered + */ + protected IncreasingULongMetricAttribute swap_in = SWAP_IN_EDEFAULT; + + /** + * The default value of the '{@link #getSwap_out() <em>Swap out</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSwap_out() + * @generated + * @ordered + */ + protected static final IncreasingULongMetricAttribute SWAP_OUT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSwap_out() <em>Swap out</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSwap_out() + * @generated + * @ordered + */ + protected IncreasingULongMetricAttribute swap_out = SWAP_OUT_EDEFAULT; + + /** + * The default value of the '{@link #getFaults_minor() <em>Faults minor</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFaults_minor() + * @generated + * @ordered + */ + protected static final IncreasingULongMetricAttribute FAULTS_MINOR_EDEFAULT = null; + + /** + * The cached value of the '{@link #getFaults_minor() <em>Faults minor</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFaults_minor() + * @generated + * @ordered + */ + protected IncreasingULongMetricAttribute faults_minor = FAULTS_MINOR_EDEFAULT; + + /** + * The default value of the '{@link #getFaults_major() <em>Faults major</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFaults_major() + * @generated + * @ordered + */ + protected static final IncreasingULongMetricAttribute FAULTS_MAJOR_EDEFAULT = null; + + /** + * The cached value of the '{@link #getFaults_major() <em>Faults major</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFaults_major() + * @generated + * @ordered + */ + protected IncreasingULongMetricAttribute faults_major = FAULTS_MAJOR_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected CollectdVmemImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return CollectdPackage.Literals.COLLECTD_VMEM; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getActive_anon() { + return active_anon; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setActive_anon(DoubleMetricAttribute newActive_anon) { + DoubleMetricAttribute oldActive_anon = active_anon; + active_anon = newActive_anon; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_VMEM__ACTIVE_ANON, oldActive_anon, active_anon)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getActive_file() { + return active_file; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setActive_file(DoubleMetricAttribute newActive_file) { + DoubleMetricAttribute oldActive_file = active_file; + active_file = newActive_file; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_VMEM__ACTIVE_FILE, oldActive_file, active_file)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getAnon_pages() { + return anon_pages; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setAnon_pages(DoubleMetricAttribute newAnon_pages) { + DoubleMetricAttribute oldAnon_pages = anon_pages; + anon_pages = newAnon_pages; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_VMEM__ANON_PAGES, oldAnon_pages, anon_pages)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getAnon_transparent_hugepages() { + return anon_transparent_hugepages; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setAnon_transparent_hugepages(DoubleMetricAttribute newAnon_transparent_hugepages) { + DoubleMetricAttribute oldAnon_transparent_hugepages = anon_transparent_hugepages; + anon_transparent_hugepages = newAnon_transparent_hugepages; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_VMEM__ANON_TRANSPARENT_HUGEPAGES, oldAnon_transparent_hugepages, anon_transparent_hugepages)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getBounce() { + return bounce; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setBounce(DoubleMetricAttribute newBounce) { + DoubleMetricAttribute oldBounce = bounce; + bounce = newBounce; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_VMEM__BOUNCE, oldBounce, bounce)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getDirtied() { + return dirtied; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDirtied(DoubleMetricAttribute newDirtied) { + DoubleMetricAttribute oldDirtied = dirtied; + dirtied = newDirtied; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_VMEM__DIRTIED, oldDirtied, dirtied)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getDirty() { + return dirty; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDirty(DoubleMetricAttribute newDirty) { + DoubleMetricAttribute oldDirty = dirty; + dirty = newDirty; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_VMEM__DIRTY, oldDirty, dirty)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getDirty_background_threshold() { + return dirty_background_threshold; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDirty_background_threshold(DoubleMetricAttribute newDirty_background_threshold) { + DoubleMetricAttribute oldDirty_background_threshold = dirty_background_threshold; + dirty_background_threshold = newDirty_background_threshold; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_VMEM__DIRTY_BACKGROUND_THRESHOLD, oldDirty_background_threshold, dirty_background_threshold)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getDirty_threshold() { + return dirty_threshold; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDirty_threshold(DoubleMetricAttribute newDirty_threshold) { + DoubleMetricAttribute oldDirty_threshold = dirty_threshold; + dirty_threshold = newDirty_threshold; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_VMEM__DIRTY_THRESHOLD, oldDirty_threshold, dirty_threshold)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getFile_pages() { + return file_pages; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setFile_pages(DoubleMetricAttribute newFile_pages) { + DoubleMetricAttribute oldFile_pages = file_pages; + file_pages = newFile_pages; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_VMEM__FILE_PAGES, oldFile_pages, file_pages)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getFree_pages() { + return free_pages; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setFree_pages(DoubleMetricAttribute newFree_pages) { + DoubleMetricAttribute oldFree_pages = free_pages; + free_pages = newFree_pages; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_VMEM__FREE_PAGES, oldFree_pages, free_pages)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getInactive_anon() { + return inactive_anon; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setInactive_anon(DoubleMetricAttribute newInactive_anon) { + DoubleMetricAttribute oldInactive_anon = inactive_anon; + inactive_anon = newInactive_anon; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_VMEM__INACTIVE_ANON, oldInactive_anon, inactive_anon)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getInactive_file() { + return inactive_file; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setInactive_file(DoubleMetricAttribute newInactive_file) { + DoubleMetricAttribute oldInactive_file = inactive_file; + inactive_file = newInactive_file; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_VMEM__INACTIVE_FILE, oldInactive_file, inactive_file)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getIsolated_anon() { + return isolated_anon; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setIsolated_anon(DoubleMetricAttribute newIsolated_anon) { + DoubleMetricAttribute oldIsolated_anon = isolated_anon; + isolated_anon = newIsolated_anon; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_VMEM__ISOLATED_ANON, oldIsolated_anon, isolated_anon)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getIsolated_file() { + return isolated_file; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setIsolated_file(DoubleMetricAttribute newIsolated_file) { + DoubleMetricAttribute oldIsolated_file = isolated_file; + isolated_file = newIsolated_file; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_VMEM__ISOLATED_FILE, oldIsolated_file, isolated_file)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getKernel_stack() { + return kernel_stack; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setKernel_stack(DoubleMetricAttribute newKernel_stack) { + DoubleMetricAttribute oldKernel_stack = kernel_stack; + kernel_stack = newKernel_stack; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_VMEM__KERNEL_STACK, oldKernel_stack, kernel_stack)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getMapped() { + return mapped; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setMapped(DoubleMetricAttribute newMapped) { + DoubleMetricAttribute oldMapped = mapped; + mapped = newMapped; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_VMEM__MAPPED, oldMapped, mapped)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getMlock() { + return mlock; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setMlock(DoubleMetricAttribute newMlock) { + DoubleMetricAttribute oldMlock = mlock; + mlock = newMlock; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_VMEM__MLOCK, oldMlock, mlock)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getPage_table_pages() { + return page_table_pages; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPage_table_pages(DoubleMetricAttribute newPage_table_pages) { + DoubleMetricAttribute oldPage_table_pages = page_table_pages; + page_table_pages = newPage_table_pages; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_VMEM__PAGE_TABLE_PAGES, oldPage_table_pages, page_table_pages)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getShmem() { + return shmem; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setShmem(DoubleMetricAttribute newShmem) { + DoubleMetricAttribute oldShmem = shmem; + shmem = newShmem; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_VMEM__SHMEM, oldShmem, shmem)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getSlab_reclaimable() { + return slab_reclaimable; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setSlab_reclaimable(DoubleMetricAttribute newSlab_reclaimable) { + DoubleMetricAttribute oldSlab_reclaimable = slab_reclaimable; + slab_reclaimable = newSlab_reclaimable; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_VMEM__SLAB_RECLAIMABLE, oldSlab_reclaimable, slab_reclaimable)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getSlab_unreclaimable() { + return slab_unreclaimable; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setSlab_unreclaimable(DoubleMetricAttribute newSlab_unreclaimable) { + DoubleMetricAttribute oldSlab_unreclaimable = slab_unreclaimable; + slab_unreclaimable = newSlab_unreclaimable; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_VMEM__SLAB_UNRECLAIMABLE, oldSlab_unreclaimable, slab_unreclaimable)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getUnevictable() { + return unevictable; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setUnevictable(DoubleMetricAttribute newUnevictable) { + DoubleMetricAttribute oldUnevictable = unevictable; + unevictable = newUnevictable; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_VMEM__UNEVICTABLE, oldUnevictable, unevictable)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getUnstable() { + return unstable; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setUnstable(DoubleMetricAttribute newUnstable) { + DoubleMetricAttribute oldUnstable = unstable; + unstable = newUnstable; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_VMEM__UNSTABLE, oldUnstable, unstable)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getVmscan_immediate_reclaim() { + return vmscan_immediate_reclaim; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setVmscan_immediate_reclaim(DoubleMetricAttribute newVmscan_immediate_reclaim) { + DoubleMetricAttribute oldVmscan_immediate_reclaim = vmscan_immediate_reclaim; + vmscan_immediate_reclaim = newVmscan_immediate_reclaim; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_VMEM__VMSCAN_IMMEDIATE_RECLAIM, oldVmscan_immediate_reclaim, vmscan_immediate_reclaim)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getVmscan_write() { + return vmscan_write; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setVmscan_write(DoubleMetricAttribute newVmscan_write) { + DoubleMetricAttribute oldVmscan_write = vmscan_write; + vmscan_write = newVmscan_write; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_VMEM__VMSCAN_WRITE, oldVmscan_write, vmscan_write)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getWriteback() { + return writeback; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setWriteback(DoubleMetricAttribute newWriteback) { + DoubleMetricAttribute oldWriteback = writeback; + writeback = newWriteback; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_VMEM__WRITEBACK, oldWriteback, writeback)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getWriteback_temp() { + return writeback_temp; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setWriteback_temp(DoubleMetricAttribute newWriteback_temp) { + DoubleMetricAttribute oldWriteback_temp = writeback_temp; + writeback_temp = newWriteback_temp; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_VMEM__WRITEBACK_TEMP, oldWriteback_temp, writeback_temp)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DoubleMetricAttribute getWritten() { + return written; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setWritten(DoubleMetricAttribute newWritten) { + DoubleMetricAttribute oldWritten = written; + written = newWritten; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_VMEM__WRITTEN, oldWritten, written)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IncreasingULongMetricAttribute getMemory_in() { + return memory_in; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setMemory_in(IncreasingULongMetricAttribute newMemory_in) { + IncreasingULongMetricAttribute oldMemory_in = memory_in; + memory_in = newMemory_in; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_VMEM__MEMORY_IN, oldMemory_in, memory_in)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IncreasingULongMetricAttribute getMemory_out() { + return memory_out; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setMemory_out(IncreasingULongMetricAttribute newMemory_out) { + IncreasingULongMetricAttribute oldMemory_out = memory_out; + memory_out = newMemory_out; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_VMEM__MEMORY_OUT, oldMemory_out, memory_out)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IncreasingULongMetricAttribute getSwap_in() { + return swap_in; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setSwap_in(IncreasingULongMetricAttribute newSwap_in) { + IncreasingULongMetricAttribute oldSwap_in = swap_in; + swap_in = newSwap_in; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_VMEM__SWAP_IN, oldSwap_in, swap_in)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IncreasingULongMetricAttribute getSwap_out() { + return swap_out; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setSwap_out(IncreasingULongMetricAttribute newSwap_out) { + IncreasingULongMetricAttribute oldSwap_out = swap_out; + swap_out = newSwap_out; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_VMEM__SWAP_OUT, oldSwap_out, swap_out)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IncreasingULongMetricAttribute getFaults_minor() { + return faults_minor; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setFaults_minor(IncreasingULongMetricAttribute newFaults_minor) { + IncreasingULongMetricAttribute oldFaults_minor = faults_minor; + faults_minor = newFaults_minor; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_VMEM__FAULTS_MINOR, oldFaults_minor, faults_minor)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IncreasingULongMetricAttribute getFaults_major() { + return faults_major; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setFaults_major(IncreasingULongMetricAttribute newFaults_major) { + IncreasingULongMetricAttribute oldFaults_major = faults_major; + faults_major = newFaults_major; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CollectdPackage.COLLECTD_VMEM__FAULTS_MAJOR, oldFaults_major, faults_major)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case CollectdPackage.COLLECTD_VMEM__ACTIVE_ANON: + return getActive_anon(); + case CollectdPackage.COLLECTD_VMEM__ACTIVE_FILE: + return getActive_file(); + case CollectdPackage.COLLECTD_VMEM__ANON_PAGES: + return getAnon_pages(); + case CollectdPackage.COLLECTD_VMEM__ANON_TRANSPARENT_HUGEPAGES: + return getAnon_transparent_hugepages(); + case CollectdPackage.COLLECTD_VMEM__BOUNCE: + return getBounce(); + case CollectdPackage.COLLECTD_VMEM__DIRTIED: + return getDirtied(); + case CollectdPackage.COLLECTD_VMEM__DIRTY: + return getDirty(); + case CollectdPackage.COLLECTD_VMEM__DIRTY_BACKGROUND_THRESHOLD: + return getDirty_background_threshold(); + case CollectdPackage.COLLECTD_VMEM__DIRTY_THRESHOLD: + return getDirty_threshold(); + case CollectdPackage.COLLECTD_VMEM__FILE_PAGES: + return getFile_pages(); + case CollectdPackage.COLLECTD_VMEM__FREE_PAGES: + return getFree_pages(); + case CollectdPackage.COLLECTD_VMEM__INACTIVE_ANON: + return getInactive_anon(); + case CollectdPackage.COLLECTD_VMEM__INACTIVE_FILE: + return getInactive_file(); + case CollectdPackage.COLLECTD_VMEM__ISOLATED_ANON: + return getIsolated_anon(); + case CollectdPackage.COLLECTD_VMEM__ISOLATED_FILE: + return getIsolated_file(); + case CollectdPackage.COLLECTD_VMEM__KERNEL_STACK: + return getKernel_stack(); + case CollectdPackage.COLLECTD_VMEM__MAPPED: + return getMapped(); + case CollectdPackage.COLLECTD_VMEM__MLOCK: + return getMlock(); + case CollectdPackage.COLLECTD_VMEM__PAGE_TABLE_PAGES: + return getPage_table_pages(); + case CollectdPackage.COLLECTD_VMEM__SHMEM: + return getShmem(); + case CollectdPackage.COLLECTD_VMEM__SLAB_RECLAIMABLE: + return getSlab_reclaimable(); + case CollectdPackage.COLLECTD_VMEM__SLAB_UNRECLAIMABLE: + return getSlab_unreclaimable(); + case CollectdPackage.COLLECTD_VMEM__UNEVICTABLE: + return getUnevictable(); + case CollectdPackage.COLLECTD_VMEM__UNSTABLE: + return getUnstable(); + case CollectdPackage.COLLECTD_VMEM__VMSCAN_IMMEDIATE_RECLAIM: + return getVmscan_immediate_reclaim(); + case CollectdPackage.COLLECTD_VMEM__VMSCAN_WRITE: + return getVmscan_write(); + case CollectdPackage.COLLECTD_VMEM__WRITEBACK: + return getWriteback(); + case CollectdPackage.COLLECTD_VMEM__WRITEBACK_TEMP: + return getWriteback_temp(); + case CollectdPackage.COLLECTD_VMEM__WRITTEN: + return getWritten(); + case CollectdPackage.COLLECTD_VMEM__MEMORY_IN: + return getMemory_in(); + case CollectdPackage.COLLECTD_VMEM__MEMORY_OUT: + return getMemory_out(); + case CollectdPackage.COLLECTD_VMEM__SWAP_IN: + return getSwap_in(); + case CollectdPackage.COLLECTD_VMEM__SWAP_OUT: + return getSwap_out(); + case CollectdPackage.COLLECTD_VMEM__FAULTS_MINOR: + return getFaults_minor(); + case CollectdPackage.COLLECTD_VMEM__FAULTS_MAJOR: + return getFaults_major(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case CollectdPackage.COLLECTD_VMEM__ACTIVE_ANON: + setActive_anon((DoubleMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_VMEM__ACTIVE_FILE: + setActive_file((DoubleMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_VMEM__ANON_PAGES: + setAnon_pages((DoubleMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_VMEM__ANON_TRANSPARENT_HUGEPAGES: + setAnon_transparent_hugepages((DoubleMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_VMEM__BOUNCE: + setBounce((DoubleMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_VMEM__DIRTIED: + setDirtied((DoubleMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_VMEM__DIRTY: + setDirty((DoubleMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_VMEM__DIRTY_BACKGROUND_THRESHOLD: + setDirty_background_threshold((DoubleMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_VMEM__DIRTY_THRESHOLD: + setDirty_threshold((DoubleMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_VMEM__FILE_PAGES: + setFile_pages((DoubleMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_VMEM__FREE_PAGES: + setFree_pages((DoubleMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_VMEM__INACTIVE_ANON: + setInactive_anon((DoubleMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_VMEM__INACTIVE_FILE: + setInactive_file((DoubleMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_VMEM__ISOLATED_ANON: + setIsolated_anon((DoubleMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_VMEM__ISOLATED_FILE: + setIsolated_file((DoubleMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_VMEM__KERNEL_STACK: + setKernel_stack((DoubleMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_VMEM__MAPPED: + setMapped((DoubleMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_VMEM__MLOCK: + setMlock((DoubleMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_VMEM__PAGE_TABLE_PAGES: + setPage_table_pages((DoubleMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_VMEM__SHMEM: + setShmem((DoubleMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_VMEM__SLAB_RECLAIMABLE: + setSlab_reclaimable((DoubleMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_VMEM__SLAB_UNRECLAIMABLE: + setSlab_unreclaimable((DoubleMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_VMEM__UNEVICTABLE: + setUnevictable((DoubleMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_VMEM__UNSTABLE: + setUnstable((DoubleMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_VMEM__VMSCAN_IMMEDIATE_RECLAIM: + setVmscan_immediate_reclaim((DoubleMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_VMEM__VMSCAN_WRITE: + setVmscan_write((DoubleMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_VMEM__WRITEBACK: + setWriteback((DoubleMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_VMEM__WRITEBACK_TEMP: + setWriteback_temp((DoubleMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_VMEM__WRITTEN: + setWritten((DoubleMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_VMEM__MEMORY_IN: + setMemory_in((IncreasingULongMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_VMEM__MEMORY_OUT: + setMemory_out((IncreasingULongMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_VMEM__SWAP_IN: + setSwap_in((IncreasingULongMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_VMEM__SWAP_OUT: + setSwap_out((IncreasingULongMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_VMEM__FAULTS_MINOR: + setFaults_minor((IncreasingULongMetricAttribute)newValue); + return; + case CollectdPackage.COLLECTD_VMEM__FAULTS_MAJOR: + setFaults_major((IncreasingULongMetricAttribute)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case CollectdPackage.COLLECTD_VMEM__ACTIVE_ANON: + setActive_anon(ACTIVE_ANON_EDEFAULT); + return; + case CollectdPackage.COLLECTD_VMEM__ACTIVE_FILE: + setActive_file(ACTIVE_FILE_EDEFAULT); + return; + case CollectdPackage.COLLECTD_VMEM__ANON_PAGES: + setAnon_pages(ANON_PAGES_EDEFAULT); + return; + case CollectdPackage.COLLECTD_VMEM__ANON_TRANSPARENT_HUGEPAGES: + setAnon_transparent_hugepages(ANON_TRANSPARENT_HUGEPAGES_EDEFAULT); + return; + case CollectdPackage.COLLECTD_VMEM__BOUNCE: + setBounce(BOUNCE_EDEFAULT); + return; + case CollectdPackage.COLLECTD_VMEM__DIRTIED: + setDirtied(DIRTIED_EDEFAULT); + return; + case CollectdPackage.COLLECTD_VMEM__DIRTY: + setDirty(DIRTY_EDEFAULT); + return; + case CollectdPackage.COLLECTD_VMEM__DIRTY_BACKGROUND_THRESHOLD: + setDirty_background_threshold(DIRTY_BACKGROUND_THRESHOLD_EDEFAULT); + return; + case CollectdPackage.COLLECTD_VMEM__DIRTY_THRESHOLD: + setDirty_threshold(DIRTY_THRESHOLD_EDEFAULT); + return; + case CollectdPackage.COLLECTD_VMEM__FILE_PAGES: + setFile_pages(FILE_PAGES_EDEFAULT); + return; + case CollectdPackage.COLLECTD_VMEM__FREE_PAGES: + setFree_pages(FREE_PAGES_EDEFAULT); + return; + case CollectdPackage.COLLECTD_VMEM__INACTIVE_ANON: + setInactive_anon(INACTIVE_ANON_EDEFAULT); + return; + case CollectdPackage.COLLECTD_VMEM__INACTIVE_FILE: + setInactive_file(INACTIVE_FILE_EDEFAULT); + return; + case CollectdPackage.COLLECTD_VMEM__ISOLATED_ANON: + setIsolated_anon(ISOLATED_ANON_EDEFAULT); + return; + case CollectdPackage.COLLECTD_VMEM__ISOLATED_FILE: + setIsolated_file(ISOLATED_FILE_EDEFAULT); + return; + case CollectdPackage.COLLECTD_VMEM__KERNEL_STACK: + setKernel_stack(KERNEL_STACK_EDEFAULT); + return; + case CollectdPackage.COLLECTD_VMEM__MAPPED: + setMapped(MAPPED_EDEFAULT); + return; + case CollectdPackage.COLLECTD_VMEM__MLOCK: + setMlock(MLOCK_EDEFAULT); + return; + case CollectdPackage.COLLECTD_VMEM__PAGE_TABLE_PAGES: + setPage_table_pages(PAGE_TABLE_PAGES_EDEFAULT); + return; + case CollectdPackage.COLLECTD_VMEM__SHMEM: + setShmem(SHMEM_EDEFAULT); + return; + case CollectdPackage.COLLECTD_VMEM__SLAB_RECLAIMABLE: + setSlab_reclaimable(SLAB_RECLAIMABLE_EDEFAULT); + return; + case CollectdPackage.COLLECTD_VMEM__SLAB_UNRECLAIMABLE: + setSlab_unreclaimable(SLAB_UNRECLAIMABLE_EDEFAULT); + return; + case CollectdPackage.COLLECTD_VMEM__UNEVICTABLE: + setUnevictable(UNEVICTABLE_EDEFAULT); + return; + case CollectdPackage.COLLECTD_VMEM__UNSTABLE: + setUnstable(UNSTABLE_EDEFAULT); + return; + case CollectdPackage.COLLECTD_VMEM__VMSCAN_IMMEDIATE_RECLAIM: + setVmscan_immediate_reclaim(VMSCAN_IMMEDIATE_RECLAIM_EDEFAULT); + return; + case CollectdPackage.COLLECTD_VMEM__VMSCAN_WRITE: + setVmscan_write(VMSCAN_WRITE_EDEFAULT); + return; + case CollectdPackage.COLLECTD_VMEM__WRITEBACK: + setWriteback(WRITEBACK_EDEFAULT); + return; + case CollectdPackage.COLLECTD_VMEM__WRITEBACK_TEMP: + setWriteback_temp(WRITEBACK_TEMP_EDEFAULT); + return; + case CollectdPackage.COLLECTD_VMEM__WRITTEN: + setWritten(WRITTEN_EDEFAULT); + return; + case CollectdPackage.COLLECTD_VMEM__MEMORY_IN: + setMemory_in(MEMORY_IN_EDEFAULT); + return; + case CollectdPackage.COLLECTD_VMEM__MEMORY_OUT: + setMemory_out(MEMORY_OUT_EDEFAULT); + return; + case CollectdPackage.COLLECTD_VMEM__SWAP_IN: + setSwap_in(SWAP_IN_EDEFAULT); + return; + case CollectdPackage.COLLECTD_VMEM__SWAP_OUT: + setSwap_out(SWAP_OUT_EDEFAULT); + return; + case CollectdPackage.COLLECTD_VMEM__FAULTS_MINOR: + setFaults_minor(FAULTS_MINOR_EDEFAULT); + return; + case CollectdPackage.COLLECTD_VMEM__FAULTS_MAJOR: + setFaults_major(FAULTS_MAJOR_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case CollectdPackage.COLLECTD_VMEM__ACTIVE_ANON: + return ACTIVE_ANON_EDEFAULT == null ? active_anon != null : !ACTIVE_ANON_EDEFAULT.equals(active_anon); + case CollectdPackage.COLLECTD_VMEM__ACTIVE_FILE: + return ACTIVE_FILE_EDEFAULT == null ? active_file != null : !ACTIVE_FILE_EDEFAULT.equals(active_file); + case CollectdPackage.COLLECTD_VMEM__ANON_PAGES: + return ANON_PAGES_EDEFAULT == null ? anon_pages != null : !ANON_PAGES_EDEFAULT.equals(anon_pages); + case CollectdPackage.COLLECTD_VMEM__ANON_TRANSPARENT_HUGEPAGES: + return ANON_TRANSPARENT_HUGEPAGES_EDEFAULT == null ? anon_transparent_hugepages != null : !ANON_TRANSPARENT_HUGEPAGES_EDEFAULT.equals(anon_transparent_hugepages); + case CollectdPackage.COLLECTD_VMEM__BOUNCE: + return BOUNCE_EDEFAULT == null ? bounce != null : !BOUNCE_EDEFAULT.equals(bounce); + case CollectdPackage.COLLECTD_VMEM__DIRTIED: + return DIRTIED_EDEFAULT == null ? dirtied != null : !DIRTIED_EDEFAULT.equals(dirtied); + case CollectdPackage.COLLECTD_VMEM__DIRTY: + return DIRTY_EDEFAULT == null ? dirty != null : !DIRTY_EDEFAULT.equals(dirty); + case CollectdPackage.COLLECTD_VMEM__DIRTY_BACKGROUND_THRESHOLD: + return DIRTY_BACKGROUND_THRESHOLD_EDEFAULT == null ? dirty_background_threshold != null : !DIRTY_BACKGROUND_THRESHOLD_EDEFAULT.equals(dirty_background_threshold); + case CollectdPackage.COLLECTD_VMEM__DIRTY_THRESHOLD: + return DIRTY_THRESHOLD_EDEFAULT == null ? dirty_threshold != null : !DIRTY_THRESHOLD_EDEFAULT.equals(dirty_threshold); + case CollectdPackage.COLLECTD_VMEM__FILE_PAGES: + return FILE_PAGES_EDEFAULT == null ? file_pages != null : !FILE_PAGES_EDEFAULT.equals(file_pages); + case CollectdPackage.COLLECTD_VMEM__FREE_PAGES: + return FREE_PAGES_EDEFAULT == null ? free_pages != null : !FREE_PAGES_EDEFAULT.equals(free_pages); + case CollectdPackage.COLLECTD_VMEM__INACTIVE_ANON: + return INACTIVE_ANON_EDEFAULT == null ? inactive_anon != null : !INACTIVE_ANON_EDEFAULT.equals(inactive_anon); + case CollectdPackage.COLLECTD_VMEM__INACTIVE_FILE: + return INACTIVE_FILE_EDEFAULT == null ? inactive_file != null : !INACTIVE_FILE_EDEFAULT.equals(inactive_file); + case CollectdPackage.COLLECTD_VMEM__ISOLATED_ANON: + return ISOLATED_ANON_EDEFAULT == null ? isolated_anon != null : !ISOLATED_ANON_EDEFAULT.equals(isolated_anon); + case CollectdPackage.COLLECTD_VMEM__ISOLATED_FILE: + return ISOLATED_FILE_EDEFAULT == null ? isolated_file != null : !ISOLATED_FILE_EDEFAULT.equals(isolated_file); + case CollectdPackage.COLLECTD_VMEM__KERNEL_STACK: + return KERNEL_STACK_EDEFAULT == null ? kernel_stack != null : !KERNEL_STACK_EDEFAULT.equals(kernel_stack); + case CollectdPackage.COLLECTD_VMEM__MAPPED: + return MAPPED_EDEFAULT == null ? mapped != null : !MAPPED_EDEFAULT.equals(mapped); + case CollectdPackage.COLLECTD_VMEM__MLOCK: + return MLOCK_EDEFAULT == null ? mlock != null : !MLOCK_EDEFAULT.equals(mlock); + case CollectdPackage.COLLECTD_VMEM__PAGE_TABLE_PAGES: + return PAGE_TABLE_PAGES_EDEFAULT == null ? page_table_pages != null : !PAGE_TABLE_PAGES_EDEFAULT.equals(page_table_pages); + case CollectdPackage.COLLECTD_VMEM__SHMEM: + return SHMEM_EDEFAULT == null ? shmem != null : !SHMEM_EDEFAULT.equals(shmem); + case CollectdPackage.COLLECTD_VMEM__SLAB_RECLAIMABLE: + return SLAB_RECLAIMABLE_EDEFAULT == null ? slab_reclaimable != null : !SLAB_RECLAIMABLE_EDEFAULT.equals(slab_reclaimable); + case CollectdPackage.COLLECTD_VMEM__SLAB_UNRECLAIMABLE: + return SLAB_UNRECLAIMABLE_EDEFAULT == null ? slab_unreclaimable != null : !SLAB_UNRECLAIMABLE_EDEFAULT.equals(slab_unreclaimable); + case CollectdPackage.COLLECTD_VMEM__UNEVICTABLE: + return UNEVICTABLE_EDEFAULT == null ? unevictable != null : !UNEVICTABLE_EDEFAULT.equals(unevictable); + case CollectdPackage.COLLECTD_VMEM__UNSTABLE: + return UNSTABLE_EDEFAULT == null ? unstable != null : !UNSTABLE_EDEFAULT.equals(unstable); + case CollectdPackage.COLLECTD_VMEM__VMSCAN_IMMEDIATE_RECLAIM: + return VMSCAN_IMMEDIATE_RECLAIM_EDEFAULT == null ? vmscan_immediate_reclaim != null : !VMSCAN_IMMEDIATE_RECLAIM_EDEFAULT.equals(vmscan_immediate_reclaim); + case CollectdPackage.COLLECTD_VMEM__VMSCAN_WRITE: + return VMSCAN_WRITE_EDEFAULT == null ? vmscan_write != null : !VMSCAN_WRITE_EDEFAULT.equals(vmscan_write); + case CollectdPackage.COLLECTD_VMEM__WRITEBACK: + return WRITEBACK_EDEFAULT == null ? writeback != null : !WRITEBACK_EDEFAULT.equals(writeback); + case CollectdPackage.COLLECTD_VMEM__WRITEBACK_TEMP: + return WRITEBACK_TEMP_EDEFAULT == null ? writeback_temp != null : !WRITEBACK_TEMP_EDEFAULT.equals(writeback_temp); + case CollectdPackage.COLLECTD_VMEM__WRITTEN: + return WRITTEN_EDEFAULT == null ? written != null : !WRITTEN_EDEFAULT.equals(written); + case CollectdPackage.COLLECTD_VMEM__MEMORY_IN: + return MEMORY_IN_EDEFAULT == null ? memory_in != null : !MEMORY_IN_EDEFAULT.equals(memory_in); + case CollectdPackage.COLLECTD_VMEM__MEMORY_OUT: + return MEMORY_OUT_EDEFAULT == null ? memory_out != null : !MEMORY_OUT_EDEFAULT.equals(memory_out); + case CollectdPackage.COLLECTD_VMEM__SWAP_IN: + return SWAP_IN_EDEFAULT == null ? swap_in != null : !SWAP_IN_EDEFAULT.equals(swap_in); + case CollectdPackage.COLLECTD_VMEM__SWAP_OUT: + return SWAP_OUT_EDEFAULT == null ? swap_out != null : !SWAP_OUT_EDEFAULT.equals(swap_out); + case CollectdPackage.COLLECTD_VMEM__FAULTS_MINOR: + return FAULTS_MINOR_EDEFAULT == null ? faults_minor != null : !FAULTS_MINOR_EDEFAULT.equals(faults_minor); + case CollectdPackage.COLLECTD_VMEM__FAULTS_MAJOR: + return FAULTS_MAJOR_EDEFAULT == null ? faults_major != null : !FAULTS_MAJOR_EDEFAULT.equals(faults_major); + } + 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(" (active_anon: "); + result.append(active_anon); + result.append(", active_file: "); + result.append(active_file); + result.append(", anon_pages: "); + result.append(anon_pages); + result.append(", anon_transparent_hugepages: "); + result.append(anon_transparent_hugepages); + result.append(", bounce: "); + result.append(bounce); + result.append(", dirtied: "); + result.append(dirtied); + result.append(", dirty: "); + result.append(dirty); + result.append(", dirty_background_threshold: "); + result.append(dirty_background_threshold); + result.append(", dirty_threshold: "); + result.append(dirty_threshold); + result.append(", file_pages: "); + result.append(file_pages); + result.append(", free_pages: "); + result.append(free_pages); + result.append(", inactive_anon: "); + result.append(inactive_anon); + result.append(", inactive_file: "); + result.append(inactive_file); + result.append(", isolated_anon: "); + result.append(isolated_anon); + result.append(", isolated_file: "); + result.append(isolated_file); + result.append(", kernel_stack: "); + result.append(kernel_stack); + result.append(", mapped: "); + result.append(mapped); + result.append(", mlock: "); + result.append(mlock); + result.append(", page_table_pages: "); + result.append(page_table_pages); + result.append(", shmem: "); + result.append(shmem); + result.append(", slab_reclaimable: "); + result.append(slab_reclaimable); + result.append(", slab_unreclaimable: "); + result.append(slab_unreclaimable); + result.append(", unevictable: "); + result.append(unevictable); + result.append(", unstable: "); + result.append(unstable); + result.append(", vmscan_immediate_reclaim: "); + result.append(vmscan_immediate_reclaim); + result.append(", vmscan_write: "); + result.append(vmscan_write); + result.append(", writeback: "); + result.append(writeback); + result.append(", writeback_temp: "); + result.append(writeback_temp); + result.append(", written: "); + result.append(written); + result.append(", memory_in: "); + result.append(memory_in); + result.append(", memory_out: "); + result.append(memory_out); + result.append(", swap_in: "); + result.append(swap_in); + result.append(", swap_out: "); + result.append(swap_out); + result.append(", faults_minor: "); + result.append(faults_minor); + result.append(", faults_major: "); + result.append(faults_major); + result.append(')'); + return result.toString(); + } + +} //CollectdVmemImpl diff --git a/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/util/CollectdAdapterFactory.java b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/util/CollectdAdapterFactory.java new file mode 100644 index 0000000..6c453b8 --- /dev/null +++ b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/util/CollectdAdapterFactory.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.sirius.manager.agent.collectd.util; + +import org.openecomp.ncomp.core.NamedEntity; + +import org.openecomp.ncomp.core.alerts.AlertContainer; + +import org.openecomp.ncomp.sirius.manager.agent.collectd.*; + +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.sirius.manager.agent.collectd.CollectdPackage + * @generated + */ +public class CollectdAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static CollectdPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CollectdAdapterFactory() { + if (modelPackage == null) { + modelPackage = CollectdPackage.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 CollectdSwitch<Adapter> modelSwitch = + new CollectdSwitch<Adapter>() { + @Override + public Adapter caseCollectdServer(CollectdServer object) { + return createCollectdServerAdapter(); + } + @Override + public Adapter caseCollectdMemory(CollectdMemory object) { + return createCollectdMemoryAdapter(); + } + @Override + public Adapter caseCollectdSwap(CollectdSwap object) { + return createCollectdSwapAdapter(); + } + @Override + public Adapter caseCollectdProcesses(CollectdProcesses object) { + return createCollectdProcessesAdapter(); + } + @Override + public Adapter caseCollectdVmem(CollectdVmem object) { + return createCollectdVmemAdapter(); + } + @Override + public Adapter caseCollectdCpu(CollectdCpu object) { + return createCollectdCpuAdapter(); + } + @Override + public Adapter caseCollectdDisk(CollectdDisk object) { + return createCollectdDiskAdapter(); + } + @Override + public Adapter caseCollectdFileSystem(CollectdFileSystem object) { + return createCollectdFileSystemAdapter(); + } + @Override + public Adapter caseCollectdInterface(CollectdInterface object) { + return createCollectdInterfaceAdapter(); + } + @Override + public Adapter caseCollectdKvmInstance(CollectdKvmInstance object) { + return createCollectdKvmInstanceAdapter(); + } + @Override + public Adapter caseCollectdKvmDisk(CollectdKvmDisk object) { + return createCollectdKvmDiskAdapter(); + } + @Override + public Adapter caseCollectdKvmInterface(CollectdKvmInterface object) { + return createCollectdKvmInterfaceAdapter(); + } + @Override + public Adapter caseNamedEntity(NamedEntity object) { + return createNamedEntityAdapter(); + } + @Override + public Adapter caseAlertContainer(AlertContainer object) { + return createAlertContainerAdapter(); + } + @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.sirius.manager.agent.collectd.CollectdServer <em>Server</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdServer + * @generated + */ + public Adapter createCollectdServerAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdMemory <em>Memory</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdMemory + * @generated + */ + public Adapter createCollectdMemoryAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdSwap <em>Swap</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdSwap + * @generated + */ + public Adapter createCollectdSwapAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdProcesses <em>Processes</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdProcesses + * @generated + */ + public Adapter createCollectdProcessesAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem <em>Vmem</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdVmem + * @generated + */ + public Adapter createCollectdVmemAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdCpu <em>Cpu</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdCpu + * @generated + */ + public Adapter createCollectdCpuAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdDisk <em>Disk</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdDisk + * @generated + */ + public Adapter createCollectdDiskAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdFileSystem <em>File System</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdFileSystem + * @generated + */ + public Adapter createCollectdFileSystemAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdInterface <em>Interface</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdInterface + * @generated + */ + public Adapter createCollectdInterfaceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInstance <em>Kvm Instance</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInstance + * @generated + */ + public Adapter createCollectdKvmInstanceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmDisk <em>Kvm Disk</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmDisk + * @generated + */ + public Adapter createCollectdKvmDiskAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInterface <em>Kvm Interface</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.openecomp.ncomp.sirius.manager.agent.collectd.CollectdKvmInterface + * @generated + */ + public Adapter createCollectdKvmInterfaceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.NamedEntity <em>Named Entity</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.openecomp.ncomp.core.NamedEntity + * @generated + */ + public Adapter createNamedEntityAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.alerts.AlertContainer <em>Alert Container</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.openecomp.ncomp.core.alerts.AlertContainer + * @generated + */ + public Adapter createAlertContainerAdapter() { + 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; + } + +} //CollectdAdapterFactory diff --git a/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/util/CollectdSwitch.java b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/util/CollectdSwitch.java new file mode 100644 index 0000000..d9aaac2 --- /dev/null +++ b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/collectd/util/CollectdSwitch.java @@ -0,0 +1,412 @@ + +/*- + * ============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.sirius.manager.agent.collectd.util; + +import org.openecomp.ncomp.core.NamedEntity; + +import org.openecomp.ncomp.core.alerts.AlertContainer; + +import org.openecomp.ncomp.sirius.manager.agent.collectd.*; + +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.sirius.manager.agent.collectd.CollectdPackage + * @generated + */ +public class CollectdSwitch<T> extends Switch<T> { + /** + * The cached model package + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static CollectdPackage modelPackage; + + /** + * Creates an instance of the switch. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CollectdSwitch() { + if (modelPackage == null) { + modelPackage = CollectdPackage.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 CollectdPackage.COLLECTD_SERVER: { + CollectdServer collectdServer = (CollectdServer)theEObject; + T result = caseCollectdServer(collectdServer); + if (result == null) result = caseNamedEntity(collectdServer); + if (result == null) result = caseAlertContainer(collectdServer); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CollectdPackage.COLLECTD_MEMORY: { + CollectdMemory collectdMemory = (CollectdMemory)theEObject; + T result = caseCollectdMemory(collectdMemory); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CollectdPackage.COLLECTD_SWAP: { + CollectdSwap collectdSwap = (CollectdSwap)theEObject; + T result = caseCollectdSwap(collectdSwap); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CollectdPackage.COLLECTD_PROCESSES: { + CollectdProcesses collectdProcesses = (CollectdProcesses)theEObject; + T result = caseCollectdProcesses(collectdProcesses); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CollectdPackage.COLLECTD_VMEM: { + CollectdVmem collectdVmem = (CollectdVmem)theEObject; + T result = caseCollectdVmem(collectdVmem); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CollectdPackage.COLLECTD_CPU: { + CollectdCpu collectdCpu = (CollectdCpu)theEObject; + T result = caseCollectdCpu(collectdCpu); + if (result == null) result = caseNamedEntity(collectdCpu); + if (result == null) result = caseAlertContainer(collectdCpu); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CollectdPackage.COLLECTD_DISK: { + CollectdDisk collectdDisk = (CollectdDisk)theEObject; + T result = caseCollectdDisk(collectdDisk); + if (result == null) result = caseNamedEntity(collectdDisk); + if (result == null) result = caseAlertContainer(collectdDisk); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CollectdPackage.COLLECTD_FILE_SYSTEM: { + CollectdFileSystem collectdFileSystem = (CollectdFileSystem)theEObject; + T result = caseCollectdFileSystem(collectdFileSystem); + if (result == null) result = caseNamedEntity(collectdFileSystem); + if (result == null) result = caseAlertContainer(collectdFileSystem); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CollectdPackage.COLLECTD_INTERFACE: { + CollectdInterface collectdInterface = (CollectdInterface)theEObject; + T result = caseCollectdInterface(collectdInterface); + if (result == null) result = caseNamedEntity(collectdInterface); + if (result == null) result = caseAlertContainer(collectdInterface); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CollectdPackage.COLLECTD_KVM_INSTANCE: { + CollectdKvmInstance collectdKvmInstance = (CollectdKvmInstance)theEObject; + T result = caseCollectdKvmInstance(collectdKvmInstance); + if (result == null) result = caseNamedEntity(collectdKvmInstance); + if (result == null) result = caseAlertContainer(collectdKvmInstance); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CollectdPackage.COLLECTD_KVM_DISK: { + CollectdKvmDisk collectdKvmDisk = (CollectdKvmDisk)theEObject; + T result = caseCollectdKvmDisk(collectdKvmDisk); + if (result == null) result = caseNamedEntity(collectdKvmDisk); + if (result == null) result = caseAlertContainer(collectdKvmDisk); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CollectdPackage.COLLECTD_KVM_INTERFACE: { + CollectdKvmInterface collectdKvmInterface = (CollectdKvmInterface)theEObject; + T result = caseCollectdKvmInterface(collectdKvmInterface); + if (result == null) result = caseNamedEntity(collectdKvmInterface); + if (result == null) result = caseAlertContainer(collectdKvmInterface); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Server</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Server</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCollectdServer(CollectdServer object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Memory</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>Memory</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCollectdMemory(CollectdMemory object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Swap</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>Swap</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCollectdSwap(CollectdSwap object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Processes</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>Processes</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCollectdProcesses(CollectdProcesses object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Vmem</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>Vmem</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCollectdVmem(CollectdVmem object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Cpu</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>Cpu</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCollectdCpu(CollectdCpu object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Disk</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>Disk</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCollectdDisk(CollectdDisk object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>File System</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>File System</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCollectdFileSystem(CollectdFileSystem object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Interface</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>Interface</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCollectdInterface(CollectdInterface object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Kvm Instance</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Kvm Instance</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCollectdKvmInstance(CollectdKvmInstance object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Kvm Disk</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>Kvm Disk</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCollectdKvmDisk(CollectdKvmDisk object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Kvm Interface</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>Kvm Interface</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCollectdKvmInterface(CollectdKvmInterface 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>Alert 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>Alert Container</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAlertContainer(AlertContainer 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; + } + +} //CollectdSwitch diff --git a/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/monitoring/MonitoringFactory.java b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/monitoring/MonitoringFactory.java new file mode 100644 index 0000000..6f79b2c --- /dev/null +++ b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/monitoring/MonitoringFactory.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.sirius.manager.agent.monitoring; + +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.sirius.manager.agent.monitoring.MonitoringPackage + * @generated + */ +public interface MonitoringFactory extends EFactory { + /** + * The singleton instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + MonitoringFactory eINSTANCE = org.openecomp.ncomp.sirius.manager.agent.monitoring.impl.MonitoringFactoryImpl.init(); + + /** + * Returns a new object of class '<em>Sirius Manager Agent Server</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Sirius Manager Agent Server</em>'. + * @generated + */ + SiriusManagerAgentServer createSiriusManagerAgentServer(); + + /** + * Returns the package supported by this factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the package supported by this factory. + * @generated + */ + MonitoringPackage getMonitoringPackage(); + +} //MonitoringFactory diff --git a/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/monitoring/MonitoringPackage.java b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/monitoring/MonitoringPackage.java new file mode 100644 index 0000000..6d8c813 --- /dev/null +++ b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/monitoring/MonitoringPackage.java @@ -0,0 +1,263 @@ + +/*- + * ============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.sirius.manager.agent.monitoring; + +import org.openecomp.ncomp.sirius.manager.server.ServerPackage; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; + +/** + * <!-- begin-user-doc --> + * The <b>Package</b> for the model. + * It contains accessors for the meta objects to represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each operation of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.agent.monitoring.MonitoringFactory + * @model kind="package" + * annotation="http://www.eclipse.org/emf/2002/GenModel modelDirectory='/ncomp-sirius-manager-agent-model/src/main/xcore-gen' basePackage='org.openecomp.ncomp.sirius.manager.agent'" + * @generated + */ +public interface MonitoringPackage extends EPackage { + /** + * The package name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNAME = "monitoring"; + + /** + * The package namespace URI. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNS_URI = "org.openecomp.ncomp.sirius.manager.agent.monitoring"; + + /** + * The package namespace name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNS_PREFIX = "monitoring"; + + /** + * The singleton instance of the package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + MonitoringPackage eINSTANCE = org.openecomp.ncomp.sirius.manager.agent.monitoring.impl.MonitoringPackageImpl.init(); + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.agent.monitoring.impl.SiriusManagerAgentServerImpl <em>Sirius Manager Agent Server</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.agent.monitoring.impl.SiriusManagerAgentServerImpl + * @see org.openecomp.ncomp.sirius.manager.agent.monitoring.impl.MonitoringPackageImpl#getSiriusManagerAgentServer() + * @generated + */ + int SIRIUS_MANAGER_AGENT_SERVER = 0; + + /** + * The feature id for the '<em><b>Configuration</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SIRIUS_MANAGER_AGENT_SERVER__CONFIGURATION = ServerPackage.SOUTH_BOUND_API_WITH_PROXY_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Component</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SIRIUS_MANAGER_AGENT_SERVER__COMPONENT = ServerPackage.SOUTH_BOUND_API_WITH_PROXY_FEATURE_COUNT + 1; + + /** + * The number of structural features of the '<em>Sirius Manager Agent Server</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SIRIUS_MANAGER_AGENT_SERVER_FEATURE_COUNT = ServerPackage.SOUTH_BOUND_API_WITH_PROXY_FEATURE_COUNT + 2; + + /** + * The operation id for the '<em>Logs</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SIRIUS_MANAGER_AGENT_SERVER___LOGS__JSONOBJECT_ELIST = ServerPackage.SOUTH_BOUND_API_WITH_PROXY___LOGS__JSONOBJECT_ELIST; + + /** + * The operation id for the '<em>Metrics</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SIRIUS_MANAGER_AGENT_SERVER___METRICS__JSONOBJECT_ELIST = ServerPackage.SOUTH_BOUND_API_WITH_PROXY___METRICS__JSONOBJECT_ELIST; + + /** + * The operation id for the '<em>Properties</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SIRIUS_MANAGER_AGENT_SERVER___PROPERTIES__JSONOBJECT_ELIST = ServerPackage.SOUTH_BOUND_API_WITH_PROXY___PROPERTIES__JSONOBJECT_ELIST; + + /** + * The operation id for the '<em>Upload Info</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SIRIUS_MANAGER_AGENT_SERVER___UPLOAD_INFO__JSONOBJECT_ELIST = ServerPackage.SOUTH_BOUND_API_WITH_PROXY___UPLOAD_INFO__JSONOBJECT_ELIST; + + /** + * The operation id for the '<em>Get Values</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SIRIUS_MANAGER_AGENT_SERVER___GET_VALUES__JSONOBJECT_STRING_LONG_LONG_METRICVALUEOPTION_BOOLEAN = ServerPackage.SOUTH_BOUND_API_WITH_PROXY_OPERATION_COUNT + 0; + + /** + * The operation id for the '<em>Get Values All</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SIRIUS_MANAGER_AGENT_SERVER___GET_VALUES_ALL__JSONOBJECT_STRING_ELIST_LONG_LONG_METRICVALUEOPTION_BOOLEAN = ServerPackage.SOUTH_BOUND_API_WITH_PROXY_OPERATION_COUNT + 1; + + /** + * The operation id for the '<em>Get Messages</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SIRIUS_MANAGER_AGENT_SERVER___GET_MESSAGES__JSONOBJECT_STRING_LONG_LONG = ServerPackage.SOUTH_BOUND_API_WITH_PROXY_OPERATION_COUNT + 2; + + /** + * The operation id for the '<em>Get Request Logger</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SIRIUS_MANAGER_AGENT_SERVER___GET_REQUEST_LOGGER__STRING_STRING_STRING_JSONOBJECT = ServerPackage.SOUTH_BOUND_API_WITH_PROXY_OPERATION_COUNT + 3; + + /** + * The operation id for the '<em>Evaluate</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SIRIUS_MANAGER_AGENT_SERVER___EVALUATE__STRING_FUNCTION = ServerPackage.SOUTH_BOUND_API_WITH_PROXY_OPERATION_COUNT + 4; + + /** + * The operation id for the '<em>Update</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SIRIUS_MANAGER_AGENT_SERVER___UPDATE__STRING_FUNCTION = ServerPackage.SOUTH_BOUND_API_WITH_PROXY_OPERATION_COUNT + 5; + + /** + * The number of operations of the '<em>Sirius Manager Agent Server</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SIRIUS_MANAGER_AGENT_SERVER_OPERATION_COUNT = ServerPackage.SOUTH_BOUND_API_WITH_PROXY_OPERATION_COUNT + 6; + + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.agent.monitoring.SiriusManagerAgentServer <em>Sirius Manager Agent Server</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Sirius Manager Agent Server</em>'. + * @see org.openecomp.ncomp.sirius.manager.agent.monitoring.SiriusManagerAgentServer + * @generated + */ + EClass getSiriusManagerAgentServer(); + + /** + * 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 + */ + MonitoringFactory getMonitoringFactory(); + + /** + * <!-- 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.sirius.manager.agent.monitoring.impl.SiriusManagerAgentServerImpl <em>Sirius Manager Agent Server</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.agent.monitoring.impl.SiriusManagerAgentServerImpl + * @see org.openecomp.ncomp.sirius.manager.agent.monitoring.impl.MonitoringPackageImpl#getSiriusManagerAgentServer() + * @generated + */ + EClass SIRIUS_MANAGER_AGENT_SERVER = eINSTANCE.getSiriusManagerAgentServer(); + + } + +} //MonitoringPackage diff --git a/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/monitoring/SiriusManagerAgentServer.java b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/monitoring/SiriusManagerAgentServer.java new file mode 100644 index 0000000..a7c9dfa --- /dev/null +++ b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/monitoring/SiriusManagerAgentServer.java @@ -0,0 +1,40 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.sirius.manager.agent.monitoring; + +import org.openecomp.ncomp.sirius.manager.server.AbstractManagementServer; +import org.openecomp.ncomp.sirius.manager.server.SouthBoundApiWithProxy; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Sirius Manager Agent Server</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.openecomp.ncomp.sirius.manager.agent.monitoring.MonitoringPackage#getSiriusManagerAgentServer() + * @model + * @generated + */ +public interface SiriusManagerAgentServer extends SouthBoundApiWithProxy, AbstractManagementServer { +} // SiriusManagerAgentServer diff --git a/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/monitoring/impl/MonitoringFactoryImpl.java b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/monitoring/impl/MonitoringFactoryImpl.java new file mode 100644 index 0000000..089490b --- /dev/null +++ b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/monitoring/impl/MonitoringFactoryImpl.java @@ -0,0 +1,116 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.sirius.manager.agent.monitoring.impl; + +import org.openecomp.ncomp.sirius.manager.agent.monitoring.*; + +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 MonitoringFactoryImpl extends EFactoryImpl implements MonitoringFactory { + /** + * Creates the default factory implementation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static MonitoringFactory init() { + try { + MonitoringFactory theMonitoringFactory = (MonitoringFactory)EPackage.Registry.INSTANCE.getEFactory(MonitoringPackage.eNS_URI); + if (theMonitoringFactory != null) { + return theMonitoringFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new MonitoringFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public MonitoringFactoryImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case MonitoringPackage.SIRIUS_MANAGER_AGENT_SERVER: return createSiriusManagerAgentServer(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SiriusManagerAgentServer createSiriusManagerAgentServer() { + SiriusManagerAgentServerImpl siriusManagerAgentServer = new SiriusManagerAgentServerImpl(); + return siriusManagerAgentServer; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public MonitoringPackage getMonitoringPackage() { + return (MonitoringPackage)getEPackage(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @deprecated + * @generated + */ + @Deprecated + public static MonitoringPackage getPackage() { + return MonitoringPackage.eINSTANCE; + } + +} //MonitoringFactoryImpl diff --git a/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/monitoring/impl/MonitoringPackageImpl.java b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/monitoring/impl/MonitoringPackageImpl.java new file mode 100644 index 0000000..6e42e53 --- /dev/null +++ b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/monitoring/impl/MonitoringPackageImpl.java @@ -0,0 +1,196 @@ + +/*- + * ============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.sirius.manager.agent.monitoring.impl; + +import org.openecomp.ncomp.sirius.manager.agent.monitoring.MonitoringFactory; +import org.openecomp.ncomp.sirius.manager.agent.monitoring.MonitoringPackage; +import org.openecomp.ncomp.sirius.manager.agent.monitoring.SiriusManagerAgentServer; + +import org.openecomp.ncomp.sirius.manager.server.ServerPackage; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.impl.EPackageImpl; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Package</b>. + * <!-- end-user-doc --> + * @generated + */ +public class MonitoringPackageImpl extends EPackageImpl implements MonitoringPackage { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass siriusManagerAgentServerEClass = 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.sirius.manager.agent.monitoring.MonitoringPackage#eNS_URI + * @see #init() + * @generated + */ + private MonitoringPackageImpl() { + super(eNS_URI, MonitoringFactory.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 MonitoringPackage#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 MonitoringPackage init() { + if (isInited) return (MonitoringPackage)EPackage.Registry.INSTANCE.getEPackage(MonitoringPackage.eNS_URI); + + // Obtain or create and register package + MonitoringPackageImpl theMonitoringPackage = (MonitoringPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof MonitoringPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new MonitoringPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + ServerPackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theMonitoringPackage.createPackageContents(); + + // Initialize created meta-data + theMonitoringPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theMonitoringPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(MonitoringPackage.eNS_URI, theMonitoringPackage); + return theMonitoringPackage; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getSiriusManagerAgentServer() { + return siriusManagerAgentServerEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public MonitoringFactory getMonitoringFactory() { + return (MonitoringFactory)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 + siriusManagerAgentServerEClass = createEClass(SIRIUS_MANAGER_AGENT_SERVER); + } + + /** + * <!-- 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 + ServerPackage theServerPackage = (ServerPackage)EPackage.Registry.INSTANCE.getEPackage(ServerPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + siriusManagerAgentServerEClass.getESuperTypes().add(theServerPackage.getSouthBoundApiWithProxy()); + siriusManagerAgentServerEClass.getESuperTypes().add(theServerPackage.getAbstractManagementServer()); + + // Initialize classes, features, and operations; add parameters + initEClass(siriusManagerAgentServerEClass, SiriusManagerAgentServer.class, "SiriusManagerAgentServer", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + // Create resource + createResource(eNS_URI); + } + +} //MonitoringPackageImpl diff --git a/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/monitoring/impl/SiriusManagerAgentServerImpl.java b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/monitoring/impl/SiriusManagerAgentServerImpl.java new file mode 100644 index 0000000..3ab36c1 --- /dev/null +++ b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/monitoring/impl/SiriusManagerAgentServerImpl.java @@ -0,0 +1,431 @@ + +/*- + * ============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.sirius.manager.agent.monitoring.impl; + +import org.openecomp.ncomp.component.Component; + +import org.openecomp.ncomp.core.function.Function; +import org.openecomp.ncomp.core.function.ValuePair; + +import org.openecomp.ncomp.core.logs.LogMessage; + +import org.openecomp.ncomp.core.metrics.DoubleMetric; +import org.openecomp.ncomp.core.metrics.MetricValueOption; + +import org.openecomp.ncomp.sirius.manager.agent.monitoring.MonitoringPackage; +import org.openecomp.ncomp.sirius.manager.agent.monitoring.SiriusManagerAgentServer; + +import org.openecomp.ncomp.sirius.manager.server.AbstractManagementServer; +import org.openecomp.ncomp.sirius.manager.server.AbstractManagementServerConfiguration; +import org.openecomp.ncomp.sirius.manager.server.LoggerInfo; +import org.openecomp.ncomp.sirius.manager.server.ServerPackage; + +import org.openecomp.ncomp.sirius.manager.server.impl.SouthBoundApiWithProxyImpl; + +import java.lang.reflect.InvocationTargetException; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.json.JSONObject; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Sirius Manager Agent Server</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.monitoring.impl.SiriusManagerAgentServerImpl#getConfiguration <em>Configuration</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.agent.monitoring.impl.SiriusManagerAgentServerImpl#getComponent <em>Component</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class SiriusManagerAgentServerImpl extends SouthBoundApiWithProxyImpl implements SiriusManagerAgentServer { + /** + * The cached value of the '{@link #getConfiguration() <em>Configuration</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getConfiguration() + * @generated + * @ordered + */ + protected AbstractManagementServerConfiguration configuration; + + /** + * The cached value of the '{@link #getComponent() <em>Component</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getComponent() + * @generated + * @ordered + */ + protected Component component; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected SiriusManagerAgentServerImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return MonitoringPackage.Literals.SIRIUS_MANAGER_AGENT_SERVER; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public AbstractManagementServerConfiguration getConfiguration() { + return configuration; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetConfiguration(AbstractManagementServerConfiguration newConfiguration, NotificationChain msgs) { + AbstractManagementServerConfiguration oldConfiguration = configuration; + configuration = newConfiguration; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, MonitoringPackage.SIRIUS_MANAGER_AGENT_SERVER__CONFIGURATION, oldConfiguration, newConfiguration); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setConfiguration(AbstractManagementServerConfiguration newConfiguration) { + if (newConfiguration != configuration) { + NotificationChain msgs = null; + if (configuration != null) + msgs = ((InternalEObject)configuration).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - MonitoringPackage.SIRIUS_MANAGER_AGENT_SERVER__CONFIGURATION, null, msgs); + if (newConfiguration != null) + msgs = ((InternalEObject)newConfiguration).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - MonitoringPackage.SIRIUS_MANAGER_AGENT_SERVER__CONFIGURATION, null, msgs); + msgs = basicSetConfiguration(newConfiguration, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, MonitoringPackage.SIRIUS_MANAGER_AGENT_SERVER__CONFIGURATION, newConfiguration, newConfiguration)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Component getComponent() { + return component; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetComponent(Component newComponent, NotificationChain msgs) { + Component oldComponent = component; + component = newComponent; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, MonitoringPackage.SIRIUS_MANAGER_AGENT_SERVER__COMPONENT, oldComponent, newComponent); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setComponent(Component newComponent) { + if (newComponent != component) { + NotificationChain msgs = null; + if (component != null) + msgs = ((InternalEObject)component).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - MonitoringPackage.SIRIUS_MANAGER_AGENT_SERVER__COMPONENT, null, msgs); + if (newComponent != null) + msgs = ((InternalEObject)newComponent).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - MonitoringPackage.SIRIUS_MANAGER_AGENT_SERVER__COMPONENT, null, msgs); + msgs = basicSetComponent(newComponent, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, MonitoringPackage.SIRIUS_MANAGER_AGENT_SERVER__COMPONENT, newComponent, newComponent)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<DoubleMetric> getValues(JSONObject cx, String path, Long start, Long end, MetricValueOption option, boolean relativeInterval) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<DoubleMetric> getValuesAll(JSONObject cx, String path, EList<String> metrics, Long start, Long end, MetricValueOption option, boolean relativeInterval) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<LogMessage> getMessages(JSONObject cx, String path, Long start, Long end) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public LoggerInfo getRequestLogger(String userName, String action, String resourcePath, JSONObject context) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<ValuePair> evaluate(String path, Function function) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void update(String path, Function function) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case MonitoringPackage.SIRIUS_MANAGER_AGENT_SERVER__CONFIGURATION: + return basicSetConfiguration(null, msgs); + case MonitoringPackage.SIRIUS_MANAGER_AGENT_SERVER__COMPONENT: + return basicSetComponent(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case MonitoringPackage.SIRIUS_MANAGER_AGENT_SERVER__CONFIGURATION: + return getConfiguration(); + case MonitoringPackage.SIRIUS_MANAGER_AGENT_SERVER__COMPONENT: + return getComponent(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case MonitoringPackage.SIRIUS_MANAGER_AGENT_SERVER__CONFIGURATION: + setConfiguration((AbstractManagementServerConfiguration)newValue); + return; + case MonitoringPackage.SIRIUS_MANAGER_AGENT_SERVER__COMPONENT: + setComponent((Component)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case MonitoringPackage.SIRIUS_MANAGER_AGENT_SERVER__CONFIGURATION: + setConfiguration((AbstractManagementServerConfiguration)null); + return; + case MonitoringPackage.SIRIUS_MANAGER_AGENT_SERVER__COMPONENT: + setComponent((Component)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case MonitoringPackage.SIRIUS_MANAGER_AGENT_SERVER__CONFIGURATION: + return configuration != null; + case MonitoringPackage.SIRIUS_MANAGER_AGENT_SERVER__COMPONENT: + return component != null; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) { + if (baseClass == AbstractManagementServer.class) { + switch (derivedFeatureID) { + case MonitoringPackage.SIRIUS_MANAGER_AGENT_SERVER__CONFIGURATION: return ServerPackage.ABSTRACT_MANAGEMENT_SERVER__CONFIGURATION; + case MonitoringPackage.SIRIUS_MANAGER_AGENT_SERVER__COMPONENT: return ServerPackage.ABSTRACT_MANAGEMENT_SERVER__COMPONENT; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) { + if (baseClass == AbstractManagementServer.class) { + switch (baseFeatureID) { + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER__CONFIGURATION: return MonitoringPackage.SIRIUS_MANAGER_AGENT_SERVER__CONFIGURATION; + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER__COMPONENT: return MonitoringPackage.SIRIUS_MANAGER_AGENT_SERVER__COMPONENT; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public int eDerivedOperationID(int baseOperationID, Class<?> baseClass) { + if (baseClass == AbstractManagementServer.class) { + switch (baseOperationID) { + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER___GET_VALUES__JSONOBJECT_STRING_LONG_LONG_METRICVALUEOPTION_BOOLEAN: return MonitoringPackage.SIRIUS_MANAGER_AGENT_SERVER___GET_VALUES__JSONOBJECT_STRING_LONG_LONG_METRICVALUEOPTION_BOOLEAN; + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER___GET_VALUES_ALL__JSONOBJECT_STRING_ELIST_LONG_LONG_METRICVALUEOPTION_BOOLEAN: return MonitoringPackage.SIRIUS_MANAGER_AGENT_SERVER___GET_VALUES_ALL__JSONOBJECT_STRING_ELIST_LONG_LONG_METRICVALUEOPTION_BOOLEAN; + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER___GET_MESSAGES__JSONOBJECT_STRING_LONG_LONG: return MonitoringPackage.SIRIUS_MANAGER_AGENT_SERVER___GET_MESSAGES__JSONOBJECT_STRING_LONG_LONG; + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER___GET_REQUEST_LOGGER__STRING_STRING_STRING_JSONOBJECT: return MonitoringPackage.SIRIUS_MANAGER_AGENT_SERVER___GET_REQUEST_LOGGER__STRING_STRING_STRING_JSONOBJECT; + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER___EVALUATE__STRING_FUNCTION: return MonitoringPackage.SIRIUS_MANAGER_AGENT_SERVER___EVALUATE__STRING_FUNCTION; + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER___UPDATE__STRING_FUNCTION: return MonitoringPackage.SIRIUS_MANAGER_AGENT_SERVER___UPDATE__STRING_FUNCTION; + default: return -1; + } + } + return super.eDerivedOperationID(baseOperationID, baseClass); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + @SuppressWarnings("unchecked") + public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException { + switch (operationID) { + case MonitoringPackage.SIRIUS_MANAGER_AGENT_SERVER___GET_VALUES__JSONOBJECT_STRING_LONG_LONG_METRICVALUEOPTION_BOOLEAN: + return getValues((JSONObject)arguments.get(0), (String)arguments.get(1), (Long)arguments.get(2), (Long)arguments.get(3), (MetricValueOption)arguments.get(4), (Boolean)arguments.get(5)); + case MonitoringPackage.SIRIUS_MANAGER_AGENT_SERVER___GET_VALUES_ALL__JSONOBJECT_STRING_ELIST_LONG_LONG_METRICVALUEOPTION_BOOLEAN: + return getValuesAll((JSONObject)arguments.get(0), (String)arguments.get(1), (EList<String>)arguments.get(2), (Long)arguments.get(3), (Long)arguments.get(4), (MetricValueOption)arguments.get(5), (Boolean)arguments.get(6)); + case MonitoringPackage.SIRIUS_MANAGER_AGENT_SERVER___GET_MESSAGES__JSONOBJECT_STRING_LONG_LONG: + return getMessages((JSONObject)arguments.get(0), (String)arguments.get(1), (Long)arguments.get(2), (Long)arguments.get(3)); + case MonitoringPackage.SIRIUS_MANAGER_AGENT_SERVER___GET_REQUEST_LOGGER__STRING_STRING_STRING_JSONOBJECT: + return getRequestLogger((String)arguments.get(0), (String)arguments.get(1), (String)arguments.get(2), (JSONObject)arguments.get(3)); + case MonitoringPackage.SIRIUS_MANAGER_AGENT_SERVER___EVALUATE__STRING_FUNCTION: + return evaluate((String)arguments.get(0), (Function)arguments.get(1)); + case MonitoringPackage.SIRIUS_MANAGER_AGENT_SERVER___UPDATE__STRING_FUNCTION: + update((String)arguments.get(0), (Function)arguments.get(1)); + return null; + } + return super.eInvoke(operationID, arguments); + } + +} //SiriusManagerAgentServerImpl diff --git a/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/monitoring/util/MonitoringAdapterFactory.java b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/monitoring/util/MonitoringAdapterFactory.java new file mode 100644 index 0000000..8a05f8f --- /dev/null +++ b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/monitoring/util/MonitoringAdapterFactory.java @@ -0,0 +1,199 @@ + +/*- + * ============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.sirius.manager.agent.monitoring.util; + +import org.openecomp.ncomp.sirius.manager.agent.monitoring.*; + +import org.openecomp.ncomp.sirius.manager.server.AbstractManagementServer; +import org.openecomp.ncomp.sirius.manager.server.SouthBoundApi; +import org.openecomp.ncomp.sirius.manager.server.SouthBoundApiWithProxy; + +import org.eclipse.emf.common.notify.Adapter; +import org.eclipse.emf.common.notify.Notifier; + +import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * The <b>Adapter Factory</b> for the model. + * It provides an adapter <code>createXXX</code> method for each class of the model. + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.agent.monitoring.MonitoringPackage + * @generated + */ +public class MonitoringAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static MonitoringPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public MonitoringAdapterFactory() { + if (modelPackage == null) { + modelPackage = MonitoringPackage.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 MonitoringSwitch<Adapter> modelSwitch = + new MonitoringSwitch<Adapter>() { + @Override + public Adapter caseSiriusManagerAgentServer(SiriusManagerAgentServer object) { + return createSiriusManagerAgentServerAdapter(); + } + @Override + public Adapter caseSouthBoundApi(SouthBoundApi object) { + return createSouthBoundApiAdapter(); + } + @Override + public Adapter caseSouthBoundApiWithProxy(SouthBoundApiWithProxy object) { + return createSouthBoundApiWithProxyAdapter(); + } + @Override + public Adapter caseAbstractManagementServer(AbstractManagementServer object) { + return createAbstractManagementServerAdapter(); + } + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the <code>target</code>. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param target the object to adapt. + * @return the adapter for the <code>target</code>. + * @generated + */ + @Override + public Adapter createAdapter(Notifier target) { + return modelSwitch.doSwitch((EObject)target); + } + + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.agent.monitoring.SiriusManagerAgentServer <em>Sirius Manager Agent Server</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.openecomp.ncomp.sirius.manager.agent.monitoring.SiriusManagerAgentServer + * @generated + */ + public Adapter createSiriusManagerAgentServerAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.server.SouthBoundApi <em>South Bound Api</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.openecomp.ncomp.sirius.manager.server.SouthBoundApi + * @generated + */ + public Adapter createSouthBoundApiAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.server.SouthBoundApiWithProxy <em>South Bound Api With Proxy</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.openecomp.ncomp.sirius.manager.server.SouthBoundApiWithProxy + * @generated + */ + public Adapter createSouthBoundApiWithProxyAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.server.AbstractManagementServer <em>Abstract Management Server</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.openecomp.ncomp.sirius.manager.server.AbstractManagementServer + * @generated + */ + public Adapter createAbstractManagementServerAdapter() { + return null; + } + + /** + * Creates a new adapter for the default case. + * <!-- begin-user-doc --> + * This default implementation returns null. + * <!-- end-user-doc --> + * @return the new adapter. + * @generated + */ + public Adapter createEObjectAdapter() { + return null; + } + +} //MonitoringAdapterFactory diff --git a/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/monitoring/util/MonitoringSwitch.java b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/monitoring/util/MonitoringSwitch.java new file mode 100644 index 0000000..f6f2dc2 --- /dev/null +++ b/ncomp-sirius-manager-agent-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/agent/monitoring/util/MonitoringSwitch.java @@ -0,0 +1,183 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.sirius.manager.agent.monitoring.util; + +import org.openecomp.ncomp.sirius.manager.agent.monitoring.*; + +import org.openecomp.ncomp.sirius.manager.server.AbstractManagementServer; +import org.openecomp.ncomp.sirius.manager.server.SouthBoundApi; +import org.openecomp.ncomp.sirius.manager.server.SouthBoundApiWithProxy; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.util.Switch; + +/** + * <!-- begin-user-doc --> + * The <b>Switch</b> for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} + * to invoke the <code>caseXXX</code> method for each class of the model, + * starting with the actual class of the object + * and proceeding up the inheritance hierarchy + * until a non-null result is returned, + * which is the result of the switch. + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.agent.monitoring.MonitoringPackage + * @generated + */ +public class MonitoringSwitch<T> extends Switch<T> { + /** + * The cached model package + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static MonitoringPackage modelPackage; + + /** + * Creates an instance of the switch. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public MonitoringSwitch() { + if (modelPackage == null) { + modelPackage = MonitoringPackage.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 MonitoringPackage.SIRIUS_MANAGER_AGENT_SERVER: { + SiriusManagerAgentServer siriusManagerAgentServer = (SiriusManagerAgentServer)theEObject; + T result = caseSiriusManagerAgentServer(siriusManagerAgentServer); + if (result == null) result = caseAbstractManagementServer(siriusManagerAgentServer); + if (result == null) result = caseSouthBoundApiWithProxy(siriusManagerAgentServer); + if (result == null) result = caseSouthBoundApi(siriusManagerAgentServer); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Sirius Manager Agent Server</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Sirius Manager Agent Server</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSiriusManagerAgentServer(SiriusManagerAgentServer object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>South Bound Api</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>South Bound Api</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSouthBoundApi(SouthBoundApi object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>South Bound Api With Proxy</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>South Bound Api With Proxy</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSouthBoundApiWithProxy(SouthBoundApiWithProxy object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Abstract Management Server</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Abstract Management Server</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAbstractManagementServer(AbstractManagementServer object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>EObject</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) + * @generated + */ + @Override + public T defaultCase(EObject object) { + return null; + } + +} //MonitoringSwitch diff --git a/ncomp-sirius-manager-agent-model/src/main/xcore/collectd.xcore b/ncomp-sirius-manager-agent-model/src/main/xcore/collectd.xcore new file mode 100644 index 0000000..ae45679 --- /dev/null +++ b/ncomp-sirius-manager-agent-model/src/main/xcore/collectd.xcore @@ -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============================================ + */ + +@GenModel(modelDirectory="/ncomp-sirius-manager-agent-model/src/main/xcore-gen") +package org.openecomp.ncomp.sirius.manager.agent.collectd + +import org.openecomp.ncomp.core.NamedEntity +import org.openecomp.ncomp.core.alerts.AlertContainer +import org.openecomp.ncomp.core.DoubleMetricAttribute +import org.openecomp.ncomp.core.IncreasingULongMetricAttribute + +annotation 'http://openecomp.org/sirius/doc' as doc + +class CollectdServer extends NamedEntity, AlertContainer { + transient DoubleMetricAttribute load_shortterm + transient DoubleMetricAttribute load_midterm + transient DoubleMetricAttribute load_longterm + transient DoubleMetricAttribute entropy + transient IncreasingULongMetricAttribute contextswitches + contains CollectdCpu[] cpus + contains CollectdMemory memory + contains CollectdSwap swap + contains CollectdProcesses processes + contains CollectdVmem vmem + contains CollectdFileSystem[] filesystems + contains CollectdDisk[] disks + contains CollectdInterface[] interfaces + contains CollectdKvmInstance[] instances +} + +class CollectdMemory { + transient DoubleMetricAttribute buffered + transient DoubleMetricAttribute cached + transient DoubleMetricAttribute free + transient DoubleMetricAttribute used +} + +class CollectdSwap { + transient DoubleMetricAttribute cached + transient DoubleMetricAttribute free + transient DoubleMetricAttribute used +} + + +class CollectdProcesses { + transient IncreasingULongMetricAttribute fork_rate + transient DoubleMetricAttribute blocked + transient DoubleMetricAttribute paging + transient DoubleMetricAttribute running + transient DoubleMetricAttribute sleeping + transient DoubleMetricAttribute stopped + transient DoubleMetricAttribute zombies +} + +class CollectdVmem { + transient DoubleMetricAttribute active_anon + transient DoubleMetricAttribute active_file + transient DoubleMetricAttribute anon_pages + transient DoubleMetricAttribute anon_transparent_hugepages + transient DoubleMetricAttribute bounce + transient DoubleMetricAttribute dirtied + transient DoubleMetricAttribute dirty + transient DoubleMetricAttribute dirty_background_threshold + transient DoubleMetricAttribute dirty_threshold + transient DoubleMetricAttribute file_pages + transient DoubleMetricAttribute free_pages + transient DoubleMetricAttribute inactive_anon + transient DoubleMetricAttribute inactive_file + transient DoubleMetricAttribute isolated_anon + transient DoubleMetricAttribute isolated_file + transient DoubleMetricAttribute kernel_stack + transient DoubleMetricAttribute mapped + transient DoubleMetricAttribute mlock + transient DoubleMetricAttribute page_table_pages + transient DoubleMetricAttribute shmem + transient DoubleMetricAttribute slab_reclaimable + transient DoubleMetricAttribute slab_unreclaimable + transient DoubleMetricAttribute unevictable + transient DoubleMetricAttribute unstable + transient DoubleMetricAttribute vmscan_immediate_reclaim + transient DoubleMetricAttribute vmscan_write + transient DoubleMetricAttribute writeback + transient DoubleMetricAttribute writeback_temp + transient DoubleMetricAttribute written + transient IncreasingULongMetricAttribute memory_in + transient IncreasingULongMetricAttribute memory_out + transient IncreasingULongMetricAttribute swap_in + transient IncreasingULongMetricAttribute swap_out + transient IncreasingULongMetricAttribute faults_minor + transient IncreasingULongMetricAttribute faults_major + +} + +class CollectdCpu extends NamedEntity, AlertContainer { + transient IncreasingULongMetricAttribute idle + transient IncreasingULongMetricAttribute wait + transient IncreasingULongMetricAttribute user + transient IncreasingULongMetricAttribute system +} + +class CollectdDisk extends NamedEntity, AlertContainer { + transient IncreasingULongMetricAttribute disk_merged_read + transient IncreasingULongMetricAttribute disk_merged_write + @doc(unit="byte") + transient IncreasingULongMetricAttribute disk_octets_read + transient IncreasingULongMetricAttribute disk_octets_write + transient IncreasingULongMetricAttribute disk_ops_read + transient IncreasingULongMetricAttribute disk_ops_write + transient IncreasingULongMetricAttribute disk_time_read + transient IncreasingULongMetricAttribute disk_time_write +} + +class CollectdFileSystem extends NamedEntity, AlertContainer { + transient DoubleMetricAttribute used + transient DoubleMetricAttribute free +} + +class CollectdInterface extends NamedEntity, AlertContainer { + transient IncreasingULongMetricAttribute if_errors_rx + transient IncreasingULongMetricAttribute if_errors_tx + transient IncreasingULongMetricAttribute if_octets_rx + transient IncreasingULongMetricAttribute if_octets_tx + transient IncreasingULongMetricAttribute if_packets_rx + transient IncreasingULongMetricAttribute if_packets_tx +} + +class CollectdKvmInstance extends NamedEntity, AlertContainer { + transient IncreasingULongMetricAttribute virt_cpu_total + contains CollectdKvmDisk[] disks + contains CollectdKvmInterface[] interfaces + +} + +class CollectdKvmDisk extends NamedEntity, AlertContainer { + transient IncreasingULongMetricAttribute disk_octets_read + transient IncreasingULongMetricAttribute disk_octets_write + transient IncreasingULongMetricAttribute disk_ops_read + transient IncreasingULongMetricAttribute disk_ops_write +} + +class CollectdKvmInterface extends NamedEntity, AlertContainer { + transient IncreasingULongMetricAttribute if_errors_rx + transient IncreasingULongMetricAttribute if_errors_tx + transient IncreasingULongMetricAttribute if_dropped_rx + transient IncreasingULongMetricAttribute if_dropped_tx + transient IncreasingULongMetricAttribute if_octets_rx + transient IncreasingULongMetricAttribute if_octets_tx + transient IncreasingULongMetricAttribute if_packets_rx + transient IncreasingULongMetricAttribute if_packets_tx +} + diff --git a/ncomp-sirius-manager-agent-model/src/main/xcore/server.xcore b/ncomp-sirius-manager-agent-model/src/main/xcore/server.xcore new file mode 100644 index 0000000..01714ea --- /dev/null +++ b/ncomp-sirius-manager-agent-model/src/main/xcore/server.xcore @@ -0,0 +1,32 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +@GenModel(modelDirectory="/ncomp-sirius-manager-agent-model/src/main/xcore-gen")
+
+
+package org.openecomp.ncomp.sirius.manager.agent.monitoring
+
+import org.openecomp.ncomp.sirius.manager.server.SouthBoundApiWithProxy
+import org.openecomp.ncomp.sirius.manager.server.AbstractManagementServer
+
+class SiriusManagerAgentServer extends SouthBoundApiWithProxy, AbstractManagementServer {
+}
+
|