Examples of MHostMountVO


Examples of com.cloud.bridge.model.MHostMountVO

        if(shost.getHostType() == SHost.STORAGE_HOST_TYPE_CASTOR ) {
            return new OrderedPair<SHostVO, String>(shost, shost.getExportRoot());
        }

        MHostMountVO mount = mountDao.getHostMount(ServiceProvider.getInstance().getManagementHostId(), shost.getId());
        if(mount != null) {
            return new OrderedPair<SHostVO, String>(shost, mount.getMountPath());
        }
        //return null;
        // need to redirect request to other node
        throw new HostNotMountedException("Storage host "); // + shost.getHost() + " is not locally mounted");
    }
View Full Code Here

Examples of com.cloud.bridge.model.MHostMountVO

            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)];
            S3BucketAdapter bucketAdapter =  getStorageHostBucketAdapter(mount.getShost());
            bucketAdapter.createContainer(mount.getMountPath(), (null != overrideName ? overrideName : bucketName));
            return new OrderedPair<SHostVO, String>(mount.getShost(), mount.getMountPath());
        }

        // To make things simple, only allow one local mounted storage root TODO - Change in the future
        String localStorageRoot = ServiceProvider.getInstance().getStartupProperties().getProperty("storage.root");
        if(localStorageRoot != null) {
View Full Code Here

Examples of com.cloud.bridge.model.MHostMountVO

        if (shost.getHostType() == SHost.STORAGE_HOST_TYPE_CASTOR) {
            return new OrderedPair<SHostVO, String>(shost, shost.getExportRoot());
        }

        MHostMountVO mount = mountDao.getHostMount(ServiceProvider.getInstance().getManagementHostId(), shost.getId());
        if (mount != null) {
            return new OrderedPair<SHostVO, String>(shost, mount.getMountPath());
        }
        //return null;
        // need to redirect request to other node
        throw new HostNotMountedException("Storage host "); // + shost.getHost() + " is not locally mounted");
    }
View Full Code Here

Examples of com.cloud.bridge.model.MHostMountVO

            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)];
            S3BucketAdapter bucketAdapter = getStorageHostBucketAdapter(mount.getShost());
            bucketAdapter.createContainer(mount.getMountPath(), (null != overrideName ? overrideName : bucketName));
            return new OrderedPair<SHostVO, String>(mount.getShost(), mount.getMountPath());
        }

        // To make things simple, only allow one local mounted storage root TODO - Change in the future
        String localStorageRoot = ServiceProvider.getInstance().getStartupProperties().getProperty("storage.root");
        if (localStorageRoot != null) {
View Full Code Here

Examples of com.cloud.bridge.model.MHostMountVO

   
        if(shost.getHostType() == SHost.STORAGE_HOST_TYPE_CASTOR ) {
            return new OrderedPair<SHostVO, String>(shost, shost.getExportRoot());
        }

    MHostMountVO mount = mountDao.getHostMount(ServiceProvider.getInstance().getManagementHostId(), shost.getId());
    if(mount != null) {
      return new OrderedPair<SHostVO, String>(shost, mount.getMountPath());
    }
    //return null;
    // need to redirect request to other node
    throw new HostNotMountedException("Storage host "); // + shost.getHost() + " is not locally mounted");
  }
View Full Code Here

Examples of com.cloud.bridge.model.MHostMountVO

      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)];
      S3BucketAdapter bucketAdapter =  getStorageHostBucketAdapter(mount.getShost());
      bucketAdapter.createContainer(mount.getMountPath(), (null != overrideName ? overrideName : bucketName));
      return new OrderedPair<SHostVO, String>(mount.getShost(), mount.getMountPath());
    }
   
    // To make things simple, only allow one local mounted storage root TODO - Change in the future
    String localStorageRoot = ServiceProvider.getInstance().getStartupProperties().getProperty("storage.root");
    if(localStorageRoot != null) {
View Full Code Here

Examples of com.cloud.bridge.model.MHostMountVO

        if(shost.getHostType() == SHost.STORAGE_HOST_TYPE_CASTOR ) {
            return new OrderedPair<SHostVO, String>(shost, shost.getExportRoot());
        }

        MHostMountVO mount = mountDao.getHostMount(ServiceProvider.getInstance().getManagementHostId(), shost.getId());
        if(mount != null) {
            return new OrderedPair<SHostVO, String>(shost, mount.getMountPath());
        }
        //return null;
        // need to redirect request to other node
        throw new HostNotMountedException("Storage host "); // + shost.getHost() + " is not locally mounted");
    }
View Full Code Here

Examples of com.cloud.bridge.model.MHostMountVO

            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)];
            S3BucketAdapter bucketAdapter =  getStorageHostBucketAdapter(mount.getShost());
            bucketAdapter.createContainer(mount.getMountPath(), (null != overrideName ? overrideName : bucketName));
            return new OrderedPair<SHostVO, String>(mount.getShost(), mount.getMountPath());
        }

        // To make things simple, only allow one local mounted storage root TODO - Change in the future
        String localStorageRoot = ServiceProvider.getInstance().getStartupProperties().getProperty("storage.root");
        if(localStorageRoot != null) {
View Full Code Here

Examples of com.cloud.bridge.model.MHostMountVO

        if(shost.getHostType() == SHost.STORAGE_HOST_TYPE_CASTOR ) {
            return new OrderedPair<SHostVO, String>(shost, shost.getExportRoot());
        }

        MHostMountVO mount = mountDao.getHostMount(ServiceProvider.getInstance().getManagementHostId(), shost.getId());
        if(mount != null) {
            return new OrderedPair<SHostVO, String>(shost, mount.getMountPath());
        }
        //return null;
        // need to redirect request to other node
        throw new HostNotMountedException("Storage host "); // + shost.getHost() + " is not locally mounted");
    }
View Full Code Here

Examples of com.cloud.bridge.model.MHostMountVO

            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)];
            S3BucketAdapter bucketAdapter =  getStorageHostBucketAdapter(mount.getShost());
            bucketAdapter.createContainer(mount.getMountPath(), (null != overrideName ? overrideName : bucketName));
            return new OrderedPair<SHostVO, String>(mount.getShost(), mount.getMountPath());
        }

        // To make things simple, only allow one local mounted storage root TODO - Change in the future
        String localStorageRoot = ServiceProvider.getInstance().getStartupProperties().getProperty("storage.root");
        if(localStorageRoot != null) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.