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 09:24:57 UTC

[7/8] git commit: changes to autoscaler service client- due to new API operations

changes to autoscaler service client- due to new API operations


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

Branch: refs/heads/master
Commit: f96f781d6f85aa276c2b95e70ca62726670caeee
Parents: 71b3cf4
Author: Nirmal Fernando <ni...@apache.org>
Authored: Wed Dec 11 13:39:55 2013 +0530
Committer: Nirmal Fernando <ni...@apache.org>
Committed: Wed Dec 11 13:41:43 2013 +0530

----------------------------------------------------------------------
 .../adc/mgt/client/AutoscalerServiceClient.java | 24 ++++++++++++++++++--
 1 file changed, 22 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/f96f781d/components/org.apache.stratos.adc.mgt/src/main/java/org/apache/stratos/adc/mgt/client/AutoscalerServiceClient.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.adc.mgt/src/main/java/org/apache/stratos/adc/mgt/client/AutoscalerServiceClient.java b/components/org.apache.stratos.adc.mgt/src/main/java/org/apache/stratos/adc/mgt/client/AutoscalerServiceClient.java
index c53a2a0..a0104c5 100644
--- a/components/org.apache.stratos.adc.mgt/src/main/java/org/apache/stratos/adc/mgt/client/AutoscalerServiceClient.java
+++ b/components/org.apache.stratos.adc.mgt/src/main/java/org/apache/stratos/adc/mgt/client/AutoscalerServiceClient.java
@@ -211,9 +211,9 @@ public class AutoscalerServiceClient {
         return deploymentPolicies;
     }
     
-    public void checkLBExistence(String clusterId) throws ADCException {
+    public void checkLBExistenceAgainstPolicy(String clusterId, String deploymentPolicyId) throws ADCException {
         try {
-            stub.checkLBExistence(clusterId);
+            stub.checkLBExistenceAgainstPolicy(clusterId, deploymentPolicyId);
         } catch (RemoteException e) {
             String errorMsg = "Error connecting to Auto-scaler Service.";
             log.error(errorMsg, e);
@@ -224,6 +224,26 @@ public class AutoscalerServiceClient {
             throw new ADCException(errorMsg, e);
         }
     }
+    
+    public boolean checkDefaultLBExistenceAgainstPolicy(String deploymentPolicyId) throws ADCException {
+        try {
+            return stub.checkDefaultLBExistenceAgainstPolicy(deploymentPolicyId);
+        } catch (RemoteException e) {
+            String errorMsg = "Error connecting to Auto-scaler Service.";
+            log.error(errorMsg, e);
+            throw new ADCException(errorMsg, e);
+        }
+    }
+    
+    public boolean checkServiceLBExistenceAgainstPolicy(String serviceName, String deploymentPolicyId) throws ADCException {
+        try {
+            return stub.checkServiceLBExistenceAgainstPolicy(serviceName, deploymentPolicyId);
+        } catch (RemoteException e) {
+            String errorMsg = "Error connecting to Auto-scaler Service.";
+            log.error(errorMsg, e);
+            throw new ADCException(errorMsg, e);
+        }
+    }
 
     public org.apache.stratos.autoscaler.deployment.policy.DeploymentPolicy getDeploymentPolicy (String deploymentPolicyId)
             throws Exception {