com.xensource.xenapi
public class LVHD extends XenAPIObject
| Modifier and Type | Class and Description |
|---|---|
static class |
LVHD.Record
Represents all the fields in a LVHD
|
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
ref
The XenAPI reference (OpaqueRef) to this object.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
enableThinProvisioning(Connection c,
Host host,
SR SR,
java.lang.Long initialAllocation,
java.lang.Long allocationQuantum)
Upgrades an LVHD SR to enable thin-provisioning.
|
static Task |
enableThinProvisioningAsync(Connection c,
Host host,
SR SR,
java.lang.Long initialAllocation,
java.lang.Long allocationQuantum)
Upgrades an LVHD SR to enable thin-provisioning.
|
boolean |
equals(java.lang.Object obj)
If obj is a LVHD, compares XenAPI references for equality.
|
static LVHD |
getByUuid(Connection c,
java.lang.String uuid)
Get a reference to the LVHD instance with the specified UUID.
|
LVHD.Record |
getRecord(Connection c)
Get a record containing the current state of the given LVHD.
|
java.lang.String |
getUuid(Connection c)
Get the uuid field of the given LVHD.
|
int |
hashCode() |
java.lang.String |
toWireString() |
isNullprotected final java.lang.String ref
public java.lang.String toWireString()
toWireString in class XenAPIObjectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic LVHD.Record getRecord(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static LVHD getByUuid(Connection c, java.lang.String uuid) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
uuid - UUID of object to returnTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic java.lang.String getUuid(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static Task enableThinProvisioningAsync(Connection c, Host host, SR SR, java.lang.Long initialAllocation, java.lang.Long allocationQuantum) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
host - The LVHD Host to upgrade to being thin-provisioned.SR - The LVHD SR to upgrade to being thin-provisioned.initialAllocation - The initial amount of space to allocate to a newly-created VDI in bytesallocationQuantum - The amount of space to allocate to a VDI when it needs to be enlarged in bytesTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static java.lang.String enableThinProvisioning(Connection c, Host host, SR SR, java.lang.Long initialAllocation, java.lang.Long allocationQuantum) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
host - The LVHD Host to upgrade to being thin-provisioned.SR - The LVHD SR to upgrade to being thin-provisioned.initialAllocation - The initial amount of space to allocate to a newly-created VDI in bytesallocationQuantum - The amount of space to allocate to a VDI when it needs to be enlarged in bytesTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcException