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/12/11 12:45:34 UTC
[2/3] git commit: adding API operation commits to Autoscaler Service
adding API operation commits to Autoscaler Service
Project: http://git-wip-us.apache.org/repos/asf/incubator-stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-stratos/commit/44390b00
Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/44390b00
Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/44390b00
Branch: refs/heads/master
Commit: 44390b007e3589f4329e369f492fcf818373bf36
Parents: c1531a6
Author: Nirmal Fernando <ni...@apache.org>
Authored: Wed Dec 11 17:14:12 2013 +0530
Committer: Nirmal Fernando <ni...@apache.org>
Committed: Wed Dec 11 17:15:06 2013 +0530
----------------------------------------------------------------------
.../autoscaler/api/AutoScalerServiceImpl.java | 1 -
.../interfaces/AutoScalerServiceInterface.java | 29 ++++++++++++++++++++
2 files changed, 29 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/44390b00/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/api/AutoScalerServiceImpl.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/api/AutoScalerServiceImpl.java b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/api/AutoScalerServiceImpl.java
index 842c014..9255980 100644
--- a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/api/AutoScalerServiceImpl.java
+++ b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/api/AutoScalerServiceImpl.java
@@ -19,7 +19,6 @@
package org.apache.stratos.autoscaler.api;
import java.util.ArrayList;
-import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/44390b00/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/interfaces/AutoScalerServiceInterface.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/interfaces/AutoScalerServiceInterface.java b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/interfaces/AutoScalerServiceInterface.java
index a9b30de..cb4be60 100644
--- a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/interfaces/AutoScalerServiceInterface.java
+++ b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/interfaces/AutoScalerServiceInterface.java
@@ -28,8 +28,37 @@ public interface AutoScalerServiceInterface {
public Partition[] getPartitionsOfGroup(String deploymentPolicyId, String partitionGroup);
public Partition[] getPartitionsOfDeploymentPolicy(String deploymentPolicyId);
+ /**
+ * Check existence of a lb cluster in network partitions of a given policy.
+ * @param lbClusterId
+ * @param deploymentPolicyId
+ * @throws NonExistingLBException if the lb cluster id cannot be found in any of the network partitions.
+ */
public void checkLBExistenceAgainstPolicy(String lbClusterId, String deploymentPolicyId) throws NonExistingLBException;
+
+ /**
+ * Check the existence of default lb in network partitions of a given policy.
+ * @param deploymentPolicyId
+ * @return true if the LB exists in all the network partitions of this policy,
+ * false if a LB couldn't find even in one network partition.
+ */
public boolean checkDefaultLBExistenceAgainstPolicy(String deploymentPolicyId);
+
+ /**
+ * Check the existence of per cluster lb in network partitions of a given policy.
+ * @param clusterId cluster id of the service cluster which requires a dedicated LB.
+ * @param deploymentPolicyId
+ * @return true if the cluster based LB exists in all the network partitions of this policy,
+ * false if a LB couldn't find even in one network partition.
+ */
public boolean checkClusterLBExistenceAgainstPolicy(String clusterId, String deploymentPolicyId);
+
+ /**
+ * Check the existence of per service lb in network partitions of a given policy.
+ * @param serviceName service name of the service cluster which requires a dedicated LB.
+ * @param deploymentPolicyId
+ * @return true if the service based LB exists in all the network partitions of this policy,
+ * false if a LB couldn't find even in one network partition.
+ */
public boolean checkServiceLBExistenceAgainstPolicy(String serviceName, String deploymentPolicyId);
}