forked from zstackio/zstack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVolumeStats.java
More file actions
55 lines (42 loc) · 1.21 KB
/
Copy pathVolumeStats.java
File metadata and controls
55 lines (42 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package org.zstack.header.volume;
import org.zstack.header.storage.primary.StorageResourceStats;
public class VolumeStats extends StorageResourceStats {
protected String format;
/**
* The parent uri of the volume, vendor://pool/path@snapshot or snapshot://uuid
*/
protected String parentUri;
// TODO(shenjin): remove it
@Deprecated
protected String runStatus;
public VolumeStats(String installPath, Long actualSize) {
this.installPath = installPath;
this.actualSize = actualSize;
}
public VolumeStats(String installPath, Long actualSize, Long size) {
this.installPath = installPath;
this.actualSize = actualSize;
this.size = size;
}
public VolumeStats() {
}
public void setFormat(String format) {
this.format = format;
}
public String getFormat() {
return format;
}
public void setParentUri(String parentUri) {
this.parentUri = parentUri;
}
public String getParentUri() {
return parentUri;
}
@Deprecated
public String getRunStatus() {
return runStatus;
}
public void setRunStatus(String runStatus) {
this.runStatus = runStatus;
}
}