Esempio n. 1
0
 // Copy Constructor
 public VolumeVO(Volume that) {
   this(
       that.getName(),
       that.getDataCenterId(),
       that.getPodId(),
       that.getAccountId(),
       that.getDomainId(),
       that.getInstanceId(),
       that.getFolder(),
       that.getPath(),
       that.getSize(),
       that.getMinIops(),
       that.getMaxIops(),
       that.get_iScsiName(),
       that.getVolumeType());
   this.recreatable = that.isRecreatable();
   this.state = that.getState();
   this.size = that.getSize();
   this.minIops = that.getMinIops();
   this.maxIops = that.getMaxIops();
   this._iScsiName = that.get_iScsiName();
   this.diskOfferingId = that.getDiskOfferingId();
   this.poolId = that.getPoolId();
   this.attached = that.getAttached();
   this.chainInfo = that.getChainInfo();
   this.templateId = that.getTemplateId();
   this.deviceId = that.getDeviceId();
   this.format = that.getFormat();
   this.uuid = UUID.randomUUID().toString();
 }
Esempio n. 2
0
 // Copy Constructor
 public VolumeVO(Volume that) {
   this(
       that.getName(),
       that.getDataCenterId(),
       that.getPodId(),
       that.getAccountId(),
       that.getDomainId(),
       that.getInstanceId(),
       that.getFolder(),
       that.getPath(),
       that.getSize(),
       that.getVolumeType());
   this.recreatable = that.isRecreatable();
   this.state = that.getState();
   this.size = that.getSize();
   this.diskOfferingId = that.getDiskOfferingId();
   this.poolId = that.getPoolId();
   this.attached = that.getAttached();
   this.chainInfo = that.getChainInfo();
   this.templateId = that.getTemplateId();
   this.deviceId = that.getDeviceId();
 }
 @Override
 public long getVolumeSizeIncludingHypervisorSnapshotReserve(Volume volume, StoragePool pool) {
   return volume.getSize();
 }