Package org.apache.stratos.autoscaler.deployment.policy

Examples of org.apache.stratos.autoscaler.deployment.policy.DeploymentPolicy


        }

        AutoscalePolicy policy =
                                 PolicyManager.getInstance()
                                              .getAutoscalePolicy(autoscalePolicyName);
        DeploymentPolicy deploymentPolicy =
                                            PolicyManager.getInstance()
                                                         .getDeploymentPolicy(deploymentPolicyName);

        if (deploymentPolicy == null) {
            String msg = "Deployment Policy is null. Policy name: " + deploymentPolicyName;
            log.error(msg);
            throw new PolicyValidationException(msg);
        }

        String clusterId = cluster.getClusterId();
        LbClusterMonitor clusterMonitor =
                                        new LbClusterMonitor(clusterId,
                                                           cluster.getServiceName(),
                                                           deploymentPolicy, policy);
        // partition group = network partition context
        for (PartitionGroup partitionGroup : deploymentPolicy.getPartitionGroups()) {

            NetworkPartitionLbHolder networkPartitionLbHolder =
                                                              PartitionManager.getInstance()
                                                                              .getNetworkPartitionLbHolder(partitionGroup.getId());
//                                                              PartitionManager.getInstance()
View Full Code Here


    try {
     
      DeploymentPolicyReader reader = new DeploymentPolicyReader(policyFile);
     
      DeploymentPolicy policy = reader.read();
      PolicyManager.getInstance().addDeploymentPolicyToInformationModel(policy);

      log.info("Successfully deployed the policy specified at "
          + deploymentFileData.getAbsolutePath());
View Full Code Here

TOP

Related Classes of org.apache.stratos.autoscaler.deployment.policy.DeploymentPolicy

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.