public class SR extends XenAPIObject
| Modifier and Type | Class and Description |
|---|---|
static class |
SR.Record
Represents all the fields in a SR
|
| Modifier and Type | Field and Description |
|---|---|
protected String |
ref
The XenAPI reference to this object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTags(Connection c,
String value)
Add the given value to the tags field of the given SR.
|
void |
addToOtherConfig(Connection c,
String key,
String value)
Add the given key-value pair to the other_config field of the given SR.
|
void |
addToSmConfig(Connection c,
String key,
String value)
Add the given key-value pair to the sm_config field of the given SR.
|
void |
assertCanHostHaStatefile(Connection c)
Returns successfully if the given SR can host an HA statefile.
|
Task |
assertCanHostHaStatefileAsync(Connection c)
Returns successfully if the given SR can host an HA statefile.
|
static SR |
create(Connection c,
Host host,
Map<String,String> deviceConfig,
Long physicalSize,
String nameLabel,
String nameDescription,
String type,
String contentType,
Boolean shared,
Map<String,String> smConfig)
Create a new Storage Repository and introduce it into the managed system, creating both SR record and PBD record to attach it to current host (with specified device_config parameters)
|
static Task |
createAsync(Connection c,
Host host,
Map<String,String> deviceConfig,
Long physicalSize,
String nameLabel,
String nameDescription,
String type,
String contentType,
Boolean shared,
Map<String,String> smConfig)
Create a new Storage Repository and introduce it into the managed system, creating both SR record and PBD record to attach it to current host (with specified device_config parameters)
|
Blob |
createNewBlob(Connection c,
String name,
String mimeType)
Create a placeholder for a named binary blob of data that is associated with this SR
|
Task |
createNewBlobAsync(Connection c,
String name,
String mimeType)
Create a placeholder for a named binary blob of data that is associated with this SR
|
void |
destroy(Connection c)
Destroy specified SR, removing SR-record from database and remove SR from disk.
|
Task |
destroyAsync(Connection c)
Destroy specified SR, removing SR-record from database and remove SR from disk.
|
boolean |
equals(Object obj)
If obj is a SR, compares XenAPI references for equality.
|
void |
forget(Connection c)
Removing specified SR-record from database, without attempting to remove SR from disk
|
Task |
forgetAsync(Connection c)
Removing specified SR-record from database, without attempting to remove SR from disk
|
static Set<SR> |
getAll(Connection c)
Return a list of all the SRs known to the system.
|
Set<Types.StorageOperations> |
getAllowedOperations(Connection c)
Get the allowed_operations field of the given SR.
|
static Map<SR,SR.Record> |
getAllRecords(Connection c)
Return a map of SR references to SR records for all SRs known to the system.
|
Map<String,Blob> |
getBlobs(Connection c)
Get the blobs field of the given SR.
|
static Set<SR> |
getByNameLabel(Connection c,
String label)
Get all the SR instances with the given label.
|
static SR |
getByUuid(Connection c,
String uuid)
Get a reference to the SR instance with the specified UUID.
|
String |
getContentType(Connection c)
Get the content_type field of the given SR.
|
Map<String,Types.StorageOperations> |
getCurrentOperations(Connection c)
Get the current_operations field of the given SR.
|
Boolean |
getLocalCacheEnabled(Connection c)
Get the local_cache_enabled field of the given SR.
|
String |
getNameDescription(Connection c)
Get the name/description field of the given SR.
|
String |
getNameLabel(Connection c)
Get the name/label field of the given SR.
|
Map<String,String> |
getOtherConfig(Connection c)
Get the other_config field of the given SR.
|
Set<PBD> |
getPBDs(Connection c)
Get the PBDs field of the given SR.
|
Long |
getPhysicalSize(Connection c)
Get the physical_size field of the given SR.
|
Long |
getPhysicalUtilisation(Connection c)
Get the physical_utilisation field of the given SR.
|
SR.Record |
getRecord(Connection c)
Get a record containing the current state of the given SR.
|
Boolean |
getShared(Connection c)
Get the shared field of the given SR.
|
Map<String,String> |
getSmConfig(Connection c)
Get the sm_config field of the given SR.
|
static Set<String> |
getSupportedTypes(Connection c)
Return a set of all the SR types supported by the system
|
Set<String> |
getTags(Connection c)
Get the tags field of the given SR.
|
String |
getType(Connection c)
Get the type field of the given SR.
|
String |
getUuid(Connection c)
Get the uuid field of the given SR.
|
Set<VDI> |
getVDIs(Connection c)
Get the VDIs field of the given SR.
|
Long |
getVirtualAllocation(Connection c)
Get the virtual_allocation field of the given SR.
|
int |
hashCode() |
static SR |
introduce(Connection c,
String uuid,
String nameLabel,
String nameDescription,
String type,
String contentType,
Boolean shared,
Map<String,String> smConfig)
Introduce a new Storage Repository into the managed system
|
static Task |
introduceAsync(Connection c,
String uuid,
String nameLabel,
String nameDescription,
String type,
String contentType,
Boolean shared,
Map<String,String> smConfig)
Introduce a new Storage Repository into the managed system
|
static String |
make(Connection c,
Host host,
Map<String,String> deviceConfig,
Long physicalSize,
String nameLabel,
String nameDescription,
String type,
String contentType,
Map<String,String> smConfig)
Deprecated.
|
static Task |
makeAsync(Connection c,
Host host,
Map<String,String> deviceConfig,
Long physicalSize,
String nameLabel,
String nameDescription,
String type,
String contentType,
Map<String,String> smConfig)
Deprecated.
|
static String |
probe(Connection c,
Host host,
Map<String,String> deviceConfig,
String type,
Map<String,String> smConfig)
Perform a backend-specific scan, using the given device_config.
|
static Task |
probeAsync(Connection c,
Host host,
Map<String,String> deviceConfig,
String type,
Map<String,String> smConfig)
Perform a backend-specific scan, using the given device_config.
|
void |
removeFromOtherConfig(Connection c,
String key)
Remove the given key and its corresponding value from the other_config field of the given SR.
|
void |
removeFromSmConfig(Connection c,
String key)
Remove the given key and its corresponding value from the sm_config field of the given SR.
|
void |
removeTags(Connection c,
String value)
Remove the given value from the tags field of the given SR.
|
void |
scan(Connection c)
Refreshes the list of VDIs associated with an SR
|
Task |
scanAsync(Connection c)
Refreshes the list of VDIs associated with an SR
|
void |
setNameDescription(Connection c,
String description)
Set the name/description field of the given SR.
|
void |
setNameLabel(Connection c,
String label)
Set the name/label field of the given SR.
|
void |
setOtherConfig(Connection c,
Map<String,String> otherConfig)
Set the other_config field of the given SR.
|
void |
setPhysicalSize(Connection c,
Long value)
Sets the SR's physical_size field
|
void |
setPhysicalUtilisation(Connection c,
Long value)
Sets the SR's physical_utilisation field
|
void |
setShared(Connection c,
Boolean value)
Sets the shared flag on the SR
|
Task |
setSharedAsync(Connection c,
Boolean value)
Sets the shared flag on the SR
|
void |
setSmConfig(Connection c,
Map<String,String> smConfig)
Set the sm_config field of the given SR.
|
void |
setTags(Connection c,
Set<String> tags)
Set the tags field of the given SR.
|
void |
setVirtualAllocation(Connection c,
Long value)
Sets the SR's virtual_allocation field
|
String |
toWireString() |
void |
update(Connection c)
Refresh the fields on the SR object
|
Task |
updateAsync(Connection c)
Refresh the fields on the SR object
|
protected final String ref
public String toWireString()
toWireString in class XenAPIObjectpublic boolean equals(Object obj)
public SR.Record getRecord(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static SR getByUuid(Connection c, String uuid) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
uuid - UUID of object to returnTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static Set<SR> getByNameLabel(Connection c, String label) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
label - label of object to returnTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic String getUuid(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic String getNameLabel(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic String getNameDescription(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic Set<Types.StorageOperations> getAllowedOperations(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic Map<String,Types.StorageOperations> getCurrentOperations(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic Set<VDI> getVDIs(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic Set<PBD> getPBDs(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic Long getVirtualAllocation(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic Long getPhysicalUtilisation(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic Long getPhysicalSize(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic String getType(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic String getContentType(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic Boolean getShared(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic Map<String,String> getOtherConfig(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic Set<String> getTags(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic Map<String,String> getSmConfig(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic Map<String,Blob> getBlobs(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic Boolean getLocalCacheEnabled(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic void setNameLabel(Connection c, 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, 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, Map<String,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, String key, 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, String key) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
key - Key to removeTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic void setTags(Connection c, Set<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, 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, String value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
value - Value to removeTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic void setSmConfig(Connection c, Map<String,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, String key, 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, String key) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
key - Key to removeTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static Task createAsync(Connection c, Host host, Map<String,String> deviceConfig, Long physicalSize, String nameLabel, String nameDescription, String type, String contentType, Boolean shared, Map<String,String> smConfig) throws Types.BadServerResponse, Types.VersionException, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException, Types.SrUnknownDriver
host - The host to create/make the SR ondeviceConfig - The device config string that will be passed to backend SR driverphysicalSize - The physical size of the new storage repositorynameLabel - The name of the new storage repositorynameDescription - The description of the new storage repositorytype - The type of the SR; used to specify the SR backend driver to usecontentType - The type of the new SRs content, if required (e.g. ISOs)shared - True if the SR (is capable of) being shared by multiple hostssmConfig - Storage backend specific configuration optionsTypes.BadServerResponseTypes.VersionExceptionTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionTypes.SrUnknownDriverpublic static SR create(Connection c, Host host, Map<String,String> deviceConfig, Long physicalSize, String nameLabel, String nameDescription, String type, String contentType, Boolean shared, Map<String,String> smConfig) throws Types.BadServerResponse, Types.VersionException, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException, Types.SrUnknownDriver
host - The host to create/make the SR ondeviceConfig - The device config string that will be passed to backend SR driverphysicalSize - The physical size of the new storage repositorynameLabel - The name of the new storage repositorynameDescription - The description of the new storage repositorytype - The type of the SR; used to specify the SR backend driver to usecontentType - The type of the new SRs content, if required (e.g. ISOs)shared - True if the SR (is capable of) being shared by multiple hostssmConfig - Storage backend specific configuration optionsTypes.BadServerResponseTypes.VersionExceptionTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionTypes.SrUnknownDriverpublic static Task introduceAsync(Connection c, String uuid, String nameLabel, String nameDescription, String type, String contentType, Boolean shared, Map<String,String> smConfig) throws Types.BadServerResponse, Types.VersionException, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
uuid - The uuid assigned to the introduced SRnameLabel - The name of the new storage repositorynameDescription - The description of the new storage repositorytype - The type of the SR; used to specify the SR backend driver to usecontentType - The type of the new SRs content, if required (e.g. ISOs)shared - True if the SR (is capable of) being shared by multiple hostssmConfig - Storage backend specific configuration optionsTypes.BadServerResponseTypes.VersionExceptionTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static SR introduce(Connection c, String uuid, String nameLabel, String nameDescription, String type, String contentType, Boolean shared, Map<String,String> smConfig) throws Types.BadServerResponse, Types.VersionException, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
uuid - The uuid assigned to the introduced SRnameLabel - The name of the new storage repositorynameDescription - The description of the new storage repositorytype - The type of the SR; used to specify the SR backend driver to usecontentType - The type of the new SRs content, if required (e.g. ISOs)shared - True if the SR (is capable of) being shared by multiple hostssmConfig - Storage backend specific configuration optionsTypes.BadServerResponseTypes.VersionExceptionTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcException@Deprecated public static Task makeAsync(Connection c, Host host, Map<String,String> deviceConfig, Long physicalSize, String nameLabel, String nameDescription, String type, String contentType, Map<String,String> smConfig) throws Types.BadServerResponse, Types.VersionException, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
host - The host to create/make the SR ondeviceConfig - The device config string that will be passed to backend SR driverphysicalSize - The physical size of the new storage repositorynameLabel - The name of the new storage repositorynameDescription - The description of the new storage repositorytype - The type of the SR; used to specify the SR backend driver to usecontentType - The type of the new SRs content, if required (e.g. ISOs)smConfig - Storage backend specific configuration optionsTypes.BadServerResponseTypes.VersionExceptionTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcException@Deprecated public static String make(Connection c, Host host, Map<String,String> deviceConfig, Long physicalSize, String nameLabel, String nameDescription, String type, String contentType, Map<String,String> smConfig) throws Types.BadServerResponse, Types.VersionException, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
host - The host to create/make the SR ondeviceConfig - The device config string that will be passed to backend SR driverphysicalSize - The physical size of the new storage repositorynameLabel - The name of the new storage repositorynameDescription - The description of the new storage repositorytype - The type of the SR; used to specify the SR backend driver to usecontentType - The type of the new SRs content, if required (e.g. ISOs)smConfig - Storage backend specific configuration optionsTypes.BadServerResponseTypes.VersionExceptionTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic Task destroyAsync(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException, Types.SrHasPbd
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionTypes.SrHasPbdpublic void destroy(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException, Types.SrHasPbd
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionTypes.SrHasPbdpublic Task forgetAsync(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException, Types.SrHasPbd
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionTypes.SrHasPbdpublic void forget(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException, Types.SrHasPbd
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionTypes.SrHasPbdpublic Task updateAsync(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic void update(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static Set<String> getSupportedTypes(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic Task scanAsync(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic void scan(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static Task probeAsync(Connection c, Host host, Map<String,String> deviceConfig, String type, Map<String,String> smConfig) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
host - The host to create/make the SR ondeviceConfig - The device config string that will be passed to backend SR drivertype - The type of the SR; used to specify the SR backend driver to usesmConfig - Storage backend specific configuration optionsTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static String probe(Connection c, Host host, Map<String,String> deviceConfig, String type, Map<String,String> smConfig) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
host - The host to create/make the SR ondeviceConfig - The device config string that will be passed to backend SR drivertype - The type of the SR; used to specify the SR backend driver to usesmConfig - Storage backend specific configuration optionsTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic Task setSharedAsync(Connection c, Boolean value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
value - True if the SR is sharedTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic void setShared(Connection c, Boolean value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
value - True if the SR is sharedTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic Task createNewBlobAsync(Connection c, String name, String mimeType) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
name - The name associated with the blobmimeType - The mime type for the data. Empty string translates to application/octet-streamTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic Blob createNewBlob(Connection c, String name, String mimeType) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
name - The name associated with the blobmimeType - The mime type for the data. Empty string translates to application/octet-streamTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic void setPhysicalSize(Connection c, Long value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
value - The new value of the SR's physical_sizeTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic void setVirtualAllocation(Connection c, Long value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
value - The new value of the SR's virtual_allocationTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic void setPhysicalUtilisation(Connection c, Long value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
value - The new value of the SR's physical utilisationTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic Task assertCanHostHaStatefileAsync(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic void assertCanHostHaStatefile(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static Set<SR> getAll(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static Map<SR,SR.Record> getAllRecords(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcException