com.xensource.xenapi
public class VDI extends XenAPIObject
Modifier and Type | Class and Description |
---|---|
static class |
VDI.Record
Represents all the fields in a VDI
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
ref
The XenAPI reference (OpaqueRef) to this object.
|
Modifier and Type | Method and Description |
---|---|
void |
addTags(Connection c,
java.lang.String value)
Add the given value to the tags field of the given VDI.
|
void |
addToOtherConfig(Connection c,
java.lang.String key,
java.lang.String value)
Add the given key-value pair to the other_config field of the given VDI.
|
void |
addToSmConfig(Connection c,
java.lang.String key,
java.lang.String value)
Add the given key-value pair to the sm_config field of the given VDI.
|
void |
addToXenstoreData(Connection c,
java.lang.String key,
java.lang.String value)
Add the given key-value pair to the xenstore_data field of the given VDI.
|
VDI |
copy(Connection c,
SR sr)
Copy either a full VDI or the block differences between two VDIs into either a fresh VDI or an existing VDI.
|
VDI |
copy(Connection c,
SR sr,
VDI baseVdi,
VDI intoVdi)
Copy either a full VDI or the block differences between two VDIs into either a fresh VDI or an existing VDI.
|
Task |
copyAsync(Connection c,
SR sr)
Copy either a full VDI or the block differences between two VDIs into either a fresh VDI or an existing VDI.
|
Task |
copyAsync(Connection c,
SR sr,
VDI baseVdi,
VDI intoVdi)
Copy either a full VDI or the block differences between two VDIs into either a fresh VDI or an existing VDI.
|
static VDI |
create(Connection c,
VDI.Record record)
Create a new VDI instance, and return its handle.
|
static Task |
createAsync(Connection c,
VDI.Record record)
Create a new VDI instance, and return its handle.
|
VDI |
createClone(Connection c,
java.util.Map<java.lang.String,java.lang.String> driverParams)
Take an exact copy of the VDI and return a reference to the new disk.
|
Task |
createCloneAsync(Connection c,
java.util.Map<java.lang.String,java.lang.String> driverParams)
Take an exact copy of the VDI and return a reference to the new disk.
|
void |
dbForget(Connection c)
Removes a VDI record from the database
First published in XenServer 4.1.
|
Task |
dbForgetAsync(Connection c)
Removes a VDI record from the database
First published in XenServer 4.1.
|
static VDI |
dbIntroduce(Connection c,
java.lang.String uuid,
java.lang.String nameLabel,
java.lang.String nameDescription,
SR SR,
Types.VdiType type,
java.lang.Boolean sharable,
java.lang.Boolean readOnly,
java.util.Map<java.lang.String,java.lang.String> otherConfig,
java.lang.String location,
java.util.Map<java.lang.String,java.lang.String> xenstoreData,
java.util.Map<java.lang.String,java.lang.String> smConfig)
Create a new VDI record in the database only
First published in XenServer 4.0.
|
static VDI |
dbIntroduce(Connection c,
java.lang.String uuid,
java.lang.String nameLabel,
java.lang.String nameDescription,
SR SR,
Types.VdiType type,
java.lang.Boolean sharable,
java.lang.Boolean readOnly,
java.util.Map<java.lang.String,java.lang.String> otherConfig,
java.lang.String location,
java.util.Map<java.lang.String,java.lang.String> xenstoreData,
java.util.Map<java.lang.String,java.lang.String> smConfig,
java.lang.Boolean managed,
java.lang.Long virtualSize,
java.lang.Long physicalUtilisation,
Pool metadataOfPool,
java.lang.Boolean isASnapshot,
java.util.Date snapshotTime,
VDI snapshotOf)
Create a new VDI record in the database only
First published in XenServer 4.0.
|
static Task |
dbIntroduceAsync(Connection c,
java.lang.String uuid,
java.lang.String nameLabel,
java.lang.String nameDescription,
SR SR,
Types.VdiType type,
java.lang.Boolean sharable,
java.lang.Boolean readOnly,
java.util.Map<java.lang.String,java.lang.String> otherConfig,
java.lang.String location,
java.util.Map<java.lang.String,java.lang.String> xenstoreData,
java.util.Map<java.lang.String,java.lang.String> smConfig)
Create a new VDI record in the database only
First published in XenServer 4.0.
|
static Task |
dbIntroduceAsync(Connection c,
java.lang.String uuid,
java.lang.String nameLabel,
java.lang.String nameDescription,
SR SR,
Types.VdiType type,
java.lang.Boolean sharable,
java.lang.Boolean readOnly,
java.util.Map<java.lang.String,java.lang.String> otherConfig,
java.lang.String location,
java.util.Map<java.lang.String,java.lang.String> xenstoreData,
java.util.Map<java.lang.String,java.lang.String> smConfig,
java.lang.Boolean managed,
java.lang.Long virtualSize,
java.lang.Long physicalUtilisation,
Pool metadataOfPool,
java.lang.Boolean isASnapshot,
java.util.Date snapshotTime,
VDI snapshotOf)
Create a new VDI record in the database only
First published in XenServer 4.0.
|
void |
destroy(Connection c)
Destroy the specified VDI instance.
|
Task |
destroyAsync(Connection c)
Destroy the specified VDI instance.
|
boolean |
equals(java.lang.Object obj)
If obj is a VDI, compares XenAPI references for equality.
|
void |
forget(Connection c)
Removes a VDI record from the database
First published in XenServer 4.0.
|
Task |
forgetAsync(Connection c)
Removes a VDI record from the database
First published in XenServer 4.0.
|
static java.util.Set<VDI> |
getAll(Connection c)
Return a list of all the VDIs known to the system.
|
java.lang.Boolean |
getAllowCaching(Connection c)
Get the allow_caching field of the given VDI.
|
java.util.Set<Types.VdiOperations> |
getAllowedOperations(Connection c)
Get the allowed_operations field of the given VDI.
|
static java.util.Map<VDI,VDI.Record> |
getAllRecords(Connection c)
Return a map of VDI references to VDI records for all VDIs known to the system.
|
static java.util.Set<VDI> |
getByNameLabel(Connection c,
java.lang.String label)
Get all the VDI instances with the given label.
|
static VDI |
getByUuid(Connection c,
java.lang.String uuid)
Get a reference to the VDI instance with the specified UUID.
|
java.util.Set<Crashdump> |
getCrashDumps(Connection c)
Get the crash_dumps field of the given VDI.
|
java.util.Map<java.lang.String,Types.VdiOperations> |
getCurrentOperations(Connection c)
Get the current_operations field of the given VDI.
|
java.lang.Boolean |
getIsASnapshot(Connection c)
Get the is_a_snapshot field of the given VDI.
|
java.lang.Boolean |
getIsToolsIso(Connection c)
Get the is_tools_iso field of the given VDI.
|
java.lang.String |
getLocation(Connection c)
Get the location field of the given VDI.
|
java.lang.Boolean |
getManaged(Connection c)
Get the managed field of the given VDI.
|
java.lang.Boolean |
getMetadataLatest(Connection c)
Get the metadata_latest field of the given VDI.
|
Pool |
getMetadataOfPool(Connection c)
Get the metadata_of_pool field of the given VDI.
|
java.lang.Boolean |
getMissing(Connection c)
Get the missing field of the given VDI.
|
java.lang.String |
getNameDescription(Connection c)
Get the name/description field of the given VDI.
|
java.lang.String |
getNameLabel(Connection c)
Get the name/label field of the given VDI.
|
Types.OnBoot |
getOnBoot(Connection c)
Get the on_boot field of the given VDI.
|
java.util.Map<java.lang.String,java.lang.String> |
getOtherConfig(Connection c)
Get the other_config field of the given VDI.
|
VDI |
getParent(Connection c)
Deprecated.
|
java.lang.Long |
getPhysicalUtilisation(Connection c)
Get the physical_utilisation field of the given VDI.
|
java.lang.Boolean |
getReadOnly(Connection c)
Get the read_only field of the given VDI.
|
VDI.Record |
getRecord(Connection c)
Get a record containing the current state of the given VDI.
|
java.lang.Boolean |
getSharable(Connection c)
Get the sharable field of the given VDI.
|
java.util.Map<java.lang.String,java.lang.String> |
getSmConfig(Connection c)
Get the sm_config field of the given VDI.
|
VDI |
getSnapshotOf(Connection c)
Get the snapshot_of field of the given VDI.
|
java.util.Set<VDI> |
getSnapshots(Connection c)
Get the snapshots field of the given VDI.
|
java.util.Date |
getSnapshotTime(Connection c)
Get the snapshot_time field of the given VDI.
|
SR |
getSR(Connection c)
Get the SR field of the given VDI.
|
java.lang.Boolean |
getStorageLock(Connection c)
Get the storage_lock field of the given VDI.
|
java.util.Set<java.lang.String> |
getTags(Connection c)
Get the tags field of the given VDI.
|
Types.VdiType |
getType(Connection c)
Get the type field of the given VDI.
|
java.lang.String |
getUuid(Connection c)
Get the uuid field of the given VDI.
|
java.util.Set<VBD> |
getVBDs(Connection c)
Get the VBDs field of the given VDI.
|
java.lang.Long |
getVirtualSize(Connection c)
Get the virtual_size field of the given VDI.
|
java.util.Map<java.lang.String,java.lang.String> |
getXenstoreData(Connection c)
Get the xenstore_data field of the given VDI.
|
int |
hashCode() |
static VDI |
introduce(Connection c,
java.lang.String uuid,
java.lang.String nameLabel,
java.lang.String nameDescription,
SR SR,
Types.VdiType type,
java.lang.Boolean sharable,
java.lang.Boolean readOnly,
java.util.Map<java.lang.String,java.lang.String> otherConfig,
java.lang.String location,
java.util.Map<java.lang.String,java.lang.String> xenstoreData,
java.util.Map<java.lang.String,java.lang.String> smConfig)
Create a new VDI record in the database only
First published in XenServer 4.1.
|
static VDI |
introduce(Connection c,
java.lang.String uuid,
java.lang.String nameLabel,
java.lang.String nameDescription,
SR SR,
Types.VdiType type,
java.lang.Boolean sharable,
java.lang.Boolean readOnly,
java.util.Map<java.lang.String,java.lang.String> otherConfig,
java.lang.String location,
java.util.Map<java.lang.String,java.lang.String> xenstoreData,
java.util.Map<java.lang.String,java.lang.String> smConfig,
java.lang.Boolean managed,
java.lang.Long virtualSize,
java.lang.Long physicalUtilisation,
Pool metadataOfPool,
java.lang.Boolean isASnapshot,
java.util.Date snapshotTime,
VDI snapshotOf)
Create a new VDI record in the database only
First published in XenServer 4.1.
|
static Task |
introduceAsync(Connection c,
java.lang.String uuid,
java.lang.String nameLabel,
java.lang.String nameDescription,
SR SR,
Types.VdiType type,
java.lang.Boolean sharable,
java.lang.Boolean readOnly,
java.util.Map<java.lang.String,java.lang.String> otherConfig,
java.lang.String location,
java.util.Map<java.lang.String,java.lang.String> xenstoreData,
java.util.Map<java.lang.String,java.lang.String> smConfig)
Create a new VDI record in the database only
First published in XenServer 4.1.
|
static Task |
introduceAsync(Connection c,
java.lang.String uuid,
java.lang.String nameLabel,
java.lang.String nameDescription,
SR SR,
Types.VdiType type,
java.lang.Boolean sharable,
java.lang.Boolean readOnly,
java.util.Map<java.lang.String,java.lang.String> otherConfig,
java.lang.String location,
java.util.Map<java.lang.String,java.lang.String> xenstoreData,
java.util.Map<java.lang.String,java.lang.String> smConfig,
java.lang.Boolean managed,
java.lang.Long virtualSize,
java.lang.Long physicalUtilisation,
Pool metadataOfPool,
java.lang.Boolean isASnapshot,
java.util.Date snapshotTime,
VDI snapshotOf)
Create a new VDI record in the database only
First published in XenServer 4.1.
|
Session |
openDatabase(Connection c)
Load the metadata found on the supplied VDI and return a session reference which can be used in XenAPI calls to query its contents.
|
Task |
openDatabaseAsync(Connection c)
Load the metadata found on the supplied VDI and return a session reference which can be used in XenAPI calls to query its contents.
|
VDI |
poolMigrate(Connection c,
SR sr,
java.util.Map<java.lang.String,java.lang.String> options)
Migrate a VDI, which may be attached to a running guest, to a different SR.
|
Task |
poolMigrateAsync(Connection c,
SR sr,
java.util.Map<java.lang.String,java.lang.String> options)
Migrate a VDI, which may be attached to a running guest, to a different SR.
|
java.lang.String |
readDatabasePoolUuid(Connection c)
Check the VDI cache for the pool UUID of the database on this VDI.
|
Task |
readDatabasePoolUuidAsync(Connection c)
Check the VDI cache for the pool UUID of the database on this VDI.
|
void |
removeFromOtherConfig(Connection c,
java.lang.String key)
Remove the given key and its corresponding value from the other_config field of the given VDI.
|
void |
removeFromSmConfig(Connection c,
java.lang.String key)
Remove the given key and its corresponding value from the sm_config field of the given VDI.
|
void |
removeFromXenstoreData(Connection c,
java.lang.String key)
Remove the given key and its corresponding value from the xenstore_data field of the given VDI.
|
void |
removeTags(Connection c,
java.lang.String value)
Remove the given value from the tags field of the given VDI.
|
void |
resize(Connection c,
java.lang.Long size)
Resize the VDI.
|
Task |
resizeAsync(Connection c,
java.lang.Long size)
Resize the VDI.
|
void |
resizeOnline(Connection c,
java.lang.Long size)
Resize the VDI which may or may not be attached to running guests.
|
Task |
resizeOnlineAsync(Connection c,
java.lang.Long size)
Resize the VDI which may or may not be attached to running guests.
|
void |
setAllowCaching(Connection c,
java.lang.Boolean value)
Set the value of the allow_caching parameter.
|
Task |
setAllowCachingAsync(Connection c,
java.lang.Boolean value)
Set the value of the allow_caching parameter.
|
void |
setIsASnapshot(Connection c,
java.lang.Boolean value)
Sets whether this VDI is a snapshot
First published in XenServer 6.0.
|
void |
setManaged(Connection c,
java.lang.Boolean value)
Sets the VDI's managed field
First published in XenServer 4.0.
|
void |
setMetadataOfPool(Connection c,
Pool value)
Records the pool whose metadata is contained by this VDI.
|
void |
setMissing(Connection c,
java.lang.Boolean value)
Sets the VDI's missing field
First published in XenServer 4.1.
|
void |
setNameDescription(Connection c,
java.lang.String value)
Set the name description of the VDI.
|
Task |
setNameDescriptionAsync(Connection c,
java.lang.String value)
Set the name description of the VDI.
|
void |
setNameLabel(Connection c,
java.lang.String value)
Set the name label of the VDI.
|
Task |
setNameLabelAsync(Connection c,
java.lang.String value)
Set the name label of the VDI.
|
void |
setOnBoot(Connection c,
Types.OnBoot value)
Set the value of the on_boot parameter.
|
Task |
setOnBootAsync(Connection c,
Types.OnBoot value)
Set the value of the on_boot parameter.
|
void |
setOtherConfig(Connection c,
java.util.Map<java.lang.String,java.lang.String> otherConfig)
Set the other_config field of the given VDI.
|
void |
setPhysicalUtilisation(Connection c,
java.lang.Long value)
Sets the VDI's physical_utilisation field
First published in XenServer 4.1.
|
void |
setReadOnly(Connection c,
java.lang.Boolean value)
Sets the VDI's read_only field
First published in XenServer 4.0.
|
void |
setSharable(Connection c,
java.lang.Boolean value)
Sets the VDI's sharable field
First published in XenServer 5.5.
|
void |
setSmConfig(Connection c,
java.util.Map<java.lang.String,java.lang.String> smConfig)
Set the sm_config field of the given VDI.
|
void |
setSnapshotOf(Connection c,
VDI value)
Sets the VDI of which this VDI is a snapshot
First published in XenServer 6.0.
|
void |
setSnapshotTime(Connection c,
java.util.Date value)
Sets the snapshot time of this VDI.
|
void |
setTags(Connection c,
java.util.Set<java.lang.String> tags)
Set the tags field of the given VDI.
|
void |
setVirtualSize(Connection c,
java.lang.Long value)
Sets the VDI's virtual_size field
First published in XenServer 4.1.
|
void |
setXenstoreData(Connection c,
java.util.Map<java.lang.String,java.lang.String> xenstoreData)
Set the xenstore_data field of the given VDI.
|
VDI |
snapshot(Connection c,
java.util.Map<java.lang.String,java.lang.String> driverParams)
Take a read-only snapshot of the VDI, returning a reference to the snapshot.
|
Task |
snapshotAsync(Connection c,
java.util.Map<java.lang.String,java.lang.String> driverParams)
Take a read-only snapshot of the VDI, returning a reference to the snapshot.
|
java.lang.String |
toWireString() |
void |
update(Connection c)
Ask the storage backend to refresh the fields in the VDI object
First published in XenServer 4.1.1.
|
Task |
updateAsync(Connection c)
Ask the storage backend to refresh the fields in the VDI object
First published in XenServer 4.1.1.
|
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 VDI.Record getRecord(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public static VDI 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 static Task createAsync(Connection c, VDI.Record record) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
record
- All constructor argumentsTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public static VDI create(Connection c, VDI.Record record) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
record
- All constructor argumentsTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public Task destroyAsync(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public void destroy(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public static java.util.Set<VDI> getByNameLabel(Connection c, java.lang.String label) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
label
- label 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 java.lang.String getNameLabel(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public java.lang.String getNameDescription(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public java.util.Set<Types.VdiOperations> getAllowedOperations(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public java.util.Map<java.lang.String,Types.VdiOperations> getCurrentOperations(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public SR getSR(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public java.util.Set<VBD> getVBDs(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public java.util.Set<Crashdump> getCrashDumps(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public java.lang.Long getVirtualSize(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public java.lang.Long getPhysicalUtilisation(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public Types.VdiType getType(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public java.lang.Boolean getSharable(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public java.lang.Boolean getReadOnly(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public java.util.Map<java.lang.String,java.lang.String> getOtherConfig(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public java.lang.Boolean getStorageLock(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public java.lang.String getLocation(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public java.lang.Boolean getManaged(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public java.lang.Boolean getMissing(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
@Deprecated public VDI getParent(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public java.util.Map<java.lang.String,java.lang.String> getXenstoreData(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public java.util.Map<java.lang.String,java.lang.String> getSmConfig(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public java.lang.Boolean getIsASnapshot(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public VDI getSnapshotOf(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public java.util.Set<VDI> getSnapshots(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public java.util.Date getSnapshotTime(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public java.util.Set<java.lang.String> getTags(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public java.lang.Boolean getAllowCaching(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public Types.OnBoot getOnBoot(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public Pool getMetadataOfPool(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public java.lang.Boolean getMetadataLatest(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public java.lang.Boolean getIsToolsIso(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public void setOtherConfig(Connection c, java.util.Map<java.lang.String,java.lang.String> otherConfig) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
otherConfig
- New value to setTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public void addToOtherConfig(Connection c, java.lang.String key, java.lang.String value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
key
- Key to addvalue
- Value to addTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public void removeFromOtherConfig(Connection c, java.lang.String key) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
key
- Key to removeTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public void setXenstoreData(Connection c, java.util.Map<java.lang.String,java.lang.String> xenstoreData) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
xenstoreData
- New value to setTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public void addToXenstoreData(Connection c, java.lang.String key, java.lang.String value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
key
- Key to addvalue
- Value to addTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public void removeFromXenstoreData(Connection c, java.lang.String key) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
key
- Key to removeTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public void setSmConfig(Connection c, java.util.Map<java.lang.String,java.lang.String> smConfig) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
smConfig
- New value to setTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public void addToSmConfig(Connection c, java.lang.String key, java.lang.String value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
key
- Key to addvalue
- Value to addTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public void removeFromSmConfig(Connection c, java.lang.String key) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
key
- Key to removeTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public void setTags(Connection c, java.util.Set<java.lang.String> tags) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
tags
- New value to setTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public void addTags(Connection c, java.lang.String value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
value
- New value to addTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public void removeTags(Connection c, java.lang.String value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
value
- Value to removeTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public Task snapshotAsync(Connection c, java.util.Map<java.lang.String,java.lang.String> driverParams) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
driverParams
- Optional parameters that can be passed through to backend driver in order to specify storage-type-specific snapshot options First published in XenServer 4.1.Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public VDI snapshot(Connection c, java.util.Map<java.lang.String,java.lang.String> driverParams) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
driverParams
- Optional parameters that can be passed through to backend driver in order to specify storage-type-specific snapshot options First published in XenServer 4.1.Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public Task createCloneAsync(Connection c, java.util.Map<java.lang.String,java.lang.String> driverParams) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
driverParams
- Optional parameters that are passed through to the backend driver in order to specify storage-type-specific clone options First published in XenServer 4.1.Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public VDI createClone(Connection c, java.util.Map<java.lang.String,java.lang.String> driverParams) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
driverParams
- Optional parameters that are passed through to the backend driver in order to specify storage-type-specific clone options First published in XenServer 4.1.Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public Task resizeAsync(Connection c, java.lang.Long size) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
size
- The new size of the VDITypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public void resize(Connection c, java.lang.Long size) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
size
- The new size of the VDITypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public Task resizeOnlineAsync(Connection c, java.lang.Long size) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
size
- The new size of the VDITypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public void resizeOnline(Connection c, java.lang.Long size) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
size
- The new size of the VDITypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public static Task introduceAsync(Connection c, java.lang.String uuid, java.lang.String nameLabel, java.lang.String nameDescription, SR SR, Types.VdiType type, java.lang.Boolean sharable, java.lang.Boolean readOnly, java.util.Map<java.lang.String,java.lang.String> otherConfig, java.lang.String location, java.util.Map<java.lang.String,java.lang.String> xenstoreData, java.util.Map<java.lang.String,java.lang.String> smConfig) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException, Types.SrOperationNotSupported
uuid
- The uuid of the disk to introducenameLabel
- The name of the disk recordnameDescription
- The description of the disk recordSR
- The SR that the VDI is intype
- The type of the VDIsharable
- true if this disk may be sharedreadOnly
- true if this disk may ONLY be mounted read-onlyotherConfig
- additional configurationlocation
- location informationxenstoreData
- Data to insert into xenstoresmConfig
- Storage-specific configTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
Types.SrOperationNotSupported
public static VDI introduce(Connection c, java.lang.String uuid, java.lang.String nameLabel, java.lang.String nameDescription, SR SR, Types.VdiType type, java.lang.Boolean sharable, java.lang.Boolean readOnly, java.util.Map<java.lang.String,java.lang.String> otherConfig, java.lang.String location, java.util.Map<java.lang.String,java.lang.String> xenstoreData, java.util.Map<java.lang.String,java.lang.String> smConfig) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException, Types.SrOperationNotSupported
uuid
- The uuid of the disk to introducenameLabel
- The name of the disk recordnameDescription
- The description of the disk recordSR
- The SR that the VDI is intype
- The type of the VDIsharable
- true if this disk may be sharedreadOnly
- true if this disk may ONLY be mounted read-onlyotherConfig
- additional configurationlocation
- location informationxenstoreData
- Data to insert into xenstoresmConfig
- Storage-specific configTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
Types.SrOperationNotSupported
public static Task introduceAsync(Connection c, java.lang.String uuid, java.lang.String nameLabel, java.lang.String nameDescription, SR SR, Types.VdiType type, java.lang.Boolean sharable, java.lang.Boolean readOnly, java.util.Map<java.lang.String,java.lang.String> otherConfig, java.lang.String location, java.util.Map<java.lang.String,java.lang.String> xenstoreData, java.util.Map<java.lang.String,java.lang.String> smConfig, java.lang.Boolean managed, java.lang.Long virtualSize, java.lang.Long physicalUtilisation, Pool metadataOfPool, java.lang.Boolean isASnapshot, java.util.Date snapshotTime, VDI snapshotOf) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException, Types.SrOperationNotSupported
uuid
- The uuid of the disk to introducenameLabel
- The name of the disk recordnameDescription
- The description of the disk recordSR
- The SR that the VDI is intype
- The type of the VDIsharable
- true if this disk may be sharedreadOnly
- true if this disk may ONLY be mounted read-onlyotherConfig
- additional configurationlocation
- location informationxenstoreData
- Data to insert into xenstoresmConfig
- Storage-specific configmanaged
- Storage-specific config First published in XenServer 6.1.virtualSize
- Storage-specific config First published in XenServer 6.1.physicalUtilisation
- Storage-specific config First published in XenServer 6.1.metadataOfPool
- Storage-specific config First published in XenServer 6.1.isASnapshot
- Storage-specific config First published in XenServer 6.1.snapshotTime
- Storage-specific config First published in XenServer 6.1.snapshotOf
- Storage-specific config First published in XenServer 6.1.Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
Types.SrOperationNotSupported
public static VDI introduce(Connection c, java.lang.String uuid, java.lang.String nameLabel, java.lang.String nameDescription, SR SR, Types.VdiType type, java.lang.Boolean sharable, java.lang.Boolean readOnly, java.util.Map<java.lang.String,java.lang.String> otherConfig, java.lang.String location, java.util.Map<java.lang.String,java.lang.String> xenstoreData, java.util.Map<java.lang.String,java.lang.String> smConfig, java.lang.Boolean managed, java.lang.Long virtualSize, java.lang.Long physicalUtilisation, Pool metadataOfPool, java.lang.Boolean isASnapshot, java.util.Date snapshotTime, VDI snapshotOf) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException, Types.SrOperationNotSupported
uuid
- The uuid of the disk to introducenameLabel
- The name of the disk recordnameDescription
- The description of the disk recordSR
- The SR that the VDI is intype
- The type of the VDIsharable
- true if this disk may be sharedreadOnly
- true if this disk may ONLY be mounted read-onlyotherConfig
- additional configurationlocation
- location informationxenstoreData
- Data to insert into xenstoresmConfig
- Storage-specific configmanaged
- Storage-specific config First published in XenServer 6.1.virtualSize
- Storage-specific config First published in XenServer 6.1.physicalUtilisation
- Storage-specific config First published in XenServer 6.1.metadataOfPool
- Storage-specific config First published in XenServer 6.1.isASnapshot
- Storage-specific config First published in XenServer 6.1.snapshotTime
- Storage-specific config First published in XenServer 6.1.snapshotOf
- Storage-specific config First published in XenServer 6.1.Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
Types.SrOperationNotSupported
public static Task dbIntroduceAsync(Connection c, java.lang.String uuid, java.lang.String nameLabel, java.lang.String nameDescription, SR SR, Types.VdiType type, java.lang.Boolean sharable, java.lang.Boolean readOnly, java.util.Map<java.lang.String,java.lang.String> otherConfig, java.lang.String location, java.util.Map<java.lang.String,java.lang.String> xenstoreData, java.util.Map<java.lang.String,java.lang.String> smConfig) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
uuid
- The uuid of the disk to introduce First published in XenServer 4.1.nameLabel
- The name of the disk record First published in XenServer 4.1.nameDescription
- The description of the disk record First published in XenServer 4.1.SR
- The SR that the VDI is in First published in XenServer 4.1.type
- The type of the VDI First published in XenServer 4.1.sharable
- true if this disk may be shared First published in XenServer 4.1.readOnly
- true if this disk may ONLY be mounted read-only First published in XenServer 4.1.otherConfig
- additional configuration First published in XenServer 4.1.location
- location information First published in XenServer 4.1.xenstoreData
- Data to insert into xenstore First published in XenServer 4.1.smConfig
- Storage-specific config First published in XenServer 4.1.Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public static VDI dbIntroduce(Connection c, java.lang.String uuid, java.lang.String nameLabel, java.lang.String nameDescription, SR SR, Types.VdiType type, java.lang.Boolean sharable, java.lang.Boolean readOnly, java.util.Map<java.lang.String,java.lang.String> otherConfig, java.lang.String location, java.util.Map<java.lang.String,java.lang.String> xenstoreData, java.util.Map<java.lang.String,java.lang.String> smConfig) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
uuid
- The uuid of the disk to introduce First published in XenServer 4.1.nameLabel
- The name of the disk record First published in XenServer 4.1.nameDescription
- The description of the disk record First published in XenServer 4.1.SR
- The SR that the VDI is in First published in XenServer 4.1.type
- The type of the VDI First published in XenServer 4.1.sharable
- true if this disk may be shared First published in XenServer 4.1.readOnly
- true if this disk may ONLY be mounted read-only First published in XenServer 4.1.otherConfig
- additional configuration First published in XenServer 4.1.location
- location information First published in XenServer 4.1.xenstoreData
- Data to insert into xenstore First published in XenServer 4.1.smConfig
- Storage-specific config First published in XenServer 4.1.Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public static Task dbIntroduceAsync(Connection c, java.lang.String uuid, java.lang.String nameLabel, java.lang.String nameDescription, SR SR, Types.VdiType type, java.lang.Boolean sharable, java.lang.Boolean readOnly, java.util.Map<java.lang.String,java.lang.String> otherConfig, java.lang.String location, java.util.Map<java.lang.String,java.lang.String> xenstoreData, java.util.Map<java.lang.String,java.lang.String> smConfig, java.lang.Boolean managed, java.lang.Long virtualSize, java.lang.Long physicalUtilisation, Pool metadataOfPool, java.lang.Boolean isASnapshot, java.util.Date snapshotTime, VDI snapshotOf) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
uuid
- The uuid of the disk to introduce First published in XenServer 4.1.nameLabel
- The name of the disk record First published in XenServer 4.1.nameDescription
- The description of the disk record First published in XenServer 4.1.SR
- The SR that the VDI is in First published in XenServer 4.1.type
- The type of the VDI First published in XenServer 4.1.sharable
- true if this disk may be shared First published in XenServer 4.1.readOnly
- true if this disk may ONLY be mounted read-only First published in XenServer 4.1.otherConfig
- additional configuration First published in XenServer 4.1.location
- location information First published in XenServer 4.1.xenstoreData
- Data to insert into xenstore First published in XenServer 4.1.smConfig
- Storage-specific config First published in XenServer 4.1.managed
- Storage-specific config First published in XenServer 6.1.virtualSize
- Storage-specific config First published in XenServer 6.1.physicalUtilisation
- Storage-specific config First published in XenServer 6.1.metadataOfPool
- Storage-specific config First published in XenServer 6.1.isASnapshot
- Storage-specific config First published in XenServer 6.1.snapshotTime
- Storage-specific config First published in XenServer 6.1.snapshotOf
- Storage-specific config First published in XenServer 6.1.Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public static VDI dbIntroduce(Connection c, java.lang.String uuid, java.lang.String nameLabel, java.lang.String nameDescription, SR SR, Types.VdiType type, java.lang.Boolean sharable, java.lang.Boolean readOnly, java.util.Map<java.lang.String,java.lang.String> otherConfig, java.lang.String location, java.util.Map<java.lang.String,java.lang.String> xenstoreData, java.util.Map<java.lang.String,java.lang.String> smConfig, java.lang.Boolean managed, java.lang.Long virtualSize, java.lang.Long physicalUtilisation, Pool metadataOfPool, java.lang.Boolean isASnapshot, java.util.Date snapshotTime, VDI snapshotOf) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
uuid
- The uuid of the disk to introduce First published in XenServer 4.1.nameLabel
- The name of the disk record First published in XenServer 4.1.nameDescription
- The description of the disk record First published in XenServer 4.1.SR
- The SR that the VDI is in First published in XenServer 4.1.type
- The type of the VDI First published in XenServer 4.1.sharable
- true if this disk may be shared First published in XenServer 4.1.readOnly
- true if this disk may ONLY be mounted read-only First published in XenServer 4.1.otherConfig
- additional configuration First published in XenServer 4.1.location
- location information First published in XenServer 4.1.xenstoreData
- Data to insert into xenstore First published in XenServer 4.1.smConfig
- Storage-specific config First published in XenServer 4.1.managed
- Storage-specific config First published in XenServer 6.1.virtualSize
- Storage-specific config First published in XenServer 6.1.physicalUtilisation
- Storage-specific config First published in XenServer 6.1.metadataOfPool
- Storage-specific config First published in XenServer 6.1.isASnapshot
- Storage-specific config First published in XenServer 6.1.snapshotTime
- Storage-specific config First published in XenServer 6.1.snapshotOf
- Storage-specific config First published in XenServer 6.1.Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public Task dbForgetAsync(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public void dbForget(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public Task updateAsync(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException, Types.SrOperationNotSupported
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
Types.SrOperationNotSupported
public void update(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException, Types.SrOperationNotSupported
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
Types.SrOperationNotSupported
public Task copyAsync(Connection c, SR sr) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException, Types.VdiReadonly, Types.VdiTooSmall, Types.VdiNotSparse
sr
- The destination SR (only required if the destination VDI is not specifiedTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
Types.VdiReadonly
Types.VdiTooSmall
Types.VdiNotSparse
public VDI copy(Connection c, SR sr) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException, Types.VdiReadonly, Types.VdiTooSmall, Types.VdiNotSparse
sr
- The destination SR (only required if the destination VDI is not specifiedTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
Types.VdiReadonly
Types.VdiTooSmall
Types.VdiNotSparse
public Task copyAsync(Connection c, SR sr, VDI baseVdi, VDI intoVdi) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException, Types.VdiReadonly, Types.VdiTooSmall, Types.VdiNotSparse
sr
- The destination SR (only required if the destination VDI is not specifiedbaseVdi
- The base VDI (only required if copying only changed blocks, by default all blocks will be copied) First published in XenServer 6.2 SP1 Hotfix XS62ESP1004.intoVdi
- The destination VDI to copy blocks into (if omitted then a destination SR must be provided and a fresh VDI will be created) First published in XenServer 6.2 SP1 Hotfix XS62ESP1004.Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
Types.VdiReadonly
Types.VdiTooSmall
Types.VdiNotSparse
public VDI copy(Connection c, SR sr, VDI baseVdi, VDI intoVdi) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException, Types.VdiReadonly, Types.VdiTooSmall, Types.VdiNotSparse
sr
- The destination SR (only required if the destination VDI is not specifiedbaseVdi
- The base VDI (only required if copying only changed blocks, by default all blocks will be copied) First published in XenServer 6.2 SP1 Hotfix XS62ESP1004.intoVdi
- The destination VDI to copy blocks into (if omitted then a destination SR must be provided and a fresh VDI will be created) First published in XenServer 6.2 SP1 Hotfix XS62ESP1004.Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
Types.VdiReadonly
Types.VdiTooSmall
Types.VdiNotSparse
public void setManaged(Connection c, java.lang.Boolean value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
value
- The new value of the VDI's managed fieldTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public Task forgetAsync(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public void forget(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public void setSharable(Connection c, java.lang.Boolean value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
value
- The new value of the VDI's sharable fieldTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public void setReadOnly(Connection c, java.lang.Boolean value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
value
- The new value of the VDI's read_only fieldTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public void setMissing(Connection c, java.lang.Boolean value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
value
- The new value of the VDI's missing fieldTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public void setVirtualSize(Connection c, java.lang.Long value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
value
- The new value of the VDI's virtual sizeTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public void setPhysicalUtilisation(Connection c, java.lang.Long value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
value
- The new value of the VDI's physical utilisationTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public void setIsASnapshot(Connection c, java.lang.Boolean value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
value
- The new value indicating whether this VDI is a snapshotTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public void setSnapshotOf(Connection c, VDI value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
value
- The VDI of which this VDI is a snapshotTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public void setSnapshotTime(Connection c, java.util.Date value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
value
- The snapshot time of this VDI.Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public void setMetadataOfPool(Connection c, Pool value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
value
- The pool whose metadata is contained by this VDITypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public Task setNameLabelAsync(Connection c, java.lang.String value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
value
- The name lable for the VDITypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public void setNameLabel(Connection c, java.lang.String value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
value
- The name lable for the VDITypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public Task setNameDescriptionAsync(Connection c, java.lang.String value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
value
- The name description for the VDITypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public void setNameDescription(Connection c, java.lang.String value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
value
- The name description for the VDITypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public Task setOnBootAsync(Connection c, Types.OnBoot value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
value
- The value to setTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public void setOnBoot(Connection c, Types.OnBoot value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
value
- The value to setTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public Task setAllowCachingAsync(Connection c, java.lang.Boolean value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
value
- The value to setTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public void setAllowCaching(Connection c, java.lang.Boolean value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
value
- The value to setTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public Task openDatabaseAsync(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public Session openDatabase(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public Task readDatabasePoolUuidAsync(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public java.lang.String readDatabasePoolUuid(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public Task poolMigrateAsync(Connection c, SR sr, java.util.Map<java.lang.String,java.lang.String> options) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
sr
- The destination SRoptions
- Other parametersTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public VDI poolMigrate(Connection c, SR sr, java.util.Map<java.lang.String,java.lang.String> options) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
sr
- The destination SRoptions
- Other parametersTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public static java.util.Set<VDI> getAll(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public static java.util.Map<VDI,VDI.Record> getAllRecords(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException