|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.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 String |
ref
The XenAPI reference to this object. |
| Method Summary | |
|---|---|
void |
addToOtherConfig(String key,
String value)
Add the given key-value pair to the other_config field of the given VDI. |
static VDI |
create(VDI.Record record)
Create a new VDI instance, and return its handle. |
void |
destroy()
Destroy the specified VDI instance. |
static Set<VDI> |
getAll()
Return a list of all the VDIs known to the system. |
static Map<VDI,VDI.Record> |
getAllRecords()
Get all the VDI Records at once, in a single XML RPC call |
static Set<VDI> |
getByNameLabel(String label)
Get all the VDI instances with the given label. |
static VDI |
getByUuid(String uuid)
Get a reference to the VDI instance with the specified UUID. |
Set<Crashdump> |
getCrashDumps()
Get the crash_dumps field of the given VDI. |
protected static VDI |
getInstFromRef(String ref)
|
String |
getNameDescription()
Get the name/description field of the given VDI. |
String |
getNameLabel()
Get the name/label field of the given VDI. |
Map<String,String> |
getOtherConfig()
Get the other_config field of the given VDI. |
Long |
getPhysicalUtilisation()
Get the physical_utilisation field of the given VDI. |
Boolean |
getReadOnly()
Get the read_only field of the given VDI. |
VDI.Record |
getRecord()
Get a record containing the current state of the given VDI. |
Boolean |
getSharable()
Get the sharable field of the given VDI. |
SR |
getSR()
Get the SR field of the given VDI. |
Boolean |
getStorageLock()
Get the storage_lock field of the given VDI. |
com.xensource.xenapi.Types.VdiType |
getType()
Get the type field of the given VDI. |
String |
getUuid()
Get the uuid field of the given VDI. |
Set<VBD> |
getVBDs()
Get the VBDs field of the given VDI. |
Long |
getVirtualSize()
Get the virtual_size field of the given VDI. |
void |
removeFromOtherConfig(String key)
Remove the given key and its corresponding value from the other_config field of the given VDI. |
void |
setNameDescription(String description)
Set the name/description field of the given VDI. |
void |
setNameLabel(String label)
Set the name/label field of the given VDI. |
void |
setOtherConfig(Map<String,String> otherConfig)
Set the other_config field of the given VDI. |
void |
setReadOnly(Boolean readOnly)
Set the read_only field of the given VDI. |
void |
setSharable(Boolean sharable)
Set the sharable field of the given VDI. |
void |
setVirtualSize(Long virtualSize)
Set the virtual_size field of the given VDI. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final String ref
| Method Detail |
|---|
protected static VDI getInstFromRef(String ref)
public VDI.Record getRecord()
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public static VDI getByUuid(String uuid)
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
uuid - UUID of object to return
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public static VDI create(VDI.Record record)
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
record - All constructor arguments
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void destroy()
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public static Set<VDI> getByNameLabel(String label)
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
label - label of object to return
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public String getUuid()
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public String getNameLabel()
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public String getNameDescription()
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public SR getSR()
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public Set<VBD> getVBDs()
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public Set<Crashdump> getCrashDumps()
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public Long getVirtualSize()
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public Long getPhysicalUtilisation()
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public com.xensource.xenapi.Types.VdiType getType()
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public Boolean getSharable()
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public Boolean getReadOnly()
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public Map<String,String> getOtherConfig()
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public Boolean getStorageLock()
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void setNameLabel(String label)
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
label - New value to set
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void setNameDescription(String description)
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
description - New value to set
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void setVirtualSize(Long virtualSize)
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
virtualSize - New value to set
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void setSharable(Boolean sharable)
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
sharable - New value to set
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void setReadOnly(Boolean readOnly)
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
readOnly - New value to set
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void setOtherConfig(Map<String,String> otherConfig)
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
otherConfig - New value to set
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void addToOtherConfig(String key,
String value)
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
key - Key to addvalue - Value to add
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void removeFromOtherConfig(String key)
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
key - Key to remove
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public static Set<VDI> getAll()
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public static Map<VDI,VDI.Record> getAllRecords()
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||