You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by ni...@apache.org on 2013/11/27 19:55:16 UTC

[19/26] git commit: changes to auto-scaler after CC refactoring work

changes to auto-scaler after CC refactoring work


Project: http://git-wip-us.apache.org/repos/asf/incubator-stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-stratos/commit/961cbd8e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/961cbd8e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/961cbd8e

Branch: refs/heads/master
Commit: 961cbd8ef93ebb13d99e09d5b8ae1ac2e8009c86
Parents: 4ab48db
Author: Nirmal Fernando <ni...@apache.org>
Authored: Wed Nov 27 09:49:00 2013 +0530
Committer: Nirmal Fernando <ni...@apache.org>
Committed: Wed Nov 27 09:49:00 2013 +0530

----------------------------------------------------------------------
 .../policy/model/DeploymentPolicy.java          | 67 ---------------
 .../autoscaler/policy/model/Partition.java      | 87 --------------------
 .../autoscaler/policy/model/PartitionGroup.java | 81 ------------------
 3 files changed, 235 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/961cbd8e/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/policy/model/DeploymentPolicy.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/policy/model/DeploymentPolicy.java b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/policy/model/DeploymentPolicy.java
deleted file mode 100644
index 50f9006..0000000
--- a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/policy/model/DeploymentPolicy.java
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one 
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you 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.
- */
-
-package org.apache.stratos.autoscaler.policy.model;
-
-import java.util.ArrayList;
-import java.util.List;
-
-/**
- * The model class for Deployment-Policy definition.
- */
-public class DeploymentPolicy {
-
-	private String id;
-	private List<PartitionGroup> partitionGroups;
-
-    /**
-     * Gets the value of the id property.
-     * 
-     * @return
-     *     possible object is
-     *     {@link String }
-     *     
-     */
-    public String getId() {
-        return id;
-    }
-
-    /**
-     * Sets the value of the id property.
-     * 
-     * @param value
-     *     allowed object is
-     *     {@link String }
-     *     
-     */
-    public void setId(String value) {
-        this.id = value;
-    }
-
-    /**
-     * Gets the value of the partition-groups.
-     */
-    public List<PartitionGroup> getPartitionGroups() {
-        if (partitionGroups == null) {
-            partitionGroups = new ArrayList<PartitionGroup>();
-        }
-        return this.partitionGroups;
-    }
-
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/961cbd8e/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/policy/model/Partition.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/policy/model/Partition.java b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/policy/model/Partition.java
deleted file mode 100644
index e65dd05..0000000
--- a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/policy/model/Partition.java
+++ /dev/null
@@ -1,87 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one 
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you 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.
- */
-
-package org.apache.stratos.autoscaler.policy.model;
-
-/**
- * The model class for Partition definition.
- */
-public class Partition {
-
-	private int partitionMax;
-	private int partitionMin;
-	private String id;
-
-
-    /**
-     * Gets the value of the partitionMax property.
-     * 
-     */
-    public int getPartitionMembersMax() {
-        return partitionMax;
-    }
-
-    /**
-     * Sets the value of the partitionMax property.
-     * 
-     */
-    public void setPartitionMax(int value) {
-        this.partitionMax = value;
-    }
-
-    /**
-     * Gets the value of the partitionMin property.
-     * 
-     */
-    public int getPartitionMembersMin() {
-        return partitionMin;
-    }
-
-    /**
-     * Sets the value of the partitionMin property.
-     * 
-     */
-    public void setPartitionMin(int value) {
-        this.partitionMin = value;
-    }
-    /**
-     * Gets the value of the id property.
-     * 
-     * @return
-     *     possible object is
-     *     {@link String }
-     *     
-     */
-	public String getId() {
-		return id;
-	}
-
-    /**
-     * Sets the value of the id property.
-     * 
-     * @param value
-     *     allowed object is
-     *     {@link String }
-     *     
-     */
-	public void setId(String id) {
-		this.id = id;
-	}
-
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/961cbd8e/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/policy/model/PartitionGroup.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/policy/model/PartitionGroup.java b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/policy/model/PartitionGroup.java
deleted file mode 100644
index 2db5e67..0000000
--- a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/policy/model/PartitionGroup.java
+++ /dev/null
@@ -1,81 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you 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.
- */
-
-package org.apache.stratos.autoscaler.policy.model;
-
-import java.util.ArrayList;
-import java.util.List;
-
-/**
- * The model class for PartitionGroup definition.
- */
-public class PartitionGroup {
-
-    private String id;
-    private String partitionAlgo;
-    private List<Partition> partitions;
-
-    /**
-     * Gets the value of the partitionAlgo property.
-     *
-     * @return
-     *     possible object is
-     *     {@link String }
-     *
-     */
-    public String getPartitionAlgo() {
-        return partitionAlgo;
-    }
-
-    /**
-     * Sets the value of the partitionAlgo property.
-     *
-     * @param value
-     *     allowed object is
-     *     {@link String }
-     *
-     */
-    public void setPartitionAlgo(String value) {
-        this.partitionAlgo = value;
-    }
-
-    /**
-     * Gets the value of the partitions.
-     */
-    public List<Partition> getPartitions() {
-        if (partitions == null) {
-            partitions = new ArrayList<Partition>();
-        }
-        return this.partitions;
-    }
-
-    /**
-     * Gets the value of the id.
-     */
-    public String getId() {
-        return id;
-    }
-
-    /**
-     * sets the value of the id.
-     */
-    public void setId(String id) {
-        this.id = id;
-    }
-}