public static org.apache.stratos.rest.endpoint.bean.autoscaler.policy.deployment.DeploymentPolicy[]
getDeploymentPolicies (String cartridgeType) throws RestAPIException {
DeploymentPolicy [] deploymentPolicies = null;
AutoscalerServiceClient autoscalerServiceClient = getAutoscalerServiceClient();
if (autoscalerServiceClient != null) {
try {
deploymentPolicies = autoscalerServiceClient.getDeploymentPolicies(cartridgeType);
} catch (RemoteException e) {
String errorMsg = "Error while getting available deployment policies for cartridge type " +
cartridgeType+". Cause: "+e.getMessage();;
log.error(errorMsg, e);