Package com.cloud.bridge.service.exception

Examples of com.cloud.bridge.service.exception.OutOfServiceException


    {
        //SHostDao shostDao = new SHostDao();

        MHostVO mhost = mhostDao.findById(ServiceProvider.getInstance().getManagementHostId());
        if(mhost == null)
            throw new OutOfServiceException("Temporarily out of service");

        if(mhost.getMounts().size() > 0) {
            Random random = new Random();
            MHostMountVO[] mounts = (MHostMountVO[])mhost.getMounts().toArray();
            MHostMountVO mount = mounts[random.nextInt(mounts.length)];
View Full Code Here


    private OrderedPair<SHostVO, String> allocBucketStorageHost(String bucketName, String overrideName) {
        //SHostDao shostDao = new SHostDao();

        MHostVO mhost = mhostDao.findById(ServiceProvider.getInstance().getManagementHostId());
        if (mhost == null)
            throw new OutOfServiceException("Temporarily out of service");

        if (mhost.getMounts().size() > 0) {
            Random random = new Random();
            MHostMountVO[] mounts = (MHostMountVO[])mhost.getMounts().toArray();
            MHostMountVO mount = mounts[random.nextInt(mounts.length)];
View Full Code Here

        }
        PersistContext.releaseNamedLock("bucket.creation");
      }
     
    } else {
      throw new OutOfServiceException("Unable to acquire synchronization lock");
    }
   
    return response;
    }
View Full Code Here

    MHostDao mhostDao = new MHostDao();
    SHostDao shostDao = new SHostDao();
   
    MHost mhost = mhostDao.get(ServiceProvider.getInstance().getManagementHostId());
    if(mhost == null)
      throw new OutOfServiceException("Temporarily out of service");
     
    if(mhost.getMounts().size() > 0) {
      Random random = new Random();
      MHostMount[] mounts = (MHostMount[])mhost.getMounts().toArray();
      MHostMount mount = mounts[random.nextInt(mounts.length)];
View Full Code Here

  {
    //SHostDao shostDao = new SHostDao();
   
    MHostVO mhost = mhostDao.findById(ServiceProvider.getInstance().getManagementHostId());
    if(mhost == null)
      throw new OutOfServiceException("Temporarily out of service");
     
    if(mhost.getMounts().size() > 0) {
      Random random = new Random();
      MHostMountVO[] mounts = (MHostMountVO[])mhost.getMounts().toArray();
      MHostMountVO mount = mounts[random.nextInt(mounts.length)];
View Full Code Here

    {
        //SHostDao shostDao = new SHostDao();

        MHostVO mhost = mhostDao.findById(ServiceProvider.getInstance().getManagementHostId());
        if(mhost == null)
            throw new OutOfServiceException("Temporarily out of service");

        if(mhost.getMounts().size() > 0) {
            Random random = new Random();
            MHostMountVO[] mounts = (MHostMountVO[])mhost.getMounts().toArray();
            MHostMountVO mount = mounts[random.nextInt(mounts.length)];
View Full Code Here

    {
        //SHostDao shostDao = new SHostDao();

        MHostVO mhost = mhostDao.findById(ServiceProvider.getInstance().getManagementHostId());
        if(mhost == null)
            throw new OutOfServiceException("Temporarily out of service");

        if(mhost.getMounts().size() > 0) {
            Random random = new Random();
            MHostMountVO[] mounts = (MHostMountVO[])mhost.getMounts().toArray();
            MHostMountVO mount = mounts[random.nextInt(mounts.length)];
View Full Code Here

TOP

Related Classes of com.cloud.bridge.service.exception.OutOfServiceException

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.