Package org.apache.stratos.autoscaler.policy

Examples of org.apache.stratos.autoscaler.policy.PolicyManager


    }
    public void _listASPolicies (CommandInterpreter ci){
      String policyId = ci.nextArgument();
     
      PolicyManager pm = PolicyManager.getInstance();
     
      if(StringUtils.isBlank(policyId)){
        AutoscalePolicy[] aspolicyArr = pm.getAutoscalePolicyList();
          for(AutoscalePolicy asPoolicy : aspolicyArr){
            ci.println(asPoolicy.toString());
          }
      }else{
        AutoscalePolicy asPolicy = pm.getAutoscalePolicy(policyId);
        if(asPolicy != null){
          ci.println(asPolicy);
        }
      }
    }
View Full Code Here


    }
    public void _listDeploymentPolicies (CommandInterpreter ci){
      String policyId = ci.nextArgument();
     
      PolicyManager pm = PolicyManager.getInstance();
     
      if(StringUtils.isBlank(policyId)){
        DeploymentPolicy[] depPolicyArr = pm.getDeploymentPolicyList();
          for(DeploymentPolicy depPoolicy : depPolicyArr){
            ci.println(depPoolicy.toString());
          }
      }else{
        DeploymentPolicy asPolicy = pm.getDeploymentPolicy(policyId);
        if(asPolicy != null){
          ci.println(asPolicy);
        }
      }
    }
View Full Code Here

TOP

Related Classes of org.apache.stratos.autoscaler.policy.PolicyManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.