diff --git a/MCSLA/MCSLAEditor/.gitignore b/MCSLA/MCSLAEditor/.gitignore deleted file mode 100644 index 0a334987b3dc7908397187851d66ac85e7da78f4..0000000000000000000000000000000000000000 --- a/MCSLA/MCSLAEditor/.gitignore +++ /dev/null @@ -1,117 +0,0 @@ -# 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 - diff --git a/MCSLA/MCSLAEditor/pom.xml b/MCSLA/MCSLAEditor/pom.xml deleted file mode 100644 index b88aa3ab7bc8d0ae158e757c66f21d1e1c103da4..0000000000000000000000000000000000000000 --- a/MCSLA/MCSLAEditor/pom.xml +++ /dev/null @@ -1,136 +0,0 @@ - - 4.0.0 - eu.decide.src.kr1.mcsla - decide.mcsla.editor - 0.0.1-SNAPSHOT - - 1.8 - 8.0.2.2-Eval - 4.2.1.RELEASE - 2.4 - yyyy-MM-dd - -${project.version}-FL-${maven.build.timestamp} - - war - The mcsla.editor Project - The mcsla.editor Project - - - ZK CE - ZK CE Repository - http://mavensync.zkoss.org/maven2 - - - ZK EVAL - ZK Evaluation Repository - http://mavensync.zkoss.org/eval - - - - - zkmaven - ZK Maven Plugin Repository - http://mavensync.zkoss.org/maven2/ - - - - - org.zkoss.zk - zkbind - ${zk.version} - - - org.zkoss.zk - zkmax - ${zk.version} - - - org.zkoss.zk - zuti - ${zk.version} - - - org.zkoss.zk - zkplus - ${zk.version} - - - org.zkoss.zk - zhtml - ${zk.version} - - - - commons-io - commons-io - ${commons-io} - - - - org.springframework - spring-core - ${spring.version} - - - org.springframework - spring-webmvc - ${spring.version} - - - com.fasterxml.jackson.core - jackson-databind - 2.4.1 - - - - - ${project.artifactId} - - - - org.mortbay.jetty - jetty-maven-plugin - 7.6.8.v20121106 - - - /${project.artifactId} - true - - 5 - - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.7.0 - - ${jdk.version} - ${jdk.version} - - - - - maven-assembly-plugin - 2.2 - - - webapp - package - - single - - - mcsla.editor${packname} - false - - src/main/assembly/webapp.xml - - - - - - - - \ No newline at end of file diff --git a/MCSLA/MCSLAEditor/src/main/assembly/webapp.xml b/MCSLA/MCSLAEditor/src/main/assembly/webapp.xml deleted file mode 100644 index 153904efc0ec6100f96952810bb48f6141b8fc2b..0000000000000000000000000000000000000000 --- a/MCSLA/MCSLAEditor/src/main/assembly/webapp.xml +++ /dev/null @@ -1,25 +0,0 @@ - - webapp - - zip - - - - ${project.basedir}/src/main/java - /${project.artifactId}/src - - - ${project.basedir}/src/main/webapp - /${project.artifactId}/WebContent - - - - - ${project.build.directory}/${project.artifactId}.war - / - - - diff --git a/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/beans/Csp.java b/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/beans/Csp.java deleted file mode 100644 index 2e42079dd6d794de408412b9693cb85d0a32fe1c..0000000000000000000000000000000000000000 --- a/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/beans/Csp.java +++ /dev/null @@ -1,60 +0,0 @@ -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 -* <> 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 slas; - - public Csp() { - super(); - } - - public Csp(UUID uid, String name) { - super(); - this.mCSP_id = uid; - this.name = name; - List slas = new ArrayList<>(); - this.setSlas(slas); - } - - public UUID getmCSP_id() { - return mCSP_id; - } - - public String getName() { - return name; - } - - public List 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 slas) { - this.slas = slas; - } - -} diff --git a/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/beans/Expression.java b/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/beans/Expression.java deleted file mode 100644 index 6100079089510f5100b131528a5bac399c31ceb0..0000000000000000000000000000000000000000 --- a/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/beans/Expression.java +++ /dev/null @@ -1,43 +0,0 @@ -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 -* <> 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; - } -} diff --git a/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/beans/Mcsla.java b/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/beans/Mcsla.java deleted file mode 100644 index 407564c959b005002b86701d394bec6fac4920bb..0000000000000000000000000000000000000000 --- a/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/beans/Mcsla.java +++ /dev/null @@ -1,87 +0,0 @@ -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 -* <> 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 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 slas = new ArrayList<>(); - this.setMicroservice_SLAs(slas); - } - - public String getDescription() { - return description; - } - - public UUID getmCSLA_id() { - return mCSLA_id; - } - - public List 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 microservice_SLAs) { - this.microservice_SLAs = microservice_SLAs; - } - - public void setValidityPeriod(String validityPeriod) { - this.validityPeriod = validityPeriod; - } - - public void setVisibility(String visibility) { - this.visibility = visibility; - } - -} diff --git a/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/beans/Metric.java b/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/beans/Metric.java deleted file mode 100644 index 5e22aac13892b85ea34d0b758207a6b2c35d8817..0000000000000000000000000000000000000000 --- a/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/beans/Metric.java +++ /dev/null @@ -1,70 +0,0 @@ -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 -* <> 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; - } -} diff --git a/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/beans/MicroserviceSLA.java b/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/beans/MicroserviceSLA.java deleted file mode 100644 index e8a4fc531323405050cf6d1c74b264a2f146f1a6..0000000000000000000000000000000000000000 --- a/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/beans/MicroserviceSLA.java +++ /dev/null @@ -1,100 +0,0 @@ -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 -* <> 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 microservice_SQOs; - public List 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 getMicroservice_SQOs() { - return microservice_SQOs; - } - - public void setMicroservice_SQOs(List microservice_SQOs) { - this.microservice_SQOs = microservice_SQOs; - } - - public List getMicroservice_SLOs() { - return microservice_SLOs; - } - - public void setMicroservice_SLOs(List microservice_SLOs) { - this.microservice_SLOs = microservice_SLOs; - } - -} diff --git a/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/beans/MicroserviceSLO.java b/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/beans/MicroserviceSLO.java deleted file mode 100644 index 0d4fffd26ab106987a4e67d67d9dda2f995ff4f7..0000000000000000000000000000000000000000 --- a/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/beans/MicroserviceSLO.java +++ /dev/null @@ -1,129 +0,0 @@ -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 -* <> 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; - 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 metrics; - - public String get__comment() { - return __comment; - } - - public String getCalculationFormula() { - return calculationFormula; - } - - public String getCsp_id() { - return csp_id; - } - - public List getMetrics() { - return metrics; - } - - public String getMicroservice_SLO_id() { - return microservice_SLO_id; - } - - public String getMonitoringResult() { - return monitoringResult; - } - - public Remedy getRemedy() { - return remedy; - } - - public String getTermName() { - return termName; - } - - public String getUnit() { - return unit; - } - - public String getValue() { - return value; - } - - public List getViolationTriggerRule() { - return violationTriggerRule; - } - - public void set__comment(String __comment) { - this.__comment = __comment; - } - - public void setCalculationFormula(String calculationFormula) { - this.calculationFormula = calculationFormula; - } - - public void setCsp_id(String csp_id) { - this.csp_id = csp_id; - } - - public void setMetrics(List metrics) { - this.metrics = metrics; - } - - public void setMicroservice_SLO_id(String microservice_SLO_id) { - this.microservice_SLO_id = microservice_SLO_id; - } - - public void setMonitoringResult(String monitoringResult) { - this.monitoringResult = monitoringResult; - } - - public void setRemedy(Remedy remedy) { - this.remedy = remedy; - } - - public void setTermName(String termName) { - this.termName = termName; - } - - public void setUnit(String unit) { - this.unit = unit; - } - - public void setValue(String value) { - this.value = value; - } - - public void setViolationTriggerRule(List violationTriggerRule) { - this.violationTriggerRule = violationTriggerRule; - } - -} diff --git a/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/beans/MicroserviceSQO.java b/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/beans/MicroserviceSQO.java deleted file mode 100644 index 467e0c58fdc8ed981be7f6d681bc1eba4f9a63a0..0000000000000000000000000000000000000000 --- a/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/beans/MicroserviceSQO.java +++ /dev/null @@ -1,111 +0,0 @@ -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 -* <> 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 MicroserviceSQO { - - public String microservice_SQO_id; - public String __comment; - public String termName; - public String monitoringResult; - public String value; - public String unit; - public String calculationFormula; - public List violationTriggerRule; - public Remedy remedy; - - public List metrics; - - public String get__comment() { - return __comment; - } - - public String getCalculationFormula() { - return calculationFormula; - } - - public List getMetrics() { - return metrics; - } - - public String getMicroservice_SQO_id() { - return microservice_SQO_id; - } - - public String getMonitoringResult() { - return monitoringResult; - } - - public Remedy getRemedy() { - return remedy; - } - - public String getTermName() { - return termName; - } - - public String getUnit() { - return unit; - } - - public String getValue() { - return value; - } - - public List getViolationTriggerRule() { - return violationTriggerRule; - } - - public void set__comment(String __comment) { - this.__comment = __comment; - } - - public void setCalculationFormula(String calculationFormula) { - this.calculationFormula = calculationFormula; - } - - public void setMetrics(List metrics) { - this.metrics = metrics; - } - - public void setMicroservice_SQO_id(String microservice_SLO_id) { - this.microservice_SQO_id = microservice_SLO_id; - } - - public void setMonitoringResult(String monitoringResult) { - this.monitoringResult = monitoringResult; - } - - public void setRemedy(Remedy remedy) { - this.remedy = remedy; - } - - public void setTermName(String termName) { - this.termName = termName; - } - - public void setUnit(String unit) { - this.unit = unit; - } - - public void setValue(String value) { - this.value = value; - } - - public void setViolationTriggerRule(List violationTriggerRule) { - this.violationTriggerRule = violationTriggerRule; - } - -} diff --git a/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/beans/Parameter.java b/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/beans/Parameter.java deleted file mode 100644 index 8fee040445070fe9ef5695245870d4d0c9bfe466..0000000000000000000000000000000000000000 --- a/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/beans/Parameter.java +++ /dev/null @@ -1,54 +0,0 @@ -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 -* <> 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.UUID; - -public class Parameter { - public UUID parameter_id; - public String parameterStatement; - public String unit; - public String note; - - public String getNote() { - return note; - } - - public UUID getParameter_id() { - return parameter_id; - } - - public String getParameterStatement() { - return parameterStatement; - } - - public String getUnit() { - return unit; - } - - public void setNote(String note) { - this.note = note; - } - - public void setParameter_id(UUID parameter_id) { - this.parameter_id = parameter_id; - } - - public void setParameterStatement(String parameterStatement) { - this.parameterStatement = parameterStatement; - } - - public void setUnit(String unit) { - this.unit = unit; - } -} diff --git a/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/beans/ProjectConfig.java b/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/beans/ProjectConfig.java deleted file mode 100644 index 6e0103a323d17383a515ecaa16fea63c9987906c..0000000000000000000000000000000000000000 --- a/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/beans/ProjectConfig.java +++ /dev/null @@ -1,59 +0,0 @@ -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 -* <> 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 ProjectConfig { - - private String gitremotepath; - private String gitusername; - - public ProjectConfig() { - super(); - } - - public ProjectConfig(String gitremotepath, String gitusername) { - super(); - setGitremotepath(gitremotepath); - setGitusername(gitusername); - } - - /** - * @return the gitremotepath - */ - public String getGitremotepath() { - return gitremotepath; - } - - /** - * @param gitremotepath - * the gitremotepath to set - */ - public void setGitremotepath(String gitremotepath) { - this.gitremotepath = gitremotepath; - } - - /** - * @return the gitusername - */ - public String getGitusername() { - return gitusername; - } - - /** - * @param gitusername - * the gitusername to set - */ - public void setGitusername(String gitusername) { - this.gitusername = gitusername; - } -} diff --git a/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/beans/Remedy.java b/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/beans/Remedy.java deleted file mode 100644 index d81fdfec83a6f968bf7621c054a0f360938a37d8..0000000000000000000000000000000000000000 --- a/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/beans/Remedy.java +++ /dev/null @@ -1,52 +0,0 @@ -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 -* <> 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 Remedy { - public String type; - public int value; - public String unit; - public String validity; - - public String getType() { - return type; - } - - public String getUnit() { - return unit; - } - - public String getValidity() { - return validity; - } - - public int getValue() { - return value; - } - - public void setType(String type) { - this.type = type; - } - - public void setUnit(String unit) { - this.unit = unit; - } - - public void setValidity(String validity) { - this.validity = validity; - } - - public void setValue(int value) { - this.value = value; - } -} diff --git a/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/beans/UnderlyingMetricRef.java b/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/beans/UnderlyingMetricRef.java deleted file mode 100644 index fcc66b8cba301edfa8dac53f10e1ca093473cbd9..0000000000000000000000000000000000000000 --- a/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/beans/UnderlyingMetricRef.java +++ /dev/null @@ -1,25 +0,0 @@ -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 -* <> 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 UnderlyingMetricRef { - public String refid; - - public String getRefid() { - return refid; - } - - public void setRefid(String refid) { - this.refid = refid; - } -} diff --git a/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/beans/ViolationTriggerRule.java b/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/beans/ViolationTriggerRule.java deleted file mode 100644 index 72e63c729cea3d19d2733822518e9627fd454676..0000000000000000000000000000000000000000 --- a/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/beans/ViolationTriggerRule.java +++ /dev/null @@ -1,34 +0,0 @@ -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 -* <> 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 ViolationTriggerRule { - public int breaches_count; - public int viointerval; - - public int getBreaches_count() { - return breaches_count; - } - - public int getViointerval() { - return viointerval; - } - - public void setBreaches_count(int breaches_count) { - this.breaches_count = breaches_count; - } - - public void setViointerval(int viointerval) { - this.viointerval = viointerval; - } -} diff --git a/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/editor/JerseyClient.java b/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/editor/JerseyClient.java deleted file mode 100644 index cb91ddc0f53ee384429e6a697c73f246498097c6..0000000000000000000000000000000000000000 --- a/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/editor/JerseyClient.java +++ /dev/null @@ -1,345 +0,0 @@ -package eu.DECIDEh2020.mcsla.editor; - -/* -* Copyright (c) 2017 Fraunhofer FOKUS. -* All rights reserved. This program and the accompanying materials -* are made available under the terms of the -* <> 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.text.DateFormat; -import java.text.SimpleDateFormat; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Calendar; -import java.util.Date; -import java.util.List; -import java.util.UUID; - -import org.springframework.context.annotation.AnnotationConfigApplicationContext; -import org.springframework.context.support.AbstractApplicationContext; -import org.springframework.http.HttpEntity; -import org.springframework.http.HttpMethod; -import org.springframework.http.ResponseEntity; -import org.springframework.web.client.RestTemplate; - -import eu.DECIDEh2020.mcsla.beans.Csp; -import eu.DECIDEh2020.mcsla.beans.Mcsla; -import eu.DECIDEh2020.mcsla.beans.Metric; -import eu.DECIDEh2020.mcsla.beans.MicroserviceSLA; -import eu.DECIDEh2020.mcsla.beans.MicroserviceSLO; -import eu.DECIDEh2020.mcsla.beans.MicroserviceSQO; -import eu.DECIDEh2020.mcsla.beans.ProjectConfig; -import eu.DECIDEh2020.mcsla.beans.Remedy; -import eu.DECIDEh2020.mcsla.beans.UnderlyingMetricRef; -import eu.DECIDEh2020.mcsla.beans.ViolationTriggerRule; -import eu.DECIDEh2020.mcsla.editor.configuration.AppConfig; -import eu.DECIDEh2020.mcsla.editor.service.ConfigFileService; - -public class JerseyClient { - // private static final String MCSLA_SRVICE_URL = - // "http://localhost:8080/decide.mcsla.srv"; - // private static final String SRV_MCSLAS = - // "http://localhost:8080/decide.mcsla.srv/mcslas"; - // private static final String SRV_MCSLA = - // "http://localhost:8080/decide.mcsla.srv/mcsla"; - // private static final String SRV_CSPS = - // "http://localhost:8080/decide.mcsla.srv/csps"; - // private static final String SRV_AGGREGATE = - // "http://localhost:8080/decide.mcsla.srv/aggregate"; - // private static final String SRV_CONFIG = - // "http://localhost:8080/decide.mcsla.srv/config"; - - private String m_serviceURL = "http://localhost:8080/decide.mcsla.srv"; - - public JerseyClient() { - super(); - System.out.println("JerseyClient......."); - ConfigFileService configService = getConfigService(); - this.m_serviceURL = configService.getServiceUrl(); - } - - private ConfigFileService getConfigService() { - AbstractApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class); - ConfigFileService configService = (ConfigFileService) context.getBean("configFileService"); - context.close(); - return configService; - } - - @SuppressWarnings("unused") - private static MicroserviceSLA addSQOs(MicroserviceSLA sla) { - UUID uuid = UUID.randomUUID(); - - List sqos = new ArrayList<>(); - MicroserviceSQO sqo = new MicroserviceSQO(); - sqo.setMicroservice_SQO_id(uuid.toString()); - sqo.set__comment("CPU Uitlization will not be less then 85% of the time Over a Day"); - sqo.setTermName("CPU-utilization"); - sqo.setMonitoringResult("result"); - sqo.setValue("95"); - sqo.setUnit("percentage"); - sqo.setCalculationFormula("CPU-utilization LT 85"); - List vtrs = new ArrayList<>(); - ViolationTriggerRule vtr = new ViolationTriggerRule(); - vtr.setBreaches_count(2); - vtr.setViointerval(30); - vtrs.add(vtr); - sqo.setViolationTriggerRule(vtrs); - Remedy remedy = new Remedy(); - remedy.setType("discount"); - remedy.setUnit("%"); - remedy.setValidity("P1D"); - remedy.setValue(5); - sqo.setRemedy(remedy); - - List metrics = new ArrayList<>(); - Metric metric = new Metric(); - metric.setMetric_id("CSA_002"); - metric.setDescriptor("CloudServiceAvailability"); - UnderlyingMetricRef underlyingMetricRef = new UnderlyingMetricRef(); - underlyingMetricRef.setRefid("TQD_001"); - metric.setUnderlyingMetricRef(underlyingMetricRef); - metrics.add(metric); - sqo.setMetrics(metrics); - sqos.add(sqo); - sla.setMicroservice_SQOs(sqos); - return sla; - } - - public Mcsla createMCSLAexample(MicroserviceSLO slo) { - - UUID uid = UUID.randomUUID(); - String randomUUIDString = uid.toString(); - Mcsla mcsla = new Mcsla(); - mcsla.setmCSLA_id(uid); - String timeStamp = new SimpleDateFormat("yyyy.MM.dd HH.mm").format(Calendar.getInstance().getTime()); - mcsla.setDescription( - "This is MCSLA dummy description line created from createMCSLAexample method at:" + timeStamp); - mcsla.setVisibility("public"); - mcsla.setValidityPeriod("this is Validity Period line."); - List slas = new ArrayList<>(); - - UUID uuid = UUID.randomUUID(); - MicroserviceSLA sla = new MicroserviceSLA(); - sla.setMicroservice_SLA_id(uuid.toString()); - - uuid = UUID.randomUUID(); - randomUUIDString = uuid.toString(); - // TODO fix this need valid CSP - sla.setCsp_id(randomUUIDString); - // TODO fix this need valid setValidityPeriod - sla.setValidityPeriod(Integer.toString(5)); - sla.setVisibility("public"); - uuid = UUID.randomUUID(); - randomUUIDString = uuid.toString(); - sla.setMicroservice_id(randomUUIDString); - - if (slo != null) { - sla.set__comment(slo.__comment); - List slos = new ArrayList<>(); - slos.add(slo); - sla.setMicroservice_SLOs(slos); - - } - slas.add(sla); - mcsla.setMicroservice_SLAs(slas); - return mcsla; - - } - - public Mcsla buildMCSLAwithslos(Mcsla mcsla, List slos, List sqos) { - // TODO fix this default line - mcsla.setValidityPeriod("this is Validity Period line."); - List slas = new ArrayList<>(); - - UUID uuid = UUID.randomUUID(); - MicroserviceSLA sla = new MicroserviceSLA(); - sla.setMicroservice_SLA_id(uuid.toString()); - - uuid = UUID.randomUUID(); - String randomUUIDString = uuid.toString(); - // TODO fix this need valid CSP - sla.setCsp_id(randomUUIDString); - // TODO fix this need valid setValidityPeriod - sla.setValidityPeriod(Integer.toString(5)); - sla.setVisibility("public"); - uuid = UUID.randomUUID(); - randomUUIDString = uuid.toString(); - sla.setMicroservice_id(randomUUIDString); - - if (slos != null) { - sla.setMicroservice_SLOs(slos); - } - if (sqos != null) { - sla.setMicroservice_SQOs(sqos); - } - slas.add(sla); - mcsla.setMicroservice_SLAs(slas); - return mcsla; - - } - - public ProjectConfig getProjectConfig() { - RestTemplate restTemplate = new RestTemplate(); - ProjectConfig pconfig = restTemplate.getForObject(m_serviceURL + "/config", ProjectConfig.class); - System.out.println("JerseyClient:getAppConfig:" + pconfig.getGitusername() + ", " + pconfig.getGitremotepath()); - return pconfig; - } - - public static void main(String[] args) { - - System.out.println("####################TEST MAIN START####################"); - JerseyClient jerseyClient = new JerseyClient(); - // jerseyClient.getMcslaDetails(); - // get currently used CSPs returns CSP SLAs - MicroserviceSLA[] slas = jerseyClient.getCspSLAs(); - System.out.println("Main:got CSP SLAs:" + slas.length); - // Prepare SLOs to send to MCSLA Aggregator - MicroserviceSLO[] slos = jerseyClient.buildSLOs(slas); - System.out.println("Main:got list SLOs:" + slos.length); - // Return aggregated SLO - MicroserviceSLO aggregatedSLO = jerseyClient.applyAggregationRules(slos); - if (aggregatedSLO != null) - System.out.println("Main:got aggregated SLO:" + aggregatedSLO.termName); - else - System.out.println("Main:got aggregated SLO is NULL :-("); - // if (true) - // return; - - Mcsla mcsla = jerseyClient.createMCSLAexample(aggregatedSLO); - jerseyClient.addMcsla(mcsla); - System.out.println("Main:addMcsla done."); - - DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); - Date date = new Date(); - mcsla.setDescription("this is MCSLA UPDATED at:" + dateFormat.format(date) + " description line."); - mcsla = jerseyClient.updateMcsla(mcsla); - if (mcsla == null) { - System.out.println("Main:got updated mcsla is NULL :-("); - return; - } else - System.out.println("Main:updateMcsla done."); - - mcsla = jerseyClient.getMcslaById(mcsla.mCSLA_id.toString()); - System.out.println("Main:getMcslaById:" + mcsla.getmCSLA_id() + ", " + mcsla.getDescription()); - // jerseyClient.deleteMcsla(mcsla.getmCSLA_id()); - System.out.println("####################TEST MAIN DONE####################"); - - } - - public void addMcsla(Mcsla mcsla) { - // It is used to create new resource. Method POST - RestTemplate restTemplate = new RestTemplate(); - HttpEntity request = new HttpEntity<>(mcsla); - Mcsla resMcsla = restTemplate.postForObject(m_serviceURL + "/mcslas", request, Mcsla.class); - if (resMcsla == null) - System.out.println("JerseyClient:addMcsla:FAILED"); - else - System.out.println("JerseyClient:addMcsla:" + resMcsla.getmCSLA_id() + ", " + resMcsla.getDescription()); - } - - public MicroserviceSLO applyAggregationRules(MicroserviceSLO[] slos) { - System.out.printf("JerseyClient:applyAggregationRules to %s SLOs %n", slos.length); - RestTemplate restTemplate = new RestTemplate(); - HttpEntity requestEntity = new HttpEntity(slos); - HttpEntity response = restTemplate.exchange(m_serviceURL + "/aggregate", HttpMethod.POST, - requestEntity, MicroserviceSLO.class); - MicroserviceSLO resSLO = response.getBody(); - System.out.println( - "JerseyClient:applyAggregationRules:" + resSLO.getMicroservice_SLO_id() + ", " + resSLO.getTermName()); - return resSLO; - } - - public MicroserviceSLO[] buildSLOs(MicroserviceSLA[] slas) { - List sloslist = new ArrayList<>(); - for (MicroserviceSLA sla : slas) { - if (sla.getMicroservice_SLOs() != null) - sloslist.addAll(sla.getMicroservice_SLOs()); - } - MicroserviceSLO[] slos = new MicroserviceSLO[sloslist.size()]; - slos = sloslist.toArray(slos); - return slos; - } - - public MicroserviceSQO[] buildSQOs(MicroserviceSLA[] slas) { - List sqoslist = new ArrayList<>(); - for (MicroserviceSLA sla : slas) { - if (sla.getMicroservice_SQOs() != null) - sqoslist.addAll(sla.getMicroservice_SQOs()); - } - MicroserviceSQO[] sqos = new MicroserviceSQO[sqoslist.size()]; - sqos = sqoslist.toArray(sqos); - return sqos; - } - - public void deleteMcsla(UUID uid) { - RestTemplate restTemplate = new RestTemplate(); - String entityUrl = m_serviceURL + "/mcsla" + uid.toString(); - restTemplate.delete(entityUrl); - } - - public MicroserviceSLA[] getCspSLAs() { - RestTemplate restTemplate = new RestTemplate(); - ResponseEntity responseEntity = restTemplate.getForEntity(m_serviceURL + "/csps", Csp[].class); - Csp[] csplist = responseEntity.getBody(); - - List slaslist = new ArrayList<>(); - // for each CSP get SLAs - for (int index = 0; index < csplist.length; index++) { - ResponseEntity responseEntitylist = restTemplate.getForEntity( - m_serviceURL + "/csps" + "/{id}", MicroserviceSLA[].class, csplist[index].getmCSP_id()); - MicroserviceSLA[] slas = responseEntitylist.getBody(); - List cspslas = new ArrayList(Arrays.asList(slas)); - slaslist.addAll(cspslas); - } - - System.out.println("JerseyClient:getCspSLAs:" + slaslist.size()); - return slaslist.toArray(new MicroserviceSLA[slaslist.size()]); - } - - public Mcsla getMcslaById(String id) { - RestTemplate restTemplate = new RestTemplate(); - Mcsla mcsla = restTemplate.getForObject(m_serviceURL + "mcsla" + "/{id}", Mcsla.class, id); - System.out.println("JerseyClient:getMcslaById:" + mcsla.getmCSLA_id() + ", " + mcsla.getDescription()); - return mcsla; - } - - public Mcsla getMcsla() { - RestTemplate restTemplate = new RestTemplate(); - Mcsla mcsla = restTemplate.getForObject(m_serviceURL + "/mcsla", Mcsla.class); - System.out.println("JerseyClient:getMcsla:" + mcsla.getmCSLA_id() + ", " + mcsla.getDescription()); - return mcsla; - } - - public void getMcslaDetails() { - RestTemplate restTemplate = new RestTemplate(); - ResponseEntity responseEntity = restTemplate.getForEntity(m_serviceURL + "/mcslas", Mcsla[].class); - Mcsla[] list = responseEntity.getBody(); - // HttpStatus statusCode = responseEntity.getStatusCode(); - // System.out.println("HttpStatus:getMcslaDetails:" + - // statusCode.value()); - - for (int index = 0; index < list.length; index++) { - System.out.println(list[index].getmCSLA_id() + ", " + list[index].getDescription()); - } - } - - public Mcsla updateMcsla(Mcsla mcsla) { - // It is generally used to update resource, METHOD PUT - System.out.println("JerseyClient:updateMcsla:" + mcsla.getmCSLA_id() + ", " + mcsla.getDescription()); - RestTemplate restTemplate = new RestTemplate(); - HttpEntity requestEntity = new HttpEntity(mcsla); - HttpEntity response = restTemplate.exchange(m_serviceURL + "/mcslas", HttpMethod.PUT, requestEntity, - Mcsla.class); - Mcsla resMcsla = response.getBody(); - if (resMcsla == null) - System.out.println("JerseyClient:updateMcsla:FAILED"); - return resMcsla; - } -} diff --git a/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/editor/configuration/AppConfig.java b/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/editor/configuration/AppConfig.java deleted file mode 100644 index 245ea32dde3ad88a5e56d43c253efba1ef9e515d..0000000000000000000000000000000000000000 --- a/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/editor/configuration/AppConfig.java +++ /dev/null @@ -1,36 +0,0 @@ -package eu.DECIDEh2020.mcsla.editor.configuration; - -/* -* Copyright (c) 2017 Fraunhofer FOKUS. -* All rights reserved. This program and the accompanying materials -* are made available under the terms of the -* <> 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 org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.ComponentScan; -import org.springframework.context.annotation.Configuration; -import org.springframework.context.annotation.PropertySource; -import org.springframework.context.support.PropertySourcesPlaceholderConfigurer; - -@Configuration -@ComponentScan(basePackages = "eu.DECIDEh2020.mcsla") -@PropertySource(value = { "classpath:application.properties" }) -public class AppConfig { - - /* - * PropertySourcesPlaceHolderConfigurer Bean only required for @Value("{}") - * annotations. Remove this bean if you are not using @Value annotations for - * injecting properties. - */ - @Bean - public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() { - return new PropertySourcesPlaceholderConfigurer(); - } -} diff --git a/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/editor/configuration/ProjectEditorConfig.java b/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/editor/configuration/ProjectEditorConfig.java deleted file mode 100644 index 9c5d323fab999f51c1b334a681497ab3f614a2ca..0000000000000000000000000000000000000000 --- a/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/editor/configuration/ProjectEditorConfig.java +++ /dev/null @@ -1,38 +0,0 @@ -package eu.DECIDEh2020.mcsla.editor.configuration; - -/* -* Copyright (c) 2017 Fraunhofer FOKUS. -* All rights reserved. This program and the accompanying materials -* are made available under the terms of the -* <> 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 ProjectEditorConfig { - - private String serviceURL; - - public ProjectEditorConfig() { - super(); - } - - public ProjectEditorConfig(String url) { - super(); - setServiceURL(url); - - } - - public String getServiceURL() { - return serviceURL; - } - - public void setServiceURL(String url) { - this.serviceURL = url; - } - -} diff --git a/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/editor/data/SlasData.java b/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/editor/data/SlasData.java deleted file mode 100644 index ff48b5a02157473134cfcd9f0013153030a74626..0000000000000000000000000000000000000000 --- a/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/editor/data/SlasData.java +++ /dev/null @@ -1,69 +0,0 @@ -package eu.DECIDEh2020.mcsla.editor.data; -/* -* Copyright (c) 2017 Fraunhofer FOKUS. -* All rights reserved. This program and the accompanying materials -* are made available under the terms of the -* <> 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.Arrays; -import java.util.List; - -import eu.DECIDEh2020.mcsla.editor.JerseyClient; -import eu.DECIDEh2020.mcsla.beans.MicroserviceSLA; -import eu.DECIDEh2020.mcsla.beans.MicroserviceSLO; -import eu.DECIDEh2020.mcsla.beans.MicroserviceSQO; - -public class SlasData { - - static List slos; - static List sqos; - static List aggs; - static MicroserviceSLA[] slas; - - public static List getAllAGGs() { - //System.out.println("SlasData:getAllAGGs:...."); - JerseyClient jerseyClient = new JerseyClient(); - if (slas == null) - slas = jerseyClient.getCspSLAs(); - // Prepare SLOs to send to MCSLA Aggregator - MicroserviceSLO[] microserviceSLOs = jerseyClient.buildSLOs(slas); - //System.out.println("getAllAGGs:got list SLOs:" + microserviceSLOs.length); - // Return aggregated SLO - MicroserviceSLO aggregatedSLO = jerseyClient.applyAggregationRules(microserviceSLOs); - if (aggregatedSLO != null) - System.out.println("SlasData:getAllAGGs:got aggregated SLO:" + aggregatedSLO.termName); - else - System.out.println("SlasData:getAllAGGs:got aggregated SLO is NULL :-("); - aggs = Arrays.asList(aggregatedSLO); - //System.out.println("SlasData:getAllAGGs:" + aggs.size()); - return aggs; - } - - public static List getAllSLOs() { - //System.out.println("SlasData:getAllSLOs:...."); - JerseyClient jerseyClient = new JerseyClient(); - if (slos == null) { - slos = Arrays.asList(jerseyClient.buildSLOs(jerseyClient.getCspSLAs())); - } - System.out.println("SlasData:getAllSLOs:" + slos.size()); - return slos; - } - - public static List getAllSQOs() { - //System.out.println("SlasData:getAllSQOs:...."); - JerseyClient jerseyClient = new JerseyClient(); - if (sqos == null) { - sqos = Arrays.asList(jerseyClient.buildSQOs(jerseyClient.getCspSLAs())); - } - System.out.println("SlasData:getAllSQOs:" + sqos.size()); - return sqos; - } - -} diff --git a/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/editor/dual_listbox/DualListbox.java b/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/editor/dual_listbox/DualListbox.java deleted file mode 100644 index e3b6fd70f8765a4c8c8339d3011e4981a34e569e..0000000000000000000000000000000000000000 --- a/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/editor/dual_listbox/DualListbox.java +++ /dev/null @@ -1,502 +0,0 @@ -package eu.DECIDEh2020.mcsla.editor.dual_listbox; -/* -* Copyright (c) 2017 Fraunhofer FOKUS. -* All rights reserved. This program and the accompanying materials -* are made available under the terms of the -* <> 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.Arrays; -import java.util.HashSet; -import java.util.Iterator; -import java.util.List; -import java.util.Set; - -import eu.DECIDEh2020.mcsla.editor.data.SlasData; -import org.zkoss.zk.ui.Component; -import org.zkoss.zk.ui.event.Event; -import org.zkoss.zk.ui.select.SelectorComposer; -import org.zkoss.zk.ui.select.annotation.Listen; -import org.zkoss.zk.ui.select.annotation.Wire; -import org.zkoss.zk.ui.util.Clients; -import org.zkoss.zul.Groupbox; -import org.zkoss.zul.Label; -import org.zkoss.zul.ListModelList; -import org.zkoss.zul.Listbox; -import org.zkoss.zul.Radio; -import org.zkoss.zul.Radiogroup; -import org.zkoss.zul.Selectbox; -import org.zkoss.zul.Textbox; -import org.zkoss.zul.Window; - -import eu.DECIDEh2020.mcsla.editor.JerseyClient; -import eu.DECIDEh2020.mcsla.beans.Mcsla; -import eu.DECIDEh2020.mcsla.beans.MicroserviceSLA; -import eu.DECIDEh2020.mcsla.beans.MicroserviceSLO; -import eu.DECIDEh2020.mcsla.beans.MicroserviceSQO; -import eu.DECIDEh2020.mcsla.beans.ProjectConfig; - -public class DualListbox extends SelectorComposer { - private static final long serialVersionUID = 8243942703081449079L; - @Wire - private Window win; - @Wire - Groupbox mcslaGroupbox; - @Wire - private Listbox candidateLbSQOs; - @Wire - private Listbox candidateLbSLOs; - @Wire - private Listbox candidateLbAggs; - @Wire - private Listbox chosenLbsqos; - @Wire - private Listbox chosenLbslos; - @Wire - private Listbox chosenLbaggs; - @Wire - private Label mcslaIDLabel; - @Wire - private Label gitRemoteLabel; - @Wire - private Radiogroup visibilityRadiogroup; - @Wire - private Selectbox visibilitySelectbox; - @Wire - private Textbox descriptionTextbox; - - private ListModelList candidateSQOModel; - private ListModelList chosenSQODataModel; - private ListModelList candidateSLOModel; - private ListModelList chosenSLODataModel; - private ListModelList candidateAGGModel; - private ListModelList chosenAGGDataModel; - private ListModelList modelVisibilityList; - private String[] visibilityList = { "public", "privat" }; - private ProjectConfig projectConfig; - private Mcsla mcsla; - - public DualListbox() { - // Executions.createComponents("/widgets/listbox/dual_listbox/v_dualListbox.zul", - // this, null); - // Selectors.wireComponents(this, this, false); - // Selectors.wireEventListeners(this, this); - } - - // This method will be called after all the child components under the component - // which has the composer applied to it are created, so we can change components - // attributes or even create other components in it. - public void doAfterCompose(Component comp) throws Exception { - super.doAfterCompose(comp); - - reloadUI(); - } - - private void reloadUI() { - chosenLbsqos.setModel(chosenSQODataModel = new ListModelList()); - chosenLbslos.setModel(chosenSLODataModel = new ListModelList()); - chosenLbaggs.setModel(chosenAGGDataModel = new ListModelList()); - - chosenSQODataModel.setMultiple(true); - chosenSLODataModel.setMultiple(true); - chosenAGGDataModel.setMultiple(true); - - setSQOModel(SlasData.getAllSQOs()); - setSLOModel(SlasData.getAllSLOs()); - setAGGModel(SlasData.getAllAGGs()); - - JerseyClient jerseyClient = new JerseyClient(); - mcsla = jerseyClient.getMcsla(); - updateMcslaGUI(); - projectConfig = jerseyClient.getProjectConfig(); - gitRemoteLabel.setValue(projectConfig.getGitremotepath() + " (User:" + projectConfig.getGitusername() + ")"); - } - - public Mcsla getMcsla() { - return mcsla; - } - - /** - * @return the projectConfig - */ - public ProjectConfig getProjectConfig() { - return projectConfig; - } - - /** - * @param projectConfig - * the projectConfig to set - */ - public void setProjectConfig(ProjectConfig projectConfig) { - this.projectConfig = projectConfig; - } - - public ListModelList getVisibilityList() { - modelVisibilityList = new ListModelList(Arrays.asList(visibilityList)); - return modelVisibilityList; - } - - @Listen("onSelect = #visibilitySelectbox") - public void changeType() { - Set types = ((ListModelList) modelVisibilityList).getSelection(); - String visibility = types.iterator().next(); - mcsla.setVisibility(visibility); - showNotify("Visibility changed to: " + visibility, visibilitySelectbox); - } - - @Listen("onClick = #saveButton") - public void submit() { - JerseyClient jerseyClient = new JerseyClient(); - List slos = getChosenSLODataList(); - // System.out.println("DualListBox:submit:slos:" + slos.size()); - List aggslos = getChosenAGGDataList(); - // System.out.println("DualListBox:submit:aggslos:" + aggslos.size()); - slos.addAll(aggslos); - List sqos = getChosenSQODataList(); - // System.out.println("DualListBox:submit:sqos:" + sqos.size()); - mcsla = jerseyClient.buildMCSLAwithslos(mcsla, slos, sqos); - jerseyClient.updateMcsla(mcsla); - showNotify("Your MCSLA is saved in Repository:" + projectConfig.getGitremotepath(), mcslaGroupbox); - } - - @Listen("onClick = #aggDetailsButton") - public void showAggDetails(Event event) { - Set set = candidateAGGModel.getSelection(); - showNotify("Your MCSLA aggDetailsButton." + set.size(), mcslaGroupbox); - } - - @Listen("onClick = #loadButton") - public void loadMcsla() { - JerseyClient jerseyClient = new JerseyClient(); - mcsla = jerseyClient.getMcsla(); - updateMcslaGUI(); - showNotify("Get MCSLA from Repository:" + mcsla.getmCSLA_id(), mcslaIDLabel); - } - - @Listen("onClick = #createNewButton") - public void createNewMcsla() { - setSQOModel(SlasData.getAllSQOs()); - setSLOModel(SlasData.getAllSLOs()); - setAGGModel(SlasData.getAllAGGs()); - - JerseyClient jerseyClient = new JerseyClient(); - mcsla = jerseyClient.createMCSLAexample(null); - updateMcslaGUI(); - showNotify("Created new MCSLA:" + mcsla.getmCSLA_id(), mcslaIDLabel); - } - - private Set buildSQOsSet(Mcsla mcsla) { - List slas = mcsla.getMicroservice_SLAs(); - List sqoslist = new ArrayList<>(); - for (MicroserviceSLA sla : slas) { - if (sla.getMicroservice_SQOs() != null) - sqoslist.addAll(sla.getMicroservice_SQOs()); - } - Set sqosSet = new HashSet(sqoslist); - System.out.println("DualListBox:buildSQOsSet:slos:" + sqosSet.size()); - return sqosSet; - } - - private Set buildSLOsSet(Mcsla mcsla) { - List slas = mcsla.getMicroservice_SLAs(); - List sloslist = new ArrayList<>(); - for (MicroserviceSLA sla : slas) { - if (sla.getMicroservice_SLOs() != null) - sloslist.addAll(sla.getMicroservice_SLOs()); - } - Set slosSet = new HashSet(sloslist); - System.out.println("DualListBox:buildSLOsSet:slos:" + slosSet.size()); - return slosSet; - } - - private void updateMcslaGUI() { - mcslaIDLabel.setValue(mcsla.getmCSLA_id().toString()); - descriptionTextbox.setValue(mcsla.getDescription()); - modelVisibilityList.addToSelection(mcsla.getVisibility()); - chooseSetSQO(buildSQOsSet(mcsla)); - chooseSetSLO(buildSLOsSet(mcsla)); - - } - - @Listen("onChange = #descriptionTextbox") - public void changeTitle() { - String description = descriptionTextbox.getValue(); - mcsla.setDescription(description); - showNotify("MCSLA Description changed to: " + description, descriptionTextbox); - } - - @Listen("onCheck = #visibilityRadiogroup") - public void changeVisibility() { - Radio selectedItem = visibilityRadiogroup.getSelectedItem(); - // car.setAutoTransmission("automaticRadio".equals(selectedItem.getId())); - showNotify("MCSLA Visibility changed to: " + selectedItem.getLabel(), visibilityRadiogroup.getParent()); - } - - private void showNotify(String msg, Component ref) { - Clients.showNotification(msg, "info", ref, "end_center", 2000); - } - - @Listen("onClick = #chooseAllBtnAgg") - public void chooseAllItemAGG() { - chosenAGGDataModel.addAll(candidateAGGModel); - candidateAGGModel.clear(); - } - - @Listen("onClick = #chooseAllBtnSLO") - public void chooseAllItemSLO() { - chosenSLODataModel.addAll(candidateSLOModel); - candidateSLOModel.clear(); - } - - @Listen("onClick = #chooseAllBtnSQO") - public void chooseAllItemSQO() { - chosenSQODataModel.addAll(candidateSQOModel); - candidateSQOModel.clear(); - } - - // AGG - @Listen("onClick = #chooseBtnAgg") - public void chooseItemAGG() { - // Events.postEvent(new ChooseEventAGG(this, chooseOneAGG())); - chooseOneAGG(); - } - - // SLO - @Listen("onClick = #chooseBtnSLO") - public void chooseItemSLO() { - // Events.postEvent(new ChooseEventSLO(this, chooseOneSLO())); - chooseOneSLO(); - } - - // SQO - @Listen("onClick = #chooseBtnSQO") - public void chooseItemSQO() { - // Events.postEvent(new ChooseEventSQO(this, chooseOneSQO())); - chooseOneSQO(); - } - - // AGG - private Set chooseOneAGG() { - Set set = candidateAGGModel.getSelection(); - chosenAGGDataModel.addAll(set); - candidateAGGModel.removeAll(set); - return set; - } - - // SLO - private Set chooseOneSLO() { - Set set = candidateSLOModel.getSelection(); - chosenSLODataModel.addAll(set); - candidateSLOModel.removeAll(set); - return set; - } - - private Set chooseOneSQO() { - Set set = candidateSQOModel.getSelection(); - chosenSQODataModel.addAll(set); - candidateSQOModel.removeAll(set); - return set; - } - - // FIX this - private Set chooseSetSQO(Set set) { - System.out.println("DualListbox:chooseSetSQO:" + set.size()); - if (set.size() == 0) - return set; - - setSQOModel(SlasData.getAllSQOs()); - // chosenSQODataModel.clear(); - chosenSQODataModel.addAll(set); - - List list2removeList = new ArrayList(); - List candidateSQOList = candidateSQOModel.getInnerList(); - for (Iterator iterator = set.iterator(); iterator.hasNext();) { - MicroserviceSQO microserviceSQO1 = (MicroserviceSQO) iterator.next(); - for (Iterator iterator2 = candidateSQOList.iterator(); iterator2.hasNext();) { - MicroserviceSQO microserviceSQO2 = (MicroserviceSQO) iterator2.next(); - if (microserviceSQO1.getMicroservice_SQO_id().equals(microserviceSQO2.getMicroservice_SQO_id())) { - list2removeList.add(microserviceSQO2); - } - } - } - boolean b = candidateSQOModel.removeAll(list2removeList); - System.out.println("DualListbox:chooseSetSQO:" + b); - - return set; - } - - // FIX this - private Set chooseSetSLO(Set set) { - System.out.println("DualListbox:chooseSetSLO:" + set.size()); - if (set.size() == 0) - return set; - setSLOModel(SlasData.getAllSLOs()); - // chosenSLODataModel.clear(); - chosenSLODataModel.addAll(set); - - List list2removeList = new ArrayList(); - List candidateSLOList = candidateSLOModel.getInnerList(); - for (Iterator iterator = set.iterator(); iterator.hasNext();) { - MicroserviceSLO microserviceSLO1 = (MicroserviceSLO) iterator.next(); - for (Iterator iterator2 = candidateSLOList.iterator(); iterator2.hasNext();) { - MicroserviceSLO microserviceSLO2 = (MicroserviceSLO) iterator2.next(); - if (microserviceSLO1.getMicroservice_SLO_id().equals(microserviceSLO2.getMicroservice_SLO_id())) { - list2removeList.add(microserviceSLO2); - } - } - } - boolean b = candidateSLOModel.removeAll(list2removeList); - System.out.println("DualListbox:chooseSetSLO:" + b); - b = candidateAGGModel.removeAll(list2removeList); - System.out.println("DualListbox:chooseSetSLO:" + b); - return set; - } - - /** - * @return current chosen SLO data list - */ - public List getChosenSLODataList() { - return new ArrayList(chosenSLODataModel); - } - - /** - * @return current chosen SQO data list - */ - public List getChosenSQODataList() { - return new ArrayList(chosenSQODataModel); - } - - /** - * @return current chosen AGG data list - */ - public List getChosenAGGDataList() { - return new ArrayList(chosenAGGDataModel); - } - - /** - * Set new candidate AGG ListModelList. - * - * @param candidate - * is the data of candidate list model - */ - public void setAGGModel(List candidate) { - candidateLbAggs.setModel(this.candidateAGGModel = new ListModelList(candidate)); - this.candidateAGGModel.setMultiple(true); - chosenAGGDataModel.clear(); - } - - /** - * Set new candidate SLO ListModelList. - * - * @param candidate - * is the data of candidate list model - */ - public void setSLOModel(List candidate) { - candidateLbSLOs.setModel(this.candidateSLOModel = new ListModelList(candidate)); - this.candidateSLOModel.setMultiple(true); - chosenSLODataModel.clear(); - } - - /** - * Set new candidate SQO ListModelList. - * - * @param candidate - * is the data of candidate list model - */ - public void setSQOModel(List candidate) { - candidateLbSQOs.setModel(this.candidateSQOModel = new ListModelList(candidate)); - this.candidateSQOModel.setMultiple(true); - chosenSQODataModel.clear(); - } - - @Listen("onClick = #removeAllBtnAgg") - public void unchooseAllAgg() { - candidateAGGModel.addAll(chosenAGGDataModel); - chosenAGGDataModel.clear(); - } - - @Listen("onClick = #removeAllBtnSLO") - public void unchooseAllSLO() { - candidateSLOModel.addAll(chosenSLODataModel); - chosenSLODataModel.clear(); - } - - @Listen("onClick = #removeAllBtnSQO") - public void unchooseAllSQO() { - candidateSQOModel.addAll(chosenSQODataModel); - chosenSQODataModel.clear(); - } - - @Listen("onClick = #removeBtnAgg") - public void unchooseItemAGG() { - // Events.postEvent(new ChooseEventAGG(this, unchooseOneAGG())); - unchooseOneAGG(); - } - - @Listen("onClick = #removeBtnSLO") - public void unchooseItemSLO() { - // Events.postEvent(new ChooseEventSLO(this, unchooseOneSLO())); - unchooseOneSLO(); - } - - @Listen("onClick = #removeBtnSQO") - public void unchooseItemSQO() { - // Events.postEvent(new ChooseEventSQO(this, unchooseOneSQO())); - unchooseOneSQO(); - } - - private Set unchooseOneAGG() { - Set set = chosenAGGDataModel.getSelection(); - candidateAGGModel.addAll(set); - chosenAGGDataModel.removeAll(set); - return set; - } - - private Set unchooseOneSLO() { - Set set = chosenSLODataModel.getSelection(); - candidateSLOModel.addAll(set); - chosenSLODataModel.removeAll(set); - return set; - } - - private Set unchooseOneSQO() { - Set set = chosenSQODataModel.getSelection(); - candidateSQOModel.addAll(set); - chosenSQODataModel.removeAll(set); - return set; - } - - // Customized Event AGG - public class ChooseEventAGG extends Event { - private static final long serialVersionUID = -7554906383953342976L; - - public ChooseEventAGG(Component target, Set data) { - super("onChoose", target, data); - } - } - - // Customized Event SLO - public class ChooseEventSLO extends Event { - private static final long serialVersionUID = -7444906383953342976L; - - public ChooseEventSLO(Component target, Set data) { - super("onChoose", target, data); - } - } - - // Customized Event SQO - public class ChooseEventSQO extends Event { - private static final long serialVersionUID = -7334906383953342976L; - - public ChooseEventSQO(Component target, Set data) { - super("onChoose", target, data); - } - } -} \ No newline at end of file diff --git a/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/editor/service/ConfigFileService.java b/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/editor/service/ConfigFileService.java deleted file mode 100644 index ec8e3b362e1cca5a59eaaf036d059c6dd7e24530..0000000000000000000000000000000000000000 --- a/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/editor/service/ConfigFileService.java +++ /dev/null @@ -1,21 +0,0 @@ -package eu.DECIDEh2020.mcsla.editor.service; - -/* -* Copyright (c) 2017 Fraunhofer FOKUS. -* All rights reserved. This program and the accompanying materials -* are made available under the terms of the -* <> 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 interface ConfigFileService { - - public String getServiceUrl(); - - public void readValues(); -} diff --git a/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/editor/service/ConfigFileServiceImpl.java b/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/editor/service/ConfigFileServiceImpl.java deleted file mode 100644 index 052e3eb57c70be2d57cac00b1b2a86cc105917be..0000000000000000000000000000000000000000 --- a/MCSLA/MCSLAEditor/src/main/java/eu/DECIDEh2020/mcsla/editor/service/ConfigFileServiceImpl.java +++ /dev/null @@ -1,55 +0,0 @@ -package eu.DECIDEh2020.mcsla.editor.service; - -/* -* Copyright (c) 2017 Fraunhofer FOKUS. -* All rights reserved. This program and the accompanying materials -* are made available under the terms of the -* <> 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 org.springframework.beans.factory.annotation.Autowired; -import org.springframework.beans.factory.annotation.Value; -import org.springframework.core.env.Environment; -import org.springframework.stereotype.Service; - -@Service("configFileService") -public class ConfigFileServiceImpl implements ConfigFileService { - - private static final String DECIDE_MCSLA_SERVICE_URL = "decide.mcsla.service.url"; - - @Value("${decide.mcsla.service.url:http://localhost:8080/decide.mcsla.srv}") - private String serviceUrl; - - @Autowired - private Environment environment; - - /** - * @param serviceURL - * the serviceURL to set - */ - public void setServiceURL(String serviceURL) { - this.serviceUrl = serviceURL; - } - - public String getServiceUrl() { - String url = environment.getProperty(DECIDE_MCSLA_SERVICE_URL); - if (url != null) { - System.out.println("ConfigFileServiceImpl:getServiceUrl:" + url); - return url; - } else - return serviceUrl; - - } - - public void readValues() { - System.out.println( - "Getting property via Spring Environment User:" + environment.getProperty(DECIDE_MCSLA_SERVICE_URL)); - } - -} diff --git a/MCSLA/MCSLAEditor/src/main/resources/application.properties b/MCSLA/MCSLAEditor/src/main/resources/application.properties deleted file mode 100644 index 2e4fa83728a2f3c3e3707986f8ec078a0a6bb4bf..0000000000000000000000000000000000000000 --- a/MCSLA/MCSLAEditor/src/main/resources/application.properties +++ /dev/null @@ -1 +0,0 @@ -decide.mcsla.service.url=http://decidehost:8080/decide.mcsla.srv diff --git a/MCSLA/MCSLAEditor/src/main/webapp/META-INF/MANIFEST.MF b/MCSLA/MCSLAEditor/src/main/webapp/META-INF/MANIFEST.MF deleted file mode 100644 index 4e0a32ad65c8fd42f70eb1c043386ee2c57f8007..0000000000000000000000000000000000000000 --- a/MCSLA/MCSLAEditor/src/main/webapp/META-INF/MANIFEST.MF +++ /dev/null @@ -1,8 +0,0 @@ -Manifest-Version: 1.0 -Specification-Title: ZK Application -Specification-Version: 1.0 -Specification-Vendor: -Implementation-Title: -Implementation-URL: http://your-website/ -Implementation-Version: 1.0 -Implementation-Vendor: diff --git a/MCSLA/MCSLAEditor/src/main/webapp/WEB-INF/web.servlet-3.xml b/MCSLA/MCSLAEditor/src/main/webapp/WEB-INF/web.servlet-3.xml deleted file mode 100644 index 340a528a84027ed0bba9243ed1d4a4ea567cfd68..0000000000000000000000000000000000000000 --- a/MCSLA/MCSLAEditor/src/main/webapp/WEB-INF/web.servlet-3.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - mcsla.editor - - - diff --git a/MCSLA/MCSLAEditor/src/main/webapp/WEB-INF/web.xml b/MCSLA/MCSLAEditor/src/main/webapp/WEB-INF/web.xml deleted file mode 100644 index 966d93a08918470ad1fd725490b3522c3e21d0fd..0000000000000000000000000000000000000000 --- a/MCSLA/MCSLAEditor/src/main/webapp/WEB-INF/web.xml +++ /dev/null @@ -1,199 +0,0 @@ - - - - - - decide.mcsla.editor - - - - - ZK listener for session cleanup - org.zkoss.zk.ui.http.HttpSessionListener - - - ZK loader for ZUML pages - zkLoader - org.zkoss.zk.ui.http.DHtmlLayoutServlet - - - - update-uri - /zkau - - - - 1 - - - zkLoader - *.zul - - - zkLoader - *.zhtml - - - - The asynchronous update engine for ZK - auEngine - org.zkoss.zk.au.http.DHtmlUpdateServlet - - - - - - auEngine - /zkau/* - - - - - - - - - - - - 60 - - - - - doc - application/vnd.ms-word - - - gif - image/gif - - - htm - text/html - - - html - text/html - - - jpeg - image/jpeg - - - jpg - image/jpeg - - - js - text/javascript - - - pdf - application/pdf - - - png - image/png - - - txt - text/plain - - - xls - application/vnd.ms-excel - - - xml - text/xml - - - zhtml - text/html - - - zul - text/html - - - - index.zul - index.zhtml - index.html - index.htm - - diff --git a/MCSLA/MCSLAEditor/src/main/webapp/WEB-INF/zk.xml b/MCSLA/MCSLAEditor/src/main/webapp/WEB-INF/zk.xml deleted file mode 100644 index cbeaf49ad78a862a1684573e766a2354f629dd77..0000000000000000000000000000000000000000 --- a/MCSLA/MCSLAEditor/src/main/webapp/WEB-INF/zk.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - diff --git a/MCSLA/MCSLAEditor/src/main/webapp/index.zul b/MCSLA/MCSLAEditor/src/main/webapp/index.zul deleted file mode 100644 index cc9a127c85a4d45c62f15b1ce4bb032b6ac909f9..0000000000000000000000000000000000000000 --- a/MCSLA/MCSLAEditor/src/main/webapp/index.zul +++ /dev/null @@ -1,273 +0,0 @@ - - - - - - - - -
DECIDE MCSLA editor
-
- -
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -