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 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)
Make a fresh VDI in the specified SR and copy the supplied VDI's data to the new disk
|
Task |
copyAsync(Connection c,
SR sr)
Make a fresh VDI in the specified SR and copy the supplied VDI's data to the new disk
|
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
|
Task |
dbForgetAsync(Connection c)
Removes a VDI record from the database
|
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
|
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
|
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
|
Task |
forgetAsync(Connection c)
Removes a VDI record from the database
|
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.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 |
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)
Get the parent field of the given VDI.
|
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
|
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
|
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 |
setManaged(Connection c,
java.lang.Boolean value)
Sets the VDI's managed field
|
void |
setMissing(Connection c,
java.lang.Boolean value)
Sets the VDI's missing field
|
void |
setNameDescription(Connection c,
java.lang.String description)
Set the name/description field of the given VDI.
|
void |
setNameLabel(Connection c,
java.lang.String label)
Set the name/label field of the given VDI.
|
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
|
void |
setReadOnly(Connection c,
java.lang.Boolean value)
Sets the VDI's read_only field
|
void |
setSharable(Connection c,
java.lang.Boolean value)
Sets the VDI's sharable field
|
void |
setSmConfig(Connection c,
java.util.Map<java.lang.String,java.lang.String> smConfig)
Set the sm_config field of the given 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
|
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
|
Task |
updateAsync(Connection c)
Ask the storage backend to refresh the fields in the VDI object
|
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 VDI.Record getRecord(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static VDI 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 static Task createAsync(Connection c, VDI.Record record) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
record - All constructor argumentsTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static VDI create(Connection c, VDI.Record record) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
record - All constructor argumentsTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic Task destroyAsync(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic void destroy(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic 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.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 java.lang.String getNameLabel(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic java.lang.String getNameDescription(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic java.util.Set<Types.VdiOperations> getAllowedOperations(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic java.util.Map<java.lang.String,Types.VdiOperations> getCurrentOperations(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic SR getSR(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic java.util.Set<VBD> getVBDs(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic java.util.Set<Crashdump> getCrashDumps(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic java.lang.Long getVirtualSize(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic java.lang.Long getPhysicalUtilisation(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic Types.VdiType getType(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic java.lang.Boolean getSharable(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic java.lang.Boolean getReadOnly(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic java.util.Map<java.lang.String,java.lang.String> getOtherConfig(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic java.lang.Boolean getStorageLock(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic java.lang.String getLocation(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic java.lang.Boolean getManaged(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic java.lang.Boolean getMissing(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic VDI getParent(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic java.util.Map<java.lang.String,java.lang.String> getXenstoreData(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic java.util.Map<java.lang.String,java.lang.String> getSmConfig(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic java.lang.Boolean getIsASnapshot(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic VDI getSnapshotOf(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic java.util.Set<VDI> getSnapshots(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic java.util.Date getSnapshotTime(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic java.util.Set<java.lang.String> getTags(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic java.lang.Boolean getAllowCaching(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic Types.OnBoot getOnBoot(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic void setNameLabel(Connection c, java.lang.String label) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
label - New value to setTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic void setNameDescription(Connection c, java.lang.String description) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
description - New value to setTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic 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.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic 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.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic void removeFromOtherConfig(Connection c, java.lang.String key) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
key - Key to removeTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic 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.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic 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.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic void removeFromXenstoreData(Connection c, java.lang.String key) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
key - Key to removeTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic 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.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic 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.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic void removeFromSmConfig(Connection c, java.lang.String key) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
key - Key to removeTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic 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.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic void addTags(Connection c, java.lang.String value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
value - New value to addTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic void removeTags(Connection c, java.lang.String value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
value - Value to removeTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic Task snapshotAsync(Connection c, java.util.Map<java.lang.String,java.lang.String> driverParams) throws Types.BadServerResponse, Types.VersionException, 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 optionsTypes.BadServerResponseTypes.VersionExceptionTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic VDI snapshot(Connection c, java.util.Map<java.lang.String,java.lang.String> driverParams) throws Types.BadServerResponse, Types.VersionException, 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 optionsTypes.BadServerResponseTypes.VersionExceptionTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic Task createCloneAsync(Connection c, java.util.Map<java.lang.String,java.lang.String> driverParams) throws Types.BadServerResponse, Types.VersionException, 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 optionsTypes.BadServerResponseTypes.VersionExceptionTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic VDI createClone(Connection c, java.util.Map<java.lang.String,java.lang.String> driverParams) throws Types.BadServerResponse, Types.VersionException, 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 optionsTypes.BadServerResponseTypes.VersionExceptionTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic Task resizeAsync(Connection c, java.lang.Long size) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
size - The new size of the VDITypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic void resize(Connection c, java.lang.Long size) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
size - The new size of the VDITypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic Task resizeOnlineAsync(Connection c, java.lang.Long size) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
size - The new size of the VDITypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic void resizeOnline(Connection c, java.lang.Long size) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
size - The new size of the VDITypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic 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.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionTypes.SrOperationNotSupportedpublic 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.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionTypes.SrOperationNotSupportedpublic 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 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.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic 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 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.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic Task dbForgetAsync(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic void dbForget(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic Task updateAsync(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException, Types.SrOperationNotSupported
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionTypes.SrOperationNotSupportedpublic void update(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException, Types.SrOperationNotSupported
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionTypes.SrOperationNotSupportedpublic Task copyAsync(Connection c, SR sr) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
sr - The destination SRTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic VDI copy(Connection c, SR sr) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
sr - The destination SRTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic 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.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic Task forgetAsync(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic void forget(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic 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.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic 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.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic 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.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic 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.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic 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.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static java.util.Set<VDI> getAll(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static java.util.Map<VDI,VDI.Record> getAllRecords(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcException