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() |
isNull
protected final java.lang.String ref
public java.lang.String toWireString()
toWireString
in class XenAPIObject
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public LVHD.Record getRecord(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public static LVHD getByUuid(Connection c, java.lang.String uuid) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onuuid
- UUID of object to returnTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public java.lang.String getUuid(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public 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
c
- The connection the call is made onhost
- 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.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public 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
c
- The connection the call is made onhost
- 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.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.