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

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


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


     
    } catch (Exception e) {
      String msg = "Failed to persist the cloud controller data in registry.";
      registryService.rollbackTransaction();
      log.error(msg, e);
      throw new CloudControllerException(msg, e);
     
    }
  }
View Full Code Here

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

  }

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

    // // if domain to template map is null
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

      }
    } catch (IOException e) {
          String msg = "Failed when publishing to the topic "+CloudControllerConstants.TOPIC_NAME+
              " - Reason : Failed while reading topology from "+topologyFile.getAbsolutePath();
          log.error(msg, e);
          throw new CloudControllerException(msg, e);
        }
    }
View Full Code Here

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

    }

    private static void handleException(String msg) {

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

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

     
    }
 
  public static void handleException(String msg, Exception e){
    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.