|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jclouds.ovf.Disk
public class Disk
Nested Class Summary | |
---|---|
static class |
Disk.Builder
|
Constructor Summary | |
---|---|
Disk(String id,
Long capacity,
String parentRef,
String fileRef,
URI format,
Long populatedSize,
String capacityAllocationUnits)
|
Method Summary | |
---|---|
static Disk.Builder |
builder()
|
int |
compareTo(Disk o)
|
boolean |
equals(Object obj)
|
Long |
getCapacity()
The capacity of a virtual disk shall be specified by the capacity attribute with an
xs:long integer value. |
String |
getCapacityAllocationUnits()
The optional string attribute ovf:capacityAllocationUnits may be used to specify a
particular unit of allocation. |
String |
getFileRef()
The ovf:fileRef attribute denotes the virtual disk content by identifying an existing File element in the References element, the File element is identified by matching its id
attribute value with the fileRef attribute value. |
URI |
getFormat()
The format URI of a non-empty virtual disk shall be specified by the format attribute. |
String |
getId()
Each virtual disk is represented by a Disk element that shall be given a identifier using the id attribute, the identifier shall be unique within the DiskSection . |
String |
getParentRef()
OVF allows a disk image to be represented as a set of modified blocks in comparison to a parent image. |
Long |
getPopulatedSize()
For non-empty disks, the actual used size of the disk may optionally be specified using the populatedSize attribute. |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Disk(String id, Long capacity, String parentRef, String fileRef, URI format, Long populatedSize, String capacityAllocationUnits)
Method Detail |
---|
public static Disk.Builder builder()
public String getId()
id
attribute, the identifier shall be unique within the DiskSection
.
public Long getCapacity()
capacity
attribute with an
xs:long integer value. The default unit of allocation shall be bytes.
public String getParentRef()
parentRef
attribute, which shall contain a valid
ovf:id reference to a different Disk element. If a disk block does not exist locally, lookup
for that disk block then occurs in the parent disk. In DiskSection
, parent Disk
elements shall occur before child Disk elements that refer to them.
public String getFileRef()
id
attribute value with the fileRef
attribute value. Omitting the fileRef
attribute shall indicate an empty disk. In this case, the disk shall be created and the entire
disk content zeroed at installation time. The guest software will typically format empty disks
in some file system format.
public URI getFormat()
format
attribute.
public Long getPopulatedSize()
populatedSize
attribute. The unit of this attribute is always bytes. populatedSize
is allowed to be an estimate of used disk size but shall not be larger than
capacity
.
public String getCapacityAllocationUnits()
ovf:capacityAllocationUnits
may be used to specify a
particular unit of allocation. Values for ovf:capacityAllocationUnits
shall match the
format for programmatic units defined in DSP0004.
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
public int compareTo(Disk o)
compareTo
in interface Comparable<Disk>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |