|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.xensource.xenapi.SR
public class SR
A storage repository
Nested Class Summary | |
---|---|
static class |
SR.Record
Represents all the fields in a SR |
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 SR. |
static Set<SR> |
getAll()
Return a list of all the SRs known to the system. |
static Map<SR,SR.Record> |
getAllRecords()
Get all the SR Records at once, in a single XML RPC call |
static Set<SR> |
getByNameLabel(String label)
Get all the SR instances with the given label. |
static SR |
getByUuid(String uuid)
Get a reference to the SR instance with the specified UUID. |
String |
getContentType()
Get the content_type field of the given SR. |
protected static SR |
getInstFromRef(String ref)
|
String |
getNameDescription()
Get the name/description field of the given SR. |
String |
getNameLabel()
Get the name/label field of the given SR. |
Map<String,String> |
getOtherConfig()
Get the other_config field of the given SR. |
Set<PBD> |
getPBDs()
Get the PBDs field of the given SR. |
Long |
getPhysicalSize()
Get the physical_size field of the given SR. |
Long |
getPhysicalUtilisation()
Get the physical_utilisation field of the given SR. |
SR.Record |
getRecord()
Get a record containing the current state of the given SR. |
Boolean |
getShared()
Get the shared field of the given SR. |
static Set<String> |
getSupportedTypes()
Return a set of all the SR types supported by the system |
String |
getType()
Get the type field of the given SR. |
String |
getUuid()
Get the uuid field of the given SR. |
Set<VDI> |
getVDIs()
Get the VDIs field of the given SR. |
Long |
getVirtualAllocation()
Get the virtual_allocation field of the given SR. |
void |
removeFromOtherConfig(String key)
Remove the given key and its corresponding value from the other_config field of the given SR. |
void |
setNameDescription(String description)
Set the name/description field of the given SR. |
void |
setNameLabel(String label)
Set the name/label field of the given SR. |
void |
setOtherConfig(Map<String,String> otherConfig)
Set the other_config field of the given SR. |
void |
setShared(Boolean shared)
Set the shared field of the given SR. |
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 SR getInstFromRef(String ref)
public SR.Record getRecord() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public static SR getByUuid(String uuid) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
uuid
- UUID of object to return
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public static Set<SR> 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 Set<VDI> getVDIs() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public Set<PBD> getPBDs() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public Long getVirtualAllocation() 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 Long getPhysicalSize() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public String getType() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public String getContentType() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public Boolean getShared() 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 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 setShared(Boolean shared) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
shared
- 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<String> getSupportedTypes() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public static Set<SR> getAll() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public static Map<SR,SR.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 |