|
16 | 16 | // under the License. |
17 | 17 | package com.cloud.storage; |
18 | 18 |
|
19 | | -import java.util.Date; |
20 | | -import java.util.List; |
21 | | -import java.util.UUID; |
| 19 | +import com.cloud.offering.DiskOffering; |
| 20 | +import com.cloud.utils.db.GenericDao; |
22 | 21 |
|
23 | 22 | import javax.persistence.Column; |
24 | 23 | import javax.persistence.DiscriminatorColumn; |
|
35 | 34 | import javax.persistence.Temporal; |
36 | 35 | import javax.persistence.TemporalType; |
37 | 36 | import javax.persistence.Transient; |
38 | | - |
39 | | -import com.cloud.offering.DiskOffering; |
40 | | -import com.cloud.utils.db.GenericDao; |
| 37 | +import java.util.Date; |
| 38 | +import java.util.List; |
| 39 | +import java.util.UUID; |
41 | 40 |
|
42 | 41 | @Entity |
43 | 42 | @Table(name = "disk_offering") |
@@ -117,6 +116,18 @@ public class DiskOfferingVO implements DiskOffering { |
117 | 116 | @Column(name = "iops_write_rate") |
118 | 117 | Long iopsWriteRate; |
119 | 118 |
|
| 119 | + @Column(name = "min_iops_per_gb") |
| 120 | + Long minIopsPerGb; |
| 121 | + |
| 122 | + @Column(name = "max_iops_per_gb") |
| 123 | + Long maxIopsPerGb; |
| 124 | + |
| 125 | + @Column(name = "highest_min_iops") |
| 126 | + Long highestMinIops; |
| 127 | + |
| 128 | + @Column(name = "highest_max_iops") |
| 129 | + Long highestMaxIops; |
| 130 | + |
120 | 131 | @Column(name = "cache_mode", updatable = true, nullable = false) |
121 | 132 | @Enumerated(value = EnumType.STRING) |
122 | 133 | private DiskCacheMode cacheMode; |
@@ -465,7 +476,7 @@ public void setDisplayOffering(boolean displayOffering) { |
465 | 476 | this.displayOffering = displayOffering; |
466 | 477 | } |
467 | 478 |
|
468 | | - @Override |
| 479 | + @Override |
469 | 480 | public void setBytesReadRate(Long bytesReadRate) { |
470 | 481 | this.bytesReadRate = bytesReadRate; |
471 | 482 | } |
@@ -505,6 +516,46 @@ public Long getIopsWriteRate() { |
505 | 516 | return iopsWriteRate; |
506 | 517 | } |
507 | 518 |
|
| 519 | + @Override |
| 520 | + public Long getMinIopsPerGb() { |
| 521 | + return this.minIopsPerGb; |
| 522 | + } |
| 523 | + |
| 524 | + @Override |
| 525 | + public void setMinIopsPerGb(Long minIopsPerGb) { |
| 526 | + this.minIopsPerGb = minIopsPerGb; |
| 527 | + } |
| 528 | + |
| 529 | + @Override |
| 530 | + public Long getMaxIopsPerGb() { |
| 531 | + return maxIopsPerGb; |
| 532 | + } |
| 533 | + |
| 534 | + @Override |
| 535 | + public void setMaxIopsPerGb(Long maxIopsPerGb) { |
| 536 | + this.maxIopsPerGb = maxIopsPerGb; |
| 537 | + } |
| 538 | + |
| 539 | + @Override |
| 540 | + public Long getHighestMinIops() { |
| 541 | + return this.highestMinIops; |
| 542 | + } |
| 543 | + |
| 544 | + @Override |
| 545 | + public void setHighestMinIops(Long highestMinIops) { |
| 546 | + this.highestMinIops = highestMinIops; |
| 547 | + } |
| 548 | + |
| 549 | + @Override |
| 550 | + public Long getHighestMaxIops() { |
| 551 | + return this.highestMaxIops; |
| 552 | + } |
| 553 | + |
| 554 | + @Override |
| 555 | + public void setHighestMaxIops(Long highestMaxIops) { |
| 556 | + this.highestMaxIops = highestMaxIops; |
| 557 | + } |
| 558 | + |
508 | 559 | @Override |
509 | 560 | public void setHypervisorSnapshotReserve(Integer hypervisorSnapshotReserve) { |
510 | 561 | this.hypervisorSnapshotReserve = hypervisorSnapshotReserve; |
|
0 commit comments