Repository: stratos
Updated Branches:
  refs/heads/master 643131f21 -> e20df6f32


Cleanning and updating comments in Autoscaler algorithm class


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

Branch: refs/heads/master
Commit: e20df6f32bfd3a0274dc968b17c28e0964a3e742
Parents: 643131f
Author: Lahiru Sandaruwan <[email protected]>
Authored: Tue Dec 2 17:30:36 2014 +0530
Committer: Lahiru Sandaruwan <[email protected]>
Committed: Tue Dec 2 17:30:45 2014 +0530

----------------------------------------------------------------------
 .../algorithm/AutoscaleAlgorithm.java           | 21 +++-----------------
 .../context/cluster/ClusterInstanceContext.java |  2 +-
 2 files changed, 4 insertions(+), 19 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/e20df6f3/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/algorithm/AutoscaleAlgorithm.java
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/algorithm/AutoscaleAlgorithm.java
 
b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/algorithm/AutoscaleAlgorithm.java
index c237c62..177674a 100644
--- 
a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/algorithm/AutoscaleAlgorithm.java
+++ 
b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/algorithm/AutoscaleAlgorithm.java
@@ -23,35 +23,20 @@ import 
org.apache.stratos.autoscaler.context.partition.PartitionContext;
 
 
 /**
- * This interface is should be implemented by all the algorithms that are 
there to select partitions of a particular
- * partition group
+ * This interface is should be implemented by all the algorithms that are 
there to select partitions context
  */
 public interface AutoscaleAlgorithm {
 
-//    /**
-//     * Returns whether there is available {@link Partition} to scale up 
considering the current count and maximum
-//     * @param clusterId Id of the cluster which need the availability 
information
-//     * @return availability of {@link Partition}s to scale up
-//     */
-//    public boolean scaleUpPartitionAvailable(String clusterId);
-//
-//    /**
-//     * Returns whether there is available {@link Partition} to scale down 
considering the current count and minimum
-//     * @param clusterId Id of the cluster which need the availability 
information
-//     * @return availability of {@link Partition}s to scale down
-//     */
-//    public boolean scaleDownPartitionAvailable(String clusterId);
-
     /**
      * Returns a {@link PartitionContext} to scale up from the given list
-     * @param partitionContexts
+     * @param partitionContexts is the array of partition contexts which will 
be select the partition context from
      * @return {@link PartitionContext} to scale up
      */
     public PartitionContext getNextScaleUpPartitionContext(PartitionContext[] 
partitionContexts);
 
     /**
      * Returns a {@link PartitionContext} to scale down from the given list
-     * @param partitionContexts
+     * @param partitionContexts is the array of partition contexts which will 
be select the partition context from
      * @return {@link PartitionContext} to scale down
      */
     public PartitionContext 
getNextScaleDownPartitionContext(PartitionContext[] partitionContexts);

http://git-wip-us.apache.org/repos/asf/stratos/blob/e20df6f3/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/context/cluster/ClusterInstanceContext.java
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/context/cluster/ClusterInstanceContext.java
 
b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/context/cluster/ClusterInstanceContext.java
index 8525720..64c52cc 100644
--- 
a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/context/cluster/ClusterInstanceContext.java
+++ 
b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/context/cluster/ClusterInstanceContext.java
@@ -461,7 +461,7 @@ public class ClusterInstanceContext extends InstanceContext 
{
     public void setMinMembers(int minMembers) {
         this.minMembers = minMembers;
     }
-    
+
     public String getNetworkPartitionId() {
         return networkPartitionId;
     }

Reply via email to