From 0e073e02693e44b8b7d5c9eac86cc324d38aaee9 Mon Sep 17 00:00:00 2001 From: lj1412 Date: Tue, 14 Feb 2017 15:12:00 +0000 Subject: Init dcae.controller.analytics Change-Id: Ib3a282f2c3ec248665f1fd042570578c61344f2e Signed-off-by: lj1412 --- .gitreview | 4 + LICENSE.txt | 22 + README.md | 10 + dcae-analytics-cdap-common-model/.classpath | 33 + dcae-analytics-cdap-common-model/.gitignore | 1 + dcae-analytics-cdap-common-model/.project | 40 + .../.settings/org.eclipse.core.resources.prefs | 5 + .../.settings/org.eclipse.jdt.core.prefs | 5 + .../.settings/org.eclipse.m2e.core.prefs | 4 + dcae-analytics-cdap-common-model/LICENSE.txt | 22 + .../META-INF/MANIFEST.MF | 27 + dcae-analytics-cdap-common-model/build.properties | 10 + dcae-analytics-cdap-common-model/common.xmi | 304 +++++ dcae-analytics-cdap-common-model/core.xmi | 50 + dcae-analytics-cdap-common-model/plugin.properties | 4 + dcae-analytics-cdap-common-model/plugin.xml | 17 + dcae-analytics-cdap-common-model/pom.xml | 18 + dcae-analytics-cdap-common-model/service.xmi | 184 +++ .../analytics/cdap/common/tools/CreateXmi.java | 38 + .../dcae/analytics/cdap/common/CommonFactory.java | 81 ++ .../dcae/analytics/cdap/common/CommonPackage.java | 1287 ++++++++++++++++++ .../analytics/cdap/common/TcaConfiguration.java | 730 ++++++++++ .../dcae/analytics/cdap/common/TcaMetrics.java | 95 ++ .../dcae/analytics/cdap/common/TcaThreshold.java | 218 +++ .../cdap/common/impl/CommonFactoryImpl.java | 138 ++ .../cdap/common/impl/CommonPackageImpl.java | 1040 ++++++++++++++ .../cdap/common/impl/TcaConfigurationImpl.java | 1432 ++++++++++++++++++++ .../analytics/cdap/common/impl/TcaMetricsImpl.java | 661 +++++++++ .../cdap/common/impl/TcaThresholdImpl.java | 451 ++++++ .../cdap/common/util/CommonAdapterFactory.java | 231 ++++ .../analytics/cdap/common/util/CommonSwitch.java | 223 +++ .../src/main/xcore/common.xcore | 168 +++ 32 files changed, 7553 insertions(+) create mode 100644 .gitreview create mode 100644 LICENSE.txt create mode 100644 README.md create mode 100644 dcae-analytics-cdap-common-model/.classpath create mode 100644 dcae-analytics-cdap-common-model/.gitignore create mode 100644 dcae-analytics-cdap-common-model/.project create mode 100644 dcae-analytics-cdap-common-model/.settings/org.eclipse.core.resources.prefs create mode 100644 dcae-analytics-cdap-common-model/.settings/org.eclipse.jdt.core.prefs create mode 100644 dcae-analytics-cdap-common-model/.settings/org.eclipse.m2e.core.prefs create mode 100644 dcae-analytics-cdap-common-model/LICENSE.txt create mode 100644 dcae-analytics-cdap-common-model/META-INF/MANIFEST.MF create mode 100644 dcae-analytics-cdap-common-model/build.properties create mode 100644 dcae-analytics-cdap-common-model/common.xmi create mode 100644 dcae-analytics-cdap-common-model/core.xmi create mode 100644 dcae-analytics-cdap-common-model/plugin.properties create mode 100644 dcae-analytics-cdap-common-model/plugin.xml create mode 100644 dcae-analytics-cdap-common-model/pom.xml create mode 100644 dcae-analytics-cdap-common-model/service.xmi create mode 100644 dcae-analytics-cdap-common-model/src/main/java/org/openecomp/dcae/analytics/cdap/common/tools/CreateXmi.java create mode 100644 dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/CommonFactory.java create mode 100644 dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/CommonPackage.java create mode 100644 dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/TcaConfiguration.java create mode 100644 dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/TcaMetrics.java create mode 100644 dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/TcaThreshold.java create mode 100644 dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/impl/CommonFactoryImpl.java create mode 100644 dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/impl/CommonPackageImpl.java create mode 100644 dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/impl/TcaConfigurationImpl.java create mode 100644 dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/impl/TcaMetricsImpl.java create mode 100644 dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/impl/TcaThresholdImpl.java create mode 100644 dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/util/CommonAdapterFactory.java create mode 100644 dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/util/CommonSwitch.java create mode 100644 dcae-analytics-cdap-common-model/src/main/xcore/common.xcore diff --git a/.gitreview b/.gitreview new file mode 100644 index 0000000..99269f0 --- /dev/null +++ b/.gitreview @@ -0,0 +1,4 @@ +[gerrit] +host=gerrit.openecomp.org +port=29418 +project=dcae/controller/analytics.git diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..30471b5 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,22 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +ECOMP and OpenECOMP are trademarks and service marks of AT&T Intellectual Property. diff --git a/README.md b/README.md new file mode 100644 index 0000000..9e9fd2c --- /dev/null +++ b/README.md @@ -0,0 +1,10 @@ + + +Contains one artifact that contains the EMF model for the TCA CDAP micro services. + + +# Build instructions + +1. Clone the repository +2. Build using Maven: mvn clean install + diff --git a/dcae-analytics-cdap-common-model/.classpath b/dcae-analytics-cdap-common-model/.classpath new file mode 100644 index 0000000..6f5cd4e --- /dev/null +++ b/dcae-analytics-cdap-common-model/.classpath @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dcae-analytics-cdap-common-model/.gitignore b/dcae-analytics-cdap-common-model/.gitignore new file mode 100644 index 0000000..b83d222 --- /dev/null +++ b/dcae-analytics-cdap-common-model/.gitignore @@ -0,0 +1 @@ +/target/ diff --git a/dcae-analytics-cdap-common-model/.project b/dcae-analytics-cdap-common-model/.project new file mode 100644 index 0000000..962d121 --- /dev/null +++ b/dcae-analytics-cdap-common-model/.project @@ -0,0 +1,40 @@ + + + dcae-analytics-cdap-common-model + + + + + + org.eclipse.xtext.ui.shared.xtextBuilder + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.eclipse.jdt.core.javanature + org.eclipse.m2e.core.maven2Nature + org.eclipse.xtext.ui.shared.xtextNature + org.eclipse.pde.PluginNature + + diff --git a/dcae-analytics-cdap-common-model/.settings/org.eclipse.core.resources.prefs b/dcae-analytics-cdap-common-model/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..1f99b20 --- /dev/null +++ b/dcae-analytics-cdap-common-model/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,5 @@ +eclipse.preferences.version=1 +encoding//src/main/xcore=UTF-8 +encoding//src/main/xcore-gen=UTF-8 +encoding//src/test/java=UTF-8 +encoding/=UTF-8 diff --git a/dcae-analytics-cdap-common-model/.settings/org.eclipse.jdt.core.prefs b/dcae-analytics-cdap-common-model/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..ec4300d --- /dev/null +++ b/dcae-analytics-cdap-common-model/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,5 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 +org.eclipse.jdt.core.compiler.compliance=1.7 +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.source=1.7 diff --git a/dcae-analytics-cdap-common-model/.settings/org.eclipse.m2e.core.prefs b/dcae-analytics-cdap-common-model/.settings/org.eclipse.m2e.core.prefs new file mode 100644 index 0000000..f897a7f --- /dev/null +++ b/dcae-analytics-cdap-common-model/.settings/org.eclipse.m2e.core.prefs @@ -0,0 +1,4 @@ +activeProfiles= +eclipse.preferences.version=1 +resolveWorkspaceProjects=true +version=1 diff --git a/dcae-analytics-cdap-common-model/LICENSE.txt b/dcae-analytics-cdap-common-model/LICENSE.txt new file mode 100644 index 0000000..30471b5 --- /dev/null +++ b/dcae-analytics-cdap-common-model/LICENSE.txt @@ -0,0 +1,22 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +ECOMP and OpenECOMP are trademarks and service marks of AT&T Intellectual Property. diff --git a/dcae-analytics-cdap-common-model/META-INF/MANIFEST.MF b/dcae-analytics-cdap-common-model/META-INF/MANIFEST.MF new file mode 100644 index 0000000..d988bbd --- /dev/null +++ b/dcae-analytics-cdap-common-model/META-INF/MANIFEST.MF @@ -0,0 +1,27 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %pluginName +Bundle-SymbolicName: dcae-analytics-cdap-common-model;singleton:=true +Bundle-Version: 1.0.0.qualifier +Bundle-ClassPath: . +Bundle-Vendor: %providerName +Bundle-Localization: plugin +Bundle-RequiredExecutionEnvironment: J2SE-1.5 +Export-Package: org.openecomp.dcae.analytics.cdap.common, + org.openecomp.dcae.analytics.cdap.common.impl, + org.openecomp.dcae.analytics.cdap.common.util +Require-Bundle: org.eclipse.emf.ecore.xcore;bundle-version="1.2.2", + org.eclipse.core.runtime, + org.eclipse.emf.ecore;visibility:=reexport, + org.eclipse.xtext.xbase.lib, + org.eclipse.emf.ecore.xcore.lib, + ncomp-openstack-model;visibility:=reexport, + dcae-controller-core-model;visibility:=reexport, + ncomp-core-model;visibility:=reexport, + ncomp-sirius-manager-agent-model;visibility:=reexport, + ncomp-cdap-model;visibility:=reexport, + dcae-controller-service-cdap-cluster-model;visibility:=reexport, + dcae-controller-service-vm-model;visibility:=reexport, + dcae-controller-service-cdap-model;bundle-version="0.1.0";visibility:=reexport, + ncomp-sirius-manager-model;visibility:=reexport +Bundle-ActivationPolicy: lazy diff --git a/dcae-analytics-cdap-common-model/build.properties b/dcae-analytics-cdap-common-model/build.properties new file mode 100644 index 0000000..23f0fe2 --- /dev/null +++ b/dcae-analytics-cdap-common-model/build.properties @@ -0,0 +1,10 @@ +# + +bin.includes = .,\ + model/,\ + META-INF/,\ + plugin.xml,\ + plugin.properties +jars.compile.order = . +source.. = src/main/xcore-gen/ +output.. = bin/ diff --git a/dcae-analytics-cdap-common-model/common.xmi b/dcae-analytics-cdap-common-model/common.xmi new file mode 100644 index 0000000..90c0a6c --- /dev/null +++ b/dcae-analytics-cdap-common-model/common.xmi @@ -0,0 +1,304 @@ + + + +
+
+
+ + + + + +
+ + +
+ + + + + +
+ + +
+ + + + + +
+ + +
+ + + + + +
+ + +
+ + + + + +
+ + +
+ + + + + +
+ + +
+ + + + + +
+ + +
+ + + + + +
+ + +
+ + + + + +
+ + +
+ + + + + +
+ + +
+ + + + + +
+ + +
+ + + + + +
+ + +
+ + + + + +
+ + +
+ + + + + +
+ + +
+ + + + + +
+ + +
+ + + + + +
+ + +
+ + + + + +
+ + +
+ + + + + +
+ + +
+ + + + + +
+ + +
+ + + + + +
+ + +
+ + + + + +
+ + +
+ + + + + +
+ + +
+ + + + + +
+ + +
+ + + + + + + +
+ + +
+
+ + + + + +
+ + +
+ + + + + +
+ + + + + +
+ + + + +
+ + +
+ + + + + +
+ + +
+ + + + + +
+ + +
+ + + + + +
+ + +
+ + + + + +
+ + +
+ + + + + +
+ + +
+ + + + + diff --git a/dcae-analytics-cdap-common-model/core.xmi b/dcae-analytics-cdap-common-model/core.xmi new file mode 100644 index 0000000..15e129f --- /dev/null +++ b/dcae-analytics-cdap-common-model/core.xmi @@ -0,0 +1,50 @@ + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dcae-analytics-cdap-common-model/plugin.properties b/dcae-analytics-cdap-common-model/plugin.properties new file mode 100644 index 0000000..3c77e0d --- /dev/null +++ b/dcae-analytics-cdap-common-model/plugin.properties @@ -0,0 +1,4 @@ +# + +pluginName = Common Model +providerName = www.example.org diff --git a/dcae-analytics-cdap-common-model/plugin.xml b/dcae-analytics-cdap-common-model/plugin.xml new file mode 100644 index 0000000..44b2761 --- /dev/null +++ b/dcae-analytics-cdap-common-model/plugin.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + diff --git a/dcae-analytics-cdap-common-model/pom.xml b/dcae-analytics-cdap-common-model/pom.xml new file mode 100644 index 0000000..1476d9f --- /dev/null +++ b/dcae-analytics-cdap-common-model/pom.xml @@ -0,0 +1,18 @@ + + 4.0.0 + org.openecomp.dcae.controller.analytics + dcae-analytics-cdap-common-model + + org.openecomp.ncomp.maven + ncomp-maven-xcore + 0.1.0-SNAPSHOT + ../../dcae-org.openecomp.ncomp.maven/ncomp-maven-xcore + + + + org.openecomp.dcae.controller + dcae-controller-service-cdap-model + ${project.version} + + + diff --git a/dcae-analytics-cdap-common-model/service.xmi b/dcae-analytics-cdap-common-model/service.xmi new file mode 100644 index 0000000..00d90da --- /dev/null +++ b/dcae-analytics-cdap-common-model/service.xmi @@ -0,0 +1,184 @@ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+ + + + + +
+ + + + + +
+ + + + + +
+ + + + + +
+ + + + + +
+ + + + + + + + + + diff --git a/dcae-analytics-cdap-common-model/src/main/java/org/openecomp/dcae/analytics/cdap/common/tools/CreateXmi.java b/dcae-analytics-cdap-common-model/src/main/java/org/openecomp/dcae/analytics/cdap/common/tools/CreateXmi.java new file mode 100644 index 0000000..d33f21a --- /dev/null +++ b/dcae-analytics-cdap-common-model/src/main/java/org/openecomp/dcae/analytics/cdap/common/tools/CreateXmi.java @@ -0,0 +1,38 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +package org.openecomp.dcae.analytics.cdap.common.tools; + +import java.io.IOException; + +import org.eclipse.emf.ecore.EPackage; + +import org.openecomp.ncomp.utils.emf.Ecore2Xmi; + +public class CreateXmi { + org.openecomp.dcae.controller.core.service.ServicePackage p2; + org.openecomp.dcae.analytics.cdap.common.CommonPackage p1; + + public static void main(String[] args) throws ClassNotFoundException, IllegalArgumentException, IllegalAccessException, NoSuchFieldException, SecurityException, IOException { + Ecore2Xmi.main(args); + } + +} diff --git a/dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/CommonFactory.java b/dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/CommonFactory.java new file mode 100644 index 0000000..ca880db --- /dev/null +++ b/dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/CommonFactory.java @@ -0,0 +1,81 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.dcae.analytics.cdap.common; + +import org.eclipse.emf.ecore.EFactory; + +/** + * + * The Factory for the model. + * It provides a create method for each non-abstract class of the model. + * + * @see org.openecomp.dcae.analytics.cdap.common.CommonPackage + * @generated + */ +public interface CommonFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + CommonFactory eINSTANCE = org.openecomp.dcae.analytics.cdap.common.impl.CommonFactoryImpl.init(); + + /** + * Returns a new object of class 'Tca Configuration'. + * + * + * @return a new object of class 'Tca Configuration'. + * @generated + */ + TcaConfiguration createTcaConfiguration(); + + /** + * Returns a new object of class 'Tca Metrics'. + * + * + * @return a new object of class 'Tca Metrics'. + * @generated + */ + TcaMetrics createTcaMetrics(); + + /** + * Returns a new object of class 'Tca Threshold'. + * + * + * @return a new object of class 'Tca Threshold'. + * @generated + */ + TcaThreshold createTcaThreshold(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + CommonPackage getCommonPackage(); + +} //CommonFactory diff --git a/dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/CommonPackage.java b/dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/CommonPackage.java new file mode 100644 index 0000000..334bb03 --- /dev/null +++ b/dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/CommonPackage.java @@ -0,0 +1,1287 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.dcae.analytics.cdap.common; + +import org.openecomp.dcae.controller.service.cdap.CdapPackage; + +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; + +/** + * + * The Package for the model. + * It contains accessors for the meta objects to represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each operation of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @see org.openecomp.dcae.analytics.cdap.common.CommonFactory + * @model kind="package" + * annotation="http://www.eclipse.org/emf/2002/GenModel modelDirectory='/dcae-analytics-cdap-common-model/src/main/xcore-gen' basePackage='org.openecomp.dcae.analytics.cdap'" + * annotation="http://www.eclipse.org/emf/2011/Xcore cdap='http://openecomp.org/cdap' ecomp='http://openecomp.org' policy='http://openecomp.org/policy'" + * @generated + */ +public interface CommonPackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "common"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "org.openecomp.dcae.analytics.cdap.common"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "common"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + CommonPackage eINSTANCE = org.openecomp.dcae.analytics.cdap.common.impl.CommonPackageImpl.init(); + + /** + * The meta object id for the '{@link org.openecomp.dcae.analytics.cdap.common.impl.TcaConfigurationImpl Tca Configuration}' class. + * + * + * @see org.openecomp.dcae.analytics.cdap.common.impl.TcaConfigurationImpl + * @see org.openecomp.dcae.analytics.cdap.common.impl.CommonPackageImpl#getTcaConfiguration() + * @generated + */ + int TCA_CONFIGURATION = 0; + + /** + * The feature id for the 'Domain' attribute. + * + * + * @generated + * @ordered + */ + int TCA_CONFIGURATION__DOMAIN = CdapPackage.CDAP_SERVICE_INSTANCE_CONFIGURATION_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Subscriber Host Name' attribute. + * + * + * @generated + * @ordered + */ + int TCA_CONFIGURATION__SUBSCRIBER_HOST_NAME = CdapPackage.CDAP_SERVICE_INSTANCE_CONFIGURATION_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Subscriber Host Port' attribute. + * + * + * @generated + * @ordered + */ + int TCA_CONFIGURATION__SUBSCRIBER_HOST_PORT = CdapPackage.CDAP_SERVICE_INSTANCE_CONFIGURATION_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Subscriber Topic Name' attribute. + * + * + * @generated + * @ordered + */ + int TCA_CONFIGURATION__SUBSCRIBER_TOPIC_NAME = CdapPackage.CDAP_SERVICE_INSTANCE_CONFIGURATION_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Subscriber Protocol' attribute. + * + * + * @generated + * @ordered + */ + int TCA_CONFIGURATION__SUBSCRIBER_PROTOCOL = CdapPackage.CDAP_SERVICE_INSTANCE_CONFIGURATION_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Subscriber User Name' attribute. + * + * + * @generated + * @ordered + */ + int TCA_CONFIGURATION__SUBSCRIBER_USER_NAME = CdapPackage.CDAP_SERVICE_INSTANCE_CONFIGURATION_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Subscriber User Password' attribute. + * + * + * @generated + * @ordered + */ + int TCA_CONFIGURATION__SUBSCRIBER_USER_PASSWORD = CdapPackage.CDAP_SERVICE_INSTANCE_CONFIGURATION_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Subscriber Content Type' attribute. + * + * + * @generated + * @ordered + */ + int TCA_CONFIGURATION__SUBSCRIBER_CONTENT_TYPE = CdapPackage.CDAP_SERVICE_INSTANCE_CONFIGURATION_FEATURE_COUNT + 7; + + /** + * The feature id for the 'Subscriber Consumer Id' attribute. + * + * + * @generated + * @ordered + */ + int TCA_CONFIGURATION__SUBSCRIBER_CONSUMER_ID = CdapPackage.CDAP_SERVICE_INSTANCE_CONFIGURATION_FEATURE_COUNT + 8; + + /** + * The feature id for the 'Subscriber Consumer Group' attribute. + * + * + * @generated + * @ordered + */ + int TCA_CONFIGURATION__SUBSCRIBER_CONSUMER_GROUP = CdapPackage.CDAP_SERVICE_INSTANCE_CONFIGURATION_FEATURE_COUNT + 9; + + /** + * The feature id for the 'Subscriber Timeout MS' attribute. + * + * + * @generated + * @ordered + */ + int TCA_CONFIGURATION__SUBSCRIBER_TIMEOUT_MS = CdapPackage.CDAP_SERVICE_INSTANCE_CONFIGURATION_FEATURE_COUNT + 10; + + /** + * The feature id for the 'Subscriber Message Limit' attribute. + * + * + * @generated + * @ordered + */ + int TCA_CONFIGURATION__SUBSCRIBER_MESSAGE_LIMIT = CdapPackage.CDAP_SERVICE_INSTANCE_CONFIGURATION_FEATURE_COUNT + 11; + + /** + * The feature id for the 'Subscriber Polling Interval' attribute. + * + * + * @generated + * @ordered + */ + int TCA_CONFIGURATION__SUBSCRIBER_POLLING_INTERVAL = CdapPackage.CDAP_SERVICE_INSTANCE_CONFIGURATION_FEATURE_COUNT + 12; + + /** + * The feature id for the 'Publisher Host Name' attribute. + * + * + * @generated + * @ordered + */ + int TCA_CONFIGURATION__PUBLISHER_HOST_NAME = CdapPackage.CDAP_SERVICE_INSTANCE_CONFIGURATION_FEATURE_COUNT + 13; + + /** + * The feature id for the 'Publisher Host Port' attribute. + * + * + * @generated + * @ordered + */ + int TCA_CONFIGURATION__PUBLISHER_HOST_PORT = CdapPackage.CDAP_SERVICE_INSTANCE_CONFIGURATION_FEATURE_COUNT + 14; + + /** + * The feature id for the 'Publisher Topic Name' attribute. + * + * + * @generated + * @ordered + */ + int TCA_CONFIGURATION__PUBLISHER_TOPIC_NAME = CdapPackage.CDAP_SERVICE_INSTANCE_CONFIGURATION_FEATURE_COUNT + 15; + + /** + * The feature id for the 'Publisher Protocol' attribute. + * + * + * @generated + * @ordered + */ + int TCA_CONFIGURATION__PUBLISHER_PROTOCOL = CdapPackage.CDAP_SERVICE_INSTANCE_CONFIGURATION_FEATURE_COUNT + 16; + + /** + * The feature id for the 'Publisher User Name' attribute. + * + * + * @generated + * @ordered + */ + int TCA_CONFIGURATION__PUBLISHER_USER_NAME = CdapPackage.CDAP_SERVICE_INSTANCE_CONFIGURATION_FEATURE_COUNT + 17; + + /** + * The feature id for the 'Publisher User Password' attribute. + * + * + * @generated + * @ordered + */ + int TCA_CONFIGURATION__PUBLISHER_USER_PASSWORD = CdapPackage.CDAP_SERVICE_INSTANCE_CONFIGURATION_FEATURE_COUNT + 18; + + /** + * The feature id for the 'Publisher Content Type' attribute. + * + * + * @generated + * @ordered + */ + int TCA_CONFIGURATION__PUBLISHER_CONTENT_TYPE = CdapPackage.CDAP_SERVICE_INSTANCE_CONFIGURATION_FEATURE_COUNT + 19; + + /** + * The feature id for the 'Publisher Max Batch Size' attribute. + * + * + * @generated + * @ordered + */ + int TCA_CONFIGURATION__PUBLISHER_MAX_BATCH_SIZE = CdapPackage.CDAP_SERVICE_INSTANCE_CONFIGURATION_FEATURE_COUNT + 20; + + /** + * The feature id for the 'Publisher Max Recovery Queue Size' attribute. + * + * + * @generated + * @ordered + */ + int TCA_CONFIGURATION__PUBLISHER_MAX_RECOVERY_QUEUE_SIZE = CdapPackage.CDAP_SERVICE_INSTANCE_CONFIGURATION_FEATURE_COUNT + 21; + + /** + * The feature id for the 'Publisher Polling Interval' attribute. + * + * + * @generated + * @ordered + */ + int TCA_CONFIGURATION__PUBLISHER_POLLING_INTERVAL = CdapPackage.CDAP_SERVICE_INSTANCE_CONFIGURATION_FEATURE_COUNT + 22; + + /** + * The feature id for the 'Metrics Per Functional Role' containment reference list. + * + * + * @generated + * @ordered + */ + int TCA_CONFIGURATION__METRICS_PER_FUNCTIONAL_ROLE = CdapPackage.CDAP_SERVICE_INSTANCE_CONFIGURATION_FEATURE_COUNT + 23; + + /** + * The number of structural features of the 'Tca Configuration' class. + * + * + * @generated + * @ordered + */ + int TCA_CONFIGURATION_FEATURE_COUNT = CdapPackage.CDAP_SERVICE_INSTANCE_CONFIGURATION_FEATURE_COUNT + 24; + + /** + * The number of operations of the 'Tca Configuration' class. + * + * + * @generated + * @ordered + */ + int TCA_CONFIGURATION_OPERATION_COUNT = CdapPackage.CDAP_SERVICE_INSTANCE_CONFIGURATION_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.dcae.analytics.cdap.common.impl.TcaMetricsImpl Tca Metrics}' class. + * + * + * @see org.openecomp.dcae.analytics.cdap.common.impl.TcaMetricsImpl + * @see org.openecomp.dcae.analytics.cdap.common.impl.CommonPackageImpl#getTcaMetrics() + * @generated + */ + int TCA_METRICS = 1; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int TCA_METRICS__NAME = CorePackage.NAMED_ENTITY__NAME; + + /** + * The feature id for the 'Last Polled' attribute. + * + * + * @generated + * @ordered + */ + int TCA_METRICS__LAST_POLLED = CorePackage.NAMED_ENTITY__LAST_POLLED; + + /** + * The feature id for the 'Last Changed' attribute. + * + * + * @generated + * @ordered + */ + int TCA_METRICS__LAST_CHANGED = CorePackage.NAMED_ENTITY__LAST_CHANGED; + + /** + * The feature id for the 'Created' attribute. + * + * + * @generated + * @ordered + */ + int TCA_METRICS__CREATED = CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the 'Policy Name' attribute. + * + * + * @generated + * @ordered + */ + int TCA_METRICS__POLICY_NAME = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Policy Description' attribute. + * + * + * @generated + * @ordered + */ + int TCA_METRICS__POLICY_DESCRIPTION = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Policy Config Name' attribute. + * + * + * @generated + * @ordered + */ + int TCA_METRICS__POLICY_CONFIG_NAME = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Policy Template Version' attribute. + * + * + * @generated + * @ordered + */ + int TCA_METRICS__POLICY_TEMPLATE_VERSION = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Policy Version' attribute. + * + * + * @generated + * @ordered + */ + int TCA_METRICS__POLICY_VERSION = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Policy Priority' attribute. + * + * + * @generated + * @ordered + */ + int TCA_METRICS__POLICY_PRIORITY = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Policy Scope' attribute. + * + * + * @generated + * @ordered + */ + int TCA_METRICS__POLICY_SCOPE = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Functional Role' attribute. + * + * + * @generated + * @ordered + */ + int TCA_METRICS__FUNCTIONAL_ROLE = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 7; + + /** + * The feature id for the 'Thresholds' containment reference list. + * + * + * @generated + * @ordered + */ + int TCA_METRICS__THRESHOLDS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 8; + + /** + * The number of structural features of the 'Tca Metrics' class. + * + * + * @generated + * @ordered + */ + int TCA_METRICS_FEATURE_COUNT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 9; + + /** + * The number of operations of the 'Tca Metrics' class. + * + * + * @generated + * @ordered + */ + int TCA_METRICS_OPERATION_COUNT = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.dcae.analytics.cdap.common.impl.TcaThresholdImpl Tca Threshold}' class. + * + * + * @see org.openecomp.dcae.analytics.cdap.common.impl.TcaThresholdImpl + * @see org.openecomp.dcae.analytics.cdap.common.impl.CommonPackageImpl#getTcaThreshold() + * @generated + */ + int TCA_THRESHOLD = 2; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int TCA_THRESHOLD__NAME = CorePackage.NAMED_ENTITY__NAME; + + /** + * The feature id for the 'Last Polled' attribute. + * + * + * @generated + * @ordered + */ + int TCA_THRESHOLD__LAST_POLLED = CorePackage.NAMED_ENTITY__LAST_POLLED; + + /** + * The feature id for the 'Last Changed' attribute. + * + * + * @generated + * @ordered + */ + int TCA_THRESHOLD__LAST_CHANGED = CorePackage.NAMED_ENTITY__LAST_CHANGED; + + /** + * The feature id for the 'Created' attribute. + * + * + * @generated + * @ordered + */ + int TCA_THRESHOLD__CREATED = CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the 'Closed Loop Control Name' attribute. + * + * + * @generated + * @ordered + */ + int TCA_THRESHOLD__CLOSED_LOOP_CONTROL_NAME = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Version' attribute. + * + * + * @generated + * @ordered + */ + int TCA_THRESHOLD__VERSION = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Field Path' attribute. + * + * + * @generated + * @ordered + */ + int TCA_THRESHOLD__FIELD_PATH = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Threshold Value' attribute. + * + * + * @generated + * @ordered + */ + int TCA_THRESHOLD__THRESHOLD_VALUE = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Direction' attribute. + * + * + * @generated + * @ordered + */ + int TCA_THRESHOLD__DIRECTION = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Severity' attribute. + * + * + * @generated + * @ordered + */ + int TCA_THRESHOLD__SEVERITY = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 5; + + /** + * The number of structural features of the 'Tca Threshold' class. + * + * + * @generated + * @ordered + */ + int TCA_THRESHOLD_FEATURE_COUNT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 6; + + /** + * The number of operations of the 'Tca Threshold' class. + * + * + * @generated + * @ordered + */ + int TCA_THRESHOLD_OPERATION_COUNT = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 0; + + + /** + * Returns the meta object for class '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration Tca Configuration}'. + * + * + * @return the meta object for class 'Tca Configuration'. + * @see org.openecomp.dcae.analytics.cdap.common.TcaConfiguration + * @generated + */ + EClass getTcaConfiguration(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getDomain Domain}'. + * + * + * @return the meta object for the attribute 'Domain'. + * @see org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getDomain() + * @see #getTcaConfiguration() + * @generated + */ + EAttribute getTcaConfiguration_Domain(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberHostName Subscriber Host Name}'. + * + * + * @return the meta object for the attribute 'Subscriber Host Name'. + * @see org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberHostName() + * @see #getTcaConfiguration() + * @generated + */ + EAttribute getTcaConfiguration_SubscriberHostName(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberHostPort Subscriber Host Port}'. + * + * + * @return the meta object for the attribute 'Subscriber Host Port'. + * @see org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberHostPort() + * @see #getTcaConfiguration() + * @generated + */ + EAttribute getTcaConfiguration_SubscriberHostPort(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberTopicName Subscriber Topic Name}'. + * + * + * @return the meta object for the attribute 'Subscriber Topic Name'. + * @see org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberTopicName() + * @see #getTcaConfiguration() + * @generated + */ + EAttribute getTcaConfiguration_SubscriberTopicName(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberProtocol Subscriber Protocol}'. + * + * + * @return the meta object for the attribute 'Subscriber Protocol'. + * @see org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberProtocol() + * @see #getTcaConfiguration() + * @generated + */ + EAttribute getTcaConfiguration_SubscriberProtocol(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberUserName Subscriber User Name}'. + * + * + * @return the meta object for the attribute 'Subscriber User Name'. + * @see org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberUserName() + * @see #getTcaConfiguration() + * @generated + */ + EAttribute getTcaConfiguration_SubscriberUserName(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberUserPassword Subscriber User Password}'. + * + * + * @return the meta object for the attribute 'Subscriber User Password'. + * @see org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberUserPassword() + * @see #getTcaConfiguration() + * @generated + */ + EAttribute getTcaConfiguration_SubscriberUserPassword(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberContentType Subscriber Content Type}'. + * + * + * @return the meta object for the attribute 'Subscriber Content Type'. + * @see org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberContentType() + * @see #getTcaConfiguration() + * @generated + */ + EAttribute getTcaConfiguration_SubscriberContentType(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberConsumerId Subscriber Consumer Id}'. + * + * + * @return the meta object for the attribute 'Subscriber Consumer Id'. + * @see org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberConsumerId() + * @see #getTcaConfiguration() + * @generated + */ + EAttribute getTcaConfiguration_SubscriberConsumerId(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberConsumerGroup Subscriber Consumer Group}'. + * + * + * @return the meta object for the attribute 'Subscriber Consumer Group'. + * @see org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberConsumerGroup() + * @see #getTcaConfiguration() + * @generated + */ + EAttribute getTcaConfiguration_SubscriberConsumerGroup(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberTimeoutMS Subscriber Timeout MS}'. + * + * + * @return the meta object for the attribute 'Subscriber Timeout MS'. + * @see org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberTimeoutMS() + * @see #getTcaConfiguration() + * @generated + */ + EAttribute getTcaConfiguration_SubscriberTimeoutMS(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberMessageLimit Subscriber Message Limit}'. + * + * + * @return the meta object for the attribute 'Subscriber Message Limit'. + * @see org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberMessageLimit() + * @see #getTcaConfiguration() + * @generated + */ + EAttribute getTcaConfiguration_SubscriberMessageLimit(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberPollingInterval Subscriber Polling Interval}'. + * + * + * @return the meta object for the attribute 'Subscriber Polling Interval'. + * @see org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberPollingInterval() + * @see #getTcaConfiguration() + * @generated + */ + EAttribute getTcaConfiguration_SubscriberPollingInterval(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getPublisherHostName Publisher Host Name}'. + * + * + * @return the meta object for the attribute 'Publisher Host Name'. + * @see org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getPublisherHostName() + * @see #getTcaConfiguration() + * @generated + */ + EAttribute getTcaConfiguration_PublisherHostName(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getPublisherHostPort Publisher Host Port}'. + * + * + * @return the meta object for the attribute 'Publisher Host Port'. + * @see org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getPublisherHostPort() + * @see #getTcaConfiguration() + * @generated + */ + EAttribute getTcaConfiguration_PublisherHostPort(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getPublisherTopicName Publisher Topic Name}'. + * + * + * @return the meta object for the attribute 'Publisher Topic Name'. + * @see org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getPublisherTopicName() + * @see #getTcaConfiguration() + * @generated + */ + EAttribute getTcaConfiguration_PublisherTopicName(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getPublisherProtocol Publisher Protocol}'. + * + * + * @return the meta object for the attribute 'Publisher Protocol'. + * @see org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getPublisherProtocol() + * @see #getTcaConfiguration() + * @generated + */ + EAttribute getTcaConfiguration_PublisherProtocol(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getPublisherUserName Publisher User Name}'. + * + * + * @return the meta object for the attribute 'Publisher User Name'. + * @see org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getPublisherUserName() + * @see #getTcaConfiguration() + * @generated + */ + EAttribute getTcaConfiguration_PublisherUserName(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getPublisherUserPassword Publisher User Password}'. + * + * + * @return the meta object for the attribute 'Publisher User Password'. + * @see org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getPublisherUserPassword() + * @see #getTcaConfiguration() + * @generated + */ + EAttribute getTcaConfiguration_PublisherUserPassword(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getPublisherContentType Publisher Content Type}'. + * + * + * @return the meta object for the attribute 'Publisher Content Type'. + * @see org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getPublisherContentType() + * @see #getTcaConfiguration() + * @generated + */ + EAttribute getTcaConfiguration_PublisherContentType(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getPublisherMaxBatchSize Publisher Max Batch Size}'. + * + * + * @return the meta object for the attribute 'Publisher Max Batch Size'. + * @see org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getPublisherMaxBatchSize() + * @see #getTcaConfiguration() + * @generated + */ + EAttribute getTcaConfiguration_PublisherMaxBatchSize(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getPublisherMaxRecoveryQueueSize Publisher Max Recovery Queue Size}'. + * + * + * @return the meta object for the attribute 'Publisher Max Recovery Queue Size'. + * @see org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getPublisherMaxRecoveryQueueSize() + * @see #getTcaConfiguration() + * @generated + */ + EAttribute getTcaConfiguration_PublisherMaxRecoveryQueueSize(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getPublisherPollingInterval Publisher Polling Interval}'. + * + * + * @return the meta object for the attribute 'Publisher Polling Interval'. + * @see org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getPublisherPollingInterval() + * @see #getTcaConfiguration() + * @generated + */ + EAttribute getTcaConfiguration_PublisherPollingInterval(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getMetricsPerFunctionalRole Metrics Per Functional Role}'. + * + * + * @return the meta object for the containment reference list 'Metrics Per Functional Role'. + * @see org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getMetricsPerFunctionalRole() + * @see #getTcaConfiguration() + * @generated + */ + EReference getTcaConfiguration_MetricsPerFunctionalRole(); + + /** + * Returns the meta object for class '{@link org.openecomp.dcae.analytics.cdap.common.TcaMetrics Tca Metrics}'. + * + * + * @return the meta object for class 'Tca Metrics'. + * @see org.openecomp.dcae.analytics.cdap.common.TcaMetrics + * @generated + */ + EClass getTcaMetrics(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.analytics.cdap.common.TcaMetrics#getFunctionalRole Functional Role}'. + * + * + * @return the meta object for the attribute 'Functional Role'. + * @see org.openecomp.dcae.analytics.cdap.common.TcaMetrics#getFunctionalRole() + * @see #getTcaMetrics() + * @generated + */ + EAttribute getTcaMetrics_FunctionalRole(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.dcae.analytics.cdap.common.TcaMetrics#getThresholds Thresholds}'. + * + * + * @return the meta object for the containment reference list 'Thresholds'. + * @see org.openecomp.dcae.analytics.cdap.common.TcaMetrics#getThresholds() + * @see #getTcaMetrics() + * @generated + */ + EReference getTcaMetrics_Thresholds(); + + /** + * Returns the meta object for class '{@link org.openecomp.dcae.analytics.cdap.common.TcaThreshold Tca Threshold}'. + * + * + * @return the meta object for class 'Tca Threshold'. + * @see org.openecomp.dcae.analytics.cdap.common.TcaThreshold + * @generated + */ + EClass getTcaThreshold(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.analytics.cdap.common.TcaThreshold#getClosedLoopControlName Closed Loop Control Name}'. + * + * + * @return the meta object for the attribute 'Closed Loop Control Name'. + * @see org.openecomp.dcae.analytics.cdap.common.TcaThreshold#getClosedLoopControlName() + * @see #getTcaThreshold() + * @generated + */ + EAttribute getTcaThreshold_ClosedLoopControlName(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.analytics.cdap.common.TcaThreshold#getVersion Version}'. + * + * + * @return the meta object for the attribute 'Version'. + * @see org.openecomp.dcae.analytics.cdap.common.TcaThreshold#getVersion() + * @see #getTcaThreshold() + * @generated + */ + EAttribute getTcaThreshold_Version(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.analytics.cdap.common.TcaThreshold#getFieldPath Field Path}'. + * + * + * @return the meta object for the attribute 'Field Path'. + * @see org.openecomp.dcae.analytics.cdap.common.TcaThreshold#getFieldPath() + * @see #getTcaThreshold() + * @generated + */ + EAttribute getTcaThreshold_FieldPath(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.analytics.cdap.common.TcaThreshold#getThresholdValue Threshold Value}'. + * + * + * @return the meta object for the attribute 'Threshold Value'. + * @see org.openecomp.dcae.analytics.cdap.common.TcaThreshold#getThresholdValue() + * @see #getTcaThreshold() + * @generated + */ + EAttribute getTcaThreshold_ThresholdValue(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.analytics.cdap.common.TcaThreshold#getDirection Direction}'. + * + * + * @return the meta object for the attribute 'Direction'. + * @see org.openecomp.dcae.analytics.cdap.common.TcaThreshold#getDirection() + * @see #getTcaThreshold() + * @generated + */ + EAttribute getTcaThreshold_Direction(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.analytics.cdap.common.TcaThreshold#getSeverity Severity}'. + * + * + * @return the meta object for the attribute 'Severity'. + * @see org.openecomp.dcae.analytics.cdap.common.TcaThreshold#getSeverity() + * @see #getTcaThreshold() + * @generated + */ + EAttribute getTcaThreshold_Severity(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + CommonFactory getCommonFactory(); + + /** + * + * Defines literals for the meta objects that represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each operation of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.openecomp.dcae.analytics.cdap.common.impl.TcaConfigurationImpl Tca Configuration}' class. + * + * + * @see org.openecomp.dcae.analytics.cdap.common.impl.TcaConfigurationImpl + * @see org.openecomp.dcae.analytics.cdap.common.impl.CommonPackageImpl#getTcaConfiguration() + * @generated + */ + EClass TCA_CONFIGURATION = eINSTANCE.getTcaConfiguration(); + + /** + * The meta object literal for the 'Domain' attribute feature. + * + * + * @generated + */ + EAttribute TCA_CONFIGURATION__DOMAIN = eINSTANCE.getTcaConfiguration_Domain(); + + /** + * The meta object literal for the 'Subscriber Host Name' attribute feature. + * + * + * @generated + */ + EAttribute TCA_CONFIGURATION__SUBSCRIBER_HOST_NAME = eINSTANCE.getTcaConfiguration_SubscriberHostName(); + + /** + * The meta object literal for the 'Subscriber Host Port' attribute feature. + * + * + * @generated + */ + EAttribute TCA_CONFIGURATION__SUBSCRIBER_HOST_PORT = eINSTANCE.getTcaConfiguration_SubscriberHostPort(); + + /** + * The meta object literal for the 'Subscriber Topic Name' attribute feature. + * + * + * @generated + */ + EAttribute TCA_CONFIGURATION__SUBSCRIBER_TOPIC_NAME = eINSTANCE.getTcaConfiguration_SubscriberTopicName(); + + /** + * The meta object literal for the 'Subscriber Protocol' attribute feature. + * + * + * @generated + */ + EAttribute TCA_CONFIGURATION__SUBSCRIBER_PROTOCOL = eINSTANCE.getTcaConfiguration_SubscriberProtocol(); + + /** + * The meta object literal for the 'Subscriber User Name' attribute feature. + * + * + * @generated + */ + EAttribute TCA_CONFIGURATION__SUBSCRIBER_USER_NAME = eINSTANCE.getTcaConfiguration_SubscriberUserName(); + + /** + * The meta object literal for the 'Subscriber User Password' attribute feature. + * + * + * @generated + */ + EAttribute TCA_CONFIGURATION__SUBSCRIBER_USER_PASSWORD = eINSTANCE.getTcaConfiguration_SubscriberUserPassword(); + + /** + * The meta object literal for the 'Subscriber Content Type' attribute feature. + * + * + * @generated + */ + EAttribute TCA_CONFIGURATION__SUBSCRIBER_CONTENT_TYPE = eINSTANCE.getTcaConfiguration_SubscriberContentType(); + + /** + * The meta object literal for the 'Subscriber Consumer Id' attribute feature. + * + * + * @generated + */ + EAttribute TCA_CONFIGURATION__SUBSCRIBER_CONSUMER_ID = eINSTANCE.getTcaConfiguration_SubscriberConsumerId(); + + /** + * The meta object literal for the 'Subscriber Consumer Group' attribute feature. + * + * + * @generated + */ + EAttribute TCA_CONFIGURATION__SUBSCRIBER_CONSUMER_GROUP = eINSTANCE.getTcaConfiguration_SubscriberConsumerGroup(); + + /** + * The meta object literal for the 'Subscriber Timeout MS' attribute feature. + * + * + * @generated + */ + EAttribute TCA_CONFIGURATION__SUBSCRIBER_TIMEOUT_MS = eINSTANCE.getTcaConfiguration_SubscriberTimeoutMS(); + + /** + * The meta object literal for the 'Subscriber Message Limit' attribute feature. + * + * + * @generated + */ + EAttribute TCA_CONFIGURATION__SUBSCRIBER_MESSAGE_LIMIT = eINSTANCE.getTcaConfiguration_SubscriberMessageLimit(); + + /** + * The meta object literal for the 'Subscriber Polling Interval' attribute feature. + * + * + * @generated + */ + EAttribute TCA_CONFIGURATION__SUBSCRIBER_POLLING_INTERVAL = eINSTANCE.getTcaConfiguration_SubscriberPollingInterval(); + + /** + * The meta object literal for the 'Publisher Host Name' attribute feature. + * + * + * @generated + */ + EAttribute TCA_CONFIGURATION__PUBLISHER_HOST_NAME = eINSTANCE.getTcaConfiguration_PublisherHostName(); + + /** + * The meta object literal for the 'Publisher Host Port' attribute feature. + * + * + * @generated + */ + EAttribute TCA_CONFIGURATION__PUBLISHER_HOST_PORT = eINSTANCE.getTcaConfiguration_PublisherHostPort(); + + /** + * The meta object literal for the 'Publisher Topic Name' attribute feature. + * + * + * @generated + */ + EAttribute TCA_CONFIGURATION__PUBLISHER_TOPIC_NAME = eINSTANCE.getTcaConfiguration_PublisherTopicName(); + + /** + * The meta object literal for the 'Publisher Protocol' attribute feature. + * + * + * @generated + */ + EAttribute TCA_CONFIGURATION__PUBLISHER_PROTOCOL = eINSTANCE.getTcaConfiguration_PublisherProtocol(); + + /** + * The meta object literal for the 'Publisher User Name' attribute feature. + * + * + * @generated + */ + EAttribute TCA_CONFIGURATION__PUBLISHER_USER_NAME = eINSTANCE.getTcaConfiguration_PublisherUserName(); + + /** + * The meta object literal for the 'Publisher User Password' attribute feature. + * + * + * @generated + */ + EAttribute TCA_CONFIGURATION__PUBLISHER_USER_PASSWORD = eINSTANCE.getTcaConfiguration_PublisherUserPassword(); + + /** + * The meta object literal for the 'Publisher Content Type' attribute feature. + * + * + * @generated + */ + EAttribute TCA_CONFIGURATION__PUBLISHER_CONTENT_TYPE = eINSTANCE.getTcaConfiguration_PublisherContentType(); + + /** + * The meta object literal for the 'Publisher Max Batch Size' attribute feature. + * + * + * @generated + */ + EAttribute TCA_CONFIGURATION__PUBLISHER_MAX_BATCH_SIZE = eINSTANCE.getTcaConfiguration_PublisherMaxBatchSize(); + + /** + * The meta object literal for the 'Publisher Max Recovery Queue Size' attribute feature. + * + * + * @generated + */ + EAttribute TCA_CONFIGURATION__PUBLISHER_MAX_RECOVERY_QUEUE_SIZE = eINSTANCE.getTcaConfiguration_PublisherMaxRecoveryQueueSize(); + + /** + * The meta object literal for the 'Publisher Polling Interval' attribute feature. + * + * + * @generated + */ + EAttribute TCA_CONFIGURATION__PUBLISHER_POLLING_INTERVAL = eINSTANCE.getTcaConfiguration_PublisherPollingInterval(); + + /** + * The meta object literal for the 'Metrics Per Functional Role' containment reference list feature. + * + * + * @generated + */ + EReference TCA_CONFIGURATION__METRICS_PER_FUNCTIONAL_ROLE = eINSTANCE.getTcaConfiguration_MetricsPerFunctionalRole(); + + /** + * The meta object literal for the '{@link org.openecomp.dcae.analytics.cdap.common.impl.TcaMetricsImpl Tca Metrics}' class. + * + * + * @see org.openecomp.dcae.analytics.cdap.common.impl.TcaMetricsImpl + * @see org.openecomp.dcae.analytics.cdap.common.impl.CommonPackageImpl#getTcaMetrics() + * @generated + */ + EClass TCA_METRICS = eINSTANCE.getTcaMetrics(); + + /** + * The meta object literal for the 'Functional Role' attribute feature. + * + * + * @generated + */ + EAttribute TCA_METRICS__FUNCTIONAL_ROLE = eINSTANCE.getTcaMetrics_FunctionalRole(); + + /** + * The meta object literal for the 'Thresholds' containment reference list feature. + * + * + * @generated + */ + EReference TCA_METRICS__THRESHOLDS = eINSTANCE.getTcaMetrics_Thresholds(); + + /** + * The meta object literal for the '{@link org.openecomp.dcae.analytics.cdap.common.impl.TcaThresholdImpl Tca Threshold}' class. + * + * + * @see org.openecomp.dcae.analytics.cdap.common.impl.TcaThresholdImpl + * @see org.openecomp.dcae.analytics.cdap.common.impl.CommonPackageImpl#getTcaThreshold() + * @generated + */ + EClass TCA_THRESHOLD = eINSTANCE.getTcaThreshold(); + + /** + * The meta object literal for the 'Closed Loop Control Name' attribute feature. + * + * + * @generated + */ + EAttribute TCA_THRESHOLD__CLOSED_LOOP_CONTROL_NAME = eINSTANCE.getTcaThreshold_ClosedLoopControlName(); + + /** + * The meta object literal for the 'Version' attribute feature. + * + * + * @generated + */ + EAttribute TCA_THRESHOLD__VERSION = eINSTANCE.getTcaThreshold_Version(); + + /** + * The meta object literal for the 'Field Path' attribute feature. + * + * + * @generated + */ + EAttribute TCA_THRESHOLD__FIELD_PATH = eINSTANCE.getTcaThreshold_FieldPath(); + + /** + * The meta object literal for the 'Threshold Value' attribute feature. + * + * + * @generated + */ + EAttribute TCA_THRESHOLD__THRESHOLD_VALUE = eINSTANCE.getTcaThreshold_ThresholdValue(); + + /** + * The meta object literal for the 'Direction' attribute feature. + * + * + * @generated + */ + EAttribute TCA_THRESHOLD__DIRECTION = eINSTANCE.getTcaThreshold_Direction(); + + /** + * The meta object literal for the 'Severity' attribute feature. + * + * + * @generated + */ + EAttribute TCA_THRESHOLD__SEVERITY = eINSTANCE.getTcaThreshold_Severity(); + + } + +} //CommonPackage diff --git a/dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/TcaConfiguration.java b/dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/TcaConfiguration.java new file mode 100644 index 0000000..b86fe62 --- /dev/null +++ b/dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/TcaConfiguration.java @@ -0,0 +1,730 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.dcae.analytics.cdap.common; + +import org.openecomp.dcae.controller.service.cdap.CdapServiceInstanceConfiguration; + +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'Tca Configuration'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getDomain Domain}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberHostName Subscriber Host Name}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberHostPort Subscriber Host Port}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberTopicName Subscriber Topic Name}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberProtocol Subscriber Protocol}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberUserName Subscriber User Name}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberUserPassword Subscriber User Password}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberContentType Subscriber Content Type}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberConsumerId Subscriber Consumer Id}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberConsumerGroup Subscriber Consumer Group}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberTimeoutMS Subscriber Timeout MS}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberMessageLimit Subscriber Message Limit}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberPollingInterval Subscriber Polling Interval}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getPublisherHostName Publisher Host Name}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getPublisherHostPort Publisher Host Port}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getPublisherTopicName Publisher Topic Name}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getPublisherProtocol Publisher Protocol}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getPublisherUserName Publisher User Name}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getPublisherUserPassword Publisher User Password}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getPublisherContentType Publisher Content Type}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getPublisherMaxBatchSize Publisher Max Batch Size}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getPublisherMaxRecoveryQueueSize Publisher Max Recovery Queue Size}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getPublisherPollingInterval Publisher Polling Interval}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getMetricsPerFunctionalRole Metrics Per Functional Role}
  • + *
+ *

+ * + * @see org.openecomp.dcae.analytics.cdap.common.CommonPackage#getTcaConfiguration() + * @model + * @generated + */ +public interface TcaConfiguration extends CdapServiceInstanceConfiguration { + /** + * Returns the value of the 'Domain' attribute. + * + *

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

+ * + * @return the value of the 'Domain' attribute. + * @see #setDomain(String) + * @see org.openecomp.dcae.analytics.cdap.common.CommonPackage#getTcaConfiguration_Domain() + * @model unique="false" + * annotation="http://openecomp.org type='configuration'" + * annotation="http://openecomp.org/cdap destination='namespace-prefs:cdap-tca:domain'" + * @generated + */ + String getDomain(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getDomain Domain}' attribute. + * + * + * @param value the new value of the 'Domain' attribute. + * @see #getDomain() + * @generated + */ + void setDomain(String value); + + /** + * Returns the value of the 'Subscriber Host Name' attribute. + * + *

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

+ * + * @return the value of the 'Subscriber Host Name' attribute. + * @see #setSubscriberHostName(String) + * @see org.openecomp.dcae.analytics.cdap.common.CommonPackage#getTcaConfiguration_SubscriberHostName() + * @model unique="false" + * annotation="http://openecomp.org type='configuration'" + * annotation="http://openecomp.org/cdap destination='namespace-prefs:cdap-tca:subscriberHostName'" + * @generated + */ + String getSubscriberHostName(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberHostName Subscriber Host Name}' attribute. + * + * + * @param value the new value of the 'Subscriber Host Name' attribute. + * @see #getSubscriberHostName() + * @generated + */ + void setSubscriberHostName(String value); + + /** + * Returns the value of the 'Subscriber Host Port' attribute. + * + *

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

+ * + * @return the value of the 'Subscriber Host Port' attribute. + * @see #setSubscriberHostPort(String) + * @see org.openecomp.dcae.analytics.cdap.common.CommonPackage#getTcaConfiguration_SubscriberHostPort() + * @model unique="false" + * annotation="http://openecomp.org type='configuration'" + * annotation="http://openecomp.org/cdap destination='namespace-prefs:cdap-tca:subscriberHostPort'" + * @generated + */ + String getSubscriberHostPort(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberHostPort Subscriber Host Port}' attribute. + * + * + * @param value the new value of the 'Subscriber Host Port' attribute. + * @see #getSubscriberHostPort() + * @generated + */ + void setSubscriberHostPort(String value); + + /** + * Returns the value of the 'Subscriber Topic Name' attribute. + * + *

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

+ * + * @return the value of the 'Subscriber Topic Name' attribute. + * @see #setSubscriberTopicName(String) + * @see org.openecomp.dcae.analytics.cdap.common.CommonPackage#getTcaConfiguration_SubscriberTopicName() + * @model unique="false" + * annotation="http://openecomp.org type='configuration'" + * annotation="http://openecomp.org/cdap destination='namespace-prefs:cdap-tca:subscriberTopicName'" + * @generated + */ + String getSubscriberTopicName(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberTopicName Subscriber Topic Name}' attribute. + * + * + * @param value the new value of the 'Subscriber Topic Name' attribute. + * @see #getSubscriberTopicName() + * @generated + */ + void setSubscriberTopicName(String value); + + /** + * Returns the value of the 'Subscriber Protocol' attribute. + * + *

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

+ * + * @return the value of the 'Subscriber Protocol' attribute. + * @see #setSubscriberProtocol(String) + * @see org.openecomp.dcae.analytics.cdap.common.CommonPackage#getTcaConfiguration_SubscriberProtocol() + * @model unique="false" + * annotation="http://openecomp.org type='configuration'" + * annotation="http://openecomp.org/cdap destination='namespace-prefs:cdap-tca:subscriberProtocol'" + * @generated + */ + String getSubscriberProtocol(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberProtocol Subscriber Protocol}' attribute. + * + * + * @param value the new value of the 'Subscriber Protocol' attribute. + * @see #getSubscriberProtocol() + * @generated + */ + void setSubscriberProtocol(String value); + + /** + * Returns the value of the 'Subscriber User Name' attribute. + * + *

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

+ * + * @return the value of the 'Subscriber User Name' attribute. + * @see #setSubscriberUserName(String) + * @see org.openecomp.dcae.analytics.cdap.common.CommonPackage#getTcaConfiguration_SubscriberUserName() + * @model unique="false" + * annotation="http://openecomp.org type='configuration'" + * annotation="http://openecomp.org/cdap destination='namespace-prefs:cdap-tca:subscriberUserName'" + * @generated + */ + String getSubscriberUserName(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberUserName Subscriber User Name}' attribute. + * + * + * @param value the new value of the 'Subscriber User Name' attribute. + * @see #getSubscriberUserName() + * @generated + */ + void setSubscriberUserName(String value); + + /** + * Returns the value of the 'Subscriber User Password' attribute. + * + *

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

+ * + * @return the value of the 'Subscriber User Password' attribute. + * @see #setSubscriberUserPassword(String) + * @see org.openecomp.dcae.analytics.cdap.common.CommonPackage#getTcaConfiguration_SubscriberUserPassword() + * @model unique="false" + * annotation="http://openecomp.org type='configuration'" + * annotation="http://openecomp.org/cdap destination='namespace-prefs:cdap-tca:subscriberUserPassword'" + * @generated + */ + String getSubscriberUserPassword(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberUserPassword Subscriber User Password}' attribute. + * + * + * @param value the new value of the 'Subscriber User Password' attribute. + * @see #getSubscriberUserPassword() + * @generated + */ + void setSubscriberUserPassword(String value); + + /** + * Returns the value of the 'Subscriber Content Type' attribute. + * + *

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

+ * + * @return the value of the 'Subscriber Content Type' attribute. + * @see #setSubscriberContentType(String) + * @see org.openecomp.dcae.analytics.cdap.common.CommonPackage#getTcaConfiguration_SubscriberContentType() + * @model unique="false" + * annotation="http://openecomp.org type='configuration'" + * annotation="http://openecomp.org/cdap destination='namespace-prefs:cdap-tca:subscriberContentType'" + * @generated + */ + String getSubscriberContentType(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberContentType Subscriber Content Type}' attribute. + * + * + * @param value the new value of the 'Subscriber Content Type' attribute. + * @see #getSubscriberContentType() + * @generated + */ + void setSubscriberContentType(String value); + + /** + * Returns the value of the 'Subscriber Consumer Id' attribute. + * + *

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

+ * + * @return the value of the 'Subscriber Consumer Id' attribute. + * @see #setSubscriberConsumerId(String) + * @see org.openecomp.dcae.analytics.cdap.common.CommonPackage#getTcaConfiguration_SubscriberConsumerId() + * @model unique="false" + * annotation="http://openecomp.org type='configuration'" + * annotation="http://openecomp.org/cdap destination='namespace-prefs:cdap-tca:subscriberConsumerId'" + * @generated + */ + String getSubscriberConsumerId(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberConsumerId Subscriber Consumer Id}' attribute. + * + * + * @param value the new value of the 'Subscriber Consumer Id' attribute. + * @see #getSubscriberConsumerId() + * @generated + */ + void setSubscriberConsumerId(String value); + + /** + * Returns the value of the 'Subscriber Consumer Group' attribute. + * + *

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

+ * + * @return the value of the 'Subscriber Consumer Group' attribute. + * @see #setSubscriberConsumerGroup(String) + * @see org.openecomp.dcae.analytics.cdap.common.CommonPackage#getTcaConfiguration_SubscriberConsumerGroup() + * @model unique="false" + * annotation="http://openecomp.org type='configuration'" + * annotation="http://openecomp.org/cdap destination='namespace-prefs:cdap-tca:subscriberConsumerGroup'" + * @generated + */ + String getSubscriberConsumerGroup(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberConsumerGroup Subscriber Consumer Group}' attribute. + * + * + * @param value the new value of the 'Subscriber Consumer Group' attribute. + * @see #getSubscriberConsumerGroup() + * @generated + */ + void setSubscriberConsumerGroup(String value); + + /** + * Returns the value of the 'Subscriber Timeout MS' attribute. + * + *

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

+ * + * @return the value of the 'Subscriber Timeout MS' attribute. + * @see #setSubscriberTimeoutMS(String) + * @see org.openecomp.dcae.analytics.cdap.common.CommonPackage#getTcaConfiguration_SubscriberTimeoutMS() + * @model unique="false" + * annotation="http://openecomp.org type='configuration'" + * annotation="http://openecomp.org/cdap destination='namespace-prefs:cdap-tca:subscriberTimeoutMS'" + * @generated + */ + String getSubscriberTimeoutMS(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberTimeoutMS Subscriber Timeout MS}' attribute. + * + * + * @param value the new value of the 'Subscriber Timeout MS' attribute. + * @see #getSubscriberTimeoutMS() + * @generated + */ + void setSubscriberTimeoutMS(String value); + + /** + * Returns the value of the 'Subscriber Message Limit' attribute. + * + *

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

+ * + * @return the value of the 'Subscriber Message Limit' attribute. + * @see #setSubscriberMessageLimit(String) + * @see org.openecomp.dcae.analytics.cdap.common.CommonPackage#getTcaConfiguration_SubscriberMessageLimit() + * @model unique="false" + * annotation="http://openecomp.org type='configuration'" + * annotation="http://openecomp.org/cdap destination='namespace-prefs:cdap-tca:subscriberMessageLimit'" + * @generated + */ + String getSubscriberMessageLimit(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberMessageLimit Subscriber Message Limit}' attribute. + * + * + * @param value the new value of the 'Subscriber Message Limit' attribute. + * @see #getSubscriberMessageLimit() + * @generated + */ + void setSubscriberMessageLimit(String value); + + /** + * Returns the value of the 'Subscriber Polling Interval' attribute. + * + *

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

+ * + * @return the value of the 'Subscriber Polling Interval' attribute. + * @see #setSubscriberPollingInterval(String) + * @see org.openecomp.dcae.analytics.cdap.common.CommonPackage#getTcaConfiguration_SubscriberPollingInterval() + * @model unique="false" + * annotation="http://openecomp.org type='configuration'" + * annotation="http://openecomp.org/cdap destination='namespace-prefs:cdap-tca:subscriberPollingInterval'" + * @generated + */ + String getSubscriberPollingInterval(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getSubscriberPollingInterval Subscriber Polling Interval}' attribute. + * + * + * @param value the new value of the 'Subscriber Polling Interval' attribute. + * @see #getSubscriberPollingInterval() + * @generated + */ + void setSubscriberPollingInterval(String value); + + /** + * Returns the value of the 'Publisher Host Name' attribute. + * + *

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

+ * + * @return the value of the 'Publisher Host Name' attribute. + * @see #setPublisherHostName(String) + * @see org.openecomp.dcae.analytics.cdap.common.CommonPackage#getTcaConfiguration_PublisherHostName() + * @model unique="false" + * annotation="http://openecomp.org type='configuration'" + * annotation="http://openecomp.org/cdap destination='namespace-prefs:cdap-tca:publisherHostName'" + * @generated + */ + String getPublisherHostName(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getPublisherHostName Publisher Host Name}' attribute. + * + * + * @param value the new value of the 'Publisher Host Name' attribute. + * @see #getPublisherHostName() + * @generated + */ + void setPublisherHostName(String value); + + /** + * Returns the value of the 'Publisher Host Port' attribute. + * + *

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

+ * + * @return the value of the 'Publisher Host Port' attribute. + * @see #setPublisherHostPort(String) + * @see org.openecomp.dcae.analytics.cdap.common.CommonPackage#getTcaConfiguration_PublisherHostPort() + * @model unique="false" + * annotation="http://openecomp.org type='configuration'" + * annotation="http://openecomp.org/cdap destination='namespace-prefs:cdap-tca:publisherHostPort'" + * @generated + */ + String getPublisherHostPort(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getPublisherHostPort Publisher Host Port}' attribute. + * + * + * @param value the new value of the 'Publisher Host Port' attribute. + * @see #getPublisherHostPort() + * @generated + */ + void setPublisherHostPort(String value); + + /** + * Returns the value of the 'Publisher Topic Name' attribute. + * + *

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

+ * + * @return the value of the 'Publisher Topic Name' attribute. + * @see #setPublisherTopicName(String) + * @see org.openecomp.dcae.analytics.cdap.common.CommonPackage#getTcaConfiguration_PublisherTopicName() + * @model unique="false" + * annotation="http://openecomp.org type='configuration'" + * annotation="http://openecomp.org/cdap destination='namespace-prefs:cdap-tca:publisherTopicName'" + * @generated + */ + String getPublisherTopicName(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getPublisherTopicName Publisher Topic Name}' attribute. + * + * + * @param value the new value of the 'Publisher Topic Name' attribute. + * @see #getPublisherTopicName() + * @generated + */ + void setPublisherTopicName(String value); + + /** + * Returns the value of the 'Publisher Protocol' attribute. + * + *

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

+ * + * @return the value of the 'Publisher Protocol' attribute. + * @see #setPublisherProtocol(String) + * @see org.openecomp.dcae.analytics.cdap.common.CommonPackage#getTcaConfiguration_PublisherProtocol() + * @model unique="false" + * annotation="http://openecomp.org type='configuration'" + * annotation="http://openecomp.org/cdap destination='namespace-prefs:cdap-tca:publisherProtocol'" + * @generated + */ + String getPublisherProtocol(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getPublisherProtocol Publisher Protocol}' attribute. + * + * + * @param value the new value of the 'Publisher Protocol' attribute. + * @see #getPublisherProtocol() + * @generated + */ + void setPublisherProtocol(String value); + + /** + * Returns the value of the 'Publisher User Name' attribute. + * + *

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

+ * + * @return the value of the 'Publisher User Name' attribute. + * @see #setPublisherUserName(String) + * @see org.openecomp.dcae.analytics.cdap.common.CommonPackage#getTcaConfiguration_PublisherUserName() + * @model unique="false" + * annotation="http://openecomp.org type='configuration'" + * annotation="http://openecomp.org/cdap destination='namespace-prefs:cdap-tca:publisherUserName'" + * @generated + */ + String getPublisherUserName(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getPublisherUserName Publisher User Name}' attribute. + * + * + * @param value the new value of the 'Publisher User Name' attribute. + * @see #getPublisherUserName() + * @generated + */ + void setPublisherUserName(String value); + + /** + * Returns the value of the 'Publisher User Password' attribute. + * + *

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

+ * + * @return the value of the 'Publisher User Password' attribute. + * @see #setPublisherUserPassword(String) + * @see org.openecomp.dcae.analytics.cdap.common.CommonPackage#getTcaConfiguration_PublisherUserPassword() + * @model unique="false" + * annotation="http://openecomp.org type='configuration'" + * annotation="http://openecomp.org/cdap destination='namespace-prefs:cdap-tca:publisherUserPassword'" + * @generated + */ + String getPublisherUserPassword(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getPublisherUserPassword Publisher User Password}' attribute. + * + * + * @param value the new value of the 'Publisher User Password' attribute. + * @see #getPublisherUserPassword() + * @generated + */ + void setPublisherUserPassword(String value); + + /** + * Returns the value of the 'Publisher Content Type' attribute. + * + *

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

+ * + * @return the value of the 'Publisher Content Type' attribute. + * @see #setPublisherContentType(String) + * @see org.openecomp.dcae.analytics.cdap.common.CommonPackage#getTcaConfiguration_PublisherContentType() + * @model unique="false" + * annotation="http://openecomp.org type='configuration'" + * annotation="http://openecomp.org/cdap destination='namespace-prefs:cdap-tca:publisherContentType'" + * @generated + */ + String getPublisherContentType(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getPublisherContentType Publisher Content Type}' attribute. + * + * + * @param value the new value of the 'Publisher Content Type' attribute. + * @see #getPublisherContentType() + * @generated + */ + void setPublisherContentType(String value); + + /** + * Returns the value of the 'Publisher Max Batch Size' attribute. + * + *

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

+ * + * @return the value of the 'Publisher Max Batch Size' attribute. + * @see #setPublisherMaxBatchSize(String) + * @see org.openecomp.dcae.analytics.cdap.common.CommonPackage#getTcaConfiguration_PublisherMaxBatchSize() + * @model unique="false" + * annotation="http://openecomp.org type='configuration'" + * annotation="http://openecomp.org/cdap destination='namespace-prefs:cdap-tca:publisherMaxBatchSize'" + * @generated + */ + String getPublisherMaxBatchSize(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getPublisherMaxBatchSize Publisher Max Batch Size}' attribute. + * + * + * @param value the new value of the 'Publisher Max Batch Size' attribute. + * @see #getPublisherMaxBatchSize() + * @generated + */ + void setPublisherMaxBatchSize(String value); + + /** + * Returns the value of the 'Publisher Max Recovery Queue Size' attribute. + * + *

+ * If the meaning of the 'Publisher Max Recovery Queue Size' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Publisher Max Recovery Queue Size' attribute. + * @see #setPublisherMaxRecoveryQueueSize(String) + * @see org.openecomp.dcae.analytics.cdap.common.CommonPackage#getTcaConfiguration_PublisherMaxRecoveryQueueSize() + * @model unique="false" + * annotation="http://openecomp.org type='configuration'" + * annotation="http://openecomp.org/cdap destination='namespace-prefs:cdap-tca:publisherMaxRecoveryQueueSize'" + * @generated + */ + String getPublisherMaxRecoveryQueueSize(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getPublisherMaxRecoveryQueueSize Publisher Max Recovery Queue Size}' attribute. + * + * + * @param value the new value of the 'Publisher Max Recovery Queue Size' attribute. + * @see #getPublisherMaxRecoveryQueueSize() + * @generated + */ + void setPublisherMaxRecoveryQueueSize(String value); + + /** + * Returns the value of the 'Publisher Polling Interval' attribute. + * + *

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

+ * + * @return the value of the 'Publisher Polling Interval' attribute. + * @see #setPublisherPollingInterval(String) + * @see org.openecomp.dcae.analytics.cdap.common.CommonPackage#getTcaConfiguration_PublisherPollingInterval() + * @model unique="false" + * annotation="http://openecomp.org type='configuration'" + * annotation="http://openecomp.org/cdap destination='namespace-prefs:cdap-tca:publisherPollingInterval'" + * @generated + */ + String getPublisherPollingInterval(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration#getPublisherPollingInterval Publisher Polling Interval}' attribute. + * + * + * @param value the new value of the 'Publisher Polling Interval' attribute. + * @see #getPublisherPollingInterval() + * @generated + */ + void setPublisherPollingInterval(String value); + + /** + * Returns the value of the 'Metrics Per Functional Role' containment reference list. + * The list contents are of type {@link org.openecomp.dcae.analytics.cdap.common.TcaMetrics}. + * + *

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

+ * + * @return the value of the 'Metrics Per Functional Role' containment reference list. + * @see org.openecomp.dcae.analytics.cdap.common.CommonPackage#getTcaConfiguration_MetricsPerFunctionalRole() + * @model containment="true" + * @generated + */ + EList getMetricsPerFunctionalRole(); + +} // TcaConfiguration diff --git a/dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/TcaMetrics.java b/dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/TcaMetrics.java new file mode 100644 index 0000000..280103f --- /dev/null +++ b/dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/TcaMetrics.java @@ -0,0 +1,95 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.dcae.analytics.cdap.common; + +import org.openecomp.dcae.controller.core.service.DcaePolicyEntity; +import org.openecomp.ncomp.core.NamedEntity; + +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'Tca Metrics'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.dcae.analytics.cdap.common.TcaMetrics#getFunctionalRole Functional Role}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.TcaMetrics#getThresholds Thresholds}
  • + *
+ *

+ * + * @see org.openecomp.dcae.analytics.cdap.common.CommonPackage#getTcaMetrics() + * @model annotation="http://openecomp.org/policy policyTemplate='dcae-microservice' dcaeService='tca'" + * annotation="http://openecomp.org type='configuration'" + * @generated + */ +public interface TcaMetrics extends NamedEntity, DcaePolicyEntity { + /** + * Returns the value of the 'Functional Role' attribute. + * + *

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

+ * + * @return the value of the 'Functional Role' attribute. + * @see #setFunctionalRole(String) + * @see org.openecomp.dcae.analytics.cdap.common.CommonPackage#getTcaMetrics_FunctionalRole() + * @model unique="false" + * annotation="http://openecomp.org type='configuration'" + * annotation="http://openecomp.org/cdap destination='namespace-prefs:cdap-tca:${path}.policy.functionalRole'" + * @generated + */ + String getFunctionalRole(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.analytics.cdap.common.TcaMetrics#getFunctionalRole Functional Role}' attribute. + * + * + * @param value the new value of the 'Functional Role' attribute. + * @see #getFunctionalRole() + * @generated + */ + void setFunctionalRole(String value); + + /** + * Returns the value of the 'Thresholds' containment reference list. + * The list contents are of type {@link org.openecomp.dcae.analytics.cdap.common.TcaThreshold}. + * + *

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

+ * + * @return the value of the 'Thresholds' containment reference list. + * @see org.openecomp.dcae.analytics.cdap.common.CommonPackage#getTcaMetrics_Thresholds() + * @model containment="true" + * annotation="http://openecomp.org type='configuration'" + * @generated + */ + EList getThresholds(); + +} // TcaMetrics diff --git a/dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/TcaThreshold.java b/dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/TcaThreshold.java new file mode 100644 index 0000000..49b249e --- /dev/null +++ b/dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/TcaThreshold.java @@ -0,0 +1,218 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.dcae.analytics.cdap.common; + +import org.openecomp.ncomp.core.NamedEntity; + +/** + * + * A representation of the model object 'Tca Threshold'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.dcae.analytics.cdap.common.TcaThreshold#getClosedLoopControlName Closed Loop Control Name}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.TcaThreshold#getVersion Version}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.TcaThreshold#getFieldPath Field Path}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.TcaThreshold#getThresholdValue Threshold Value}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.TcaThreshold#getDirection Direction}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.TcaThreshold#getSeverity Severity}
  • + *
+ *

+ * + * @see org.openecomp.dcae.analytics.cdap.common.CommonPackage#getTcaThreshold() + * @model annotation="http://openecomp.org type='configuration'" + * @generated + */ +public interface TcaThreshold extends NamedEntity { + /** + * Returns the value of the 'Closed Loop Control Name' attribute. + * + *

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

+ * + * @return the value of the 'Closed Loop Control Name' attribute. + * @see #setClosedLoopControlName(String) + * @see org.openecomp.dcae.analytics.cdap.common.CommonPackage#getTcaThreshold_ClosedLoopControlName() + * @model unique="false" + * annotation="http://openecomp.org type='configuration'" + * annotation="http://openecomp.org/cdap destination='namespace-prefs:cdap-tca:${path}.policy.closedLoopControlName'" + * @generated + */ + String getClosedLoopControlName(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.analytics.cdap.common.TcaThreshold#getClosedLoopControlName Closed Loop Control Name}' attribute. + * + * + * @param value the new value of the 'Closed Loop Control Name' attribute. + * @see #getClosedLoopControlName() + * @generated + */ + void setClosedLoopControlName(String value); + + /** + * Returns the value of the 'Version' attribute. + * + *

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

+ * + * @return the value of the 'Version' attribute. + * @see #setVersion(String) + * @see org.openecomp.dcae.analytics.cdap.common.CommonPackage#getTcaThreshold_Version() + * @model unique="false" + * annotation="http://openecomp.org type='configuration'" + * annotation="http://openecomp.org/cdap destination='namespace-prefs:cdap-tca:${path}.policy.version'" + * @generated + */ + String getVersion(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.analytics.cdap.common.TcaThreshold#getVersion Version}' attribute. + * + * + * @param value the new value of the 'Version' attribute. + * @see #getVersion() + * @generated + */ + void setVersion(String value); + + /** + * Returns the value of the 'Field Path' attribute. + * + *

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

+ * + * @return the value of the 'Field Path' attribute. + * @see #setFieldPath(String) + * @see org.openecomp.dcae.analytics.cdap.common.CommonPackage#getTcaThreshold_FieldPath() + * @model unique="false" + * annotation="http://openecomp.org type='configuration'" + * annotation="http://openecomp.org/cdap destination='namespace-prefs:cdap-tca:${path}.policy.fieldPath'" + * @generated + */ + String getFieldPath(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.analytics.cdap.common.TcaThreshold#getFieldPath Field Path}' attribute. + * + * + * @param value the new value of the 'Field Path' attribute. + * @see #getFieldPath() + * @generated + */ + void setFieldPath(String value); + + /** + * Returns the value of the 'Threshold Value' attribute. + * + *

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

+ * + * @return the value of the 'Threshold Value' attribute. + * @see #setThresholdValue(Integer) + * @see org.openecomp.dcae.analytics.cdap.common.CommonPackage#getTcaThreshold_ThresholdValue() + * @model unique="false" + * annotation="http://openecomp.org type='configuration'" + * annotation="http://openecomp.org/cdap destination='namespace-prefs:cdap-tca:${path}.policy.thresholdValue'" + * @generated + */ + Integer getThresholdValue(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.analytics.cdap.common.TcaThreshold#getThresholdValue Threshold Value}' attribute. + * + * + * @param value the new value of the 'Threshold Value' attribute. + * @see #getThresholdValue() + * @generated + */ + void setThresholdValue(Integer value); + + /** + * Returns the value of the 'Direction' attribute. + * + *

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

+ * + * @return the value of the 'Direction' attribute. + * @see #setDirection(String) + * @see org.openecomp.dcae.analytics.cdap.common.CommonPackage#getTcaThreshold_Direction() + * @model unique="false" + * annotation="http://openecomp.org type='configuration'" + * annotation="http://openecomp.org/cdap destination='namespace-prefs:cdap-tca:${path}.policy.direction'" + * @generated + */ + String getDirection(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.analytics.cdap.common.TcaThreshold#getDirection Direction}' attribute. + * + * + * @param value the new value of the 'Direction' attribute. + * @see #getDirection() + * @generated + */ + void setDirection(String value); + + /** + * Returns the value of the 'Severity' attribute. + * + *

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

+ * + * @return the value of the 'Severity' attribute. + * @see #setSeverity(String) + * @see org.openecomp.dcae.analytics.cdap.common.CommonPackage#getTcaThreshold_Severity() + * @model unique="false" + * annotation="http://openecomp.org type='configuration'" + * annotation="http://openecomp.org/cdap destination='namespace-prefs:cdap-tca:${path}.policy.severity'" + * @generated + */ + String getSeverity(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.analytics.cdap.common.TcaThreshold#getSeverity Severity}' attribute. + * + * + * @param value the new value of the 'Severity' attribute. + * @see #getSeverity() + * @generated + */ + void setSeverity(String value); + +} // TcaThreshold diff --git a/dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/impl/CommonFactoryImpl.java b/dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/impl/CommonFactoryImpl.java new file mode 100644 index 0000000..2f2a9db --- /dev/null +++ b/dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/impl/CommonFactoryImpl.java @@ -0,0 +1,138 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.dcae.analytics.cdap.common.impl; + +import org.openecomp.dcae.analytics.cdap.common.*; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.impl.EFactoryImpl; + +import org.eclipse.emf.ecore.plugin.EcorePlugin; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class CommonFactoryImpl extends EFactoryImpl implements CommonFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static CommonFactory init() { + try { + CommonFactory theCommonFactory = (CommonFactory)EPackage.Registry.INSTANCE.getEFactory(CommonPackage.eNS_URI); + if (theCommonFactory != null) { + return theCommonFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new CommonFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public CommonFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case CommonPackage.TCA_CONFIGURATION: return createTcaConfiguration(); + case CommonPackage.TCA_METRICS: return createTcaMetrics(); + case CommonPackage.TCA_THRESHOLD: return createTcaThreshold(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public TcaConfiguration createTcaConfiguration() { + TcaConfigurationImpl tcaConfiguration = new TcaConfigurationImpl(); + return tcaConfiguration; + } + + /** + * + * + * @generated + */ + public TcaMetrics createTcaMetrics() { + TcaMetricsImpl tcaMetrics = new TcaMetricsImpl(); + return tcaMetrics; + } + + /** + * + * + * @generated + */ + public TcaThreshold createTcaThreshold() { + TcaThresholdImpl tcaThreshold = new TcaThresholdImpl(); + return tcaThreshold; + } + + /** + * + * + * @generated + */ + public CommonPackage getCommonPackage() { + return (CommonPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static CommonPackage getPackage() { + return CommonPackage.eINSTANCE; + } + +} //CommonFactoryImpl diff --git a/dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/impl/CommonPackageImpl.java b/dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/impl/CommonPackageImpl.java new file mode 100644 index 0000000..3f1e9fd --- /dev/null +++ b/dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/impl/CommonPackageImpl.java @@ -0,0 +1,1040 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.dcae.analytics.cdap.common.impl; + +import org.openecomp.dcae.analytics.cdap.common.CommonFactory; +import org.openecomp.dcae.analytics.cdap.common.CommonPackage; +import org.openecomp.dcae.analytics.cdap.common.TcaConfiguration; +import org.openecomp.dcae.analytics.cdap.common.TcaMetrics; +import org.openecomp.dcae.analytics.cdap.common.TcaThreshold; +import org.openecomp.dcae.controller.core.service.ServicePackage; +import org.openecomp.dcae.controller.service.cdap.CdapPackage; +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; +import org.eclipse.emf.ecore.EcorePackage; +import org.eclipse.emf.ecore.impl.EPackageImpl; + +/** + * + * An implementation of the model Package. + * + * @generated + */ +public class CommonPackageImpl extends EPackageImpl implements CommonPackage { + /** + * + * + * @generated + */ + private EClass tcaConfigurationEClass = null; + + /** + * + * + * @generated + */ + private EClass tcaMetricsEClass = null; + + /** + * + * + * @generated + */ + private EClass tcaThresholdEClass = null; + + /** + * Creates an instance of the model Package, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + *

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

This method is used to initialize {@link CommonPackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static CommonPackage init() { + if (isInited) return (CommonPackage)EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI); + + // Obtain or create and register package + CommonPackageImpl theCommonPackage = (CommonPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof CommonPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new CommonPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + CdapPackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theCommonPackage.createPackageContents(); + + // Initialize created meta-data + theCommonPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theCommonPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(CommonPackage.eNS_URI, theCommonPackage); + return theCommonPackage; + } + + /** + * + * + * @generated + */ + public EClass getTcaConfiguration() { + return tcaConfigurationEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getTcaConfiguration_Domain() { + return (EAttribute)tcaConfigurationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getTcaConfiguration_SubscriberHostName() { + return (EAttribute)tcaConfigurationEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getTcaConfiguration_SubscriberHostPort() { + return (EAttribute)tcaConfigurationEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getTcaConfiguration_SubscriberTopicName() { + return (EAttribute)tcaConfigurationEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getTcaConfiguration_SubscriberProtocol() { + return (EAttribute)tcaConfigurationEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getTcaConfiguration_SubscriberUserName() { + return (EAttribute)tcaConfigurationEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getTcaConfiguration_SubscriberUserPassword() { + return (EAttribute)tcaConfigurationEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EAttribute getTcaConfiguration_SubscriberContentType() { + return (EAttribute)tcaConfigurationEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EAttribute getTcaConfiguration_SubscriberConsumerId() { + return (EAttribute)tcaConfigurationEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EAttribute getTcaConfiguration_SubscriberConsumerGroup() { + return (EAttribute)tcaConfigurationEClass.getEStructuralFeatures().get(9); + } + + /** + * + * + * @generated + */ + public EAttribute getTcaConfiguration_SubscriberTimeoutMS() { + return (EAttribute)tcaConfigurationEClass.getEStructuralFeatures().get(10); + } + + /** + * + * + * @generated + */ + public EAttribute getTcaConfiguration_SubscriberMessageLimit() { + return (EAttribute)tcaConfigurationEClass.getEStructuralFeatures().get(11); + } + + /** + * + * + * @generated + */ + public EAttribute getTcaConfiguration_SubscriberPollingInterval() { + return (EAttribute)tcaConfigurationEClass.getEStructuralFeatures().get(12); + } + + /** + * + * + * @generated + */ + public EAttribute getTcaConfiguration_PublisherHostName() { + return (EAttribute)tcaConfigurationEClass.getEStructuralFeatures().get(13); + } + + /** + * + * + * @generated + */ + public EAttribute getTcaConfiguration_PublisherHostPort() { + return (EAttribute)tcaConfigurationEClass.getEStructuralFeatures().get(14); + } + + /** + * + * + * @generated + */ + public EAttribute getTcaConfiguration_PublisherTopicName() { + return (EAttribute)tcaConfigurationEClass.getEStructuralFeatures().get(15); + } + + /** + * + * + * @generated + */ + public EAttribute getTcaConfiguration_PublisherProtocol() { + return (EAttribute)tcaConfigurationEClass.getEStructuralFeatures().get(16); + } + + /** + * + * + * @generated + */ + public EAttribute getTcaConfiguration_PublisherUserName() { + return (EAttribute)tcaConfigurationEClass.getEStructuralFeatures().get(17); + } + + /** + * + * + * @generated + */ + public EAttribute getTcaConfiguration_PublisherUserPassword() { + return (EAttribute)tcaConfigurationEClass.getEStructuralFeatures().get(18); + } + + /** + * + * + * @generated + */ + public EAttribute getTcaConfiguration_PublisherContentType() { + return (EAttribute)tcaConfigurationEClass.getEStructuralFeatures().get(19); + } + + /** + * + * + * @generated + */ + public EAttribute getTcaConfiguration_PublisherMaxBatchSize() { + return (EAttribute)tcaConfigurationEClass.getEStructuralFeatures().get(20); + } + + /** + * + * + * @generated + */ + public EAttribute getTcaConfiguration_PublisherMaxRecoveryQueueSize() { + return (EAttribute)tcaConfigurationEClass.getEStructuralFeatures().get(21); + } + + /** + * + * + * @generated + */ + public EAttribute getTcaConfiguration_PublisherPollingInterval() { + return (EAttribute)tcaConfigurationEClass.getEStructuralFeatures().get(22); + } + + /** + * + * + * @generated + */ + public EReference getTcaConfiguration_MetricsPerFunctionalRole() { + return (EReference)tcaConfigurationEClass.getEStructuralFeatures().get(23); + } + + /** + * + * + * @generated + */ + public EClass getTcaMetrics() { + return tcaMetricsEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getTcaMetrics_FunctionalRole() { + return (EAttribute)tcaMetricsEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getTcaMetrics_Thresholds() { + return (EReference)tcaMetricsEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getTcaThreshold() { + return tcaThresholdEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getTcaThreshold_ClosedLoopControlName() { + return (EAttribute)tcaThresholdEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getTcaThreshold_Version() { + return (EAttribute)tcaThresholdEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getTcaThreshold_FieldPath() { + return (EAttribute)tcaThresholdEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getTcaThreshold_ThresholdValue() { + return (EAttribute)tcaThresholdEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getTcaThreshold_Direction() { + return (EAttribute)tcaThresholdEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getTcaThreshold_Severity() { + return (EAttribute)tcaThresholdEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public CommonFactory getCommonFactory() { + return (CommonFactory)getEFactoryInstance(); + } + + /** + * + * + * @generated + */ + private boolean isCreated = false; + + /** + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void createPackageContents() { + if (isCreated) return; + isCreated = true; + + // Create classes and their features + tcaConfigurationEClass = createEClass(TCA_CONFIGURATION); + createEAttribute(tcaConfigurationEClass, TCA_CONFIGURATION__DOMAIN); + createEAttribute(tcaConfigurationEClass, TCA_CONFIGURATION__SUBSCRIBER_HOST_NAME); + createEAttribute(tcaConfigurationEClass, TCA_CONFIGURATION__SUBSCRIBER_HOST_PORT); + createEAttribute(tcaConfigurationEClass, TCA_CONFIGURATION__SUBSCRIBER_TOPIC_NAME); + createEAttribute(tcaConfigurationEClass, TCA_CONFIGURATION__SUBSCRIBER_PROTOCOL); + createEAttribute(tcaConfigurationEClass, TCA_CONFIGURATION__SUBSCRIBER_USER_NAME); + createEAttribute(tcaConfigurationEClass, TCA_CONFIGURATION__SUBSCRIBER_USER_PASSWORD); + createEAttribute(tcaConfigurationEClass, TCA_CONFIGURATION__SUBSCRIBER_CONTENT_TYPE); + createEAttribute(tcaConfigurationEClass, TCA_CONFIGURATION__SUBSCRIBER_CONSUMER_ID); + createEAttribute(tcaConfigurationEClass, TCA_CONFIGURATION__SUBSCRIBER_CONSUMER_GROUP); + createEAttribute(tcaConfigurationEClass, TCA_CONFIGURATION__SUBSCRIBER_TIMEOUT_MS); + createEAttribute(tcaConfigurationEClass, TCA_CONFIGURATION__SUBSCRIBER_MESSAGE_LIMIT); + createEAttribute(tcaConfigurationEClass, TCA_CONFIGURATION__SUBSCRIBER_POLLING_INTERVAL); + createEAttribute(tcaConfigurationEClass, TCA_CONFIGURATION__PUBLISHER_HOST_NAME); + createEAttribute(tcaConfigurationEClass, TCA_CONFIGURATION__PUBLISHER_HOST_PORT); + createEAttribute(tcaConfigurationEClass, TCA_CONFIGURATION__PUBLISHER_TOPIC_NAME); + createEAttribute(tcaConfigurationEClass, TCA_CONFIGURATION__PUBLISHER_PROTOCOL); + createEAttribute(tcaConfigurationEClass, TCA_CONFIGURATION__PUBLISHER_USER_NAME); + createEAttribute(tcaConfigurationEClass, TCA_CONFIGURATION__PUBLISHER_USER_PASSWORD); + createEAttribute(tcaConfigurationEClass, TCA_CONFIGURATION__PUBLISHER_CONTENT_TYPE); + createEAttribute(tcaConfigurationEClass, TCA_CONFIGURATION__PUBLISHER_MAX_BATCH_SIZE); + createEAttribute(tcaConfigurationEClass, TCA_CONFIGURATION__PUBLISHER_MAX_RECOVERY_QUEUE_SIZE); + createEAttribute(tcaConfigurationEClass, TCA_CONFIGURATION__PUBLISHER_POLLING_INTERVAL); + createEReference(tcaConfigurationEClass, TCA_CONFIGURATION__METRICS_PER_FUNCTIONAL_ROLE); + + tcaMetricsEClass = createEClass(TCA_METRICS); + createEAttribute(tcaMetricsEClass, TCA_METRICS__FUNCTIONAL_ROLE); + createEReference(tcaMetricsEClass, TCA_METRICS__THRESHOLDS); + + tcaThresholdEClass = createEClass(TCA_THRESHOLD); + createEAttribute(tcaThresholdEClass, TCA_THRESHOLD__CLOSED_LOOP_CONTROL_NAME); + createEAttribute(tcaThresholdEClass, TCA_THRESHOLD__VERSION); + createEAttribute(tcaThresholdEClass, TCA_THRESHOLD__FIELD_PATH); + createEAttribute(tcaThresholdEClass, TCA_THRESHOLD__THRESHOLD_VALUE); + createEAttribute(tcaThresholdEClass, TCA_THRESHOLD__DIRECTION); + createEAttribute(tcaThresholdEClass, TCA_THRESHOLD__SEVERITY); + } + + /** + * + * + * @generated + */ + private boolean isInitialized = false; + + /** + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void initializePackageContents() { + if (isInitialized) return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + CdapPackage theCdapPackage = (CdapPackage)EPackage.Registry.INSTANCE.getEPackage(CdapPackage.eNS_URI); + EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); + CorePackage theCorePackage = (CorePackage)EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI); + ServicePackage theServicePackage = (ServicePackage)EPackage.Registry.INSTANCE.getEPackage(ServicePackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + tcaConfigurationEClass.getESuperTypes().add(theCdapPackage.getCdapServiceInstanceConfiguration()); + tcaMetricsEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + tcaMetricsEClass.getESuperTypes().add(theServicePackage.getDcaePolicyEntity()); + tcaThresholdEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + + // Initialize classes, features, and operations; add parameters + initEClass(tcaConfigurationEClass, TcaConfiguration.class, "TcaConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getTcaConfiguration_Domain(), theEcorePackage.getEString(), "domain", null, 0, 1, TcaConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTcaConfiguration_SubscriberHostName(), theEcorePackage.getEString(), "subscriberHostName", null, 0, 1, TcaConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTcaConfiguration_SubscriberHostPort(), theEcorePackage.getEString(), "subscriberHostPort", null, 0, 1, TcaConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTcaConfiguration_SubscriberTopicName(), theEcorePackage.getEString(), "subscriberTopicName", null, 0, 1, TcaConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTcaConfiguration_SubscriberProtocol(), theEcorePackage.getEString(), "subscriberProtocol", null, 0, 1, TcaConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTcaConfiguration_SubscriberUserName(), theEcorePackage.getEString(), "subscriberUserName", null, 0, 1, TcaConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTcaConfiguration_SubscriberUserPassword(), theEcorePackage.getEString(), "subscriberUserPassword", null, 0, 1, TcaConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTcaConfiguration_SubscriberContentType(), theEcorePackage.getEString(), "subscriberContentType", null, 0, 1, TcaConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTcaConfiguration_SubscriberConsumerId(), theEcorePackage.getEString(), "subscriberConsumerId", null, 0, 1, TcaConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTcaConfiguration_SubscriberConsumerGroup(), theEcorePackage.getEString(), "subscriberConsumerGroup", null, 0, 1, TcaConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTcaConfiguration_SubscriberTimeoutMS(), theEcorePackage.getEString(), "subscriberTimeoutMS", null, 0, 1, TcaConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTcaConfiguration_SubscriberMessageLimit(), theEcorePackage.getEString(), "subscriberMessageLimit", null, 0, 1, TcaConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTcaConfiguration_SubscriberPollingInterval(), theEcorePackage.getEString(), "subscriberPollingInterval", null, 0, 1, TcaConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTcaConfiguration_PublisherHostName(), theEcorePackage.getEString(), "publisherHostName", null, 0, 1, TcaConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTcaConfiguration_PublisherHostPort(), theEcorePackage.getEString(), "publisherHostPort", null, 0, 1, TcaConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTcaConfiguration_PublisherTopicName(), theEcorePackage.getEString(), "publisherTopicName", null, 0, 1, TcaConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTcaConfiguration_PublisherProtocol(), theEcorePackage.getEString(), "publisherProtocol", null, 0, 1, TcaConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTcaConfiguration_PublisherUserName(), theEcorePackage.getEString(), "publisherUserName", null, 0, 1, TcaConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTcaConfiguration_PublisherUserPassword(), theEcorePackage.getEString(), "publisherUserPassword", null, 0, 1, TcaConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTcaConfiguration_PublisherContentType(), theEcorePackage.getEString(), "publisherContentType", null, 0, 1, TcaConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTcaConfiguration_PublisherMaxBatchSize(), theEcorePackage.getEString(), "publisherMaxBatchSize", null, 0, 1, TcaConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTcaConfiguration_PublisherMaxRecoveryQueueSize(), theEcorePackage.getEString(), "publisherMaxRecoveryQueueSize", null, 0, 1, TcaConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTcaConfiguration_PublisherPollingInterval(), theEcorePackage.getEString(), "publisherPollingInterval", null, 0, 1, TcaConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getTcaConfiguration_MetricsPerFunctionalRole(), this.getTcaMetrics(), null, "metricsPerFunctionalRole", null, 0, -1, TcaConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(tcaMetricsEClass, TcaMetrics.class, "TcaMetrics", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getTcaMetrics_FunctionalRole(), theEcorePackage.getEString(), "functionalRole", null, 0, 1, TcaMetrics.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getTcaMetrics_Thresholds(), this.getTcaThreshold(), null, "thresholds", null, 0, -1, TcaMetrics.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(tcaThresholdEClass, TcaThreshold.class, "TcaThreshold", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getTcaThreshold_ClosedLoopControlName(), theEcorePackage.getEString(), "closedLoopControlName", null, 0, 1, TcaThreshold.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTcaThreshold_Version(), theEcorePackage.getEString(), "version", null, 0, 1, TcaThreshold.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTcaThreshold_FieldPath(), theEcorePackage.getEString(), "fieldPath", null, 0, 1, TcaThreshold.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTcaThreshold_ThresholdValue(), theEcorePackage.getEIntegerObject(), "thresholdValue", null, 0, 1, TcaThreshold.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTcaThreshold_Direction(), theEcorePackage.getEString(), "direction", null, 0, 1, TcaThreshold.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTcaThreshold_Severity(), theEcorePackage.getEString(), "severity", null, 0, 1, TcaThreshold.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + // Create resource + createResource(eNS_URI); + + // Create annotations + // http://www.eclipse.org/emf/2011/Xcore + createXcoreAnnotations(); + // http://openecomp.org + createEcompAnnotations(); + // http://openecomp.org/cdap + createCdapAnnotations(); + // http://openecomp.org/policy + createPolicyAnnotations(); + } + + /** + * Initializes the annotations for http://www.eclipse.org/emf/2011/Xcore. + * + * + * @generated + */ + protected void createXcoreAnnotations() { + String source = "http://www.eclipse.org/emf/2011/Xcore"; + addAnnotation + (this, + source, + new String[] { + "cdap", "http://openecomp.org/cdap", + "ecomp", "http://openecomp.org", + "policy", "http://openecomp.org/policy" + }); + } + + /** + * Initializes the annotations for http://openecomp.org/cdap. + * + * + * @generated + */ + protected void createCdapAnnotations() { + String source = "http://openecomp.org/cdap"; + addAnnotation + (getTcaConfiguration_Domain(), + source, + new String[] { + "destination", "namespace-prefs:cdap-tca:domain" + }); + addAnnotation + (getTcaConfiguration_SubscriberHostName(), + source, + new String[] { + "destination", "namespace-prefs:cdap-tca:subscriberHostName" + }); + addAnnotation + (getTcaConfiguration_SubscriberHostPort(), + source, + new String[] { + "destination", "namespace-prefs:cdap-tca:subscriberHostPort" + }); + addAnnotation + (getTcaConfiguration_SubscriberTopicName(), + source, + new String[] { + "destination", "namespace-prefs:cdap-tca:subscriberTopicName" + }); + addAnnotation + (getTcaConfiguration_SubscriberProtocol(), + source, + new String[] { + "destination", "namespace-prefs:cdap-tca:subscriberProtocol" + }); + addAnnotation + (getTcaConfiguration_SubscriberUserName(), + source, + new String[] { + "destination", "namespace-prefs:cdap-tca:subscriberUserName" + }); + addAnnotation + (getTcaConfiguration_SubscriberUserPassword(), + source, + new String[] { + "destination", "namespace-prefs:cdap-tca:subscriberUserPassword" + }); + addAnnotation + (getTcaConfiguration_SubscriberContentType(), + source, + new String[] { + "destination", "namespace-prefs:cdap-tca:subscriberContentType" + }); + addAnnotation + (getTcaConfiguration_SubscriberConsumerId(), + source, + new String[] { + "destination", "namespace-prefs:cdap-tca:subscriberConsumerId" + }); + addAnnotation + (getTcaConfiguration_SubscriberConsumerGroup(), + source, + new String[] { + "destination", "namespace-prefs:cdap-tca:subscriberConsumerGroup" + }); + addAnnotation + (getTcaConfiguration_SubscriberTimeoutMS(), + source, + new String[] { + "destination", "namespace-prefs:cdap-tca:subscriberTimeoutMS" + }); + addAnnotation + (getTcaConfiguration_SubscriberMessageLimit(), + source, + new String[] { + "destination", "namespace-prefs:cdap-tca:subscriberMessageLimit" + }); + addAnnotation + (getTcaConfiguration_SubscriberPollingInterval(), + source, + new String[] { + "destination", "namespace-prefs:cdap-tca:subscriberPollingInterval" + }); + addAnnotation + (getTcaConfiguration_PublisherHostName(), + source, + new String[] { + "destination", "namespace-prefs:cdap-tca:publisherHostName" + }); + addAnnotation + (getTcaConfiguration_PublisherHostPort(), + source, + new String[] { + "destination", "namespace-prefs:cdap-tca:publisherHostPort" + }); + addAnnotation + (getTcaConfiguration_PublisherTopicName(), + source, + new String[] { + "destination", "namespace-prefs:cdap-tca:publisherTopicName" + }); + addAnnotation + (getTcaConfiguration_PublisherProtocol(), + source, + new String[] { + "destination", "namespace-prefs:cdap-tca:publisherProtocol" + }); + addAnnotation + (getTcaConfiguration_PublisherUserName(), + source, + new String[] { + "destination", "namespace-prefs:cdap-tca:publisherUserName" + }); + addAnnotation + (getTcaConfiguration_PublisherUserPassword(), + source, + new String[] { + "destination", "namespace-prefs:cdap-tca:publisherUserPassword" + }); + addAnnotation + (getTcaConfiguration_PublisherContentType(), + source, + new String[] { + "destination", "namespace-prefs:cdap-tca:publisherContentType" + }); + addAnnotation + (getTcaConfiguration_PublisherMaxBatchSize(), + source, + new String[] { + "destination", "namespace-prefs:cdap-tca:publisherMaxBatchSize" + }); + addAnnotation + (getTcaConfiguration_PublisherMaxRecoveryQueueSize(), + source, + new String[] { + "destination", "namespace-prefs:cdap-tca:publisherMaxRecoveryQueueSize" + }); + addAnnotation + (getTcaConfiguration_PublisherPollingInterval(), + source, + new String[] { + "destination", "namespace-prefs:cdap-tca:publisherPollingInterval" + }); + addAnnotation + (getTcaMetrics_FunctionalRole(), + source, + new String[] { + "destination", "namespace-prefs:cdap-tca:${path}.policy.functionalRole" + }); + addAnnotation + (getTcaThreshold_ClosedLoopControlName(), + source, + new String[] { + "destination", "namespace-prefs:cdap-tca:${path}.policy.closedLoopControlName" + }); + addAnnotation + (getTcaThreshold_Version(), + source, + new String[] { + "destination", "namespace-prefs:cdap-tca:${path}.policy.version" + }); + addAnnotation + (getTcaThreshold_FieldPath(), + source, + new String[] { + "destination", "namespace-prefs:cdap-tca:${path}.policy.fieldPath" + }); + addAnnotation + (getTcaThreshold_ThresholdValue(), + source, + new String[] { + "destination", "namespace-prefs:cdap-tca:${path}.policy.thresholdValue" + }); + addAnnotation + (getTcaThreshold_Direction(), + source, + new String[] { + "destination", "namespace-prefs:cdap-tca:${path}.policy.direction" + }); + addAnnotation + (getTcaThreshold_Severity(), + source, + new String[] { + "destination", "namespace-prefs:cdap-tca:${path}.policy.severity" + }); + } + + /** + * Initializes the annotations for http://openecomp.org. + * + * + * @generated + */ + protected void createEcompAnnotations() { + String source = "http://openecomp.org"; + addAnnotation + (getTcaConfiguration_Domain(), + source, + new String[] { + "type", "configuration" + }); + addAnnotation + (getTcaConfiguration_SubscriberHostName(), + source, + new String[] { + "type", "configuration" + }); + addAnnotation + (getTcaConfiguration_SubscriberHostPort(), + source, + new String[] { + "type", "configuration" + }); + addAnnotation + (getTcaConfiguration_SubscriberTopicName(), + source, + new String[] { + "type", "configuration" + }); + addAnnotation + (getTcaConfiguration_SubscriberProtocol(), + source, + new String[] { + "type", "configuration" + }); + addAnnotation + (getTcaConfiguration_SubscriberUserName(), + source, + new String[] { + "type", "configuration" + }); + addAnnotation + (getTcaConfiguration_SubscriberUserPassword(), + source, + new String[] { + "type", "configuration" + }); + addAnnotation + (getTcaConfiguration_SubscriberContentType(), + source, + new String[] { + "type", "configuration" + }); + addAnnotation + (getTcaConfiguration_SubscriberConsumerId(), + source, + new String[] { + "type", "configuration" + }); + addAnnotation + (getTcaConfiguration_SubscriberConsumerGroup(), + source, + new String[] { + "type", "configuration" + }); + addAnnotation + (getTcaConfiguration_SubscriberTimeoutMS(), + source, + new String[] { + "type", "configuration" + }); + addAnnotation + (getTcaConfiguration_SubscriberMessageLimit(), + source, + new String[] { + "type", "configuration" + }); + addAnnotation + (getTcaConfiguration_SubscriberPollingInterval(), + source, + new String[] { + "type", "configuration" + }); + addAnnotation + (getTcaConfiguration_PublisherHostName(), + source, + new String[] { + "type", "configuration" + }); + addAnnotation + (getTcaConfiguration_PublisherHostPort(), + source, + new String[] { + "type", "configuration" + }); + addAnnotation + (getTcaConfiguration_PublisherTopicName(), + source, + new String[] { + "type", "configuration" + }); + addAnnotation + (getTcaConfiguration_PublisherProtocol(), + source, + new String[] { + "type", "configuration" + }); + addAnnotation + (getTcaConfiguration_PublisherUserName(), + source, + new String[] { + "type", "configuration" + }); + addAnnotation + (getTcaConfiguration_PublisherUserPassword(), + source, + new String[] { + "type", "configuration" + }); + addAnnotation + (getTcaConfiguration_PublisherContentType(), + source, + new String[] { + "type", "configuration" + }); + addAnnotation + (getTcaConfiguration_PublisherMaxBatchSize(), + source, + new String[] { + "type", "configuration" + }); + addAnnotation + (getTcaConfiguration_PublisherMaxRecoveryQueueSize(), + source, + new String[] { + "type", "configuration" + }); + addAnnotation + (getTcaConfiguration_PublisherPollingInterval(), + source, + new String[] { + "type", "configuration" + }); + addAnnotation + (tcaMetricsEClass, + source, + new String[] { + "type", "configuration" + }); + addAnnotation + (getTcaMetrics_FunctionalRole(), + source, + new String[] { + "type", "configuration" + }); + addAnnotation + (getTcaMetrics_Thresholds(), + source, + new String[] { + "type", "configuration" + }); + addAnnotation + (tcaThresholdEClass, + source, + new String[] { + "type", "configuration" + }); + addAnnotation + (getTcaThreshold_ClosedLoopControlName(), + source, + new String[] { + "type", "configuration" + }); + addAnnotation + (getTcaThreshold_Version(), + source, + new String[] { + "type", "configuration" + }); + addAnnotation + (getTcaThreshold_FieldPath(), + source, + new String[] { + "type", "configuration" + }); + addAnnotation + (getTcaThreshold_ThresholdValue(), + source, + new String[] { + "type", "configuration" + }); + addAnnotation + (getTcaThreshold_Direction(), + source, + new String[] { + "type", "configuration" + }); + addAnnotation + (getTcaThreshold_Severity(), + source, + new String[] { + "type", "configuration" + }); + } + + /** + * Initializes the annotations for http://openecomp.org/policy. + * + * + * @generated + */ + protected void createPolicyAnnotations() { + String source = "http://openecomp.org/policy"; + addAnnotation + (tcaMetricsEClass, + source, + new String[] { + "policyTemplate", "dcae-microservice", + "dcaeService", "tca" + }); + } + +} //CommonPackageImpl diff --git a/dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/impl/TcaConfigurationImpl.java b/dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/impl/TcaConfigurationImpl.java new file mode 100644 index 0000000..208f0f9 --- /dev/null +++ b/dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/impl/TcaConfigurationImpl.java @@ -0,0 +1,1432 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.dcae.analytics.cdap.common.impl; + +import org.openecomp.dcae.analytics.cdap.common.CommonPackage; +import org.openecomp.dcae.analytics.cdap.common.TcaConfiguration; +import org.openecomp.dcae.analytics.cdap.common.TcaMetrics; + +import org.openecomp.dcae.controller.service.cdap.impl.CdapServiceInstanceConfigurationImpl; + +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; + +/** + * + * An implementation of the model object 'Tca Configuration'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.dcae.analytics.cdap.common.impl.TcaConfigurationImpl#getDomain Domain}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.impl.TcaConfigurationImpl#getSubscriberHostName Subscriber Host Name}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.impl.TcaConfigurationImpl#getSubscriberHostPort Subscriber Host Port}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.impl.TcaConfigurationImpl#getSubscriberTopicName Subscriber Topic Name}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.impl.TcaConfigurationImpl#getSubscriberProtocol Subscriber Protocol}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.impl.TcaConfigurationImpl#getSubscriberUserName Subscriber User Name}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.impl.TcaConfigurationImpl#getSubscriberUserPassword Subscriber User Password}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.impl.TcaConfigurationImpl#getSubscriberContentType Subscriber Content Type}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.impl.TcaConfigurationImpl#getSubscriberConsumerId Subscriber Consumer Id}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.impl.TcaConfigurationImpl#getSubscriberConsumerGroup Subscriber Consumer Group}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.impl.TcaConfigurationImpl#getSubscriberTimeoutMS Subscriber Timeout MS}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.impl.TcaConfigurationImpl#getSubscriberMessageLimit Subscriber Message Limit}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.impl.TcaConfigurationImpl#getSubscriberPollingInterval Subscriber Polling Interval}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.impl.TcaConfigurationImpl#getPublisherHostName Publisher Host Name}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.impl.TcaConfigurationImpl#getPublisherHostPort Publisher Host Port}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.impl.TcaConfigurationImpl#getPublisherTopicName Publisher Topic Name}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.impl.TcaConfigurationImpl#getPublisherProtocol Publisher Protocol}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.impl.TcaConfigurationImpl#getPublisherUserName Publisher User Name}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.impl.TcaConfigurationImpl#getPublisherUserPassword Publisher User Password}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.impl.TcaConfigurationImpl#getPublisherContentType Publisher Content Type}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.impl.TcaConfigurationImpl#getPublisherMaxBatchSize Publisher Max Batch Size}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.impl.TcaConfigurationImpl#getPublisherMaxRecoveryQueueSize Publisher Max Recovery Queue Size}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.impl.TcaConfigurationImpl#getPublisherPollingInterval Publisher Polling Interval}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.impl.TcaConfigurationImpl#getMetricsPerFunctionalRole Metrics Per Functional Role}
  • + *
+ *

+ * + * @generated + */ +public class TcaConfigurationImpl extends CdapServiceInstanceConfigurationImpl implements TcaConfiguration { + /** + * The default value of the '{@link #getDomain() Domain}' attribute. + * + * + * @see #getDomain() + * @generated + * @ordered + */ + protected static final String DOMAIN_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDomain() Domain}' attribute. + * + * + * @see #getDomain() + * @generated + * @ordered + */ + protected String domain = DOMAIN_EDEFAULT; + + /** + * The default value of the '{@link #getSubscriberHostName() Subscriber Host Name}' attribute. + * + * + * @see #getSubscriberHostName() + * @generated + * @ordered + */ + protected static final String SUBSCRIBER_HOST_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSubscriberHostName() Subscriber Host Name}' attribute. + * + * + * @see #getSubscriberHostName() + * @generated + * @ordered + */ + protected String subscriberHostName = SUBSCRIBER_HOST_NAME_EDEFAULT; + + /** + * The default value of the '{@link #getSubscriberHostPort() Subscriber Host Port}' attribute. + * + * + * @see #getSubscriberHostPort() + * @generated + * @ordered + */ + protected static final String SUBSCRIBER_HOST_PORT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSubscriberHostPort() Subscriber Host Port}' attribute. + * + * + * @see #getSubscriberHostPort() + * @generated + * @ordered + */ + protected String subscriberHostPort = SUBSCRIBER_HOST_PORT_EDEFAULT; + + /** + * The default value of the '{@link #getSubscriberTopicName() Subscriber Topic Name}' attribute. + * + * + * @see #getSubscriberTopicName() + * @generated + * @ordered + */ + protected static final String SUBSCRIBER_TOPIC_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSubscriberTopicName() Subscriber Topic Name}' attribute. + * + * + * @see #getSubscriberTopicName() + * @generated + * @ordered + */ + protected String subscriberTopicName = SUBSCRIBER_TOPIC_NAME_EDEFAULT; + + /** + * The default value of the '{@link #getSubscriberProtocol() Subscriber Protocol}' attribute. + * + * + * @see #getSubscriberProtocol() + * @generated + * @ordered + */ + protected static final String SUBSCRIBER_PROTOCOL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSubscriberProtocol() Subscriber Protocol}' attribute. + * + * + * @see #getSubscriberProtocol() + * @generated + * @ordered + */ + protected String subscriberProtocol = SUBSCRIBER_PROTOCOL_EDEFAULT; + + /** + * The default value of the '{@link #getSubscriberUserName() Subscriber User Name}' attribute. + * + * + * @see #getSubscriberUserName() + * @generated + * @ordered + */ + protected static final String SUBSCRIBER_USER_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSubscriberUserName() Subscriber User Name}' attribute. + * + * + * @see #getSubscriberUserName() + * @generated + * @ordered + */ + protected String subscriberUserName = SUBSCRIBER_USER_NAME_EDEFAULT; + + /** + * The default value of the '{@link #getSubscriberUserPassword() Subscriber User Password}' attribute. + * + * + * @see #getSubscriberUserPassword() + * @generated + * @ordered + */ + protected static final String SUBSCRIBER_USER_PASSWORD_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSubscriberUserPassword() Subscriber User Password}' attribute. + * + * + * @see #getSubscriberUserPassword() + * @generated + * @ordered + */ + protected String subscriberUserPassword = SUBSCRIBER_USER_PASSWORD_EDEFAULT; + + /** + * The default value of the '{@link #getSubscriberContentType() Subscriber Content Type}' attribute. + * + * + * @see #getSubscriberContentType() + * @generated + * @ordered + */ + protected static final String SUBSCRIBER_CONTENT_TYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSubscriberContentType() Subscriber Content Type}' attribute. + * + * + * @see #getSubscriberContentType() + * @generated + * @ordered + */ + protected String subscriberContentType = SUBSCRIBER_CONTENT_TYPE_EDEFAULT; + + /** + * The default value of the '{@link #getSubscriberConsumerId() Subscriber Consumer Id}' attribute. + * + * + * @see #getSubscriberConsumerId() + * @generated + * @ordered + */ + protected static final String SUBSCRIBER_CONSUMER_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSubscriberConsumerId() Subscriber Consumer Id}' attribute. + * + * + * @see #getSubscriberConsumerId() + * @generated + * @ordered + */ + protected String subscriberConsumerId = SUBSCRIBER_CONSUMER_ID_EDEFAULT; + + /** + * The default value of the '{@link #getSubscriberConsumerGroup() Subscriber Consumer Group}' attribute. + * + * + * @see #getSubscriberConsumerGroup() + * @generated + * @ordered + */ + protected static final String SUBSCRIBER_CONSUMER_GROUP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSubscriberConsumerGroup() Subscriber Consumer Group}' attribute. + * + * + * @see #getSubscriberConsumerGroup() + * @generated + * @ordered + */ + protected String subscriberConsumerGroup = SUBSCRIBER_CONSUMER_GROUP_EDEFAULT; + + /** + * The default value of the '{@link #getSubscriberTimeoutMS() Subscriber Timeout MS}' attribute. + * + * + * @see #getSubscriberTimeoutMS() + * @generated + * @ordered + */ + protected static final String SUBSCRIBER_TIMEOUT_MS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSubscriberTimeoutMS() Subscriber Timeout MS}' attribute. + * + * + * @see #getSubscriberTimeoutMS() + * @generated + * @ordered + */ + protected String subscriberTimeoutMS = SUBSCRIBER_TIMEOUT_MS_EDEFAULT; + + /** + * The default value of the '{@link #getSubscriberMessageLimit() Subscriber Message Limit}' attribute. + * + * + * @see #getSubscriberMessageLimit() + * @generated + * @ordered + */ + protected static final String SUBSCRIBER_MESSAGE_LIMIT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSubscriberMessageLimit() Subscriber Message Limit}' attribute. + * + * + * @see #getSubscriberMessageLimit() + * @generated + * @ordered + */ + protected String subscriberMessageLimit = SUBSCRIBER_MESSAGE_LIMIT_EDEFAULT; + + /** + * The default value of the '{@link #getSubscriberPollingInterval() Subscriber Polling Interval}' attribute. + * + * + * @see #getSubscriberPollingInterval() + * @generated + * @ordered + */ + protected static final String SUBSCRIBER_POLLING_INTERVAL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSubscriberPollingInterval() Subscriber Polling Interval}' attribute. + * + * + * @see #getSubscriberPollingInterval() + * @generated + * @ordered + */ + protected String subscriberPollingInterval = SUBSCRIBER_POLLING_INTERVAL_EDEFAULT; + + /** + * The default value of the '{@link #getPublisherHostName() Publisher Host Name}' attribute. + * + * + * @see #getPublisherHostName() + * @generated + * @ordered + */ + protected static final String PUBLISHER_HOST_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPublisherHostName() Publisher Host Name}' attribute. + * + * + * @see #getPublisherHostName() + * @generated + * @ordered + */ + protected String publisherHostName = PUBLISHER_HOST_NAME_EDEFAULT; + + /** + * The default value of the '{@link #getPublisherHostPort() Publisher Host Port}' attribute. + * + * + * @see #getPublisherHostPort() + * @generated + * @ordered + */ + protected static final String PUBLISHER_HOST_PORT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPublisherHostPort() Publisher Host Port}' attribute. + * + * + * @see #getPublisherHostPort() + * @generated + * @ordered + */ + protected String publisherHostPort = PUBLISHER_HOST_PORT_EDEFAULT; + + /** + * The default value of the '{@link #getPublisherTopicName() Publisher Topic Name}' attribute. + * + * + * @see #getPublisherTopicName() + * @generated + * @ordered + */ + protected static final String PUBLISHER_TOPIC_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPublisherTopicName() Publisher Topic Name}' attribute. + * + * + * @see #getPublisherTopicName() + * @generated + * @ordered + */ + protected String publisherTopicName = PUBLISHER_TOPIC_NAME_EDEFAULT; + + /** + * The default value of the '{@link #getPublisherProtocol() Publisher Protocol}' attribute. + * + * + * @see #getPublisherProtocol() + * @generated + * @ordered + */ + protected static final String PUBLISHER_PROTOCOL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPublisherProtocol() Publisher Protocol}' attribute. + * + * + * @see #getPublisherProtocol() + * @generated + * @ordered + */ + protected String publisherProtocol = PUBLISHER_PROTOCOL_EDEFAULT; + + /** + * The default value of the '{@link #getPublisherUserName() Publisher User Name}' attribute. + * + * + * @see #getPublisherUserName() + * @generated + * @ordered + */ + protected static final String PUBLISHER_USER_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPublisherUserName() Publisher User Name}' attribute. + * + * + * @see #getPublisherUserName() + * @generated + * @ordered + */ + protected String publisherUserName = PUBLISHER_USER_NAME_EDEFAULT; + + /** + * The default value of the '{@link #getPublisherUserPassword() Publisher User Password}' attribute. + * + * + * @see #getPublisherUserPassword() + * @generated + * @ordered + */ + protected static final String PUBLISHER_USER_PASSWORD_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPublisherUserPassword() Publisher User Password}' attribute. + * + * + * @see #getPublisherUserPassword() + * @generated + * @ordered + */ + protected String publisherUserPassword = PUBLISHER_USER_PASSWORD_EDEFAULT; + + /** + * The default value of the '{@link #getPublisherContentType() Publisher Content Type}' attribute. + * + * + * @see #getPublisherContentType() + * @generated + * @ordered + */ + protected static final String PUBLISHER_CONTENT_TYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPublisherContentType() Publisher Content Type}' attribute. + * + * + * @see #getPublisherContentType() + * @generated + * @ordered + */ + protected String publisherContentType = PUBLISHER_CONTENT_TYPE_EDEFAULT; + + /** + * The default value of the '{@link #getPublisherMaxBatchSize() Publisher Max Batch Size}' attribute. + * + * + * @see #getPublisherMaxBatchSize() + * @generated + * @ordered + */ + protected static final String PUBLISHER_MAX_BATCH_SIZE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPublisherMaxBatchSize() Publisher Max Batch Size}' attribute. + * + * + * @see #getPublisherMaxBatchSize() + * @generated + * @ordered + */ + protected String publisherMaxBatchSize = PUBLISHER_MAX_BATCH_SIZE_EDEFAULT; + + /** + * The default value of the '{@link #getPublisherMaxRecoveryQueueSize() Publisher Max Recovery Queue Size}' attribute. + * + * + * @see #getPublisherMaxRecoveryQueueSize() + * @generated + * @ordered + */ + protected static final String PUBLISHER_MAX_RECOVERY_QUEUE_SIZE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPublisherMaxRecoveryQueueSize() Publisher Max Recovery Queue Size}' attribute. + * + * + * @see #getPublisherMaxRecoveryQueueSize() + * @generated + * @ordered + */ + protected String publisherMaxRecoveryQueueSize = PUBLISHER_MAX_RECOVERY_QUEUE_SIZE_EDEFAULT; + + /** + * The default value of the '{@link #getPublisherPollingInterval() Publisher Polling Interval}' attribute. + * + * + * @see #getPublisherPollingInterval() + * @generated + * @ordered + */ + protected static final String PUBLISHER_POLLING_INTERVAL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPublisherPollingInterval() Publisher Polling Interval}' attribute. + * + * + * @see #getPublisherPollingInterval() + * @generated + * @ordered + */ + protected String publisherPollingInterval = PUBLISHER_POLLING_INTERVAL_EDEFAULT; + + /** + * The cached value of the '{@link #getMetricsPerFunctionalRole() Metrics Per Functional Role}' containment reference list. + * + * + * @see #getMetricsPerFunctionalRole() + * @generated + * @ordered + */ + protected EList metricsPerFunctionalRole; + + /** + * + * + * @generated + */ + protected TcaConfigurationImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return CommonPackage.Literals.TCA_CONFIGURATION; + } + + /** + * + * + * @generated + */ + public String getDomain() { + return domain; + } + + /** + * + * + * @generated + */ + public void setDomain(String newDomain) { + String oldDomain = domain; + domain = newDomain; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.TCA_CONFIGURATION__DOMAIN, oldDomain, domain)); + } + + /** + * + * + * @generated + */ + public String getSubscriberHostName() { + return subscriberHostName; + } + + /** + * + * + * @generated + */ + public void setSubscriberHostName(String newSubscriberHostName) { + String oldSubscriberHostName = subscriberHostName; + subscriberHostName = newSubscriberHostName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_HOST_NAME, oldSubscriberHostName, subscriberHostName)); + } + + /** + * + * + * @generated + */ + public String getSubscriberHostPort() { + return subscriberHostPort; + } + + /** + * + * + * @generated + */ + public void setSubscriberHostPort(String newSubscriberHostPort) { + String oldSubscriberHostPort = subscriberHostPort; + subscriberHostPort = newSubscriberHostPort; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_HOST_PORT, oldSubscriberHostPort, subscriberHostPort)); + } + + /** + * + * + * @generated + */ + public String getSubscriberTopicName() { + return subscriberTopicName; + } + + /** + * + * + * @generated + */ + public void setSubscriberTopicName(String newSubscriberTopicName) { + String oldSubscriberTopicName = subscriberTopicName; + subscriberTopicName = newSubscriberTopicName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_TOPIC_NAME, oldSubscriberTopicName, subscriberTopicName)); + } + + /** + * + * + * @generated + */ + public String getSubscriberProtocol() { + return subscriberProtocol; + } + + /** + * + * + * @generated + */ + public void setSubscriberProtocol(String newSubscriberProtocol) { + String oldSubscriberProtocol = subscriberProtocol; + subscriberProtocol = newSubscriberProtocol; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_PROTOCOL, oldSubscriberProtocol, subscriberProtocol)); + } + + /** + * + * + * @generated + */ + public String getSubscriberUserName() { + return subscriberUserName; + } + + /** + * + * + * @generated + */ + public void setSubscriberUserName(String newSubscriberUserName) { + String oldSubscriberUserName = subscriberUserName; + subscriberUserName = newSubscriberUserName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_USER_NAME, oldSubscriberUserName, subscriberUserName)); + } + + /** + * + * + * @generated + */ + public String getSubscriberUserPassword() { + return subscriberUserPassword; + } + + /** + * + * + * @generated + */ + public void setSubscriberUserPassword(String newSubscriberUserPassword) { + String oldSubscriberUserPassword = subscriberUserPassword; + subscriberUserPassword = newSubscriberUserPassword; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_USER_PASSWORD, oldSubscriberUserPassword, subscriberUserPassword)); + } + + /** + * + * + * @generated + */ + public String getSubscriberContentType() { + return subscriberContentType; + } + + /** + * + * + * @generated + */ + public void setSubscriberContentType(String newSubscriberContentType) { + String oldSubscriberContentType = subscriberContentType; + subscriberContentType = newSubscriberContentType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_CONTENT_TYPE, oldSubscriberContentType, subscriberContentType)); + } + + /** + * + * + * @generated + */ + public String getSubscriberConsumerId() { + return subscriberConsumerId; + } + + /** + * + * + * @generated + */ + public void setSubscriberConsumerId(String newSubscriberConsumerId) { + String oldSubscriberConsumerId = subscriberConsumerId; + subscriberConsumerId = newSubscriberConsumerId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_CONSUMER_ID, oldSubscriberConsumerId, subscriberConsumerId)); + } + + /** + * + * + * @generated + */ + public String getSubscriberConsumerGroup() { + return subscriberConsumerGroup; + } + + /** + * + * + * @generated + */ + public void setSubscriberConsumerGroup(String newSubscriberConsumerGroup) { + String oldSubscriberConsumerGroup = subscriberConsumerGroup; + subscriberConsumerGroup = newSubscriberConsumerGroup; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_CONSUMER_GROUP, oldSubscriberConsumerGroup, subscriberConsumerGroup)); + } + + /** + * + * + * @generated + */ + public String getSubscriberTimeoutMS() { + return subscriberTimeoutMS; + } + + /** + * + * + * @generated + */ + public void setSubscriberTimeoutMS(String newSubscriberTimeoutMS) { + String oldSubscriberTimeoutMS = subscriberTimeoutMS; + subscriberTimeoutMS = newSubscriberTimeoutMS; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_TIMEOUT_MS, oldSubscriberTimeoutMS, subscriberTimeoutMS)); + } + + /** + * + * + * @generated + */ + public String getSubscriberMessageLimit() { + return subscriberMessageLimit; + } + + /** + * + * + * @generated + */ + public void setSubscriberMessageLimit(String newSubscriberMessageLimit) { + String oldSubscriberMessageLimit = subscriberMessageLimit; + subscriberMessageLimit = newSubscriberMessageLimit; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_MESSAGE_LIMIT, oldSubscriberMessageLimit, subscriberMessageLimit)); + } + + /** + * + * + * @generated + */ + public String getSubscriberPollingInterval() { + return subscriberPollingInterval; + } + + /** + * + * + * @generated + */ + public void setSubscriberPollingInterval(String newSubscriberPollingInterval) { + String oldSubscriberPollingInterval = subscriberPollingInterval; + subscriberPollingInterval = newSubscriberPollingInterval; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_POLLING_INTERVAL, oldSubscriberPollingInterval, subscriberPollingInterval)); + } + + /** + * + * + * @generated + */ + public String getPublisherHostName() { + return publisherHostName; + } + + /** + * + * + * @generated + */ + public void setPublisherHostName(String newPublisherHostName) { + String oldPublisherHostName = publisherHostName; + publisherHostName = newPublisherHostName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.TCA_CONFIGURATION__PUBLISHER_HOST_NAME, oldPublisherHostName, publisherHostName)); + } + + /** + * + * + * @generated + */ + public String getPublisherHostPort() { + return publisherHostPort; + } + + /** + * + * + * @generated + */ + public void setPublisherHostPort(String newPublisherHostPort) { + String oldPublisherHostPort = publisherHostPort; + publisherHostPort = newPublisherHostPort; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.TCA_CONFIGURATION__PUBLISHER_HOST_PORT, oldPublisherHostPort, publisherHostPort)); + } + + /** + * + * + * @generated + */ + public String getPublisherTopicName() { + return publisherTopicName; + } + + /** + * + * + * @generated + */ + public void setPublisherTopicName(String newPublisherTopicName) { + String oldPublisherTopicName = publisherTopicName; + publisherTopicName = newPublisherTopicName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.TCA_CONFIGURATION__PUBLISHER_TOPIC_NAME, oldPublisherTopicName, publisherTopicName)); + } + + /** + * + * + * @generated + */ + public String getPublisherProtocol() { + return publisherProtocol; + } + + /** + * + * + * @generated + */ + public void setPublisherProtocol(String newPublisherProtocol) { + String oldPublisherProtocol = publisherProtocol; + publisherProtocol = newPublisherProtocol; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.TCA_CONFIGURATION__PUBLISHER_PROTOCOL, oldPublisherProtocol, publisherProtocol)); + } + + /** + * + * + * @generated + */ + public String getPublisherUserName() { + return publisherUserName; + } + + /** + * + * + * @generated + */ + public void setPublisherUserName(String newPublisherUserName) { + String oldPublisherUserName = publisherUserName; + publisherUserName = newPublisherUserName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.TCA_CONFIGURATION__PUBLISHER_USER_NAME, oldPublisherUserName, publisherUserName)); + } + + /** + * + * + * @generated + */ + public String getPublisherUserPassword() { + return publisherUserPassword; + } + + /** + * + * + * @generated + */ + public void setPublisherUserPassword(String newPublisherUserPassword) { + String oldPublisherUserPassword = publisherUserPassword; + publisherUserPassword = newPublisherUserPassword; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.TCA_CONFIGURATION__PUBLISHER_USER_PASSWORD, oldPublisherUserPassword, publisherUserPassword)); + } + + /** + * + * + * @generated + */ + public String getPublisherContentType() { + return publisherContentType; + } + + /** + * + * + * @generated + */ + public void setPublisherContentType(String newPublisherContentType) { + String oldPublisherContentType = publisherContentType; + publisherContentType = newPublisherContentType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.TCA_CONFIGURATION__PUBLISHER_CONTENT_TYPE, oldPublisherContentType, publisherContentType)); + } + + /** + * + * + * @generated + */ + public String getPublisherMaxBatchSize() { + return publisherMaxBatchSize; + } + + /** + * + * + * @generated + */ + public void setPublisherMaxBatchSize(String newPublisherMaxBatchSize) { + String oldPublisherMaxBatchSize = publisherMaxBatchSize; + publisherMaxBatchSize = newPublisherMaxBatchSize; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.TCA_CONFIGURATION__PUBLISHER_MAX_BATCH_SIZE, oldPublisherMaxBatchSize, publisherMaxBatchSize)); + } + + /** + * + * + * @generated + */ + public String getPublisherMaxRecoveryQueueSize() { + return publisherMaxRecoveryQueueSize; + } + + /** + * + * + * @generated + */ + public void setPublisherMaxRecoveryQueueSize(String newPublisherMaxRecoveryQueueSize) { + String oldPublisherMaxRecoveryQueueSize = publisherMaxRecoveryQueueSize; + publisherMaxRecoveryQueueSize = newPublisherMaxRecoveryQueueSize; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.TCA_CONFIGURATION__PUBLISHER_MAX_RECOVERY_QUEUE_SIZE, oldPublisherMaxRecoveryQueueSize, publisherMaxRecoveryQueueSize)); + } + + /** + * + * + * @generated + */ + public String getPublisherPollingInterval() { + return publisherPollingInterval; + } + + /** + * + * + * @generated + */ + public void setPublisherPollingInterval(String newPublisherPollingInterval) { + String oldPublisherPollingInterval = publisherPollingInterval; + publisherPollingInterval = newPublisherPollingInterval; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.TCA_CONFIGURATION__PUBLISHER_POLLING_INTERVAL, oldPublisherPollingInterval, publisherPollingInterval)); + } + + /** + * + * + * @generated + */ + public EList getMetricsPerFunctionalRole() { + if (metricsPerFunctionalRole == null) { + metricsPerFunctionalRole = new EObjectContainmentEList(TcaMetrics.class, this, CommonPackage.TCA_CONFIGURATION__METRICS_PER_FUNCTIONAL_ROLE); + } + return metricsPerFunctionalRole; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case CommonPackage.TCA_CONFIGURATION__METRICS_PER_FUNCTIONAL_ROLE: + return ((InternalEList)getMetricsPerFunctionalRole()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case CommonPackage.TCA_CONFIGURATION__DOMAIN: + return getDomain(); + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_HOST_NAME: + return getSubscriberHostName(); + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_HOST_PORT: + return getSubscriberHostPort(); + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_TOPIC_NAME: + return getSubscriberTopicName(); + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_PROTOCOL: + return getSubscriberProtocol(); + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_USER_NAME: + return getSubscriberUserName(); + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_USER_PASSWORD: + return getSubscriberUserPassword(); + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_CONTENT_TYPE: + return getSubscriberContentType(); + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_CONSUMER_ID: + return getSubscriberConsumerId(); + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_CONSUMER_GROUP: + return getSubscriberConsumerGroup(); + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_TIMEOUT_MS: + return getSubscriberTimeoutMS(); + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_MESSAGE_LIMIT: + return getSubscriberMessageLimit(); + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_POLLING_INTERVAL: + return getSubscriberPollingInterval(); + case CommonPackage.TCA_CONFIGURATION__PUBLISHER_HOST_NAME: + return getPublisherHostName(); + case CommonPackage.TCA_CONFIGURATION__PUBLISHER_HOST_PORT: + return getPublisherHostPort(); + case CommonPackage.TCA_CONFIGURATION__PUBLISHER_TOPIC_NAME: + return getPublisherTopicName(); + case CommonPackage.TCA_CONFIGURATION__PUBLISHER_PROTOCOL: + return getPublisherProtocol(); + case CommonPackage.TCA_CONFIGURATION__PUBLISHER_USER_NAME: + return getPublisherUserName(); + case CommonPackage.TCA_CONFIGURATION__PUBLISHER_USER_PASSWORD: + return getPublisherUserPassword(); + case CommonPackage.TCA_CONFIGURATION__PUBLISHER_CONTENT_TYPE: + return getPublisherContentType(); + case CommonPackage.TCA_CONFIGURATION__PUBLISHER_MAX_BATCH_SIZE: + return getPublisherMaxBatchSize(); + case CommonPackage.TCA_CONFIGURATION__PUBLISHER_MAX_RECOVERY_QUEUE_SIZE: + return getPublisherMaxRecoveryQueueSize(); + case CommonPackage.TCA_CONFIGURATION__PUBLISHER_POLLING_INTERVAL: + return getPublisherPollingInterval(); + case CommonPackage.TCA_CONFIGURATION__METRICS_PER_FUNCTIONAL_ROLE: + return getMetricsPerFunctionalRole(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case CommonPackage.TCA_CONFIGURATION__DOMAIN: + setDomain((String)newValue); + return; + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_HOST_NAME: + setSubscriberHostName((String)newValue); + return; + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_HOST_PORT: + setSubscriberHostPort((String)newValue); + return; + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_TOPIC_NAME: + setSubscriberTopicName((String)newValue); + return; + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_PROTOCOL: + setSubscriberProtocol((String)newValue); + return; + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_USER_NAME: + setSubscriberUserName((String)newValue); + return; + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_USER_PASSWORD: + setSubscriberUserPassword((String)newValue); + return; + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_CONTENT_TYPE: + setSubscriberContentType((String)newValue); + return; + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_CONSUMER_ID: + setSubscriberConsumerId((String)newValue); + return; + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_CONSUMER_GROUP: + setSubscriberConsumerGroup((String)newValue); + return; + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_TIMEOUT_MS: + setSubscriberTimeoutMS((String)newValue); + return; + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_MESSAGE_LIMIT: + setSubscriberMessageLimit((String)newValue); + return; + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_POLLING_INTERVAL: + setSubscriberPollingInterval((String)newValue); + return; + case CommonPackage.TCA_CONFIGURATION__PUBLISHER_HOST_NAME: + setPublisherHostName((String)newValue); + return; + case CommonPackage.TCA_CONFIGURATION__PUBLISHER_HOST_PORT: + setPublisherHostPort((String)newValue); + return; + case CommonPackage.TCA_CONFIGURATION__PUBLISHER_TOPIC_NAME: + setPublisherTopicName((String)newValue); + return; + case CommonPackage.TCA_CONFIGURATION__PUBLISHER_PROTOCOL: + setPublisherProtocol((String)newValue); + return; + case CommonPackage.TCA_CONFIGURATION__PUBLISHER_USER_NAME: + setPublisherUserName((String)newValue); + return; + case CommonPackage.TCA_CONFIGURATION__PUBLISHER_USER_PASSWORD: + setPublisherUserPassword((String)newValue); + return; + case CommonPackage.TCA_CONFIGURATION__PUBLISHER_CONTENT_TYPE: + setPublisherContentType((String)newValue); + return; + case CommonPackage.TCA_CONFIGURATION__PUBLISHER_MAX_BATCH_SIZE: + setPublisherMaxBatchSize((String)newValue); + return; + case CommonPackage.TCA_CONFIGURATION__PUBLISHER_MAX_RECOVERY_QUEUE_SIZE: + setPublisherMaxRecoveryQueueSize((String)newValue); + return; + case CommonPackage.TCA_CONFIGURATION__PUBLISHER_POLLING_INTERVAL: + setPublisherPollingInterval((String)newValue); + return; + case CommonPackage.TCA_CONFIGURATION__METRICS_PER_FUNCTIONAL_ROLE: + getMetricsPerFunctionalRole().clear(); + getMetricsPerFunctionalRole().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case CommonPackage.TCA_CONFIGURATION__DOMAIN: + setDomain(DOMAIN_EDEFAULT); + return; + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_HOST_NAME: + setSubscriberHostName(SUBSCRIBER_HOST_NAME_EDEFAULT); + return; + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_HOST_PORT: + setSubscriberHostPort(SUBSCRIBER_HOST_PORT_EDEFAULT); + return; + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_TOPIC_NAME: + setSubscriberTopicName(SUBSCRIBER_TOPIC_NAME_EDEFAULT); + return; + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_PROTOCOL: + setSubscriberProtocol(SUBSCRIBER_PROTOCOL_EDEFAULT); + return; + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_USER_NAME: + setSubscriberUserName(SUBSCRIBER_USER_NAME_EDEFAULT); + return; + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_USER_PASSWORD: + setSubscriberUserPassword(SUBSCRIBER_USER_PASSWORD_EDEFAULT); + return; + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_CONTENT_TYPE: + setSubscriberContentType(SUBSCRIBER_CONTENT_TYPE_EDEFAULT); + return; + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_CONSUMER_ID: + setSubscriberConsumerId(SUBSCRIBER_CONSUMER_ID_EDEFAULT); + return; + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_CONSUMER_GROUP: + setSubscriberConsumerGroup(SUBSCRIBER_CONSUMER_GROUP_EDEFAULT); + return; + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_TIMEOUT_MS: + setSubscriberTimeoutMS(SUBSCRIBER_TIMEOUT_MS_EDEFAULT); + return; + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_MESSAGE_LIMIT: + setSubscriberMessageLimit(SUBSCRIBER_MESSAGE_LIMIT_EDEFAULT); + return; + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_POLLING_INTERVAL: + setSubscriberPollingInterval(SUBSCRIBER_POLLING_INTERVAL_EDEFAULT); + return; + case CommonPackage.TCA_CONFIGURATION__PUBLISHER_HOST_NAME: + setPublisherHostName(PUBLISHER_HOST_NAME_EDEFAULT); + return; + case CommonPackage.TCA_CONFIGURATION__PUBLISHER_HOST_PORT: + setPublisherHostPort(PUBLISHER_HOST_PORT_EDEFAULT); + return; + case CommonPackage.TCA_CONFIGURATION__PUBLISHER_TOPIC_NAME: + setPublisherTopicName(PUBLISHER_TOPIC_NAME_EDEFAULT); + return; + case CommonPackage.TCA_CONFIGURATION__PUBLISHER_PROTOCOL: + setPublisherProtocol(PUBLISHER_PROTOCOL_EDEFAULT); + return; + case CommonPackage.TCA_CONFIGURATION__PUBLISHER_USER_NAME: + setPublisherUserName(PUBLISHER_USER_NAME_EDEFAULT); + return; + case CommonPackage.TCA_CONFIGURATION__PUBLISHER_USER_PASSWORD: + setPublisherUserPassword(PUBLISHER_USER_PASSWORD_EDEFAULT); + return; + case CommonPackage.TCA_CONFIGURATION__PUBLISHER_CONTENT_TYPE: + setPublisherContentType(PUBLISHER_CONTENT_TYPE_EDEFAULT); + return; + case CommonPackage.TCA_CONFIGURATION__PUBLISHER_MAX_BATCH_SIZE: + setPublisherMaxBatchSize(PUBLISHER_MAX_BATCH_SIZE_EDEFAULT); + return; + case CommonPackage.TCA_CONFIGURATION__PUBLISHER_MAX_RECOVERY_QUEUE_SIZE: + setPublisherMaxRecoveryQueueSize(PUBLISHER_MAX_RECOVERY_QUEUE_SIZE_EDEFAULT); + return; + case CommonPackage.TCA_CONFIGURATION__PUBLISHER_POLLING_INTERVAL: + setPublisherPollingInterval(PUBLISHER_POLLING_INTERVAL_EDEFAULT); + return; + case CommonPackage.TCA_CONFIGURATION__METRICS_PER_FUNCTIONAL_ROLE: + getMetricsPerFunctionalRole().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case CommonPackage.TCA_CONFIGURATION__DOMAIN: + return DOMAIN_EDEFAULT == null ? domain != null : !DOMAIN_EDEFAULT.equals(domain); + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_HOST_NAME: + return SUBSCRIBER_HOST_NAME_EDEFAULT == null ? subscriberHostName != null : !SUBSCRIBER_HOST_NAME_EDEFAULT.equals(subscriberHostName); + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_HOST_PORT: + return SUBSCRIBER_HOST_PORT_EDEFAULT == null ? subscriberHostPort != null : !SUBSCRIBER_HOST_PORT_EDEFAULT.equals(subscriberHostPort); + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_TOPIC_NAME: + return SUBSCRIBER_TOPIC_NAME_EDEFAULT == null ? subscriberTopicName != null : !SUBSCRIBER_TOPIC_NAME_EDEFAULT.equals(subscriberTopicName); + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_PROTOCOL: + return SUBSCRIBER_PROTOCOL_EDEFAULT == null ? subscriberProtocol != null : !SUBSCRIBER_PROTOCOL_EDEFAULT.equals(subscriberProtocol); + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_USER_NAME: + return SUBSCRIBER_USER_NAME_EDEFAULT == null ? subscriberUserName != null : !SUBSCRIBER_USER_NAME_EDEFAULT.equals(subscriberUserName); + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_USER_PASSWORD: + return SUBSCRIBER_USER_PASSWORD_EDEFAULT == null ? subscriberUserPassword != null : !SUBSCRIBER_USER_PASSWORD_EDEFAULT.equals(subscriberUserPassword); + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_CONTENT_TYPE: + return SUBSCRIBER_CONTENT_TYPE_EDEFAULT == null ? subscriberContentType != null : !SUBSCRIBER_CONTENT_TYPE_EDEFAULT.equals(subscriberContentType); + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_CONSUMER_ID: + return SUBSCRIBER_CONSUMER_ID_EDEFAULT == null ? subscriberConsumerId != null : !SUBSCRIBER_CONSUMER_ID_EDEFAULT.equals(subscriberConsumerId); + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_CONSUMER_GROUP: + return SUBSCRIBER_CONSUMER_GROUP_EDEFAULT == null ? subscriberConsumerGroup != null : !SUBSCRIBER_CONSUMER_GROUP_EDEFAULT.equals(subscriberConsumerGroup); + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_TIMEOUT_MS: + return SUBSCRIBER_TIMEOUT_MS_EDEFAULT == null ? subscriberTimeoutMS != null : !SUBSCRIBER_TIMEOUT_MS_EDEFAULT.equals(subscriberTimeoutMS); + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_MESSAGE_LIMIT: + return SUBSCRIBER_MESSAGE_LIMIT_EDEFAULT == null ? subscriberMessageLimit != null : !SUBSCRIBER_MESSAGE_LIMIT_EDEFAULT.equals(subscriberMessageLimit); + case CommonPackage.TCA_CONFIGURATION__SUBSCRIBER_POLLING_INTERVAL: + return SUBSCRIBER_POLLING_INTERVAL_EDEFAULT == null ? subscriberPollingInterval != null : !SUBSCRIBER_POLLING_INTERVAL_EDEFAULT.equals(subscriberPollingInterval); + case CommonPackage.TCA_CONFIGURATION__PUBLISHER_HOST_NAME: + return PUBLISHER_HOST_NAME_EDEFAULT == null ? publisherHostName != null : !PUBLISHER_HOST_NAME_EDEFAULT.equals(publisherHostName); + case CommonPackage.TCA_CONFIGURATION__PUBLISHER_HOST_PORT: + return PUBLISHER_HOST_PORT_EDEFAULT == null ? publisherHostPort != null : !PUBLISHER_HOST_PORT_EDEFAULT.equals(publisherHostPort); + case CommonPackage.TCA_CONFIGURATION__PUBLISHER_TOPIC_NAME: + return PUBLISHER_TOPIC_NAME_EDEFAULT == null ? publisherTopicName != null : !PUBLISHER_TOPIC_NAME_EDEFAULT.equals(publisherTopicName); + case CommonPackage.TCA_CONFIGURATION__PUBLISHER_PROTOCOL: + return PUBLISHER_PROTOCOL_EDEFAULT == null ? publisherProtocol != null : !PUBLISHER_PROTOCOL_EDEFAULT.equals(publisherProtocol); + case CommonPackage.TCA_CONFIGURATION__PUBLISHER_USER_NAME: + return PUBLISHER_USER_NAME_EDEFAULT == null ? publisherUserName != null : !PUBLISHER_USER_NAME_EDEFAULT.equals(publisherUserName); + case CommonPackage.TCA_CONFIGURATION__PUBLISHER_USER_PASSWORD: + return PUBLISHER_USER_PASSWORD_EDEFAULT == null ? publisherUserPassword != null : !PUBLISHER_USER_PASSWORD_EDEFAULT.equals(publisherUserPassword); + case CommonPackage.TCA_CONFIGURATION__PUBLISHER_CONTENT_TYPE: + return PUBLISHER_CONTENT_TYPE_EDEFAULT == null ? publisherContentType != null : !PUBLISHER_CONTENT_TYPE_EDEFAULT.equals(publisherContentType); + case CommonPackage.TCA_CONFIGURATION__PUBLISHER_MAX_BATCH_SIZE: + return PUBLISHER_MAX_BATCH_SIZE_EDEFAULT == null ? publisherMaxBatchSize != null : !PUBLISHER_MAX_BATCH_SIZE_EDEFAULT.equals(publisherMaxBatchSize); + case CommonPackage.TCA_CONFIGURATION__PUBLISHER_MAX_RECOVERY_QUEUE_SIZE: + return PUBLISHER_MAX_RECOVERY_QUEUE_SIZE_EDEFAULT == null ? publisherMaxRecoveryQueueSize != null : !PUBLISHER_MAX_RECOVERY_QUEUE_SIZE_EDEFAULT.equals(publisherMaxRecoveryQueueSize); + case CommonPackage.TCA_CONFIGURATION__PUBLISHER_POLLING_INTERVAL: + return PUBLISHER_POLLING_INTERVAL_EDEFAULT == null ? publisherPollingInterval != null : !PUBLISHER_POLLING_INTERVAL_EDEFAULT.equals(publisherPollingInterval); + case CommonPackage.TCA_CONFIGURATION__METRICS_PER_FUNCTIONAL_ROLE: + return metricsPerFunctionalRole != null && !metricsPerFunctionalRole.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (domain: "); + result.append(domain); + result.append(", subscriberHostName: "); + result.append(subscriberHostName); + result.append(", subscriberHostPort: "); + result.append(subscriberHostPort); + result.append(", subscriberTopicName: "); + result.append(subscriberTopicName); + result.append(", subscriberProtocol: "); + result.append(subscriberProtocol); + result.append(", subscriberUserName: "); + result.append(subscriberUserName); + result.append(", subscriberUserPassword: "); + result.append(subscriberUserPassword); + result.append(", subscriberContentType: "); + result.append(subscriberContentType); + result.append(", subscriberConsumerId: "); + result.append(subscriberConsumerId); + result.append(", subscriberConsumerGroup: "); + result.append(subscriberConsumerGroup); + result.append(", subscriberTimeoutMS: "); + result.append(subscriberTimeoutMS); + result.append(", subscriberMessageLimit: "); + result.append(subscriberMessageLimit); + result.append(", subscriberPollingInterval: "); + result.append(subscriberPollingInterval); + result.append(", publisherHostName: "); + result.append(publisherHostName); + result.append(", publisherHostPort: "); + result.append(publisherHostPort); + result.append(", publisherTopicName: "); + result.append(publisherTopicName); + result.append(", publisherProtocol: "); + result.append(publisherProtocol); + result.append(", publisherUserName: "); + result.append(publisherUserName); + result.append(", publisherUserPassword: "); + result.append(publisherUserPassword); + result.append(", publisherContentType: "); + result.append(publisherContentType); + result.append(", publisherMaxBatchSize: "); + result.append(publisherMaxBatchSize); + result.append(", publisherMaxRecoveryQueueSize: "); + result.append(publisherMaxRecoveryQueueSize); + result.append(", publisherPollingInterval: "); + result.append(publisherPollingInterval); + result.append(')'); + return result.toString(); + } + +} //TcaConfigurationImpl diff --git a/dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/impl/TcaMetricsImpl.java b/dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/impl/TcaMetricsImpl.java new file mode 100644 index 0000000..5ad8173 --- /dev/null +++ b/dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/impl/TcaMetricsImpl.java @@ -0,0 +1,661 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.dcae.analytics.cdap.common.impl; + +import org.openecomp.dcae.analytics.cdap.common.CommonPackage; +import org.openecomp.dcae.analytics.cdap.common.TcaMetrics; +import org.openecomp.dcae.analytics.cdap.common.TcaThreshold; +import org.openecomp.dcae.controller.core.service.DcaePolicyEntity; +import org.openecomp.dcae.controller.core.service.ServicePackage; +import org.openecomp.ncomp.core.impl.NamedEntityImpl; +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; + +/** + * + * An implementation of the model object 'Tca Metrics'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.dcae.analytics.cdap.common.impl.TcaMetricsImpl#getPolicyName Policy Name}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.impl.TcaMetricsImpl#getPolicyDescription Policy Description}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.impl.TcaMetricsImpl#getPolicyConfigName Policy Config Name}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.impl.TcaMetricsImpl#getPolicyTemplateVersion Policy Template Version}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.impl.TcaMetricsImpl#getPolicyVersion Policy Version}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.impl.TcaMetricsImpl#getPolicyPriority Policy Priority}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.impl.TcaMetricsImpl#getPolicyScope Policy Scope}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.impl.TcaMetricsImpl#getFunctionalRole Functional Role}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.impl.TcaMetricsImpl#getThresholds Thresholds}
  • + *
+ *

+ * + * @generated + */ +public class TcaMetricsImpl extends NamedEntityImpl implements TcaMetrics { + /** + * The default value of the '{@link #getPolicyName() Policy Name}' attribute. + * + * + * @see #getPolicyName() + * @generated + * @ordered + */ + protected static final String POLICY_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPolicyName() Policy Name}' attribute. + * + * + * @see #getPolicyName() + * @generated + * @ordered + */ + protected String policyName = POLICY_NAME_EDEFAULT; + + /** + * The default value of the '{@link #getPolicyDescription() Policy Description}' attribute. + * + * + * @see #getPolicyDescription() + * @generated + * @ordered + */ + protected static final String POLICY_DESCRIPTION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPolicyDescription() Policy Description}' attribute. + * + * + * @see #getPolicyDescription() + * @generated + * @ordered + */ + protected String policyDescription = POLICY_DESCRIPTION_EDEFAULT; + + /** + * The default value of the '{@link #getPolicyConfigName() Policy Config Name}' attribute. + * + * + * @see #getPolicyConfigName() + * @generated + * @ordered + */ + protected static final String POLICY_CONFIG_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPolicyConfigName() Policy Config Name}' attribute. + * + * + * @see #getPolicyConfigName() + * @generated + * @ordered + */ + protected String policyConfigName = POLICY_CONFIG_NAME_EDEFAULT; + + /** + * The default value of the '{@link #getPolicyTemplateVersion() Policy Template Version}' attribute. + * + * + * @see #getPolicyTemplateVersion() + * @generated + * @ordered + */ + protected static final String POLICY_TEMPLATE_VERSION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPolicyTemplateVersion() Policy Template Version}' attribute. + * + * + * @see #getPolicyTemplateVersion() + * @generated + * @ordered + */ + protected String policyTemplateVersion = POLICY_TEMPLATE_VERSION_EDEFAULT; + + /** + * The default value of the '{@link #getPolicyVersion() Policy Version}' attribute. + * + * + * @see #getPolicyVersion() + * @generated + * @ordered + */ + protected static final String POLICY_VERSION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPolicyVersion() Policy Version}' attribute. + * + * + * @see #getPolicyVersion() + * @generated + * @ordered + */ + protected String policyVersion = POLICY_VERSION_EDEFAULT; + + /** + * The default value of the '{@link #getPolicyPriority() Policy Priority}' attribute. + * + * + * @see #getPolicyPriority() + * @generated + * @ordered + */ + protected static final String POLICY_PRIORITY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPolicyPriority() Policy Priority}' attribute. + * + * + * @see #getPolicyPriority() + * @generated + * @ordered + */ + protected String policyPriority = POLICY_PRIORITY_EDEFAULT; + + /** + * The default value of the '{@link #getPolicyScope() Policy Scope}' attribute. + * + * + * @see #getPolicyScope() + * @generated + * @ordered + */ + protected static final String POLICY_SCOPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPolicyScope() Policy Scope}' attribute. + * + * + * @see #getPolicyScope() + * @generated + * @ordered + */ + protected String policyScope = POLICY_SCOPE_EDEFAULT; + + /** + * The default value of the '{@link #getFunctionalRole() Functional Role}' attribute. + * + * + * @see #getFunctionalRole() + * @generated + * @ordered + */ + protected static final String FUNCTIONAL_ROLE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getFunctionalRole() Functional Role}' attribute. + * + * + * @see #getFunctionalRole() + * @generated + * @ordered + */ + protected String functionalRole = FUNCTIONAL_ROLE_EDEFAULT; + + /** + * The cached value of the '{@link #getThresholds() Thresholds}' containment reference list. + * + * + * @see #getThresholds() + * @generated + * @ordered + */ + protected EList thresholds; + + /** + * + * + * @generated + */ + protected TcaMetricsImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return CommonPackage.Literals.TCA_METRICS; + } + + /** + * + * + * @generated + */ + public String getPolicyName() { + return policyName; + } + + /** + * + * + * @generated + */ + public void setPolicyName(String newPolicyName) { + String oldPolicyName = policyName; + policyName = newPolicyName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.TCA_METRICS__POLICY_NAME, oldPolicyName, policyName)); + } + + /** + * + * + * @generated + */ + public String getPolicyDescription() { + return policyDescription; + } + + /** + * + * + * @generated + */ + public void setPolicyDescription(String newPolicyDescription) { + String oldPolicyDescription = policyDescription; + policyDescription = newPolicyDescription; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.TCA_METRICS__POLICY_DESCRIPTION, oldPolicyDescription, policyDescription)); + } + + /** + * + * + * @generated + */ + public String getPolicyConfigName() { + return policyConfigName; + } + + /** + * + * + * @generated + */ + public void setPolicyConfigName(String newPolicyConfigName) { + String oldPolicyConfigName = policyConfigName; + policyConfigName = newPolicyConfigName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.TCA_METRICS__POLICY_CONFIG_NAME, oldPolicyConfigName, policyConfigName)); + } + + /** + * + * + * @generated + */ + public String getPolicyTemplateVersion() { + return policyTemplateVersion; + } + + /** + * + * + * @generated + */ + public void setPolicyTemplateVersion(String newPolicyTemplateVersion) { + String oldPolicyTemplateVersion = policyTemplateVersion; + policyTemplateVersion = newPolicyTemplateVersion; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.TCA_METRICS__POLICY_TEMPLATE_VERSION, oldPolicyTemplateVersion, policyTemplateVersion)); + } + + /** + * + * + * @generated + */ + public String getPolicyVersion() { + return policyVersion; + } + + /** + * + * + * @generated + */ + public void setPolicyVersion(String newPolicyVersion) { + String oldPolicyVersion = policyVersion; + policyVersion = newPolicyVersion; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.TCA_METRICS__POLICY_VERSION, oldPolicyVersion, policyVersion)); + } + + /** + * + * + * @generated + */ + public String getPolicyPriority() { + return policyPriority; + } + + /** + * + * + * @generated + */ + public void setPolicyPriority(String newPolicyPriority) { + String oldPolicyPriority = policyPriority; + policyPriority = newPolicyPriority; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.TCA_METRICS__POLICY_PRIORITY, oldPolicyPriority, policyPriority)); + } + + /** + * + * + * @generated + */ + public String getPolicyScope() { + return policyScope; + } + + /** + * + * + * @generated + */ + public void setPolicyScope(String newPolicyScope) { + String oldPolicyScope = policyScope; + policyScope = newPolicyScope; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.TCA_METRICS__POLICY_SCOPE, oldPolicyScope, policyScope)); + } + + /** + * + * + * @generated + */ + public String getFunctionalRole() { + return functionalRole; + } + + /** + * + * + * @generated + */ + public void setFunctionalRole(String newFunctionalRole) { + String oldFunctionalRole = functionalRole; + functionalRole = newFunctionalRole; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.TCA_METRICS__FUNCTIONAL_ROLE, oldFunctionalRole, functionalRole)); + } + + /** + * + * + * @generated + */ + public EList getThresholds() { + if (thresholds == null) { + thresholds = new EObjectContainmentEList(TcaThreshold.class, this, CommonPackage.TCA_METRICS__THRESHOLDS); + } + return thresholds; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case CommonPackage.TCA_METRICS__THRESHOLDS: + return ((InternalEList)getThresholds()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case CommonPackage.TCA_METRICS__POLICY_NAME: + return getPolicyName(); + case CommonPackage.TCA_METRICS__POLICY_DESCRIPTION: + return getPolicyDescription(); + case CommonPackage.TCA_METRICS__POLICY_CONFIG_NAME: + return getPolicyConfigName(); + case CommonPackage.TCA_METRICS__POLICY_TEMPLATE_VERSION: + return getPolicyTemplateVersion(); + case CommonPackage.TCA_METRICS__POLICY_VERSION: + return getPolicyVersion(); + case CommonPackage.TCA_METRICS__POLICY_PRIORITY: + return getPolicyPriority(); + case CommonPackage.TCA_METRICS__POLICY_SCOPE: + return getPolicyScope(); + case CommonPackage.TCA_METRICS__FUNCTIONAL_ROLE: + return getFunctionalRole(); + case CommonPackage.TCA_METRICS__THRESHOLDS: + return getThresholds(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case CommonPackage.TCA_METRICS__POLICY_NAME: + setPolicyName((String)newValue); + return; + case CommonPackage.TCA_METRICS__POLICY_DESCRIPTION: + setPolicyDescription((String)newValue); + return; + case CommonPackage.TCA_METRICS__POLICY_CONFIG_NAME: + setPolicyConfigName((String)newValue); + return; + case CommonPackage.TCA_METRICS__POLICY_TEMPLATE_VERSION: + setPolicyTemplateVersion((String)newValue); + return; + case CommonPackage.TCA_METRICS__POLICY_VERSION: + setPolicyVersion((String)newValue); + return; + case CommonPackage.TCA_METRICS__POLICY_PRIORITY: + setPolicyPriority((String)newValue); + return; + case CommonPackage.TCA_METRICS__POLICY_SCOPE: + setPolicyScope((String)newValue); + return; + case CommonPackage.TCA_METRICS__FUNCTIONAL_ROLE: + setFunctionalRole((String)newValue); + return; + case CommonPackage.TCA_METRICS__THRESHOLDS: + getThresholds().clear(); + getThresholds().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case CommonPackage.TCA_METRICS__POLICY_NAME: + setPolicyName(POLICY_NAME_EDEFAULT); + return; + case CommonPackage.TCA_METRICS__POLICY_DESCRIPTION: + setPolicyDescription(POLICY_DESCRIPTION_EDEFAULT); + return; + case CommonPackage.TCA_METRICS__POLICY_CONFIG_NAME: + setPolicyConfigName(POLICY_CONFIG_NAME_EDEFAULT); + return; + case CommonPackage.TCA_METRICS__POLICY_TEMPLATE_VERSION: + setPolicyTemplateVersion(POLICY_TEMPLATE_VERSION_EDEFAULT); + return; + case CommonPackage.TCA_METRICS__POLICY_VERSION: + setPolicyVersion(POLICY_VERSION_EDEFAULT); + return; + case CommonPackage.TCA_METRICS__POLICY_PRIORITY: + setPolicyPriority(POLICY_PRIORITY_EDEFAULT); + return; + case CommonPackage.TCA_METRICS__POLICY_SCOPE: + setPolicyScope(POLICY_SCOPE_EDEFAULT); + return; + case CommonPackage.TCA_METRICS__FUNCTIONAL_ROLE: + setFunctionalRole(FUNCTIONAL_ROLE_EDEFAULT); + return; + case CommonPackage.TCA_METRICS__THRESHOLDS: + getThresholds().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case CommonPackage.TCA_METRICS__POLICY_NAME: + return POLICY_NAME_EDEFAULT == null ? policyName != null : !POLICY_NAME_EDEFAULT.equals(policyName); + case CommonPackage.TCA_METRICS__POLICY_DESCRIPTION: + return POLICY_DESCRIPTION_EDEFAULT == null ? policyDescription != null : !POLICY_DESCRIPTION_EDEFAULT.equals(policyDescription); + case CommonPackage.TCA_METRICS__POLICY_CONFIG_NAME: + return POLICY_CONFIG_NAME_EDEFAULT == null ? policyConfigName != null : !POLICY_CONFIG_NAME_EDEFAULT.equals(policyConfigName); + case CommonPackage.TCA_METRICS__POLICY_TEMPLATE_VERSION: + return POLICY_TEMPLATE_VERSION_EDEFAULT == null ? policyTemplateVersion != null : !POLICY_TEMPLATE_VERSION_EDEFAULT.equals(policyTemplateVersion); + case CommonPackage.TCA_METRICS__POLICY_VERSION: + return POLICY_VERSION_EDEFAULT == null ? policyVersion != null : !POLICY_VERSION_EDEFAULT.equals(policyVersion); + case CommonPackage.TCA_METRICS__POLICY_PRIORITY: + return POLICY_PRIORITY_EDEFAULT == null ? policyPriority != null : !POLICY_PRIORITY_EDEFAULT.equals(policyPriority); + case CommonPackage.TCA_METRICS__POLICY_SCOPE: + return POLICY_SCOPE_EDEFAULT == null ? policyScope != null : !POLICY_SCOPE_EDEFAULT.equals(policyScope); + case CommonPackage.TCA_METRICS__FUNCTIONAL_ROLE: + return FUNCTIONAL_ROLE_EDEFAULT == null ? functionalRole != null : !FUNCTIONAL_ROLE_EDEFAULT.equals(functionalRole); + case CommonPackage.TCA_METRICS__THRESHOLDS: + return thresholds != null && !thresholds.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { + if (baseClass == DcaePolicyEntity.class) { + switch (derivedFeatureID) { + case CommonPackage.TCA_METRICS__POLICY_NAME: return ServicePackage.DCAE_POLICY_ENTITY__POLICY_NAME; + case CommonPackage.TCA_METRICS__POLICY_DESCRIPTION: return ServicePackage.DCAE_POLICY_ENTITY__POLICY_DESCRIPTION; + case CommonPackage.TCA_METRICS__POLICY_CONFIG_NAME: return ServicePackage.DCAE_POLICY_ENTITY__POLICY_CONFIG_NAME; + case CommonPackage.TCA_METRICS__POLICY_TEMPLATE_VERSION: return ServicePackage.DCAE_POLICY_ENTITY__POLICY_TEMPLATE_VERSION; + case CommonPackage.TCA_METRICS__POLICY_VERSION: return ServicePackage.DCAE_POLICY_ENTITY__POLICY_VERSION; + case CommonPackage.TCA_METRICS__POLICY_PRIORITY: return ServicePackage.DCAE_POLICY_ENTITY__POLICY_PRIORITY; + case CommonPackage.TCA_METRICS__POLICY_SCOPE: return ServicePackage.DCAE_POLICY_ENTITY__POLICY_SCOPE; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { + if (baseClass == DcaePolicyEntity.class) { + switch (baseFeatureID) { + case ServicePackage.DCAE_POLICY_ENTITY__POLICY_NAME: return CommonPackage.TCA_METRICS__POLICY_NAME; + case ServicePackage.DCAE_POLICY_ENTITY__POLICY_DESCRIPTION: return CommonPackage.TCA_METRICS__POLICY_DESCRIPTION; + case ServicePackage.DCAE_POLICY_ENTITY__POLICY_CONFIG_NAME: return CommonPackage.TCA_METRICS__POLICY_CONFIG_NAME; + case ServicePackage.DCAE_POLICY_ENTITY__POLICY_TEMPLATE_VERSION: return CommonPackage.TCA_METRICS__POLICY_TEMPLATE_VERSION; + case ServicePackage.DCAE_POLICY_ENTITY__POLICY_VERSION: return CommonPackage.TCA_METRICS__POLICY_VERSION; + case ServicePackage.DCAE_POLICY_ENTITY__POLICY_PRIORITY: return CommonPackage.TCA_METRICS__POLICY_PRIORITY; + case ServicePackage.DCAE_POLICY_ENTITY__POLICY_SCOPE: return CommonPackage.TCA_METRICS__POLICY_SCOPE; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (policyName: "); + result.append(policyName); + result.append(", policyDescription: "); + result.append(policyDescription); + result.append(", policyConfigName: "); + result.append(policyConfigName); + result.append(", policyTemplateVersion: "); + result.append(policyTemplateVersion); + result.append(", policyVersion: "); + result.append(policyVersion); + result.append(", policyPriority: "); + result.append(policyPriority); + result.append(", policyScope: "); + result.append(policyScope); + result.append(", functionalRole: "); + result.append(functionalRole); + result.append(')'); + return result.toString(); + } + +} //TcaMetricsImpl diff --git a/dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/impl/TcaThresholdImpl.java b/dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/impl/TcaThresholdImpl.java new file mode 100644 index 0000000..7004af4 --- /dev/null +++ b/dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/impl/TcaThresholdImpl.java @@ -0,0 +1,451 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.dcae.analytics.cdap.common.impl; + +import org.openecomp.dcae.analytics.cdap.common.CommonPackage; +import org.openecomp.dcae.analytics.cdap.common.TcaThreshold; +import org.openecomp.ncomp.core.impl.NamedEntityImpl; +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'Tca Threshold'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.dcae.analytics.cdap.common.impl.TcaThresholdImpl#getClosedLoopControlName Closed Loop Control Name}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.impl.TcaThresholdImpl#getVersion Version}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.impl.TcaThresholdImpl#getFieldPath Field Path}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.impl.TcaThresholdImpl#getThresholdValue Threshold Value}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.impl.TcaThresholdImpl#getDirection Direction}
  • + *
  • {@link org.openecomp.dcae.analytics.cdap.common.impl.TcaThresholdImpl#getSeverity Severity}
  • + *
+ *

+ * + * @generated + */ +public class TcaThresholdImpl extends NamedEntityImpl implements TcaThreshold { + /** + * The default value of the '{@link #getClosedLoopControlName() Closed Loop Control Name}' attribute. + * + * + * @see #getClosedLoopControlName() + * @generated + * @ordered + */ + protected static final String CLOSED_LOOP_CONTROL_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getClosedLoopControlName() Closed Loop Control Name}' attribute. + * + * + * @see #getClosedLoopControlName() + * @generated + * @ordered + */ + protected String closedLoopControlName = CLOSED_LOOP_CONTROL_NAME_EDEFAULT; + + /** + * The default value of the '{@link #getVersion() Version}' attribute. + * + * + * @see #getVersion() + * @generated + * @ordered + */ + protected static final String VERSION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getVersion() Version}' attribute. + * + * + * @see #getVersion() + * @generated + * @ordered + */ + protected String version = VERSION_EDEFAULT; + + /** + * The default value of the '{@link #getFieldPath() Field Path}' attribute. + * + * + * @see #getFieldPath() + * @generated + * @ordered + */ + protected static final String FIELD_PATH_EDEFAULT = null; + + /** + * The cached value of the '{@link #getFieldPath() Field Path}' attribute. + * + * + * @see #getFieldPath() + * @generated + * @ordered + */ + protected String fieldPath = FIELD_PATH_EDEFAULT; + + /** + * The default value of the '{@link #getThresholdValue() Threshold Value}' attribute. + * + * + * @see #getThresholdValue() + * @generated + * @ordered + */ + protected static final Integer THRESHOLD_VALUE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getThresholdValue() Threshold Value}' attribute. + * + * + * @see #getThresholdValue() + * @generated + * @ordered + */ + protected Integer thresholdValue = THRESHOLD_VALUE_EDEFAULT; + + /** + * The default value of the '{@link #getDirection() Direction}' attribute. + * + * + * @see #getDirection() + * @generated + * @ordered + */ + protected static final String DIRECTION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDirection() Direction}' attribute. + * + * + * @see #getDirection() + * @generated + * @ordered + */ + protected String direction = DIRECTION_EDEFAULT; + + /** + * The default value of the '{@link #getSeverity() Severity}' attribute. + * + * + * @see #getSeverity() + * @generated + * @ordered + */ + protected static final String SEVERITY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSeverity() Severity}' attribute. + * + * + * @see #getSeverity() + * @generated + * @ordered + */ + protected String severity = SEVERITY_EDEFAULT; + + /** + * + * + * @generated + */ + protected TcaThresholdImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return CommonPackage.Literals.TCA_THRESHOLD; + } + + /** + * + * + * @generated + */ + public String getClosedLoopControlName() { + return closedLoopControlName; + } + + /** + * + * + * @generated + */ + public void setClosedLoopControlName(String newClosedLoopControlName) { + String oldClosedLoopControlName = closedLoopControlName; + closedLoopControlName = newClosedLoopControlName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.TCA_THRESHOLD__CLOSED_LOOP_CONTROL_NAME, oldClosedLoopControlName, closedLoopControlName)); + } + + /** + * + * + * @generated + */ + public String getVersion() { + return version; + } + + /** + * + * + * @generated + */ + public void setVersion(String newVersion) { + String oldVersion = version; + version = newVersion; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.TCA_THRESHOLD__VERSION, oldVersion, version)); + } + + /** + * + * + * @generated + */ + public String getFieldPath() { + return fieldPath; + } + + /** + * + * + * @generated + */ + public void setFieldPath(String newFieldPath) { + String oldFieldPath = fieldPath; + fieldPath = newFieldPath; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.TCA_THRESHOLD__FIELD_PATH, oldFieldPath, fieldPath)); + } + + /** + * + * + * @generated + */ + public Integer getThresholdValue() { + return thresholdValue; + } + + /** + * + * + * @generated + */ + public void setThresholdValue(Integer newThresholdValue) { + Integer oldThresholdValue = thresholdValue; + thresholdValue = newThresholdValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.TCA_THRESHOLD__THRESHOLD_VALUE, oldThresholdValue, thresholdValue)); + } + + /** + * + * + * @generated + */ + public String getDirection() { + return direction; + } + + /** + * + * + * @generated + */ + public void setDirection(String newDirection) { + String oldDirection = direction; + direction = newDirection; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.TCA_THRESHOLD__DIRECTION, oldDirection, direction)); + } + + /** + * + * + * @generated + */ + public String getSeverity() { + return severity; + } + + /** + * + * + * @generated + */ + public void setSeverity(String newSeverity) { + String oldSeverity = severity; + severity = newSeverity; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.TCA_THRESHOLD__SEVERITY, oldSeverity, severity)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case CommonPackage.TCA_THRESHOLD__CLOSED_LOOP_CONTROL_NAME: + return getClosedLoopControlName(); + case CommonPackage.TCA_THRESHOLD__VERSION: + return getVersion(); + case CommonPackage.TCA_THRESHOLD__FIELD_PATH: + return getFieldPath(); + case CommonPackage.TCA_THRESHOLD__THRESHOLD_VALUE: + return getThresholdValue(); + case CommonPackage.TCA_THRESHOLD__DIRECTION: + return getDirection(); + case CommonPackage.TCA_THRESHOLD__SEVERITY: + return getSeverity(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case CommonPackage.TCA_THRESHOLD__CLOSED_LOOP_CONTROL_NAME: + setClosedLoopControlName((String)newValue); + return; + case CommonPackage.TCA_THRESHOLD__VERSION: + setVersion((String)newValue); + return; + case CommonPackage.TCA_THRESHOLD__FIELD_PATH: + setFieldPath((String)newValue); + return; + case CommonPackage.TCA_THRESHOLD__THRESHOLD_VALUE: + setThresholdValue((Integer)newValue); + return; + case CommonPackage.TCA_THRESHOLD__DIRECTION: + setDirection((String)newValue); + return; + case CommonPackage.TCA_THRESHOLD__SEVERITY: + setSeverity((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case CommonPackage.TCA_THRESHOLD__CLOSED_LOOP_CONTROL_NAME: + setClosedLoopControlName(CLOSED_LOOP_CONTROL_NAME_EDEFAULT); + return; + case CommonPackage.TCA_THRESHOLD__VERSION: + setVersion(VERSION_EDEFAULT); + return; + case CommonPackage.TCA_THRESHOLD__FIELD_PATH: + setFieldPath(FIELD_PATH_EDEFAULT); + return; + case CommonPackage.TCA_THRESHOLD__THRESHOLD_VALUE: + setThresholdValue(THRESHOLD_VALUE_EDEFAULT); + return; + case CommonPackage.TCA_THRESHOLD__DIRECTION: + setDirection(DIRECTION_EDEFAULT); + return; + case CommonPackage.TCA_THRESHOLD__SEVERITY: + setSeverity(SEVERITY_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case CommonPackage.TCA_THRESHOLD__CLOSED_LOOP_CONTROL_NAME: + return CLOSED_LOOP_CONTROL_NAME_EDEFAULT == null ? closedLoopControlName != null : !CLOSED_LOOP_CONTROL_NAME_EDEFAULT.equals(closedLoopControlName); + case CommonPackage.TCA_THRESHOLD__VERSION: + return VERSION_EDEFAULT == null ? version != null : !VERSION_EDEFAULT.equals(version); + case CommonPackage.TCA_THRESHOLD__FIELD_PATH: + return FIELD_PATH_EDEFAULT == null ? fieldPath != null : !FIELD_PATH_EDEFAULT.equals(fieldPath); + case CommonPackage.TCA_THRESHOLD__THRESHOLD_VALUE: + return THRESHOLD_VALUE_EDEFAULT == null ? thresholdValue != null : !THRESHOLD_VALUE_EDEFAULT.equals(thresholdValue); + case CommonPackage.TCA_THRESHOLD__DIRECTION: + return DIRECTION_EDEFAULT == null ? direction != null : !DIRECTION_EDEFAULT.equals(direction); + case CommonPackage.TCA_THRESHOLD__SEVERITY: + return SEVERITY_EDEFAULT == null ? severity != null : !SEVERITY_EDEFAULT.equals(severity); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (closedLoopControlName: "); + result.append(closedLoopControlName); + result.append(", version: "); + result.append(version); + result.append(", fieldPath: "); + result.append(fieldPath); + result.append(", thresholdValue: "); + result.append(thresholdValue); + result.append(", direction: "); + result.append(direction); + result.append(", severity: "); + result.append(severity); + result.append(')'); + return result.toString(); + } + +} //TcaThresholdImpl diff --git a/dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/util/CommonAdapterFactory.java b/dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/util/CommonAdapterFactory.java new file mode 100644 index 0000000..8c7536f --- /dev/null +++ b/dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/util/CommonAdapterFactory.java @@ -0,0 +1,231 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.dcae.analytics.cdap.common.util; + +import org.openecomp.dcae.analytics.cdap.common.*; +import org.openecomp.dcae.controller.core.service.DcaePolicyEntity; +import org.openecomp.dcae.controller.service.cdap.CdapServiceInstanceConfiguration; +import org.openecomp.ncomp.core.NamedEntity; +import org.eclipse.emf.common.notify.Adapter; +import org.eclipse.emf.common.notify.Notifier; +import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; +import org.eclipse.emf.ecore.EObject; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.openecomp.dcae.analytics.cdap.common.CommonPackage + * @generated + */ +public class CommonAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static CommonPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public CommonAdapterFactory() { + if (modelPackage == null) { + modelPackage = CommonPackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * + * This implementation returns true if the object is either the model's package or is an instance object of the model. + * + * @return whether this factory is applicable for the type of the object. + * @generated + */ + @Override + public boolean isFactoryForType(Object object) { + if (object == modelPackage) { + return true; + } + if (object instanceof EObject) { + return ((EObject)object).eClass().getEPackage() == modelPackage; + } + return false; + } + + /** + * The switch that delegates to the createXXX methods. + * + * + * @generated + */ + protected CommonSwitch modelSwitch = + new CommonSwitch() { + @Override + public Adapter caseTcaConfiguration(TcaConfiguration object) { + return createTcaConfigurationAdapter(); + } + @Override + public Adapter caseTcaMetrics(TcaMetrics object) { + return createTcaMetricsAdapter(); + } + @Override + public Adapter caseTcaThreshold(TcaThreshold object) { + return createTcaThresholdAdapter(); + } + @Override + public Adapter caseCdapServiceInstanceConfiguration(CdapServiceInstanceConfiguration object) { + return createCdapServiceInstanceConfigurationAdapter(); + } + @Override + public Adapter caseNamedEntity(NamedEntity object) { + return createNamedEntityAdapter(); + } + @Override + public Adapter caseDcaePolicyEntity(DcaePolicyEntity object) { + return createDcaePolicyEntityAdapter(); + } + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the target. + * + * + * @param target the object to adapt. + * @return the adapter for the target. + * @generated + */ + @Override + public Adapter createAdapter(Notifier target) { + return modelSwitch.doSwitch((EObject)target); + } + + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.dcae.analytics.cdap.common.TcaConfiguration Tca Configuration}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.dcae.analytics.cdap.common.TcaConfiguration + * @generated + */ + public Adapter createTcaConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.dcae.analytics.cdap.common.TcaMetrics Tca Metrics}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.dcae.analytics.cdap.common.TcaMetrics + * @generated + */ + public Adapter createTcaMetricsAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.dcae.analytics.cdap.common.TcaThreshold Tca Threshold}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.dcae.analytics.cdap.common.TcaThreshold + * @generated + */ + public Adapter createTcaThresholdAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.dcae.controller.service.cdap.CdapServiceInstanceConfiguration Service Instance Configuration}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.dcae.controller.service.cdap.CdapServiceInstanceConfiguration + * @generated + */ + public Adapter createCdapServiceInstanceConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.dcae.controller.core.service.DcaePolicyEntity Dcae Policy Entity}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.dcae.controller.core.service.DcaePolicyEntity + * @generated + */ + public Adapter createDcaePolicyEntityAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.NamedEntity Named Entity}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.core.NamedEntity + * @generated + */ + public Adapter createNamedEntityAdapter() { + return null; + } + + /** + * Creates a new adapter for the default case. + * + * This default implementation returns null. + * + * @return the new adapter. + * @generated + */ + public Adapter createEObjectAdapter() { + return null; + } + +} //CommonAdapterFactory diff --git a/dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/util/CommonSwitch.java b/dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/util/CommonSwitch.java new file mode 100644 index 0000000..0c52242 --- /dev/null +++ b/dcae-analytics-cdap-common-model/src/main/xcore-gen/org/openecomp/dcae/analytics/cdap/common/util/CommonSwitch.java @@ -0,0 +1,223 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.dcae.analytics.cdap.common.util; + +import org.openecomp.dcae.analytics.cdap.common.*; +import org.openecomp.dcae.controller.core.service.DcaePolicyEntity; +import org.openecomp.dcae.controller.service.cdap.CdapServiceInstanceConfiguration; +import org.openecomp.ncomp.core.NamedEntity; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.util.Switch; + +/** + * + * The Switch for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} + * to invoke the caseXXX method for each class of the model, + * starting with the actual class of the object + * and proceeding up the inheritance hierarchy + * until a non-null result is returned, + * which is the result of the switch. + * + * @see org.openecomp.dcae.analytics.cdap.common.CommonPackage + * @generated + */ +public class CommonSwitch extends Switch { + /** + * The cached model package + * + * + * @generated + */ + protected static CommonPackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public CommonSwitch() { + if (modelPackage == null) { + modelPackage = CommonPackage.eINSTANCE; + } + } + + /** + * Checks whether this is a switch for the given package. + * + * + * @parameter ePackage the package in question. + * @return whether this is a switch for the given package. + * @generated + */ + @Override + protected boolean isSwitchFor(EPackage ePackage) { + return ePackage == modelPackage; + } + + /** + * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. + * + * + * @return the first non-null result returned by a caseXXX call. + * @generated + */ + @Override + protected T doSwitch(int classifierID, EObject theEObject) { + switch (classifierID) { + case CommonPackage.TCA_CONFIGURATION: { + TcaConfiguration tcaConfiguration = (TcaConfiguration)theEObject; + T result = caseTcaConfiguration(tcaConfiguration); + if (result == null) result = caseCdapServiceInstanceConfiguration(tcaConfiguration); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CommonPackage.TCA_METRICS: { + TcaMetrics tcaMetrics = (TcaMetrics)theEObject; + T result = caseTcaMetrics(tcaMetrics); + if (result == null) result = caseNamedEntity(tcaMetrics); + if (result == null) result = caseDcaePolicyEntity(tcaMetrics); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CommonPackage.TCA_THRESHOLD: { + TcaThreshold tcaThreshold = (TcaThreshold)theEObject; + T result = caseTcaThreshold(tcaThreshold); + if (result == null) result = caseNamedEntity(tcaThreshold); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Tca Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Tca Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseTcaConfiguration(TcaConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Tca Metrics'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Tca Metrics'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseTcaMetrics(TcaMetrics object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Tca Threshold'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Tca Threshold'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseTcaThreshold(TcaThreshold object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Service Instance Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Service Instance Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCdapServiceInstanceConfiguration(CdapServiceInstanceConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Dcae Policy Entity'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Dcae Policy Entity'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDcaePolicyEntity(DcaePolicyEntity object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Named Entity'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Named Entity'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseNamedEntity(NamedEntity object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'EObject'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'EObject'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) + * @generated + */ + @Override + public T defaultCase(EObject object) { + return null; + } + +} //CommonSwitch diff --git a/dcae-analytics-cdap-common-model/src/main/xcore/common.xcore b/dcae-analytics-cdap-common-model/src/main/xcore/common.xcore new file mode 100644 index 0000000..c6cc0bb --- /dev/null +++ b/dcae-analytics-cdap-common-model/src/main/xcore/common.xcore @@ -0,0 +1,168 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +@GenModel(modelDirectory="/dcae-analytics-cdap-common-model/src/main/xcore-gen") +package org.openecomp.dcae.analytics.cdap.common + +import org.openecomp.dcae.controller.service.cdap.CdapServiceInstanceConfiguration +import org.openecomp.ncomp.core.NamedEntity +import org.openecomp.dcae.controller.core.service.DcaePolicyEntity + +annotation "http://openecomp.org/cdap" as cdap +annotation "http://openecomp.org" as ecomp +annotation "http://openecomp.org/policy" as policy + +class TcaConfiguration extends CdapServiceInstanceConfiguration { + + @ecomp(^type="configuration") + @cdap(destination="namespace-prefs:cdap-tca:domain") + String domain + + @ecomp(^type="configuration") + @cdap(destination="namespace-prefs:cdap-tca:subscriberHostName") + String subscriberHostName + + @ecomp(^type="configuration") + @cdap(destination="namespace-prefs:cdap-tca:subscriberHostPort") + String subscriberHostPort + + @ecomp(^type="configuration") + @cdap(destination="namespace-prefs:cdap-tca:subscriberTopicName") + String subscriberTopicName + + @ecomp(^type="configuration") + @cdap(destination="namespace-prefs:cdap-tca:subscriberProtocol") + String subscriberProtocol + + @ecomp(^type="configuration") + @cdap(destination="namespace-prefs:cdap-tca:subscriberUserName") + String subscriberUserName + + @ecomp(^type="configuration") + @cdap(destination="namespace-prefs:cdap-tca:subscriberUserPassword") + String subscriberUserPassword + + @ecomp(^type="configuration") + @cdap(destination="namespace-prefs:cdap-tca:subscriberContentType") + String subscriberContentType + + @ecomp(^type="configuration") + @cdap(destination="namespace-prefs:cdap-tca:subscriberConsumerId") + String subscriberConsumerId + + @ecomp(^type="configuration") + @cdap(destination="namespace-prefs:cdap-tca:subscriberConsumerGroup") + String subscriberConsumerGroup + + @ecomp(^type="configuration") + @cdap(destination="namespace-prefs:cdap-tca:subscriberTimeoutMS") + String subscriberTimeoutMS + + @ecomp(^type="configuration") + @cdap(destination="namespace-prefs:cdap-tca:subscriberMessageLimit") + String subscriberMessageLimit + + @ecomp(^type="configuration") + @cdap(destination="namespace-prefs:cdap-tca:subscriberPollingInterval") + String subscriberPollingInterval + + @ecomp(^type="configuration") + @cdap(destination="namespace-prefs:cdap-tca:publisherHostName") + String publisherHostName + + @ecomp(^type="configuration") + @cdap(destination="namespace-prefs:cdap-tca:publisherHostPort") + String publisherHostPort + + @ecomp(^type="configuration") + @cdap(destination="namespace-prefs:cdap-tca:publisherTopicName") + String publisherTopicName + + @ecomp(^type="configuration") + @cdap(destination="namespace-prefs:cdap-tca:publisherProtocol") + String publisherProtocol + + @ecomp(^type="configuration") + @cdap(destination="namespace-prefs:cdap-tca:publisherUserName") + String publisherUserName + + @ecomp(^type="configuration") + @cdap(destination="namespace-prefs:cdap-tca:publisherUserPassword") + String publisherUserPassword + + @ecomp(^type="configuration") + @cdap(destination="namespace-prefs:cdap-tca:publisherContentType") + String publisherContentType + + @ecomp(^type="configuration") + @cdap(destination="namespace-prefs:cdap-tca:publisherMaxBatchSize") + String publisherMaxBatchSize + + @ecomp(^type="configuration") + @cdap(destination="namespace-prefs:cdap-tca:publisherMaxRecoveryQueueSize") + String publisherMaxRecoveryQueueSize + + @ecomp(^type="configuration") + @cdap(destination="namespace-prefs:cdap-tca:publisherPollingInterval") + String publisherPollingInterval + + contains TcaMetrics[] metricsPerFunctionalRole +} + +@policy(policyTemplate="dcae-microservice", + dcaeService="tca") +@ecomp(^type="configuration") +class TcaMetrics extends NamedEntity, DcaePolicyEntity { + @ecomp(^type="configuration") + @cdap(destination="namespace-prefs:cdap-tca:${path}.policy.functionalRole") + String functionalRole + + @ecomp(^type="configuration") + contains TcaThreshold[] thresholds +} + +@ecomp(^type="configuration") +class TcaThreshold extends NamedEntity { + @ecomp(^type="configuration") + @cdap(destination="namespace-prefs:cdap-tca:${path}.policy.closedLoopControlName") + String closedLoopControlName + + @ecomp(^type="configuration") + @cdap(destination="namespace-prefs:cdap-tca:${path}.policy.version") + String version + + @ecomp(^type="configuration") + @cdap(destination="namespace-prefs:cdap-tca:${path}.policy.fieldPath") + String fieldPath + + @ecomp(^type="configuration") + @cdap(destination="namespace-prefs:cdap-tca:${path}.policy.thresholdValue") + Integer thresholdValue + + @ecomp(^type="configuration") + @cdap(destination="namespace-prefs:cdap-tca:${path}.policy.direction") + String direction + + @ecomp(^type="configuration") + @cdap(destination="namespace-prefs:cdap-tca:${path}.policy.severity") + String severity +} + -- cgit 1.2.3-korg