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() |
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
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public static LVHD getByUuid(Connection c, java.lang.String uuid) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
uuid
- UUID of object to returnTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public java.lang.String getUuid(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
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
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.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
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
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.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException