public class HardDisk extends DomainWrapper<com.abiquo.server.core.infrastructure.storage.DiskManagementDto>
This disks will be created when a virtual machine is deployed, and will be destroyed when it is
undeployed. If there is a need to use persistent storage, a persistent Volume
should be
used instead.
http://community.abiquo.com/display/ABI20/Hard+Disks+Resource
Modifier and Type | Class and Description |
---|---|
static class |
HardDisk.Builder |
context, target
Modifier | Constructor and Description |
---|---|
protected |
HardDisk(RestContext<AbiquoApi,AbiquoAsyncApi> context,
com.abiquo.server.core.infrastructure.storage.DiskManagementDto target)
Constructor to be used only by the builder.
|
Modifier and Type | Method and Description |
---|---|
static HardDisk.Builder |
builder(RestContext<AbiquoApi,AbiquoAsyncApi> context,
VirtualDatacenter virtualDatacenter) |
void |
delete()
Deletes the hard disk.
|
Integer |
getId()
Returns the id of the hard disk.
|
Integer |
getSequence()
Returns the sequence number of the hard disk.
|
Long |
getSizeInMb()
Returns the size of the hard disk in MB.
|
VirtualDatacenter |
getVirtualDatacenter()
Gets the virtual datacenter where the hard disk belongs to.
|
void |
save()
Creates the hard disk in the selected virtual datacenter.
|
String |
toString() |
getParentId, getTask, getTasks, getURI, join, unwrap, unwrap, updateLink, wrap, wrap
protected HardDisk(RestContext<AbiquoApi,AbiquoAsyncApi> context, com.abiquo.server.core.infrastructure.storage.DiskManagementDto target)
public void save()
Once the hard disk has been created it can be attached to a virtual machine of the virtual datacenter.
public void delete()
public VirtualDatacenter getVirtualDatacenter()
public static HardDisk.Builder builder(RestContext<AbiquoApi,AbiquoAsyncApi> context, VirtualDatacenter virtualDatacenter)
public Integer getId()
public Long getSizeInMb()
public Integer getSequence()
It will be computed when attaching the hard disk to a virtual machine and will determine the attachment order of the disk in the virtual machine.
Copyright © 2009-2013 jclouds. All Rights Reserved.