Examples of PolicyValidationException


Examples of org.apache.stratos.autoscaler.exception.PolicyValidationException

                                                         .getDeploymentPolicy(deploymentPolicyName);

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

        Partition[] allPartitions = deploymentPolicy.getAllPartitions();
        if (allPartitions == null) {
            String msg =
                         "Deployment Policy's Partitions are null. Policy name: " +
                                 deploymentPolicyName;
            log.error(msg);
            throw new PolicyValidationException(msg);
        }

        CloudControllerClient.getInstance().validateDeploymentPolicy(cluster.getServiceName(), deploymentPolicy);

        ClusterMonitor clusterMonitor =
View Full Code Here

Examples of org.apache.stratos.autoscaler.exception.PolicyValidationException

                                                         .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,
View Full Code Here

Examples of org.apache.tuscany.sca.policy.util.PolicyValidationException

                        validInheritableIntents.add(intent);
                        break;
                    }
                }
            } else {
                throw new PolicyValidationException("Policy Intent '" + intent.getName() + "' is not defined in this domain");
            }
        }
       
        return validInheritableIntents;
    }
View Full Code Here

Examples of org.apache.tuscany.sca.policy.util.PolicyValidationException

            if ( !policySet.isUnresolved() ) {
                if ( applicablePolicySets.contains(policySet) ) {
                    validInheritablePolicySets.add(policySet);
                }
            } else {
                throw new PolicyValidationException("Policy Set '" + policySet.getName()
                        + "' is not defined in this domain  ");
            }
        }
       
        return validInheritablePolicySets;
View Full Code Here

Examples of org.apache.tuscany.sca.policy.util.PolicyValidationException

                if ( !policySet.isUnresolved() ) {
                    //appliesTo = policySet.getAppliesTo();
       
                    //if (!PolicyValidationUtils.isPolicySetApplicable(scdlFragment, appliesTo, attachPointType)) {
                    if (!applicablePolicySets.contains(policySet)) {
                        throw new PolicyValidationException("Policy Set '" + policySet.getName()
                                + " specified for operation " + confOp.getName() 
                            + "' does not constrain extension type  "
                            + attachPointType.getName());
       
                    }
                } else {
                    throw new PolicyValidationException("Policy Set '" + policySet.getName()
                            + " specified for operation " + confOp.getName() 
                        + "' is not defined in this domain  ");
                }
            }
           
View Full Code Here

Examples of org.apache.tuscany.sca.policy.util.PolicyValidationException

                            break;
                        }
                    }
       
                    if (!found) {
                        throw new PolicyValidationException("Policy Intent '" + intent.getName()
                                + " specified for operation " + confOp.getName() 
                            + "' does not constrain extension type  "
                            + attachPointType.getName());
                    }
                } else {
                    throw new PolicyValidationException("Policy Intent '" + intent.getName()
                            + " specified for operation " + confOp.getName() 
                        + "' is not defined in this domain  ");
                }
            }
        }
View Full Code Here

Examples of org.apache.tuscany.sca.policy.util.PolicyValidationException

                        validInheritableIntents.add(intent);
                        break;
                    }
                }
            } else {
                throw new PolicyValidationException("Policy Intent '" + intent.getName() + "' is not defined in this domain");
            }
        }
       
        return validInheritableIntents;
    }
View Full Code Here

Examples of org.apache.tuscany.sca.policy.util.PolicyValidationException

            if ( !policySet.isUnresolved() ) {
                if ( applicablePolicySets.contains(policySet) ) {
                    validInheritablePolicySets.add(policySet);
                }
            } else {
                throw new PolicyValidationException("Policy Set '" + policySet.getName()
                        + "' is not defined in this domain  ");
            }
        }
       
        return validInheritablePolicySets;
View Full Code Here

Examples of org.apache.tuscany.sca.policy.util.PolicyValidationException

                if ( !policySet.isUnresolved() ) {
                    //appliesTo = policySet.getAppliesTo();
       
                    //if (!PolicyValidationUtils.isPolicySetApplicable(scdlFragment, appliesTo, attachPointType)) {
                    if (!applicablePolicySets.contains(policySet)) {
                        throw new PolicyValidationException("Policy Set '" + policySet.getName()
                                + " specified for operation " + confOp.getName() 
                            + "' does not constrain extension type  "
                            + attachPointType.getName());
       
                    }
                } else {
                    throw new PolicyValidationException("Policy Set '" + policySet.getName()
                            + " specified for operation " + confOp.getName() 
                        + "' is not defined in this domain  ");
                }
            }
           
View Full Code Here

Examples of org.apache.tuscany.sca.policy.util.PolicyValidationException

                            break;
                        }
                    }
       
                    if (!found) {
                        throw new PolicyValidationException("Policy Intent '" + intent.getName()
                                + " specified for operation " + confOp.getName() 
                            + "' does not constrain extension type  "
                            + attachPointType.getName());
                    }
                } else {
                    throw new PolicyValidationException("Policy Intent '" + intent.getName()
                            + " specified for operation " + confOp.getName() 
                        + "' is not defined in this domain  ");
                }
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.