|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.xensource.xenapi.XenAPIObject
com.xensource.xenapi.VDI
public class VDI
A virtual disk image
Nested Class Summary | |
---|---|
static class |
VDI.Record
Represents all the fields in a VDI |
Field Summary | |
---|---|
protected java.lang.String |
ref
The XenAPI reference to this object. |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final java.lang.String ref
Method Detail |
---|
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 return
Types.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 arguments
Types.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 arguments
Types.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 return
Types.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
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 void setNameLabel(Connection c, java.lang.String label) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
label
- New value to set
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public void setNameDescription(Connection c, java.lang.String description) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
description
- New value to set
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 set
Types.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 add
Types.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 remove
Types.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 set
Types.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 add
Types.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 remove
Types.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 set
Types.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 add
Types.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 remove
Types.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 set
Types.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 add
Types.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 remove
Types.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.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 options
Types.BadServerResponse
Types.VersionException
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.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 options
Types.BadServerResponse
Types.VersionException
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.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 options
Types.BadServerResponse
Types.VersionException
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.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 options
Types.BadServerResponse
Types.VersionException
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 VDI
Types.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 VDI
Types.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 VDI
Types.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 VDI
Types.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 config
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) 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 config
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 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 config
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 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 config
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
sr
- The destination SR
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public VDI copy(Connection c, SR sr) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
sr
- The destination SR
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
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 field
Types.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 field
Types.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 field
Types.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 field
Types.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 size
Types.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 utilisation
Types.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
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |