Examples of MHostMountDao


Examples of com.cloud.bridge.persist.dao.MHostMountDao

    return entry;
  }
   
  public Tuple<SHost, String> getBucketStorageHost(SBucket bucket)
  {
    MHostMountDao mountDao = new MHostMountDao();
   
    SHost shost = bucket.getShost();
    if(shost.getHostType() == SHost.STORAGE_HOST_TYPE_LOCAL) {
      return new Tuple<SHost, String>(shost, shost.getExportRoot());
    }
   
    MHostMount mount = mountDao.getHostMount(ServiceProvider.getInstance().getManagementHostId(), shost.getId());
    if(mount != null) {
      return new Tuple<SHost, String>(shost, mount.getMountPath());
    }

    // need to redirect request to other node
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.