Package com.cloud.bridge.model

Examples of com.cloud.bridge.model.SHost


    }
  }

  private void setupLocalStorage(String storageRoot) {
    SHostDao shostDao = new SHostDao();
    SHost shost = shostDao.getLocalStorageHost(mhost.getId(), storageRoot);
    if(shost == null) {
      shost = new SHost();
      shost.setMhost(mhost);
      mhost.getLocalSHosts().add(shost);
      shost.setHostType(SHost.STORAGE_HOST_TYPE_LOCAL);
      shost.setHost(NetHelper.getHostName());
      shost.setExportRoot(storageRoot);
      PersistContext.getSession().save(shost);
    }
  }
View Full Code Here

TOP

Related Classes of com.cloud.bridge.model.SHost

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.