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 java.lang.String |
ref
The XenAPI reference (OpaqueRef) 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 SR.
|
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 SR.
|
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 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.
|
void |
assertSupportsDatabaseReplication(Connection c)
Returns successfully if the given SR supports database replication.
|
Task |
assertSupportsDatabaseReplicationAsync(Connection c)
Returns successfully if the given SR supports database replication.
|
static SR |
create(Connection c,
Host host,
java.util.Map<java.lang.String,java.lang.String> deviceConfig,
java.lang.Long physicalSize,
java.lang.String nameLabel,
java.lang.String nameDescription,
java.lang.String type,
java.lang.String contentType,
java.lang.Boolean shared)
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)
First published in XenServer 4.0.
|
static SR |
create(Connection c,
Host host,
java.util.Map<java.lang.String,java.lang.String> deviceConfig,
java.lang.Long physicalSize,
java.lang.String nameLabel,
java.lang.String nameDescription,
java.lang.String type,
java.lang.String contentType,
java.lang.Boolean shared,
java.util.Map<java.lang.String,java.lang.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)
First published in XenServer 4.0.
|
static Task |
createAsync(Connection c,
Host host,
java.util.Map<java.lang.String,java.lang.String> deviceConfig,
java.lang.Long physicalSize,
java.lang.String nameLabel,
java.lang.String nameDescription,
java.lang.String type,
java.lang.String contentType,
java.lang.Boolean shared)
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)
First published in XenServer 4.0.
|
static Task |
createAsync(Connection c,
Host host,
java.util.Map<java.lang.String,java.lang.String> deviceConfig,
java.lang.Long physicalSize,
java.lang.String nameLabel,
java.lang.String nameDescription,
java.lang.String type,
java.lang.String contentType,
java.lang.Boolean shared,
java.util.Map<java.lang.String,java.lang.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)
First published in XenServer 4.0.
|
Blob |
createNewBlob(Connection c,
java.lang.String name,
java.lang.String mimeType)
Create a placeholder for a named binary blob of data that is associated with this SR
First published in XenServer 5.0.
|
Blob |
createNewBlob(Connection c,
java.lang.String name,
java.lang.String mimeType,
java.lang.Boolean _public)
Create a placeholder for a named binary blob of data that is associated with this SR
First published in XenServer 5.0.
|
Task |
createNewBlobAsync(Connection c,
java.lang.String name,
java.lang.String mimeType)
Create a placeholder for a named binary blob of data that is associated with this SR
First published in XenServer 5.0.
|
Task |
createNewBlobAsync(Connection c,
java.lang.String name,
java.lang.String mimeType,
java.lang.Boolean _public)
Create a placeholder for a named binary blob of data that is associated with this SR
First published in XenServer 5.0.
|
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.
|
void |
disableDatabaseReplication(Connection c)
First published in XenServer 6.0.
|
Task |
disableDatabaseReplicationAsync(Connection c)
First published in XenServer 6.0.
|
void |
enableDatabaseReplication(Connection c)
First published in XenServer 6.0.
|
Task |
enableDatabaseReplicationAsync(Connection c)
First published in XenServer 6.0.
|
boolean |
equals(java.lang.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
First published in XenServer 4.0.
|
Task |
forgetAsync(Connection c)
Removing specified SR-record from database, without attempting to remove SR from disk
First published in XenServer 4.0.
|
void |
forgetDataSourceArchives(Connection c,
java.lang.String dataSource)
Forget the recorded statistics related to the specified data source
First published in XenServer 7.0.
|
static java.util.Set<SR> |
getAll(Connection c)
Return a list of all the SRs known to the system.
|
java.util.Set<Types.StorageOperations> |
getAllowedOperations(Connection c)
Get the allowed_operations field of the given SR.
|
static java.util.Map<SR,SR.Record> |
getAllRecords(Connection c)
Return a map of SR references to SR records for all SRs known to the system.
|
java.util.Map<java.lang.String,Blob> |
getBlobs(Connection c)
Get the blobs field of the given SR.
|
static java.util.Set<SR> |
getByNameLabel(Connection c,
java.lang.String label)
Get all the SR instances with the given label.
|
static SR |
getByUuid(Connection c,
java.lang.String uuid)
Get a reference to the SR instance with the specified UUID.
|
java.lang.Boolean |
getClustered(Connection c)
Get the clustered field of the given SR.
|
java.lang.String |
getContentType(Connection c)
Get the content_type field of the given SR.
|
java.util.Map<java.lang.String,Types.StorageOperations> |
getCurrentOperations(Connection c)
Get the current_operations field of the given SR.
|
java.util.Set<DataSource.Record> |
getDataSources(Connection c)
First published in XenServer 7.0.
|
DRTask |
getIntroducedBy(Connection c)
Get the introduced_by field of the given SR.
|
java.lang.Boolean |
getIsToolsSr(Connection c)
Get the is_tools_sr field of the given SR.
|
java.lang.Boolean |
getLocalCacheEnabled(Connection c)
Get the local_cache_enabled field of the given SR.
|
java.lang.String |
getNameDescription(Connection c)
Get the name/description field of the given SR.
|
java.lang.String |
getNameLabel(Connection c)
Get the name/label field of the given SR.
|
java.util.Map<java.lang.String,java.lang.String> |
getOtherConfig(Connection c)
Get the other_config field of the given SR.
|
java.util.Set<PBD> |
getPBDs(Connection c)
Get the PBDs field of the given SR.
|
java.lang.Long |
getPhysicalSize(Connection c)
Get the physical_size field of the given SR.
|
java.lang.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.
|
java.lang.Boolean |
getShared(Connection c)
Get the shared field of the given SR.
|
java.util.Map<java.lang.String,java.lang.String> |
getSmConfig(Connection c)
Get the sm_config field of the given SR.
|
static java.util.Set<java.lang.String> |
getSupportedTypes(Connection c)
Return a set of all the SR types supported by the system
First published in XenServer 4.0.
|
java.util.Set<java.lang.String> |
getTags(Connection c)
Get the tags field of the given SR.
|
java.lang.String |
getType(Connection c)
Get the type field of the given SR.
|
java.lang.String |
getUuid(Connection c)
Get the uuid field of the given SR.
|
java.util.Set<VDI> |
getVDIs(Connection c)
Get the VDIs field of the given SR.
|
java.lang.Long |
getVirtualAllocation(Connection c)
Get the virtual_allocation field of the given SR.
|
int |
hashCode() |
static SR |
introduce(Connection c,
java.lang.String uuid,
java.lang.String nameLabel,
java.lang.String nameDescription,
java.lang.String type,
java.lang.String contentType,
java.lang.Boolean shared)
Introduce a new Storage Repository into the managed system
First published in XenServer 4.0.
|
static SR |
introduce(Connection c,
java.lang.String uuid,
java.lang.String nameLabel,
java.lang.String nameDescription,
java.lang.String type,
java.lang.String contentType,
java.lang.Boolean shared,
java.util.Map<java.lang.String,java.lang.String> smConfig)
Introduce a new Storage Repository into the managed system
First published in XenServer 4.0.
|
static Task |
introduceAsync(Connection c,
java.lang.String uuid,
java.lang.String nameLabel,
java.lang.String nameDescription,
java.lang.String type,
java.lang.String contentType,
java.lang.Boolean shared)
Introduce a new Storage Repository into the managed system
First published in XenServer 4.0.
|
static Task |
introduceAsync(Connection c,
java.lang.String uuid,
java.lang.String nameLabel,
java.lang.String nameDescription,
java.lang.String type,
java.lang.String contentType,
java.lang.Boolean shared,
java.util.Map<java.lang.String,java.lang.String> smConfig)
Introduce a new Storage Repository into the managed system
First published in XenServer 4.0.
|
static java.lang.String |
make(Connection c,
Host host,
java.util.Map<java.lang.String,java.lang.String> deviceConfig,
java.lang.Long physicalSize,
java.lang.String nameLabel,
java.lang.String nameDescription,
java.lang.String type,
java.lang.String contentType)
Deprecated.
|
static java.lang.String |
make(Connection c,
Host host,
java.util.Map<java.lang.String,java.lang.String> deviceConfig,
java.lang.Long physicalSize,
java.lang.String nameLabel,
java.lang.String nameDescription,
java.lang.String type,
java.lang.String contentType,
java.util.Map<java.lang.String,java.lang.String> smConfig)
Deprecated.
|
static Task |
makeAsync(Connection c,
Host host,
java.util.Map<java.lang.String,java.lang.String> deviceConfig,
java.lang.Long physicalSize,
java.lang.String nameLabel,
java.lang.String nameDescription,
java.lang.String type,
java.lang.String contentType)
Deprecated.
|
static Task |
makeAsync(Connection c,
Host host,
java.util.Map<java.lang.String,java.lang.String> deviceConfig,
java.lang.Long physicalSize,
java.lang.String nameLabel,
java.lang.String nameDescription,
java.lang.String type,
java.lang.String contentType,
java.util.Map<java.lang.String,java.lang.String> smConfig)
Deprecated.
|
static java.lang.String |
probe(Connection c,
Host host,
java.util.Map<java.lang.String,java.lang.String> deviceConfig,
java.lang.String type,
java.util.Map<java.lang.String,java.lang.String> smConfig)
Perform a backend-specific scan, using the given device_config.
|
static Task |
probeAsync(Connection c,
Host host,
java.util.Map<java.lang.String,java.lang.String> deviceConfig,
java.lang.String type,
java.util.Map<java.lang.String,java.lang.String> smConfig)
Perform a backend-specific scan, using the given device_config.
|
static java.util.Set<ProbeResult.Record> |
probeExt(Connection c,
Host host,
java.util.Map<java.lang.String,java.lang.String> deviceConfig,
java.lang.String type,
java.util.Map<java.lang.String,java.lang.String> smConfig)
Perform a backend-specific scan, using the given device_config.
|
static Task |
probeExtAsync(Connection c,
Host host,
java.util.Map<java.lang.String,java.lang.String> deviceConfig,
java.lang.String type,
java.util.Map<java.lang.String,java.lang.String> smConfig)
Perform a backend-specific scan, using the given device_config.
|
java.lang.Double |
queryDataSource(Connection c,
java.lang.String dataSource)
Query the latest value of the specified data source
First published in XenServer 7.0.
|
void |
recordDataSource(Connection c,
java.lang.String dataSource)
Start recording the specified data source
First published in XenServer 7.0.
|
void |
removeFromOtherConfig(Connection c,
java.lang.String key)
Remove the given key and its corresponding value from the other_config field of the given SR.
|
void |
removeFromSmConfig(Connection c,
java.lang.String key)
Remove the given key and its corresponding value from the sm_config field of the given SR.
|
void |
removeTags(Connection c,
java.lang.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
First published in XenServer 4.0.
|
Task |
scanAsync(Connection c)
Refreshes the list of VDIs associated with an SR
First published in XenServer 4.0.
|
void |
setNameDescription(Connection c,
java.lang.String value)
Set the name description of the SR
First published in XenServer 4.0.
|
Task |
setNameDescriptionAsync(Connection c,
java.lang.String value)
Set the name description of the SR
First published in XenServer 4.0.
|
void |
setNameLabel(Connection c,
java.lang.String value)
Set the name label of the SR
First published in XenServer 4.0.
|
Task |
setNameLabelAsync(Connection c,
java.lang.String value)
Set the name label of the SR
First published in XenServer 4.0.
|
void |
setOtherConfig(Connection c,
java.util.Map<java.lang.String,java.lang.String> otherConfig)
Set the other_config field of the given SR.
|
void |
setPhysicalSize(Connection c,
java.lang.Long value)
Sets the SR's physical_size field
First published in XenServer 4.1.
|
void |
setShared(Connection c,
java.lang.Boolean value)
Sets the shared flag on the SR
First published in XenServer 4.0.
|
Task |
setSharedAsync(Connection c,
java.lang.Boolean value)
Sets the shared flag on the SR
First published in XenServer 4.0.
|
void |
setSmConfig(Connection c,
java.util.Map<java.lang.String,java.lang.String> smConfig)
Set the sm_config field of the given SR.
|
void |
setTags(Connection c,
java.util.Set<java.lang.String> tags)
Set the tags field of the given SR.
|
java.lang.String |
toWireString() |
void |
update(Connection c)
Refresh the fields on the SR object
First published in XenServer 4.1.1.
|
Task |
updateAsync(Connection c)
Refresh the fields on the SR object
First published in XenServer 4.1.1.
|
isNull
protected final java.lang.String ref
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 SR.Record getRecord(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public static SR getByUuid(Connection c, java.lang.String uuid) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onuuid
- UUID of object to returnTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public static java.util.Set<SR> getByNameLabel(Connection c, java.lang.String label) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onlabel
- label of object to returnTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public java.lang.String getUuid(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public java.lang.String getNameLabel(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public java.lang.String getNameDescription(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public java.util.Set<Types.StorageOperations> getAllowedOperations(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public java.util.Map<java.lang.String,Types.StorageOperations> getCurrentOperations(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public java.util.Set<VDI> getVDIs(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public java.util.Set<PBD> getPBDs(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public java.lang.Long getVirtualAllocation(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public java.lang.Long getPhysicalUtilisation(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public java.lang.Long getPhysicalSize(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public java.lang.String getType(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public java.lang.String getContentType(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public java.lang.Boolean getShared(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public java.util.Map<java.lang.String,java.lang.String> getOtherConfig(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public java.util.Set<java.lang.String> getTags(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public java.util.Map<java.lang.String,java.lang.String> getSmConfig(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public java.util.Map<java.lang.String,Blob> getBlobs(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public java.lang.Boolean getLocalCacheEnabled(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public DRTask getIntroducedBy(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public java.lang.Boolean getClustered(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public java.lang.Boolean getIsToolsSr(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public void setOtherConfig(Connection c, java.util.Map<java.lang.String,java.lang.String> otherConfig) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onotherConfig
- New value to setTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public void addToOtherConfig(Connection c, java.lang.String key, java.lang.String value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onkey
- Key to addvalue
- Value to addTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public void removeFromOtherConfig(Connection c, java.lang.String key) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onkey
- Key to removeTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public void setTags(Connection c, java.util.Set<java.lang.String> tags) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made ontags
- New value to setTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public void addTags(Connection c, java.lang.String value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onvalue
- New value to addTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public void removeTags(Connection c, java.lang.String value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onvalue
- Value to removeTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public void setSmConfig(Connection c, java.util.Map<java.lang.String,java.lang.String> smConfig) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onsmConfig
- New value to setTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public void addToSmConfig(Connection c, java.lang.String key, java.lang.String value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onkey
- Key to addvalue
- Value to addTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public void removeFromSmConfig(Connection c, java.lang.String key) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onkey
- Key to removeTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public static Task createAsync(Connection c, Host host, java.util.Map<java.lang.String,java.lang.String> deviceConfig, java.lang.Long physicalSize, java.lang.String nameLabel, java.lang.String nameDescription, java.lang.String type, java.lang.String contentType, java.lang.Boolean shared) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException, Types.SrUnknownDriver
c
- The connection the call is made onhost
- 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 hostsTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.Types.SrUnknownDriver
- The SR could not be connected because the driver was not recognised.public static SR create(Connection c, Host host, java.util.Map<java.lang.String,java.lang.String> deviceConfig, java.lang.Long physicalSize, java.lang.String nameLabel, java.lang.String nameDescription, java.lang.String type, java.lang.String contentType, java.lang.Boolean shared) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException, Types.SrUnknownDriver
c
- The connection the call is made onhost
- 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 hostsTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.Types.SrUnknownDriver
- The SR could not be connected because the driver was not recognised.public static Task createAsync(Connection c, Host host, java.util.Map<java.lang.String,java.lang.String> deviceConfig, java.lang.Long physicalSize, java.lang.String nameLabel, java.lang.String nameDescription, java.lang.String type, java.lang.String contentType, java.lang.Boolean shared, java.util.Map<java.lang.String,java.lang.String> smConfig) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException, Types.SrUnknownDriver
c
- The connection the call is made onhost
- 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 options First published in XenServer 4.1.Types.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.Types.SrUnknownDriver
- The SR could not be connected because the driver was not recognised.public static SR create(Connection c, Host host, java.util.Map<java.lang.String,java.lang.String> deviceConfig, java.lang.Long physicalSize, java.lang.String nameLabel, java.lang.String nameDescription, java.lang.String type, java.lang.String contentType, java.lang.Boolean shared, java.util.Map<java.lang.String,java.lang.String> smConfig) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException, Types.SrUnknownDriver
c
- The connection the call is made onhost
- 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 options First published in XenServer 4.1.Types.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.Types.SrUnknownDriver
- The SR could not be connected because the driver was not recognised.public static Task introduceAsync(Connection c, java.lang.String uuid, java.lang.String nameLabel, java.lang.String nameDescription, java.lang.String type, java.lang.String contentType, java.lang.Boolean shared) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onuuid
- 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 hostsTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public static SR introduce(Connection c, java.lang.String uuid, java.lang.String nameLabel, java.lang.String nameDescription, java.lang.String type, java.lang.String contentType, java.lang.Boolean shared) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onuuid
- 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 hostsTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public static Task introduceAsync(Connection c, java.lang.String uuid, java.lang.String nameLabel, java.lang.String nameDescription, java.lang.String type, java.lang.String contentType, java.lang.Boolean shared, java.util.Map<java.lang.String,java.lang.String> smConfig) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onuuid
- 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 options First published in XenServer 4.1.Types.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public static SR introduce(Connection c, java.lang.String uuid, java.lang.String nameLabel, java.lang.String nameDescription, java.lang.String type, java.lang.String contentType, java.lang.Boolean shared, java.util.Map<java.lang.String,java.lang.String> smConfig) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onuuid
- 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 options First published in XenServer 4.1.Types.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.@Deprecated public static Task makeAsync(Connection c, Host host, java.util.Map<java.lang.String,java.lang.String> deviceConfig, java.lang.Long physicalSize, java.lang.String nameLabel, java.lang.String nameDescription, java.lang.String type, java.lang.String contentType) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onhost
- 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)Types.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.@Deprecated public static java.lang.String make(Connection c, Host host, java.util.Map<java.lang.String,java.lang.String> deviceConfig, java.lang.Long physicalSize, java.lang.String nameLabel, java.lang.String nameDescription, java.lang.String type, java.lang.String contentType) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onhost
- 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)Types.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.@Deprecated public static Task makeAsync(Connection c, Host host, java.util.Map<java.lang.String,java.lang.String> deviceConfig, java.lang.Long physicalSize, java.lang.String nameLabel, java.lang.String nameDescription, java.lang.String type, java.lang.String contentType, java.util.Map<java.lang.String,java.lang.String> smConfig) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onhost
- 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 options First published in XenServer 4.1.Types.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.@Deprecated public static java.lang.String make(Connection c, Host host, java.util.Map<java.lang.String,java.lang.String> deviceConfig, java.lang.Long physicalSize, java.lang.String nameLabel, java.lang.String nameDescription, java.lang.String type, java.lang.String contentType, java.util.Map<java.lang.String,java.lang.String> smConfig) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onhost
- 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 options First published in XenServer 4.1.Types.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public Task destroyAsync(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException, Types.SrHasPbd
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.Types.SrHasPbd
- The SR is still connected to a host via a PBD. It cannot be destroyed or forgotten.public void destroy(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException, Types.SrHasPbd
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.Types.SrHasPbd
- The SR is still connected to a host via a PBD. It cannot be destroyed or forgotten.public Task forgetAsync(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException, Types.SrHasPbd
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.Types.SrHasPbd
- The SR is still connected to a host via a PBD. It cannot be destroyed or forgotten.public void forget(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException, Types.SrHasPbd
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.Types.SrHasPbd
- The SR is still connected to a host via a PBD. It cannot be destroyed or forgotten.public Task updateAsync(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public void update(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public static java.util.Set<java.lang.String> getSupportedTypes(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public Task scanAsync(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public void scan(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public static Task probeAsync(Connection c, Host host, java.util.Map<java.lang.String,java.lang.String> deviceConfig, java.lang.String type, java.util.Map<java.lang.String,java.lang.String> smConfig) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onhost
- 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.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public static java.lang.String probe(Connection c, Host host, java.util.Map<java.lang.String,java.lang.String> deviceConfig, java.lang.String type, java.util.Map<java.lang.String,java.lang.String> smConfig) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onhost
- 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.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public static Task probeExtAsync(Connection c, Host host, java.util.Map<java.lang.String,java.lang.String> deviceConfig, java.lang.String type, java.util.Map<java.lang.String,java.lang.String> smConfig) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onhost
- 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.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public static java.util.Set<ProbeResult.Record> probeExt(Connection c, Host host, java.util.Map<java.lang.String,java.lang.String> deviceConfig, java.lang.String type, java.util.Map<java.lang.String,java.lang.String> smConfig) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onhost
- 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.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public Task setSharedAsync(Connection c, java.lang.Boolean value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onvalue
- True if the SR is sharedTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public void setShared(Connection c, java.lang.Boolean value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onvalue
- True if the SR is sharedTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public Task setNameLabelAsync(Connection c, java.lang.String value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onvalue
- The name label for the SRTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public void setNameLabel(Connection c, java.lang.String value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onvalue
- The name label for the SRTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public Task setNameDescriptionAsync(Connection c, java.lang.String value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onvalue
- The name description for the SRTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public void setNameDescription(Connection c, java.lang.String value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onvalue
- The name description for the SRTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public Task createNewBlobAsync(Connection c, java.lang.String name, java.lang.String mimeType) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onname
- The name associated with the blobmimeType
- The mime type for the data. Empty string translates to application/octet-streamTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public Blob createNewBlob(Connection c, java.lang.String name, java.lang.String mimeType) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onname
- The name associated with the blobmimeType
- The mime type for the data. Empty string translates to application/octet-streamTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public Task createNewBlobAsync(Connection c, java.lang.String name, java.lang.String mimeType, java.lang.Boolean _public) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onname
- The name associated with the blobmimeType
- The mime type for the data. Empty string translates to application/octet-stream_public
- True if the blob should be publicly available First published in XenServer 6.1.Types.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public Blob createNewBlob(Connection c, java.lang.String name, java.lang.String mimeType, java.lang.Boolean _public) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onname
- The name associated with the blobmimeType
- The mime type for the data. Empty string translates to application/octet-stream_public
- True if the blob should be publicly available First published in XenServer 6.1.Types.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public void setPhysicalSize(Connection c, java.lang.Long value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onvalue
- The new value of the SR's physical_sizeTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public Task assertCanHostHaStatefileAsync(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public void assertCanHostHaStatefile(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public Task assertSupportsDatabaseReplicationAsync(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public void assertSupportsDatabaseReplication(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public Task enableDatabaseReplicationAsync(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public void enableDatabaseReplication(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public Task disableDatabaseReplicationAsync(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public void disableDatabaseReplication(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public java.util.Set<DataSource.Record> getDataSources(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public void recordDataSource(Connection c, java.lang.String dataSource) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made ondataSource
- The data source to recordTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public java.lang.Double queryDataSource(Connection c, java.lang.String dataSource) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made ondataSource
- The data source to queryTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public void forgetDataSourceArchives(Connection c, java.lang.String dataSource) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made ondataSource
- The data source whose archives are to be forgottenTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public static java.util.Set<SR> getAll(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public static java.util.Map<SR,SR.Record> getAllRecords(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.