Package org.apache.stratos.cloud.controller.exception

Examples of org.apache.stratos.cloud.controller.exception.CloudControllerException


    throw new CloudControllerException(msg, e);
  }
 
  public static void handleException(String msg){
    log.error(msg);
    throw new CloudControllerException(msg);
  }
View Full Code Here


    IaasProvider iaasInfo = getIaasProvider();
    if (iaasInfo.getComputeService() == null) {
      String msg = "Compute service is null for IaaS provider: "
          + iaasInfo.getName();
      log.fatal(msg);
      throw new CloudControllerException(msg);
    }

    TemplateBuilder templateBuilder = iaasInfo.getComputeService()
        .templateBuilder();
View Full Code Here

        log.info("Allocated ip [" + ip + "]");

      } catch (Exception e) {
        String msg = "Failed to allocate an IP address. All IP addresses are in use.";
        log.error(msg, e);
        throw new CloudControllerException(msg, e);
      }
    }

    String id = node.getProviderId();
View Full Code Here

    }

    private static void handleException(String msg) {

        log.error(msg);
        throw new CloudControllerException(msg);
    }
View Full Code Here

            dataPublisher.addStreamDefinition(streamDefinition);
        } catch (Exception e) {
            String msg = "Unable to create a data publisher to " + bamServerUrl +
                    ". Usage Agent will not function properly. ";
            log.error(msg, e);
            throw new CloudControllerException(msg, e);
        }
    }
View Full Code Here

    }
   
    private void handleException(String msg, Exception e){
        log.error(msg, e);
        throw new CloudControllerException(msg, e);
    }
View Full Code Here

  public void buildTemplate() {
    IaasProvider iaasInfo = getIaasProvider();
   
    if (iaasInfo.getComputeService() == null) {
      throw new CloudControllerException(
          "Compute service is null for IaaS provider: "
              + iaasInfo.getName());
    }

    TemplateBuilder templateBuilder = iaasInfo.getComputeService()
View Full Code Here

    if (ip == null || ip.isEmpty()) {
      FloatingIP allocatedFloatingIP = floatingIp.create();
      if (allocatedFloatingIP == null) {
        String msg = "Failed to allocate an IP address.";
        log.error(msg);
        throw new CloudControllerException(msg);
      }
      ip = allocatedFloatingIP.getIp();
    }

    // wait till the fixed IP address gets assigned - this is needed before
View Full Code Here

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

TOP

Related Classes of org.apache.stratos.cloud.controller.exception.CloudControllerException

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.