.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 =