You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by la...@apache.org on 2015/04/07 05:06:33 UTC
[03/20] stratos git commit: Deployment policy move:Add partiton max
and partition algo to partition classes
Deployment policy move:Add partiton max and partition algo to partition classes
Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/443367ac
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/443367ac
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/443367ac
Branch: refs/heads/master
Commit: 443367ac919c775c2d6d6453a4821d51b3e1e33f
Parents: 886553b
Author: Lahiru Sandaruwan <la...@apache.org>
Authored: Tue Apr 7 07:51:20 2015 +0530
Committer: Lahiru Sandaruwan <la...@apache.org>
Committed: Tue Apr 7 07:51:20 2015 +0530
----------------------------------------------------------------------
.../stratos/cloud/controller/domain/NetworkPartition.java | 9 +++++++++
.../apache/stratos/cloud/controller/domain/Partition.java | 9 +++++++++
2 files changed, 18 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/stratos/blob/443367ac/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/domain/NetworkPartition.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/domain/NetworkPartition.java b/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/domain/NetworkPartition.java
index 9a8f67b..54be9b0 100644
--- a/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/domain/NetworkPartition.java
+++ b/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/domain/NetworkPartition.java
@@ -33,6 +33,7 @@ public class NetworkPartition implements Serializable {
private String provider;
private boolean activeByDefault;
private Partition[] partitions;
+ private String partitionAlgo;
public void setPartitions(Partition[] partitions) {
if(partitions == null) {
@@ -90,4 +91,12 @@ public class NetworkPartition implements Serializable {
public void setProvider(String provider) {
this.provider = provider;
}
+
+ public String getPartitionAlgo() {
+ return partitionAlgo;
+ }
+
+ public void setPartitionAlgo(String partitionAlgo) {
+ this.partitionAlgo = partitionAlgo;
+ }
}
http://git-wip-us.apache.org/repos/asf/stratos/blob/443367ac/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/domain/Partition.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/domain/Partition.java b/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/domain/Partition.java
index c69d07a..4625a35 100644
--- a/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/domain/Partition.java
+++ b/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/domain/Partition.java
@@ -40,6 +40,7 @@ public class Partition implements Serializable {
private String description;
private boolean isPublic;
private Properties properties = new Properties();
+ private int partitionMax;
/**
* Gets the value of the id property.
@@ -150,4 +151,12 @@ public class Partition implements Serializable {
public int hashCode() {
return this.id.hashCode();
}
+
+ public int getPartitionMax() {
+ return partitionMax;
+ }
+
+ public void setPartitionMax(int partitionMax) {
+ this.partitionMax = partitionMax;
+ }
}