MCSLA deleted

parent db0fbf71
# Created by .ignore support plugin (hsz.mobi)
### JetBrains template
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
*.iml
# User-specific stuff:
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/dictionaries
# Sensitive or high-churn files:
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.xml
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
# Gradle:
.idea/**/gradle.xml
.idea/**/libraries
# CMake
cmake-build-debug/
# Mongo Explorer plugin:
.idea/**/mongoSettings.xml
## File-based project format:
*.iws
## Plugin-specific files:
# IntelliJ
out/
# mpeltonen/sbt-idea plugin
.idea_modules/
# JIRA plugin
atlassian-ide-plugin.xml
# Cursive Clojure plugin
.idea/replstate.xml
# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties
### Maven template
target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
release.properties
dependency-reduced-pom.xml
buildNumber.properties
.mvn/timing.properties
# Avoid ignoring Maven wrapper jar file (.jar files are usually ignored)
!/.mvn/wrapper/maven-wrapper.jar
### Eclipse template
.metadata
bin/
tmp/
*.tmp
*.bak
*.swp
*~.nib
local.properties
.settings/
.loadpath
.recommenders
# External tool builders
.externalToolBuilders/
# Locally stored "Eclipse launch configurations"
*.launch
# PyDev specific (Python IDE for Eclipse)
*.pydevproject
# CDT-specific (C/C++ Development Tooling)
.cproject
# Java annotation processor (APT)
.factorypath
# PDT-specific (PHP Development Tools)
.buildpath
# sbteclipse plugin
.target
# Tern plugin
.tern-project
# TeXlipse plugin
.texlipse
# STS (Spring Tool Suite)
.springBeans
# Code Recommenders
.recommenders/
# Scala IDE specific (Scala & Java development for Eclipse)
.cache-main
.scala_dependencies
.worksheet
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>eu.decide.src.kr1.mcsla</groupId>
<artifactId>decide.mcsla.editor</artifactId>
<version>0.0.1-SNAPSHOT</version>
<properties>
<jdk.version>1.8</jdk.version>
<zk.version>8.0.2.2-Eval</zk.version>
<spring.version>4.2.1.RELEASE</spring.version>
<commons-io>2.4</commons-io>
<maven.build.timestamp.format>yyyy-MM-dd</maven.build.timestamp.format>
<packname>-${project.version}-FL-${maven.build.timestamp}</packname>
</properties>
<packaging>war</packaging>
<name>The mcsla.editor Project</name>
<description>The mcsla.editor Project</description>
<repositories>
<repository>
<id>ZK CE</id>
<name>ZK CE Repository</name>
<url>http://mavensync.zkoss.org/maven2</url>
</repository>
<repository>
<id>ZK EVAL</id>
<name>ZK Evaluation Repository</name>
<url>http://mavensync.zkoss.org/eval</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>zkmaven</id>
<name>ZK Maven Plugin Repository</name>
<url>http://mavensync.zkoss.org/maven2/</url>
</pluginRepository>
</pluginRepositories>
<dependencies>
<dependency>
<groupId>org.zkoss.zk</groupId>
<artifactId>zkbind</artifactId>
<version>${zk.version}</version>
</dependency>
<dependency>
<groupId>org.zkoss.zk</groupId>
<artifactId>zkmax</artifactId>
<version>${zk.version}</version>
</dependency>
<dependency>
<groupId>org.zkoss.zk</groupId>
<artifactId>zuti</artifactId>
<version>${zk.version}</version>
</dependency>
<dependency>
<groupId>org.zkoss.zk</groupId>
<artifactId>zkplus</artifactId>
<version>${zk.version}</version>
</dependency>
<dependency>
<groupId>org.zkoss.zk</groupId>
<artifactId>zhtml</artifactId>
<version>${zk.version}</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>${commons-io}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.4.1</version>
</dependency>
</dependencies>
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<!-- Run with Jetty -->
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>7.6.8.v20121106</version>
<configuration>
<webAppConfig>
<contextPath>/${project.artifactId}</contextPath>
<allowDuplicateFragmentNames>true</allowDuplicateFragmentNames>
</webAppConfig>
<scanIntervalSeconds>5</scanIntervalSeconds>
</configuration>
</plugin>
<!-- Compile java -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<source>${jdk.version}</source>
<target>${jdk.version}</target>
</configuration>
</plugin>
<!-- Pack zips -->
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2</version>
<executions>
<execution>
<id>webapp</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<finalName>mcsla.editor${packname}</finalName>
<appendAssemblyId>false</appendAssemblyId>
<descriptors>
<descriptor>src/main/assembly/webapp.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
<assembly
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
<id>webapp</id>
<formats>
<format>zip</format>
</formats>
<fileSets>
<fileSet>
<directory>${project.basedir}/src/main/java</directory>
<outputDirectory>/${project.artifactId}/src</outputDirectory>
</fileSet>
<fileSet>
<directory>${project.basedir}/src/main/webapp</directory>
<outputDirectory>/${project.artifactId}/WebContent</outputDirectory>
</fileSet>
</fileSets>
<files>
<file>
<source>${project.build.directory}/${project.artifactId}.war</source>
<outputDirectory>/</outputDirectory>
</file>
</files>
</assembly>
package eu.DECIDEh2020.mcsla.beans;
/*
* Copyright (c) 2017 Fraunhofer FOKUS.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the
* <<licensing_schema_to_be_decided>> which accompanies
* this distribution, and is available at
* https://opensource.org/licenses/EPL-2.0
*
* Contributors:
*
* Majid Salehi Ghamsari Fraunhofer FOKUS
**Initially developed in the context of DECIDE EU project www.DECIDE-h2020.eu
*/
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
public class Csp {
public UUID mCSP_id;
public String name;
public List<MicroserviceSLA> slas;
public Csp() {
super();
}
public Csp(UUID uid, String name) {
super();
this.mCSP_id = uid;
this.name = name;
List<MicroserviceSLA> slas = new ArrayList<>();
this.setSlas(slas);
}
public UUID getmCSP_id() {
return mCSP_id;
}
public String getName() {
return name;
}
public List<MicroserviceSLA> getSlas() {
return slas;
}
public void setmCSP_id(UUID mCSP_id) {
this.mCSP_id = mCSP_id;
}
public void setName(String name) {
this.name = name;
}
public void setSlas(List<MicroserviceSLA> slas) {
this.slas = slas;
}
}
package eu.DECIDEh2020.mcsla.beans;
/*
* Copyright (c) 2017 Fraunhofer FOKUS.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the
* <<licensing_schema_to_be_decided>> which accompanies
* this distribution, and is available at
* https://opensource.org/licenses/EPL-2.0
*
* Contributors:
*
* Majid Salehi Ghamsari Fraunhofer FOKUS
**Initially developed in the context of DECIDE EU project www.DECIDE-h2020.eu
*/
public class Expression {
public String expression;
public String expressionLanguage;
public String unit;
public String getExpression() {
return expression;
}
public String getExpressionLanguage() {
return expressionLanguage;
}
public String getUnit() {
return unit;
}
public void setExpression(String expression) {
this.expression = expression;
}
public void setExpressionLanguage(String expressionLanguage) {
this.expressionLanguage = expressionLanguage;
}
public void setUnit(String unit) {
this.unit = unit;
}
}
package eu.DECIDEh2020.mcsla.beans;
/*
* Copyright (c) 2017 Fraunhofer FOKUS.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the
* <<licensing_schema_to_be_decided>> which accompanies
* this distribution, and is available at
* https://opensource.org/licenses/EPL-2.0
*
* Contributors:
*
* Majid Salehi Ghamsari Fraunhofer FOKUS
**Initially developed in the context of DECIDE EU project www.DECIDE-h2020.eu
*/
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
/*
* Copyright (c) 2017 Fraunhofer FOKUS.
*
* Majid Salehi Ghamsari Fraunhofer FOKUS
**Initially developed in the context of DECIDE EU project www.DECIDE-h2020.eu
*/
public class Mcsla {
public UUID mCSLA_id;
public String description;
public String visibility;
public String validityPeriod;
public List<MicroserviceSLA> microservice_SLAs;
public Mcsla() {
super();
}
public Mcsla(UUID uid, String description, String visibility, String validityPeriod) {
super();
this.mCSLA_id = uid;
this.description = description;
this.visibility = visibility;
this.validityPeriod = validityPeriod;
List<MicroserviceSLA> slas = new ArrayList<>();
this.setMicroservice_SLAs(slas);
}
public String getDescription() {
return description;
}
public UUID getmCSLA_id() {
return mCSLA_id;
}
public List<MicroserviceSLA> getMicroservice_SLAs() {
return microservice_SLAs;
}
public String getValidityPeriod() {
return validityPeriod;
}
public String getVisibility() {
return visibility;
}
public void setDescription(String description) {
this.description = description;
}
public void setmCSLA_id(UUID mCSLA_id) {
this.mCSLA_id = mCSLA_id;
}
public void setMicroservice_SLAs(List<MicroserviceSLA> microservice_SLAs) {
this.microservice_SLAs = microservice_SLAs;
}
public void setValidityPeriod(String validityPeriod) {
this.validityPeriod = validityPeriod;
}
public void setVisibility(String visibility) {
this.visibility = visibility;
}
}
package eu.DECIDEh2020.mcsla.beans;
/*
* Copyright (c) 2017 Fraunhofer FOKUS.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the
* <<licensing_schema_to_be_decided>> which accompanies
* this distribution, and is available at
* https://opensource.org/licenses/EPL-2.0
*
* Contributors:
*
* Majid Salehi Ghamsari Fraunhofer FOKUS
**Initially developed in the context of DECIDE EU project www.DECIDE-h2020.eu
*/
public class Metric {
public String metric_id;
public String descriptor;
public String scale;
public Parameter parameter;
public Expression expression;
public UnderlyingMetricRef underlyingMetricRef;
public String getDescriptor() {
return descriptor;
}
public Expression getExpression() {
return expression;
}
public String getMetric_id() {
return metric_id;
}
public Parameter getParameter() {
return parameter;
}
public String getScale() {
return scale;
}
public UnderlyingMetricRef getUnderlyingMetricRef() {
return underlyingMetricRef;
}
public void setDescriptor(String descriptor) {
this.descriptor = descriptor;
}
public void setExpression(Expression expression) {
this.expression = expression;
}
public void setMetric_id(String metric_id) {
this.metric_id = metric_id;
}
public void setParameter(Parameter parameter) {
this.parameter = parameter;
}
public void setScale(String scale) {
this.scale = scale;
}
public void setUnderlyingMetricRef(UnderlyingMetricRef underlyingMetricRef) {
this.underlyingMetricRef = underlyingMetricRef;
}
}
package eu.DECIDEh2020.mcsla.beans;
/*
* Copyright (c) 2017 Fraunhofer FOKUS.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the
* <<licensing_schema_to_be_decided>> which accompanies
* this distribution, and is available at
* https://opensource.org/licenses/EPL-2.0
*
* Contributors:
*
* Majid Salehi Ghamsari Fraunhofer FOKUS
**Initially developed in the context of DECIDE EU project www.DECIDE-h2020.eu
*/
import java.util.List;
public class MicroserviceSLA {
public String microservice_SLA_id;
public String __comment;
public String csp_id;
public String csp_name;
public String getCsp_name() {
return csp_name;
}
public void setCsp_name(String csp_name) {
this.csp_name = csp_name;
}
public String microservice_id;
public String visibility;
public String validityPeriod;
public List<MicroserviceSQO> microservice_SQOs;
public List<MicroserviceSLO> microservice_SLOs;
public String getMicroservice_SLA_id() {
return microservice_SLA_id;
}
public void setMicroservice_SLA_id(String microservice_SLA_id) {
this.microservice_SLA_id = microservice_SLA_id;
}
public String get__comment() {
return __comment;
}
public void set__comment(String __comment) {
this.__comment = __comment;
}
public String getCsp_id() {
return csp_id;
}
public void setCsp_id(String csp_id) {
this.csp_id = csp_id;
}
public String getMicroservice_id() {
return microservice_id;
}
public void setMicroservice_id(String microservice_id) {
this.microservice_id = microservice_id;
}
public String getVisibility() {
return visibility;
}
public void setVisibility(String visibility) {
this.visibility = visibility;
}
public String getValidityPeriod() {
return validityPeriod;
}
public void setValidityPeriod(String validityPeriod) {
this.validityPeriod = validityPeriod;
}
public List<MicroserviceSQO> getMicroservice_SQOs() {
return microservice_SQOs;
}
public void setMicroservice_SQOs(List<MicroserviceSQO> microservice_SQOs) {
this.microservice_SQOs = microservice_SQOs;
}
public List<MicroserviceSLO> getMicroservice_SLOs() {
return microservice_SLOs;
}
public void setMicroservice_SLOs(List<MicroserviceSLO> microservice_SLOs) {
this.microservice_SLOs = microservice_SLOs;
}
}
package eu.DECIDEh2020.mcsla.beans;
/*
* Copyright (c) 2017 Fraunhofer FOKUS.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the
* <<licensing_schema_to_be_decided>> which accompanies
* this distribution, and is available at
* https://opensource.org/licenses/EPL-2.0
*
* Contributors:
*
* Majid Salehi Ghamsari Fraunhofer FOKUS
**Initially developed in the context of DECIDE EU project www.DECIDE-h2020.eu
*/
import java.util.List;
public class MicroserviceSLO {
public String microservice_SLO_id;
public String __comment;
public String termName;
public String monitoringResult;
public String value;
public String unit;
public String calculationFormula;
public List<ViolationTriggerRule> violationTriggerRule;
public Remedy remedy;
public String csp_id;
public String csp_name;
public String getCsp_name() {
return csp_name;
}
public void setCsp_name(String csp_name) {
this.csp_name = csp_name;
}
public List<Metric> metrics;
public String get__comment() {
return __comment;
}
public String getCalculationFormula() {