Repository: stratos
Updated Branches:
  refs/heads/master dbf2dad9e -> 8074b43ce


Renaming partition group to NetworkPartition in CLI


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

Branch: refs/heads/master
Commit: 8074b43ce348eba46d02b50a5a1ac6cd3e2d1d5f
Parents: dbf2dad
Author: Lahiru Sandaruwan <[email protected]>
Authored: Sun Nov 30 10:58:04 2014 +0530
Committer: Lahiru Sandaruwan <[email protected]>
Committed: Sun Nov 30 10:58:04 2014 +0530

----------------------------------------------------------------------
 .../autoscaler/partition/NetworkPartition.java  | 54 ++++++++++++++++++++
 .../autoscaler/partition/PartitionGroup.java    | 54 --------------------
 .../policy/deployment/DeploymentPolicy.java     | 12 ++---
 3 files changed, 60 insertions(+), 60 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/8074b43c/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/beans/autoscaler/partition/NetworkPartition.java
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/beans/autoscaler/partition/NetworkPartition.java
 
b/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/beans/autoscaler/partition/NetworkPartition.java
new file mode 100644
index 0000000..c1fecb5
--- /dev/null
+++ 
b/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/beans/autoscaler/partition/NetworkPartition.java
@@ -0,0 +1,54 @@
+/*
+ * 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.cli.beans.autoscaler.partition;
+
+import java.util.List;
+
+public class NetworkPartition {
+    private String id;
+
+    private String partitionAlgo;
+
+    //partition Ids
+    private List<Partition> partition;
+
+    public String getId() {
+        return id;
+    }
+
+    public void setId(String id) {
+        this.id = id;
+    }
+
+    public String getPartitionAlgo() {
+        return partitionAlgo;
+    }
+
+    public void setPartitionAlgo(String partitionAlgo) {
+        this.partitionAlgo = partitionAlgo;
+    }
+
+    public List<Partition> getPartition() {
+        return partition;
+    }
+
+    public void setPartition(List<Partition> partition) {
+        this.partition = partition;
+    }
+}

http://git-wip-us.apache.org/repos/asf/stratos/blob/8074b43c/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/beans/autoscaler/partition/PartitionGroup.java
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/beans/autoscaler/partition/PartitionGroup.java
 
b/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/beans/autoscaler/partition/PartitionGroup.java
deleted file mode 100644
index 16910e2..0000000
--- 
a/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/beans/autoscaler/partition/PartitionGroup.java
+++ /dev/null
@@ -1,54 +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.cli.beans.autoscaler.partition;
-
-import java.util.List;
-
-public class PartitionGroup {
-    private String id;
-
-    private String partitionAlgo;
-
-    //partition Ids
-    private List<Partition> partition;
-
-    public String getId() {
-        return id;
-    }
-
-    public void setId(String id) {
-        this.id = id;
-    }
-
-    public String getPartitionAlgo() {
-        return partitionAlgo;
-    }
-
-    public void setPartitionAlgo(String partitionAlgo) {
-        this.partitionAlgo = partitionAlgo;
-    }
-
-    public List<Partition> getPartition() {
-        return partition;
-    }
-
-    public void setPartition(List<Partition> partition) {
-        this.partition = partition;
-    }
-}

http://git-wip-us.apache.org/repos/asf/stratos/blob/8074b43c/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/beans/autoscaler/policy/deployment/DeploymentPolicy.java
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/beans/autoscaler/policy/deployment/DeploymentPolicy.java
 
b/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/beans/autoscaler/policy/deployment/DeploymentPolicy.java
index cc40f47..abcc3f3 100644
--- 
a/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/beans/autoscaler/policy/deployment/DeploymentPolicy.java
+++ 
b/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/beans/autoscaler/policy/deployment/DeploymentPolicy.java
@@ -18,8 +18,8 @@
  */
 package org.apache.stratos.cli.beans.autoscaler.policy.deployment;
 
+import org.apache.stratos.cli.beans.autoscaler.partition.NetworkPartition;
 import org.apache.stratos.cli.beans.autoscaler.partition.Partition;
-import org.apache.stratos.cli.beans.autoscaler.partition.PartitionGroup;
 
 import java.util.List;
 
@@ -31,7 +31,7 @@ public class DeploymentPolicy {
     private boolean isPublic;
 
      //partition groups
-     private List<PartitionGroup> partitionGroup;
+     private List<NetworkPartition> networkPartition;
 
     //partitions
     private List<Partition> partition;  
@@ -44,12 +44,12 @@ public class DeploymentPolicy {
         this.id = id;
     }
 
-    public List<PartitionGroup> getPartitionGroup() {
-        return partitionGroup;
+    public List<NetworkPartition> getNetworkPartition() {
+        return networkPartition;
     }
 
-    public void setPartitionGroup(List<PartitionGroup> partitionGroup) {
-        this.partitionGroup = partitionGroup;
+    public void setNetworkPartition(List<NetworkPartition> networkPartition) {
+        this.networkPartition = networkPartition;
     }
 
     public List<Partition> getPartition() {

Reply via email to