Package org.apache.stratos.autoscaler.exception

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


                //remove from the registry
                RegistryManager.getInstance().removeNetworkPartition(this.getNetworkPartitionLbHolder(id).getNetworkPartitionId());
            }else{
              String errMsg = "Network partition context not found for policy " + depPolicy;
              log.error(errMsg);
              throw new AutoScalerException(errMsg);
            }

        }
    }
View Full Code Here


        } catch (RegistryException e) {
            String msg =
                    "Failed to create the registry resource " +
                        AutoScalerConstants.AUTOSCALER_RESOURCE;
            log.error(msg, e);
            throw new AutoScalerException(msg, e);           
        }
    }
View Full Code Here

            } catch (RegistryException e1) {
                if(log.isErrorEnabled()) {
                    log.error("Could not rollback transaction", e);
                }
            }
            throw new AutoScalerException("Could not persist data in registry", e);
        }
    }
View Full Code Here

            // this means, we've never persisted info in registry
            return null;
        } catch (RegistryException e) {
            String msg = "Failed to retrieve data from registry.";
            log.error(msg, e);
            throw new AutoScalerException(msg, e);
        }
    }
View Full Code Here

                  if(log.isErrorEnabled()) {
                      log.error("Could not rollback transaction", e);
                  }
              }
              log.error("Could not delete resource at "+ resourcePath);
              throw new AutoScalerException("Could not delete data in registry at " + resourcePath, e);
          }
   
  }
View Full Code Here

        try {
            ServiceReferenceHolder.getInstance().setRegistry(registryService.getGovernanceSystemRegistry());
        } catch (RegistryException e) {
            String msg = "Failed when retrieving Governance System Registry.";
            log.error(msg, e);
            throw new AutoScalerException(msg, e);
        }
    }
View Full Code Here

    }

    // Add the policy to information model and persist.
    public boolean deployAutoscalePolicy(AutoscalePolicy policy) throws InvalidPolicyException {
        if(StringUtils.isEmpty(policy.getId())){
            throw new AutoScalerException("AutoScaling policy id can not be empty");
        }
        this.addASPolicyToInformationModel(policy);
        RegistryManager.getInstance().persistAutoscalerPolicy(policy);
        if (log.isInfoEnabled()) {
            log.info(String.format("AutoScaling policy is deployed successfully: [id] %s", policy.getId()));
View Full Code Here

    }

    // Add the deployment policy to information model and persist.
    public boolean deployDeploymentPolicy(DeploymentPolicy policy) throws InvalidPolicyException {
        if(StringUtils.isEmpty(policy.getId())){
            throw new AutoScalerException("Deploying policy id can not be empty");
        }
        try {
            if(log.isInfoEnabled()) {
                log.info(String.format("Deploying deployment policy: [id] %s", policy.getId()));
            }
View Full Code Here

TOP

Related Classes of org.apache.stratos.autoscaler.exception.AutoScalerException

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.