correcting DeploymentPolicy reference

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

Branch: refs/heads/master
Commit: f573c2083619eca1ef2c8c41d0901a30d404f4a8
Parents: fa3faef
Author: Nirmal Fernando <[email protected]>
Authored: Tue Dec 10 20:23:22 2013 +0530
Committer: Nirmal Fernando <[email protected]>
Committed: Tue Dec 10 20:23:22 2013 +0530

----------------------------------------------------------------------
 .../apache/stratos/rest/endpoint/services/ServiceUtils.java  | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/f573c208/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/services/ServiceUtils.java
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/services/ServiceUtils.java
 
b/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/services/ServiceUtils.java
index 0dd15ab..a83a594 100644
--- 
a/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/services/ServiceUtils.java
+++ 
b/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/services/ServiceUtils.java
@@ -216,6 +216,7 @@ public class ServiceUtils {
                                 }
                                 return;
                             }
+                        }
                     }
                 }
 
@@ -300,7 +301,9 @@ public class ServiceUtils {
         return false;
     }
 
-    public static boolean deployDeploymentPolicy (DeploymentPolicy 
deploymentPolicyBean) throws RestAPIException {
+    public static boolean deployDeploymentPolicy (
+        
org.apache.stratos.rest.endpoint.bean.autoscaler.policy.deployment.DeploymentPolicy
 deploymentPolicyBean) 
+                throws RestAPIException {
 
         //log.info("***** " + cartridgeDefinitionBean.toString() + " *****");
 
@@ -495,7 +498,8 @@ public class ServiceUtils {
         return PojoConverter.populateDeploymentPolicyPojos(deploymentPolicies);
     }
 
-    public static DeploymentPolicy getDeploymentPolicy(String 
deploymentPolicyId) throws RestAPIException {
+    public static 
org.apache.stratos.rest.endpoint.bean.autoscaler.policy.deployment.DeploymentPolicy
 
+    getDeploymentPolicy(String deploymentPolicyId) throws RestAPIException {
 
         DeploymentPolicy deploymentPolicy = null;
         AutoscalerServiceClient autoscalerServiceClient = 
getAutoscalerServiceClient();

Reply via email to